44 lines
2.8 KiB
Python
44 lines
2.8 KiB
Python
"""Freeze the explicitly approved seven-part continuation and unified tet endpoint."""
|
|
import copy
|
|
import json
|
|
from pathlib import Path
|
|
from freeze_g1_components import sha
|
|
from s2_custody_common import read_json,checked
|
|
from s2_recovery_supervisor import save
|
|
|
|
OLD=Path('artifacts/naive-ordering-2026-11-15')
|
|
ROOT=Path('artifacts/naive-domain-continuation-2026-11-15')
|
|
|
|
|
|
def main():
|
|
if ROOT.exists():raise FileExistsError('Do not overwrite continuation')
|
|
c=copy.deepcopy(read_json(OLD/'contract.json'))
|
|
for p,h in {**c['code_sha256'],**c['source_sha256']}.items():checked(p,h)
|
|
batch=read_json(OLD/'batch-complete.json');audit=read_json(OLD/'full-domain-audit.json')
|
|
indices=[26,194,367,406,470,480,483]
|
|
if batch['passed']!=610 or batch['failed']!=7 or sorted(r['index'] for r in audit['failed'])!=indices:
|
|
raise ValueError('Scope differs from explicit final seven-part ruling')
|
|
if audit['retained_tet_invalid_nodes'] or audit['raw_vs_tet_end_differences'] or audit['finite_max_vs_tet_end_differences']:
|
|
raise ValueError('Uniform endpoint reuse not established by completed audit')
|
|
c.update(version='naive-tet-domain-continuation-v1',original_root=str(OLD),
|
|
original_contract_sha256=sha(OLD/'contract.json'),original_batch_sha256=sha(OLD/'batch-complete.json'),
|
|
domain_ruling='1794734938.283669',mathematical_read='1794735016.559279',scope_ruling='1794735162.417219',
|
|
latest_ruling='1794735162.417219',continuation_indices=indices,
|
|
domain_audit=str(OLD/'full-domain-audit.json'),
|
|
continuation_inputs={str(r['index']):r for r in audit['failed']},
|
|
supplemental_audit_CPU_s=audit['CPU_s']+read_json(OLD/'failure-domain-audit-inflight.json')['CPU_s'],
|
|
endpoint='last labelled arrival on frozen full retained tet domain, d=0 included; not machine end/V-P/log100percent',
|
|
time_scale='Per-fold nested learning-pool component/part-equal mean(full_tet_T_end/t_set)',
|
|
new_full_decodes_authorized=0,successful_original_parts_rerun=0,budget_reset=False)
|
|
c['code_sha256'].update({str(p):sha(p) for p in Path('tools').glob('*naive_domain*.py')})
|
|
for p in [OLD/'contract.json',OLD/'batch-complete.json',OLD/'full-domain-audit.json',OLD/'failure-domain-audit-inflight.json',Path('docs/naive-domain-continuation-contract-2026-11-15.md')]:
|
|
c['source_sha256'][str(p)]=sha(p)
|
|
ROOT.mkdir();save(ROOT/'contract.json',c)
|
|
save(ROOT/'prelaunch.json',dict(status='EXPLICIT_SEVEN_DOMAIN_CONTINUATION_FIXED_NOT_STARTED',indices=indices,
|
|
contract_sha256=sha(ROOT/'contract.json'),new_decodes=0,original_successes_reused=610,
|
|
prior_worker_CPU_s=batch['worker_CPU_s'],supplemental_audit_CPU_s=c['supplemental_audit_CPU_s']))
|
|
print(json.dumps(read_json(ROOT/'prelaunch.json')))
|
|
|
|
|
|
if __name__=='__main__':main()
|