Guard archive job progress contract

This commit is contained in:
OpenGenesis (MPL 2.0) committed 2026-10-05 06:43:23 +02:00
1 parent 5ffe727333
commit a3a75bb7fc
1 file changed
+13
+13
View File
@@ -0,0 +1,13 @@
#!/usr/bin/env python3
from pathlib import Path
oar=Path("NexVerse/RegionModules/Archives/OglOarOperationManager.cs").read_text()
iar=Path("NexVerse/RegionModules/Archives/OglIarOperationManager.cs").read_text()
node=Path("NexVerse/RegionModules/NodeAgent/NexVerseNodeAgentModule.cs").read_text()
bridge=Path("NexVerse/Core/Jobs/OglJobEventBridge.cs").read_text()
required=["ProgressPercent","ProgressPhase","TryCancel(","operation_already_running_not_safely_cancellable"]
for name,text in [("OAR",oar),("IAR",iar)]:
missing=[x for x in required if x not in text]
if missing: raise SystemExit(name+" progress contract missing: "+", ".join(missing))
if '["progress"]' not in node or '["phase"]' not in node: raise SystemExit("NodeAgent progress payload missing")
if "runningProgress" not in bridge or "m_Jobs.Report" not in bridge: raise SystemExit("Job bridge progress projection missing")
print("OpenGenesisLINK archive progress contract: OK")