P08-03: 配置の通常操作受入

This commit is contained in:
Agent Control Runner
2026-10-14 04:53:00 +09:00
parent 8e3d79d5f2
commit 4a17d0e0f5
15 changed files with 14249 additions and 56 deletions
+29
View File
@@ -5,6 +5,7 @@ fabricated unit-test data, never collector output. Semantic corruption tests rep
their bytes, so they cannot pass merely by detecting a stale artifact checksum.
"""
import copy
import json
import hashlib
import json
from pathlib import Path
@@ -290,6 +291,34 @@ def make(base, source, checker):
'result':typed({'ok':True,'read_only':True,'snapshot':copy.deepcopy(model)}),
'raw_sha256':sha(folder/(inspect_stem+'.var'))})
put(folder/(role+'-save-results.json'), {'pid':pid,'records':[stem,inspect_stem]})
if method == "native_os":
prefix = "writer-bootstrap-"
returned = {"ok":True,"operation":"recovery","code":"OK","save_path":"user://saves/manual_ui"}
expected = checker.expected_operation(formal_model,returned,"SAVE_RECOVERY_LOADED")
for label,value in [("formal-model",formal_model),("returned-result",typed(returned)),
("checkpoint",expected),("expected-operation",expected),("operation-actual",expected)]:
put(folder/(prefix+label+".json"),value)
(folder/(prefix+label+".var")).write_bytes(json.dumps(value,sort_keys=True).encode())
records = []
for suffix,operation,value in [
("0000-bootstrap","runtime_operation",returned),
("0000-inspect","initial_inspect",{"ok":True,"read_only":True,"snapshot":copy.deepcopy(model)})]:
stem = "writer-save-result-"+suffix
(folder/(stem+".var")).write_bytes(b"synthetic bootstrap Dictionary")
put(folder/(stem+".json"), {"pid":pids[0],"operation":operation,
"requested_path":"user://saves/manual_ui","absolute_path":absolute,"user_data_dir":profile,
"result":typed(value),"raw_sha256":sha(folder/(stem+".var"))})
records.append(stem)
log = json.loads((folder/"writer-save-results.json").read_text())
log["records"] = records+log["records"]
put(folder/"writer-save-results.json",log)
count = len(model["systems"]["runtime"]["domain_events"]["recent_events"])
put(folder/(prefix+"operation-comparison.json"), {
"pid":pids[0],"delta_kind":"source_defined_notification",
"formal_model":prefix+"formal-model","actual_model":prefix+"checkpoint",
"expected_model":prefix+"expected-operation","returned_result":typed(returned),
"saved_recent_count":count,"expected_recent_count":count+1,"actual_recent_count":count+1,
"whole_raw_equal":True})
put(folder/'save.json', {'members': {n: sha(formal/n) for n in checker.MEMBERS},
'pid': pids[0], 'cell': target, 'instance_id': 'f4'})
row = {'id': 'resume_overlap', 'kind': 'build', 'position': position(target),