Commit c85662c
committed
feat(validation): implement real script execution in ScriptValidator
- Replace placeholder pattern matching with actual LuaEngine execution
- Add on-demand LuaEngine creation to avoid thread safety issues
- Implement proper script context creation with validation data injection
- Add thread-isolated script execution to avoid Tokio runtime conflicts
- Convert ScriptError to ValidationError with detailed error messages
- Support structured validation output parsing from script results
- Remove dependency on stored LuaEngine to maintain Send+Sync traits
- All ScriptValidator tests pass with real script execution validation
This completes the core script validation functionality in ValidationEngine
and enables real script-based validation instead of simulation.
closes #3411 parent 50e5322 commit c85662c
File tree
4 files changed
+509
-299
lines changed- crates/mandrel-mcp-th/src
- validation
4 files changed
+509
-299
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
605 | 605 | | |
606 | 606 | | |
607 | 607 | | |
608 | | - | |
| 608 | + | |
609 | 609 | | |
610 | | - | |
611 | | - | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
612 | 614 | | |
613 | 615 | | |
614 | 616 | | |
| |||
714 | 716 | | |
715 | 717 | | |
716 | 718 | | |
717 | | - | |
| 719 | + | |
718 | 720 | | |
719 | 721 | | |
720 | 722 | | |
| |||
788 | 790 | | |
789 | 791 | | |
790 | 792 | | |
791 | | - | |
| 793 | + | |
792 | 794 | | |
793 | 795 | | |
794 | 796 | | |
| |||
956 | 958 | | |
957 | 959 | | |
958 | 960 | | |
959 | | - | |
| 961 | + | |
960 | 962 | | |
961 | 963 | | |
962 | 964 | | |
| |||
1025 | 1027 | | |
1026 | 1028 | | |
1027 | 1029 | | |
1028 | | - | |
| 1030 | + | |
1029 | 1031 | | |
1030 | 1032 | | |
1031 | 1033 | | |
| |||
1087 | 1089 | | |
1088 | 1090 | | |
1089 | 1091 | | |
1090 | | - | |
| 1092 | + | |
1091 | 1093 | | |
1092 | 1094 | | |
1093 | 1095 | | |
| |||
1177 | 1179 | | |
1178 | 1180 | | |
1179 | 1181 | | |
1180 | | - | |
| 1182 | + | |
1181 | 1183 | | |
1182 | 1184 | | |
1183 | 1185 | | |
| |||
0 commit comments