#!/usr/bin/python3.12 """Copy bounded qualified source/evidence; never mutate the staging run source.""" import pathlib,shutil,json,hashlib A=pathlib.Path(__file__).resolve().parent;D=A.parent;S=pathlib.Path(json.loads((A/'staging.json').read_text())['root']);P=A/'deliveries/go2_fl_contact_cycle_sim-0.4.2' assert not P.exists();P.parent.mkdir(parents=True,exist_ok=True) shutil.copytree(S,P,ignore=shutil.ignore_patterns('__pycache__','.pytest_cache')) # Documentation/tests not in the authority are refreshed; all bound inputs below # must remain byte-for-byte those actually qualified, including the two plans. for name in ['README.md','current_status.md','next_stage.md','evidence_index.md','contact_cycle_sim_performance_v042_result.md']: shutil.copy2(D/'docs'/name,P/'docs'/name) for src in (D/'tests').glob('test_contact_cycle*.py'):shutil.copy2(src,P/'tests'/src.name) shutil.copy2(D/'docs/contact_cycle_sim_performance_v042_result.md',P/'RESULTS.md') shutil.copy2(D/'setup-preflight.json',P/'setup-preflight.json') E=P/'evidence/v042';E.mkdir(parents=True) inventory=[] def copy(src,dst): assert src.is_file() and not src.is_symlink(),src dst.parent.mkdir(parents=True,exist_ok=True);shutil.copy2(src,dst) inventory.append({'original':str(src),'package':str(dst.relative_to(P)),'sha256':hashlib.sha256(src.read_bytes()).hexdigest(),'bytes':src.stat().st_size}) # Small parent receipts, reviews, tests and reproducibility helpers; no recursive # capture of this delivery, caches, external private session directories or TUI. for src in sorted(A.iterdir()): if src.is_file() and src.suffix in {'.json','.md','.log','.xml','.py','.txt'}:copy(src,E/'parent'/src.name) for src in sorted((A/'approved-sources').rglob('*')): if src.is_file():copy(src,E/'approved-sources'/src.relative_to(A/'approved-sources')) for src in sorted((A/'runs').rglob('*')): if not src.is_file():continue rel=src.relative_to(A/'runs');parts=rel.parts if 'native' in parts or 'authority' in parts or 'tmp' in parts:continue if len(parts)>1 and parts[1]=='session': if src.name!='registration.json':continue # no private issuer/authority files if src.name=='reservation.json' and any(x in parts for x in ['prepare','run']):continue copy(src,E/'runs'/rel) for name in ['display05-physical-audit','headless06-physical-audit']: for src in sorted((A/name).rglob('*')): if src.is_file():copy(src,E/name/src.relative_to(A/name)) # Original immutable CPU fixtures required by the complete bundled test suite, # not runtime authority or a new training/physical run. 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', 'logs/contact_cycle/frozen_replay_p0_01/run/initial_state.pt', 'logs/contact_cycle/frozen_replay_p0_01/run/first_episodes.pt']: copy(D/n,P/n) copy(pathlib.Path('/home/cen/sf-runs/p1-01/launch-0/trial-00/trace.v1.jsonl.gz'),P/'tests/fixtures/p1-trace.v1.jsonl.gz') # This is generated portable test output: locator only, original hash/assertions # remain unchanged; the native authority does not include test files. test=P/'tests/test_contact_cycle_sim_evaluation_runtime.py' test.write_text(test.read_text().replace("trace = Path('/home/cen/sf-runs/p1-01/launch-0/trial-00/trace.v1.jsonl.gz')", "trace = ROOT / 'tests/fixtures/p1-trace.v1.jsonl.gz' # identical original hash, portable fixture")) # Actual demo bytes, not an offline re-render or speed-adjusted derivative. M=P/'demo';M.mkdir() for name in ['actual-moving-window.png','actual-final-window.png','live-kit-window.mp4']: copy(A/'runs/display-S1-05/observer'/name,M/name) (P/'verify_cpu.py').write_text('''"""CPU namespace harness; no Kit registration or GPU. Requires pytest+CPU Torch.""" import sys,types,pathlib,pytest root=pathlib.Path(__file__).resolve().parent p=types.ModuleType('SkillFactory');p.__path__=[str(root/'source/SkillFactory/SkillFactory')];p.__file__=str(root/'source/SkillFactory/SkillFactory/__init__.py');sys.modules['SkillFactory']=p sys.path[:0]=[str(root),str(root/'scripts'),str(root/'tests')] raise SystemExit(pytest.main(sys.argv[1:])) ''') (P/'README.md').write_text('''# Go2 FL contact-cycle simulation / performance0.4.2 Simulation-only, single floating-root aided Go2 FL leg + original3kg payload. **accepted_skill=false.** This is a bounded analytic-S1 performance result, not full-matrix/u256 qualification, autonomous balance, whole robot, hardware or sim2real. Old0.4.0/0.4.1 and their failures remain sealed separately. ## Launch genuine live Kit GUI From a local graphical terminal on the qualified machine: ```sh cd /home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2 SKILL_DEMO_OUTPUT="$PWD/manual-$(date +%s)" bash demo_gui.sh ``` Original headless launcher: `bash demo.sh`. Python/CLI: `python3 scripts/go2_fl_skill.py --help`, `docs/go2_fl_skill_v4_api.md`. Public start/query/queue/request_stop/wait and analytic/reference mathematics, original physical parameters/functional gates and full500Hz evidence remain. Every future call creates NEW registration/guarded PREP+RUN; old closed grants and this task's unused budget cannot be reused. Close while running aborts; after full completion the original scene stays render-only until close/deadline. The reused UI library title says0.4.1; its message identifies0.4.2candidate. No video playback/interpolation is used by the launcher. ## Actual speed, not a real-time claim - Genuine window screenshot `demo/actual-moving-window.png`: native overlay33.98FPS. - FullS1 GUI:27000current-state render submissions in764.863wallseconds, **35.30submissions/s**, including25650added +1350originalinterval20renders. This is NOT independently measured display-present average FPS. - **Physics time advances only0.07060× in GUI,0.18325× headless.** Smooth display does NOT mean1× real-time simulation. More drawing trades physics throughput for responsiveness; single-env small-operation/serial synchronous checking overhead remains. Many-env training amortizes that overhead and its aggregate throughput is not directly comparable. - Whole-device mean active GPUutil39.74%,133.43W,2887.82MHz; includes desktop. No artificial load, extra envs, power cap, lowered physics fidelity or fake FPS. - Like-profiled identical4500tick baseline/combined loop113.5415→75.7835s: 1.4982×throughput,33.25%less walltime. Do not compare that profile directly with the longer profiler-disabled fullS1 GUI run, which includes recording and early CPU regression-test observer overhead. - `demo/live-kit-window.mp4` is120seconds ORIGINAL-SPEED X11 capture,30Hz sampling, not the renderer rate and not an input to the running demo. ## Evidence / qualification limits GUI and headless each pass six continuous analyticS1 cycles/27000ticks, original gates/5seams/preclose identity/shutdown/wait0/ownedcleanup. All70tensor traces and whole-fileSHA256 equal prior0.4.1GUI11: `d0934245e50f3d7e174b24c109f167236c4693a023d1da01bbadfd71e41b4dba`. Both zero-step offline physical audits pass. CPU1557passed/6skipped. Actual native runs used the recorded staging root, not another GPU run of this relocated delivery; all41authority source/config/plan bytes are identical, source equivalence checked separately. Future roots need fresh binding. See `RESULTS.md`, `evidence/v042/parent/performance-result.json`, original campaign/worker/trace files under `evidence/v042/runs/`, source snapshots, CPUlogs/XML, reviews/resolutions and independently verified physical audits. Original native caches and private authority/session files are excluded from this portable package, but retained under the original repository run paths; `evidence-inventory.json` maps every copied evidence file to its origin/hash. The failed first PREP, both fixed reviewP1findings, initial CPUcollection failure and FIRST headless postexit observer GPU-admission exception remain preserved. That observer's precise cause is UNKNOWN; original runtime success is unchanged. A later unchanged strict verifier passes AFTER callerwait0 and clean GPU observation; no whitelist/source waiver, new physical run or foreign termination. Do not reinterpret the later check as the earlier failure's cause. No current-source nominal20/S2/S3/u256 test. New-cadence native early-abort, injected visualizer failure, startup-close, safe-stop and600s viewing timeout are untested (CPUnegative tests are not native acceptance). No all-input bitwise/global determinism or complete opaque PhysX-state claim. Historical strict30mmRootXY failure remains: observedmax80.49mm; not precision optimization. Shared native/cache monitoring is sampled/incomplete, not a hard disk quota. `verify_functional.sh` can initiate a NEW fullmatrix; its presence is not a claim that this version already passed it. Do not auto-run it as part of this task. ## Dependencies / integrity Local IsaacLab `/home/cen/IsaacLab`, IsaacSim `/home/cen/isaacsim-6.0.1`, RTX5080CUDA0 and graphical DISPLAY/XAUTHORITY. See `dependencies.json` and `setup-preflight.json`; SO/AV unavailable/unneeded for application profiling, no USD optimization/install is claimed. Existing hardware/control domain unchanged. CPU-only verification (pytest+CPU Torch required): `PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 CUDA_VISIBLE_DEVICES='' python verify_cpu.py tests/test_contact_cycle*.py -q`. Public source/frozen check uses `scripts/go2_fl_skill.py validate --verify-frozen`. `SHA256SUMS` and adjacent archive `.sha256` provide transport integrity, not new runtime authority or broader skill acceptance. Final sealing/whole-task evidence is recorded separately by the parent in the repository. ''') ap=json.loads((A/'runs/display-S1-05/campaign/approval.json').read_text())['sources'] sha=lambda p:hashlib.sha256(p.read_bytes()).hexdigest() assert all(sha(P/n)==h for n,h in ap.items()),'Relocated source differs from qualified authority' prep=json.loads((A/'runs/display-S1-05/campaign/prepare/worker-result.json').read_text()) (P/'dependencies.json').write_text(json.dumps({'isaaclab_root':'/home/cen/IsaacLab','isaacsim_root':'/home/cen/isaacsim-6.0.1','kit_runtime_metadata':prep['kit_runtime_metadata'],'GPU':'RTX5080 CUDA0','driver_observed':'595.99.02','physical_caller':'/usr/bin/python3.12 publicCLI -> originalIsaacLab guarded native worker','portable_runtime_bundled':False,'standalone_SO_AV_required':False},indent=2)+'\n') (P/'skill-package.json').write_text(json.dumps({'version':'0.4.2','accepted_skill':False,'scope':'bounded analyticS1simulation functional/performance result','qualified_authority_inputs':ap,'native_qualification_root':str(S),'delivery_root':str(P),'qualification':'GUI/headless6cycles27000ticks each;fulltraceidentical to0.4.1GUI11','limitations':'README.md / RESULTS.md','training_steps':0},indent=2)+'\n') (P/'evidence-inventory.json').write_text(json.dumps(inventory,indent=2)+'\n') (A/'assembly.json').write_text(json.dumps({'package':str(P),'copied_evidence_files':len(inventory),'authority_inputs':len(ap),'source_bytes_match_native_qualified_inputs':True,'sealed':False},indent=2)+'\n') print(json.dumps({'package':str(P),'evidence_files':len(inventory),'source_inputs_equal':len(ap)}))