Files
SkillFactory/performance_v042/add_delivery_fixtures.py
T
chenlin c528dd268f feat: checkpoint Go2 FL simulation performance v0.4.2
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.
2026-10-16 15:46:01 +08:00

11 lines
1.7 KiB
Python

#!/usr/bin/python3.12
"""Preserve first packaging CPU failure; add missing immutable test data only."""
import json,pathlib,shutil,hashlib
A=pathlib.Path(__file__).resolve().parent;D=A.parent;P=pathlib.Path(json.loads((A/'assembly.json').read_text())['package']);sha=lambda p:hashlib.sha256(p.read_bytes()).hexdigest();I=json.loads((P/'evidence-inventory.json').read_text());entries=[]
for n in ['logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md','logs/contact_cycle/sim_residual_training_v1/prepared01/validation_u0256_trace.pt']:
src=D/n;dst=P/n;assert not dst.exists();dst.parent.mkdir(parents=True,exist_ok=True);shutil.copy2(src,dst);entry={'original':str(src),'package':n,'sha256':sha(src),'bytes':src.stat().st_size};I.append(entry);entries.append(entry)
(P/'evidence-inventory.json').write_text(json.dumps(I,indent=2)+'\n')
auth=json.loads((A/'runs/display-S1-05/campaign/approval.json').read_text())['sources'];assert all(sha(P/n)==h for n,h in auth.items())
R={'first_package_CPU_result':'39failed1517passed7skipped, delivery-cpu.log/xml untouched','diagnosis':'36tests missing original historical storage-scope document;3tests missing original saved u0256 validation trace. Full bundled suite needs extra historical test data beyond minimal native runtime. No runtime source, safety rule, test assertion, skip or frozen weight changed.','added_original_fixtures':entries,'bound41_inputs_still_equal':True,'meaning':'These historical fixtures are data, not permission to reuse an authority or run training. New full CPU verification required before sealing.'}
(A/'delivery-fixture-repair.json').write_text(json.dumps(R,indent=2)+'\n');print(json.dumps(R))