c528dd268f
Include callable skill and live-GUI prerequisites, epoch sensor reads, packed snapshots, sampled bit-exact kinematics, and verified-tick rendering without changing the physical/control schedule. Record bounded analytic S1 GUI/headless qualification, original failures and CPU evidence (1557 passed, 6 skipped). Preserve accepted_skill=false and sub-real-time limitations. Exclude native authorities, caches, large media and local delivery copies; retain sealed artifact digest.
44 lines
5.5 KiB
Python
44 lines
5.5 KiB
Python
#!/usr/bin/python3.12
|
|
"""Read-only runtime evidence aggregation, never reclassify failed attempts."""
|
|
import pathlib,json,hashlib,datetime,time,xml.etree.ElementTree as ET
|
|
A=pathlib.Path(__file__).resolve().parent
|
|
read=lambda p:json.loads(p.read_text())
|
|
sha=lambda p:hashlib.sha256(p.read_bytes()).hexdigest()
|
|
|
|
def differences(a,b,path=''):
|
|
if type(a)!=type(b):return [path]
|
|
if isinstance(a,dict):
|
|
return [p for k in sorted(a.keys()|b.keys()) for p in ([path+'/'+k] if k not in a or k not in b else differences(a[k],b[k],path+'/'+k))]
|
|
if isinstance(a,list):
|
|
return [path] if len(a)!=len(b) else [p for i,(x,y) in enumerate(zip(a,b)) for p in differences(x,y,path+'/'+str(i))]
|
|
return [] if a==b else [path]
|
|
|
|
summary=read(A/'performance-summary-pre-headless.json')
|
|
summary['headless-S1-06']={'loop':{k:v for k,v in read(A/'runs/headless-S1-06/campaign/run/performance-profile.json').items() if k!='functions_by_cumulative'}}
|
|
rows=[];identities=[]
|
|
for root in sorted((A/'runs').iterdir()):
|
|
c=read(root/'campaign/campaign-result.json');ap=read(root/'campaign/approval.json');identities += [x for row in c['rows'] for x in row['owned_identities']]
|
|
rows.append({'name':root.name,'original_success':c['success'],'Kit_instances':len(c['rows']),'actual_physics_calls':c['actual_final_physics_calls'],'reserved_physics_calls':c['reserved_physics_calls'],'original_campaign_sha256':sha(root/'campaign/campaign-result.json'),'waited_cleanup':all(x['waited_exit'] and x['cleanup_clean'] for x in c['rows']), 'source_inputs':len(ap['sources'])})
|
|
alive=[]
|
|
for pid,birth in identities:
|
|
try:
|
|
s=pathlib.Path(f'/proc/{pid}/stat').read_text()
|
|
if int(s[s.rfind(')')+2:].split()[19])==birth:alive.append([pid,birth])
|
|
except FileNotFoundError:pass
|
|
scope=read(A/'scope.json');counts={'Kit_instances':sum(x['Kit_instances'] for x in rows),'actual_physics_calls':sum(x['actual_physics_calls'] for x in rows),'reserved_physics_calls':sum(x['reserved_physics_calls'] for x in rows),'optimizer_steps':0,'owned_identities_checked':len(identities),'owned_alive':alive,'elapsed_seconds':time.time()-datetime.datetime.fromisoformat(scope['start']).timestamp()}
|
|
assert counts['Kit_instances']<=scope['limits']['kit_launches'] and counts['reserved_physics_calls']<=scope['limits']['physics_calls'] and not alive
|
|
G=read(A/'runs/display-S1-05/campaign/prepare/binding.json');H=read(A/'runs/headless-S1-06/campaign/prepare/binding.json');diff=differences(G['effective_config'],H['effective_config']);assert len(diff)==1 and diff[0].startswith('/fields/mapping/sim/fields/mapping/visualizer_cfgs/'),diff
|
|
src=G['sources'];assert src==H['sources']
|
|
authority=read(A/'runs/display-S1-05/campaign/approval.json')['sources'];assert authority==read(A/'runs/headless-S1-06/campaign/approval.json')['sources']
|
|
P=pathlib.Path(read(A/'staging.json')['root']);assert all(sha(P/n)==h for n,h in authority.items())
|
|
summary.update(cases=rows,accounting=counts,effective_config_differences=diff,current_source_inputs_equal=True,binding_base_source_input_count=len(src),authority_source_input_count=len(authority),accepted_skill=False,training_steps=0)
|
|
summary['failure_disclosure']='baseline-profile01 failed PREP before physics and remains failed. Both reviewP1findings fixed before native qualification, CPU collection failure preserved. First independent headless06 postexit observer raised GPU admission mismatch without PID evidence; exact cause unknown. Original runtime success unchanged. After callerwait0 and clean nvidia-smi observation, unchanged strict verifier second observation passed; no whitelist/source changes, no new Kit/physics. Shared native cache monitoring not a hard quota.'
|
|
summary['qualification_scope']='Current-source analytic S1 only: GUI6cycles27000ticks and headless6cycles27000ticks,70tensors byte-identical to each other and prior0.4.1GUI11 including entire trace-fileSHA. No current-source nominal20/S2/S3/u256 qualification, native new-cadence early-abort/visualizer-failure injection/startup-close/GUI-safe-stop/600s viewing-timeout test, global determinism or opaque native-state completeness claim. Earlyclose/visualizerfailure protections CPUnegative-tested.'
|
|
summary['postexit_reports']=['display05-postexit.json','headless06-postexit-first-failure.json','headless06-postexit-second.json']
|
|
summary['cpu_acceptance']={'passed':1557,'skipped':6,'failed':0,'log':'cpu-full03.log','xml':'cpu-full03.xml'}
|
|
(A/'performance-result.json').write_text(json.dumps(summary,indent=2)+'\n')
|
|
# Compact receipts with original paths/hashes; originals remain untouched.
|
|
for name in ['display-S1-05','headless-S1-06']:
|
|
r=A/'runs'/name/'campaign';w=read(r/'run/worker-result.json');c=read(r/'campaign-result.json');e={'originals':{str(p):sha(p) for p in [r/'run/worker-result.json',r/'campaign-result.json',r.parent/'observer/result.json']},'worker':{k:v for k,v in w.items() if k in ['success','error','runtime_stop','cycles_completed','physics_counts','hook_violations','runtime_continuity_verified','preclose_identity_verified','performance_installation','gui','shutdown_handoff_ready']},'campaign':{k:c[k] for k in ['success','actual_final_physics_calls','reserved_physics_calls','accepted_skill','optimizer_steps']},'rows':[{k:x[k] for k in ['slot','success','returncode','waited_exit','cleanup_clean','shutdown_handoff']} for x in c['rows']]};(A/(name+'-review-extract.json')).write_text(json.dumps(e,indent=2)+'\n')
|
|
print(json.dumps({'accounting':counts,'config_differences':diff,'binding_base_source_inputs':len(src),'authority_source_inputs':len(authority),'cpu':summary['cpu_acceptance']}))
|