From a3a75bb7fc89b5a25f95d7466e18511188cf8dea Mon Sep 17 00:00:00 2001 From: "OpenGenesis (MPL 2.0)" <153564363+opengenesislink@users.noreply.github.com> Date: Mon, 5 Oct 2026 06:43:23 +0200 Subject: [PATCH] Guard archive job progress contract --- tools/ci/verify_archive_job_progress.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tools/ci/verify_archive_job_progress.py diff --git a/tools/ci/verify_archive_job_progress.py b/tools/ci/verify_archive_job_progress.py new file mode 100644 index 00000000..6c949f6f --- /dev/null +++ b/tools/ci/verify_archive_job_progress.py @@ -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")