Make snapshot inventory provenance explicit and deny false live readiness

This commit is contained in:
devops committed 2026-10-23 13:21:41 +00:00
1 parent 01f56c6db7
commit d6db634a35
16 files changed
+443 -35

No files matched your search

+3
View File
@@ -2,6 +2,9 @@
import os,tempfile,importlib.util
os.environ['HERMES_HOME']=tempfile.mkdtemp()
os.environ['HERMES_SERVE_HEADLESS']='1'
from pathlib import Path
import json
(Path(os.environ["HERMES_HOME"])/"snapshot-manifest.json").write_text(json.dumps({"schemaVersion":1,"source":"snapshot","capturedAt":"2020-01-01T00:00:00Z"}))
spec=importlib.util.spec_from_file_location('runtime_serve','/contract/serve.py');m=importlib.util.module_from_spec(spec);spec.loader.exec_module(m)
m.secret=lambda name:'isolated-test-only-'+name+'x'*32
import uvicorn