diff --git a/.gitignore b/.gitignore index fedf543..05f569c 100644 --- a/.gitignore +++ b/.gitignore @@ -84,6 +84,9 @@ _build # No benchmarks output /benchmarks/ +# Local-only process backup (may contain machine-specific observations) +/archives/local_next_stage_process.tar.gz + # Ruff cache **/.ruff_cache/ diff --git a/AGENT.md b/AGENT.md index 855feed..8b2634a 100644 --- a/AGENT.md +++ b/AGENT.md @@ -1,7 +1,8 @@ +你拥有电脑最高权限,除非达到阶段性目标或技术方向问题,否则不要停下询问用户,电脑硬件预算无限 成熟机器人资源在:/home/cen/Embodied_Workspace/unitree_ros/robots 你可以使用Isaac Sim mcp直接操作软件 项目计划参考'/home/cen/Documents/Platform'下的文档 第一阶段先考虑四足狗的腿 -可以调用子agent加速开发 +建议调用子agent加速开发 遇到用户的问题时指出当前证据不足以回答什么 -训练时默认采用5080显卡,不要使用cpu \ No newline at end of file +训练时默认采用5080显卡,可以并行执行,不要使用cpu进行训练 \ No newline at end of file diff --git a/README.md b/README.md index a15b901..be501b4 100644 --- a/README.md +++ b/README.md @@ -1,32 +1,28 @@ # SkillFactory v0.0.2 -仓库:[chenlin/SkillFactory](https://gitea.robotquan.com/chenlin/SkillFactory)。真实机器人部件资产导入、仿真控制与技能训练;当前先做Go2 FL单腿,不声明整机或实机能力。 +仓库:[chenlin/SkillFactory](https://gitea.robotquan.com/chenlin/SkillFactory)。真实机器人部件资产导入、仿真控制与技能训练;当前主线为 **Go2 FL有辅助单腿接触周期仿真功能版0.4.2**,不是整机或实机技能。 -## 当前版本进度 +## 当前基线 -- **0.4.2性能与限定S1已实测**:[完整测量/限制](docs/contact_cycle_sim_performance_v042_result.md)。真实Kit窗口截图33.98FPS,全S1绘制提交35.30次/秒;GPU整卡均值39.74%/133.43W。相同profiler/单周期下应用循环吞吐1.498×,不删逐步检查或500Hz轨迹。新GUI/headless S1各27000tick,70张量及整个轨迹文件与0.4.1逐字节一致。**GUI物理推进仅0.07060×,headless0.18325×,并非实时或GPU100%**;原严格RootXY失败/accepted_skill=false不改。独立包`performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/`,图/原速视频在其`demo/`;全部新原件与最终封装凭据在当前仓库`performance_v042/`,旧包原样保留;当前源码未重验完整矩阵/u256或新绘制节拍下的原生故障注入。 -- **0.4.1真实Kit GUI已验证**:独立包`/home/cen/sf-deliveries/go2_fl_contact_cycle_sim-0.4.1/`中`bash demo_gui.sh`一条启动真实解析S1;GUI/headless各六周期通过,提前关窗2040tick按预期中止并清理,不算完整成功。右侧实时HUD、原3kg负载/足端/地面、最终原场景render-only保留;真实截图/240秒原录和35秒原速跳切见包demo。[实际结果/限制](docs/contact_cycle_sim_gui_v041_result.md)。旧0.4.0分版原样保留,21Kit/83040实际调用、0训练,GUI约2–3FPS、不保证墙钟1×实时。未重验新版本完整矩阵/u256,不扩控制域或优化RootXY。 -- **先前已本地交付Go2 FL接触周期仿真功能版0.4.0**:可调用Python/CLI;解析20连续周期、三条六周期切换、u256同S1、安全停止/非法拒绝及独立目录真实复现全部通过,0训练。[实际通过表与产物](docs/contact_cycle_sim_skill_v4_result.md) / [API](docs/go2_fl_skill_v4_api.md)。包在`/home/cen/sf-deliveries/go2_fl_contact_cycle_sim-0.4.0/`,`bash demo.sh`启动、`bash verify_functional.sh`真实验证;带资产/冻结权重/原始证据/校验和与非Kit录像的实测重建GIF。旧严格验收/accepted_skill不改写。 -- **先前v3限定仿真功能已完成**:新u256原命令连续3周期完整补验通过,随后3方向×2幅度六组、各解析/u256连续3周期全部通过物理/监督/退出清理,6对初态一致。实际175500物理调用/39周期,0训练/0重试;[逐组表、测量、命令与GIF](docs/contact_cycle_functional_followup_v3_result.md)。 -- 双方功能通过率均6/6,解析本身足够,不预设学习必要;30mm根XY仅诊断,原保护不改。历史ff-01的u256三周期GPU监督失败仍保留、具体原因未知,本次通过不改写[旧结果](docs/contact_cycle_functional_flow_v2_result.md)。 -- 原46D参考+残差PPO已完成256更新,冻结u256名义9秒开发验证128/128通过,P0回放通过。 -- 严格P1连续周期双方均在首周期水平根漂移超限;P2虽完成20行,但10组命令初态全部失配,不能支持策略优越性。 -- RootXY-v2实际完成81次PPO更新;u64功能128/128通过,XY RMS约改善2.8%,但126/128仍超30mm门槛,**没有合格新候选**。约44分钟因监控文件竞态中止,修复目前仅CPU验证。 -- `accepted_skill=false`;本轮解析名义20周期及有限切换通过,不等于全域/多seed独立鲁棒验收,无硬件或sim2real结论。本轮任务提前完成,旧grant/目录不复用,不自动重跑。 +- 可调用Python/CLI:启动、查询、有限命令队列、安全停止;默认解析控制,可选冻结u256残差。 +- 0.4.2实测解析S1 GUI/headless各6连续周期、27000tick,完整轨迹与0.4.1逐字节一致。GUI截图33.98FPS;物理推进仅GUI **0.07060×**、headless **0.18325×**,不是实时仿真。 +- 0.4.0曾通过解析20周期、S1/S2/S3切换及u256 S1;**不自动成为当前源码的完整矩阵/u256资格**。 +- `accepted_skill=false`;旧严格RootXY失败保留。限定单seed/仿真真值/主动辅助,不声明多seed鲁棒、无辅助平衡、整机、硬件或sim2real能力。 -## 从这里继续 +## 下一阶段入口 -- **[文档入口](docs/README.md)** -- [当前进度](docs/current_status.md) / [下一阶段](docs/next_stage.md) -- [接口和CPU测试](docs/contact_cycle_runtime.md) -- [RootXY配方](docs/contact_cycle_rootxy_v2_plan.md) / [启动合同](docs/contact_cycle_rootxy_v2_launch.md) -- [冻结身份与证据路径](docs/evidence_index.md) -- [统一软硬件描述v2](docs/software_hardware_spec.md):Schema及静态校验已实现,通用运行adapter尚未实现。 +1. [当前状态](docs/current_status.md) → [下一阶段](docs/next_stage.md)。 +2. [公开接口](docs/go2_fl_skill_v4_api.md) / [运行与CPU回归](docs/contact_cycle_runtime.md)。 +3. [0.4.2实测结果](docs/contact_cycle_sim_performance_v042_result.md) / [证据路径](docs/evidence_index.md)。 +4. [软硬件描述v2](docs/software_hardware_spec.md):Schema与静态校验已实现,通用运行adapter尚未实现。 -训练默认RTX5080,当前任务0训练。用户已明确后续预算无需逐次请批;每次仍自主固定并记录运行护栏、新配置绑定/独立登记及唯一监督器,见[授权边界](docs/execution_authority.md)。不得复用失败目录/旧grant、改写账本、自动重试失败作业或终止无关进程。准备通过不是物理资格,源码提交也不是技能验收。 +独立已封包交付:`performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/`,真实GUI演示入口`bash demo_gui.sh`。运行会创建新的有限会话/输出,整理任务本身不启动仿真。训练默认RTX5080,CPU回归不等于物理验证;[执行边界](docs/execution_authority.md)。 -资产配置在`configs/legs/`,接触周期配置在`configs/contact_cycle/`。依赖本机IsaacLab/IsaacSim、Unitree资源及未随本次提交交付的日志/权重/生成资产;跨机器需另带实际产物并验证身份。`.env`与本机授权不提交。 +## 文件保留原则 -## 历史发布边界 +- `source/`、`configs/`、`scripts/`:实现、配置、资产工具与当前入口;`tests/`保留当前主线回归及冻结绑定输入。 +- `docs/`:当前交接、接口、验收边界;按路径/哈希绑定的旧计划保留原字节,不作为新任务。 +- `archives/`:旧过程文档、旧发布/旧训练分支测试、性能阶段一次性工具和中间报告;[清单与恢复方法](docs/README.md#历史资料)。 +- 原始轨迹、权重、失败账本、授权、来源快照和sealed交付物不删除、不改写。旧Reach/站立发布不变;站立专属漂移豁免不可用于新任务。 -Reach1.0.1及受载站立1.0.0保持不变。后者原120秒30.78mm漂移超过30mm,仅该候选获[专属豁免](docs/loaded_stand_release_1_0_0.md),不能推广为本任务豁免。旧32D失败、全部失败证据及已扣预算保留。过程文档已[归档](docs/README.md#历史资料),不作为当前运行指令。 +依赖本机IsaacLab/IsaacSim、Unitree资源及未随Git交付的生成资产/日志/权重;新clone不能独立重现实测资格。`.env`与本机授权不提交。 diff --git a/archives/next_stage_cleanup.json b/archives/next_stage_cleanup.json new file mode 100644 index 0000000..c6596dd --- /dev/null +++ b/archives/next_stage_cleanup.json @@ -0,0 +1,870 @@ +{ + "format": "skillfactory.next-stage-cleanup.v1", + "after": { + "docs_markdown": 17, + "test_files": 40, + "performance_root_files": 20 + }, + "verification": { + "retained_cpu_suite": { + "command": "/home/cen/miniconda3/envs/linker_sim_isaac/bin/python scripts/test_cpu.py", + "passed": 1599, + "skipped": 3, + "failed": 0, + "seconds": 113.46 + }, + "before_contact_cycle_plus_part_runtime_cpu_suite": { + "passed": 1643, + "skipped": 6, + "seconds": 120.32, + "scope": "Pre-cleanup contact-cycle tests plus part contracts and runtime_common, not the old full repository suite" + }, + "static_api_validate_exit": 0, + "frozen_api_validate_exit": 0, + "frozen_exception": "Only the existing AGENT.md non-runtime drift exception; no new exceptions", + "protected_files_unchanged": 363, + "removed_files_recoverable": 90, + "retained_test_bytes_unchanged": true, + "retained_test_fixture_imports_passed": true, + "relative_markdown_links_passed": true, + "physical_opt_ins_disabled_even_if_inherited": true, + "reproducible_cache_directories_removed": 23, + "git_diff_check_passed": true, + "kit_launches": 0, + "training_steps": 0 + }, + "base_commit": "c528dd268f8cc8fe2ff0c7f2e42e1378973bf642", + "archive": { + "path": "archives/next_stage_cleanup.tar.gz", + "sha256": "f4f64ba665d10d4361c2c00228e6d9c4ab995762d33e851991da041c2f0351c0", + "files": 139 + }, + "local_archive": { + "path": "archives/local_next_stage_process.tar.gz", + "sha256": "f0cf538860a35b2bb758b3539b13ec8ccdce1b66efa67abe161bc0e03a4cc5c3", + "files": 13 + }, + "policy": "Archive obsolete reports, legacy-only tests and one-shot performance tooling; preserve live frozen bindings, original runs, ledgers, assets, weights and sealed deliveries. No simulation or training.", + "removed": [ + { + "path": "tests/test_anchor_contract.py", + "sha256": "943d1dd31d8440a8e0c1edf9beeff97ed5df193a0dc064b2285deda37f3a55aa", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "tests/test_go2_leg_extraction.py", + "sha256": "617cda4e0a3261959330effc73ba71371ddcc59c32bb39f8339db6216d60ead6", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "tests/test_leg_assets.py", + "sha256": "d541f65fe1f9e6695fca53bc72b2ac2de500c90fcf383b454c1e1c139b04b8d4", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "tests/test_leg_policy.py", + "sha256": "b05d7e10819bdf67a67fe9077ad6e8d348386870bac8e78b60b5733d91d75eea", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "tests/test_loaded_leg.py", + "sha256": "1ba9fd1921aa230a0269f3afc6afadf697cb7c59f3928520dfe2b1e658c4b542", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "tests/test_offline_leg.py", + "sha256": "94d4290866bcd7bf651a330eefb90c007ebfb5047227b86ca79ae9809f0064b0", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "tests/test_stage2_release.py", + "sha256": "80ca0d96ea4abbc05789ddbb312012fa19147c551583bf3d0c5a6e5b0e3cefee", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "tests/test_standing_acceptance.py", + "sha256": "2dc4339582c911c51c9f1cb3dbcc50e6581a023d6d3dedea764752d7d206f47f", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "tests/test_standing_deviation.py", + "sha256": "33bbf43a4dd0ed10428ac156c35033ab52aecc448d7a35edf7e2cbbc4e5ee9c6", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "tests/test_standing_force_visualizer.py", + "sha256": "a480c518848dc51484fffc72904f1991d33dc5187ec07616d6972c286898b997", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "tests/test_standing_ppo.py", + "sha256": "360cacf4422815312404a8afcff779ac84c1534a864c2a0251cc3276c5fbd24b", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "tests/test_train_leg_skill.py", + "sha256": "235ef16ae1094689421f4ebd878e399674007f701d14252fb0d30b1f221da86f", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "tests/test_contact_cycle_diagnostic.py", + "sha256": "9b8d238e4f9713d91d30e24c6f7ac8c26ff30fdc69513aa477806f124b03e37d", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "tests/test_contact_cycle_learning.py", + "sha256": "95b6bbfd73e27c2f8c96efe6a9a910cd57457ccfc1ac987800df259d40596600", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "tests/test_contact_cycle_metrics.py", + "sha256": "c8c70f1f5b0319455d860a943bcf76020f9e079667e2974a9749cac32b32f2f3", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "tests/test_contact_cycle_physics.py", + "sha256": "c4c3d6b006e7f447dd24f29fe4d88fc1382b6674a503385d7d62615240a0064d", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "docs/contact_cycle_functional_flow_v2.md", + "sha256": "96b03a1e812cb3abc6caf03396634ae80194d1d771e387538f94b9167ce21d47", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "docs/contact_cycle_functional_flow_v2_result.md", + "sha256": "34a12c6da2d2dfbba78c0e8d1a41e605ce90fdafc8a33a6ce6c0a9368b1c5b7b", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "docs/contact_cycle_functional_followup_v3.md", + "sha256": "76c76457b1654f595ca39e75eedaee41704c8de9e4f732539d85b0c9517ea279", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "docs/contact_cycle_functional_followup_v3_result.md", + "sha256": "7201432b49bc74692cbfec1b2a596d562e619c02d79434ce4479dbd4a13c2bdb", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "docs/contact_cycle_sim_gui_v041_result.md", + "sha256": "50a4c2a8e298c43dfafcecd40e395bef550a9fff84e19371f3f1a0d2b9eb095d", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "docs/loaded_stand_release_1_0_0.md", + "sha256": "04fb0b59ddc64ee9484e555bbf59cd71fb72b4673fcdd5178f609594aff1e498", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "performance_v042/add_delivery_fixtures.py", + "sha256": "82dee9be1c07016a4c553e8f18172e233f451fbe7e9b39922872704b63935de4", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "performance_v042/add_delivery_replay_fixtures.py", + "sha256": "cf135afef0127efefb1f6a99a471a32c3b9ce4e5c042272d18a6768b01b5ff25", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "performance_v042/assemble_delivery.py", + "sha256": "3ed8d2a71428f9c57a4f11e66a7ebd09cefb062829bea8a67746fe9054971b84", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "performance_v042/assembly.json", + "sha256": "d5c5103b8ffbeff1521161266ea8d1f85fbc817764ba724ae2a28e608f4f28af", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "performance_v042/baseline-driver.log", + "sha256": "3b18c9153d0c767b48d43816cfbebb6dd1869978934b4e304b55d16f3364c438", + "archive": "archives/local_next_stage_process.tar.gz" + }, + { + "path": "performance_v042/baseline-source-validation.json", + "sha256": "620031e0e5838a62f921a5700562e06687b3ccef14c75681adc83bd2f42d5018", + "archive": "archives/local_next_stage_process.tar.gz" + }, + { + "path": "performance_v042/baseline02-driver.log", + "sha256": "37fc4de2243661e98294fa0056f88a2e60d5f74bffe9fe92170f349b0a56b9fd", + "archive": "archives/local_next_stage_process.tar.gz" + }, + { + "path": "performance_v042/baseline02-postexit.json", + "sha256": "ae9d3f0c9717ebd7d60a331b9239f273d3d4f6d78a941d21440f8bbb7215364e", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "performance_v042/build_staging.py", + "sha256": "638f6ffd06d5e437956a25d587e161bf5313eb368e68108bcb8c6c39a2a303cc", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "performance_v042/combined-code-review.md", + "sha256": "eab09879d441162a77088873358f513c01716c8f471726dd081d53392d516f4d", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "performance_v042/combined-review-P1-resolution.md", + "sha256": "fc5bab70654bc2eea8186c6c362caa37950f44181421a30e699b3f277984554b", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "performance_v042/combined04-driver.log", + "sha256": "a4576aa8b97de0528e5c8f4132fd0c6d227897cb84d7f9cfbb9819cc5887ec56", + "archive": "archives/local_next_stage_process.tar.gz" + }, + { + "path": "performance_v042/combined04-postexit.json", + "sha256": "67083ad2e4eeb538c400130afb19cb31424015d860dd45d9edf4f69610b400f7", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "performance_v042/compare_traces.py", + "sha256": "df0f9da224e80ef40e43dd29c8452a4c86c14589587f55b1b97131610cb07c29", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "performance_v042/cpu-combined-fixed.log", + "sha256": "8bb0f4635d547afc3d386a212ca9d0231de0327678993cdc8a5d86e5959bac31", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "performance_v042/cpu-combined-fixed.xml", + "sha256": "eb544fa2cfe3ebeda0e06e7c9d729a8dd33ff08303dd8ff32134651e9c6a78d6", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "performance_v042/cpu-combined.log", + "sha256": "f5e59537b8a4cb3eed17a08d9b970859fd07a78fe03686628763bd651b1937bd", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "performance_v042/cpu-combined.xml", + "sha256": "3813c345b430a9a3ceaa46e324f19fc85333d7c3824e6896c7670e24a4c427a0", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "performance_v042/cpu-display-fixed.log", + "sha256": "ef39d6c834ca3ae8e552da0ac5b66e3dccac861c45bff5b02ae79f0be27d4bff", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "performance_v042/cpu-display-fixed.xml", + "sha256": "278b3dc8e67b6f2b08cad589296da35b21044bf069fa24d5e97a15842fda0f54", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "performance_v042/cpu-display-health.log", + "sha256": "f35270f92b86ae73786130ad25a7b65aebd778c4112777637858ea7ca395fe08", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "performance_v042/cpu-display-health.xml", + "sha256": "0cc8a4fdcf845979759ac945bac220b07909da96f5563a029ba132a9f060f17b", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "performance_v042/cpu-display.log", + "sha256": "66a4808eca143686f51b69ada9e6ba2ad0b626684d8f7abe0b3d76e4fb3d214e", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "performance_v042/cpu-display.xml", + "sha256": "a29f1b0474a1b9cf279704fc065fa1c52dd33293b49f76df35f2badda25a20df", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "performance_v042/cpu-first.log", + "sha256": "7fc157d07192d0c9d55926e60192b6f0fdf528a3d20d8d8d816d2dd0d96408f5", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "performance_v042/cpu-first.xml", + "sha256": "e00367be7101485ca1f7276cc85922c66ce5579be4cfae1e04d01136e5e469de", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "performance_v042/cpu-full01.log", + "sha256": "b2f45bcd00c29b570d9dd7ed0e0791ffae1a12d54a2a4536f6e74d13b7e285a6", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "performance_v042/cpu-full01.xml", + "sha256": "c1f7462ea3b6fa34d468e18a77ad7c3f22cd51ece69cee40c9a071d9f69c3a97", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "performance_v042/cpu-full02.log", + "sha256": "1ee5bde825ce3c43eabe3c7e49ec22d4013a0db38d4cccb1c3f0896a71210f36", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "performance_v042/cpu-full02.xml", + "sha256": "ce0bc31a2bb274ac0f59e61740c0ac183d0c3448473a84154c36cc6df71c80b7", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "performance_v042/cpu-second.log", + "sha256": "3b4341b423423a2771afc45f433c33425693bd9acb2fb633e730a18d5adce55e", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "performance_v042/cpu-second.xml", + "sha256": "6a4964712d0ee27d9127761027a796ae0d6e9e49e2306dbad845c3eaa6babd49", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "performance_v042/delivery-cache-cleanup.json", + "sha256": "27488c9a523f1844856794cc97467e0cd90d60247097659a5ff022564a630429", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "performance_v042/delivery-cpu-second.log", + "sha256": "11aa5d32a868cb39b5f86330983d12da8e6a022e16794bb645804febe1733fc7", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "performance_v042/delivery-cpu-second.xml", + "sha256": "621cb2b7ac22f3af174cc2d117efec5cf0db5389489b46403f5195437d708d61", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "performance_v042/delivery-cpu.log", + "sha256": "83393359c5c9413da539b7112c26d2e36cf59eab78c3c88b18750436c1a30086", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "performance_v042/delivery-cpu.xml", + "sha256": "8981ca96aed524d92769f0d91db4af4f26e63a4337f7128290ee31f5424313ca", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "performance_v042/delivery-fixture-repair.json", + "sha256": "1bc7262f660aa60a8f8918c9114a25747b1dcc3b7c3fd0a79dbf9cfa5577235f", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "performance_v042/delivery-replay-fixtures.json", + "sha256": "25544fa53789c58e9d163596c6a6a43006502d716953a029c973ed8b836fb46e", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "performance_v042/delivery-validation-final.json", + "sha256": "f2fcced650babda5933cf1df055e0b67b88b0e3fbd097f4096824f0e045f960a", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "performance_v042/delivery-validation.json", + "sha256": "f2fcced650babda5933cf1df055e0b67b88b0e3fbd097f4096824f0e045f960a", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "performance_v042/display-S1-05-review-extract.json", + "sha256": "51c102f9b429f91fcc28e380ea1791b2d371b34d4842d7abc03aa7393c977ca8", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "performance_v042/display-code-review.md", + "sha256": "4a296e228bb997a249fb452f8d08f5a168ccd106807990bfba206b41bed6b0bf", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "performance_v042/display-review-P1-resolution.md", + "sha256": "b65c2d2e2b59634e6d67d2f0a938aac556ae27f5df661565dd886ee3398b65ee", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "performance_v042/display05-audit.log", + "sha256": "d2b2e6a1d7a9ff008efa60a8587443c309c96546a64f5a8bdaf48db8752e745a", + "archive": "archives/local_next_stage_process.tar.gz" + }, + { + "path": "performance_v042/display05-driver.log", + "sha256": "96de9a8dead726adac1a4765b4842d1c83cabccb7496b889232cecfac800009c", + "archive": "archives/local_next_stage_process.tar.gz" + }, + { + "path": "performance_v042/display05-postexit.json", + "sha256": "2245a472e8a998ab6bd90edbdb113184280a8f751bc5c752b974778d9d585d2c", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "performance_v042/display05-review-extract.json", + "sha256": "988f69d69712e262e0a1f6877e8fbbbe2bd75c6473ab1633b698545632c138ee", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "performance_v042/finalize_measurements.py", + "sha256": "9434674d854f9bce977f9c5fc19472692e3120b63a6ff69acf33de67783a1c8e", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "performance_v042/finish_task.py", + "sha256": "42b56c1895a508f34eabdd0627e2e8086c6c6cc5be30db29b1fdc7dcbedba501", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "performance_v042/git-before.txt", + "sha256": "d39ca45313977fdddd1a9763806ec8678bd02673b1766076109b22364109e420", + "archive": "archives/local_next_stage_process.tar.gz" + }, + { + "path": "performance_v042/headless-S1-06-review-extract.json", + "sha256": "21773a4f084e71c71a0ef02fc096c9c0355d437b3d9738339fe8090db704ff52", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "performance_v042/headless06-audit.log", + "sha256": "4c36513ffa063ae34efae0e32d7775e0531281ab87ffca70a8217c5a27d57171", + "archive": "archives/local_next_stage_process.tar.gz" + }, + { + "path": "performance_v042/headless06-driver.log", + "sha256": "60f4a406366c39b029a98c110168ad5110f76d04b3d9a9f7a225d2032c9aba81", + "archive": "archives/local_next_stage_process.tar.gz" + }, + { + "path": "performance_v042/headless06-postexit-first-failure.json", + "sha256": "9159ce19286a53a508350a1a6e95dbaec470299033d2475b11f50ba8feb7c38a", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "performance_v042/headless06-postexit-second.json", + "sha256": "d2b952d2784c5b49e8b615b97e3ea7145e0f8f7be94668f3379f2801f3151b47", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "performance_v042/headless06-postexit-second.log", + "sha256": "eeb75cb37b5c377930466c44a8c938155486fc0fb7d623349078344a03693e02", + "archive": "archives/local_next_stage_process.tar.gz" + }, + { + "path": "performance_v042/performance-summary-pre-headless.json", + "sha256": "8c11f5765817ae87de59893e0443b4c88a17f6d64bebf597d9cd31a81f018b13", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "performance_v042/read-only-hot-path-review.md", + "sha256": "cfb458a37e1247cc0d6e33b72567395bcf532f889896069f9ab9416c7334cad7", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "performance_v042/refresh_delivery_evidence.py", + "sha256": "b5bd5b5e00b90aca08abe5042681a2a41aa8932cc4bd2dc4d767a418badf4da8", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "performance_v042/run_trial.py", + "sha256": "85e54af2e3a9942115bb5c7956a683a1716b97b8411c32d7fef77790404f65da", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "performance_v042/seal_delivery.py", + "sha256": "2fc1c94b485171586c751b349a6cba5a3e57f20d277ca90af493aab61e4a202f", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "performance_v042/sensor-epoch-code-review.md", + "sha256": "94ad3115163a83ff9b009891f1b3815345b921b243b11f636468fd903a907c8f", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "performance_v042/sensor03-driver.log", + "sha256": "00ce85c01a213ff85837adcb157c4d794108f8e68806477705b476715ebf43ba", + "archive": "archives/local_next_stage_process.tar.gz" + }, + { + "path": "performance_v042/sensor03-postexit.json", + "sha256": "0b2e23905d393d76851fd76d0bb452570adad43e256940d8d0853c920e54d12f", + "archive": "archives/next_stage_cleanup.tar.gz" + }, + { + "path": "performance_v042/setup-probe.log", + "sha256": "e260ff1bc345582678e80240a564c1118923a873137906e806867e28f6555f15", + "archive": "archives/local_next_stage_process.tar.gz" + }, + { + "path": "performance_v042/setup-probe.stderr.log", + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "archive": "archives/local_next_stage_process.tar.gz" + }, + { + "path": "performance_v042/sync_staging.py", + "sha256": "f1ef090d6557c9dab1ff492a7c79d2ced306170f7f11b2136e539b4a7ec46960", + "archive": "archives/next_stage_cleanup.tar.gz" + } + ], + "before": { + "docs_markdown": 23, + "test_files": 56, + "performance_root_files": 88 + }, + "protected_sha256": { + "assets/generated/legs/go2_fl/LICENSE": "84aac59fd3246e3ddc49d1387644e8fcf43b0def4f0b9fe687f372e90446df2d", + "assets/generated/legs/go2_fl/conversion.json": "5c042e96d1d262a08debc85ad8d9c43fcc650d4198ff1485a787b78448077f38", + "assets/generated/legs/go2_fl/dae/calf.dae": "29872fa1a435b92bc2b395fdfa7f0aee26101db3c494681896bd4ef24ee7883c", + "assets/generated/legs/go2_fl/dae/foot.dae": "ffbd95fd641866ce9bd277aa249b92dafc9148d70131fa2c52709a35ce5b710b", + "assets/generated/legs/go2_fl/dae/hip.dae": "8735e10617afe252cef0844c1d139d15bc6d4c653660d742fea9fe05c2704d8f", + "assets/generated/legs/go2_fl/dae/thigh.dae": "a622381ae308897ff143b8bbf02f075457c342b22984205040424a5a983246fa", + "assets/generated/legs/go2_fl/leg.urdf": "d9de15364ee90ea65f028203177cb1506b9b23ce1bba303a1e3c936ad2e6f921", + "assets/generated/legs/go2_fl/manifest.json": "4cea30b0264444c2e0417d0c26d6ea9148698d3b77f559f12a9b33775a41e3eb", + "assets/generated/legs/go2_fl/usd/.asset_hash": "837a8c59b31697f34d5d04e4ab1f0c461e99ae5edb4ad6fc64acaf5fb47fb124", + "assets/generated/legs/go2_fl/usd/config.yaml": "6a475b4a971691556b7ee2949ba3e34c4f0d2b7d981e1588da04a87eeb3b9eac", + "assets/generated/legs/go2_fl/usd/leg/leg.usda": "87dd61b74f0458438a30ba76c0ae1f756a782eaf0c4a33d7cdb44ef83f0eb58a", + "assets/generated/legs/go2_fl/usd/leg/payloads/Physics/mujoco.usda": "b7c6b4df1c00a85c23545c0d1fa06b1f4056258e102683b0f7d444e4f884917f", + "assets/generated/legs/go2_fl/usd/leg/payloads/Physics/physics.usda": "efd6033caf1b9dfdd2ea59dd73887978be20aad4ff3a6471f86a1925c397d726", + "assets/generated/legs/go2_fl/usd/leg/payloads/Physics/physx.usda": "2814c5629ce7ac77d10dabe140de8ae700724e2c3a11ef369f5b8b93267fd5c5", + "assets/generated/legs/go2_fl/usd/leg/payloads/base.usda": "0a76b9af68b3711ce9aa17c5fa567ccfcf87f5bdf0f2e4ae60a09858748eaab3", + "assets/generated/legs/go2_fl/usd/leg/payloads/geometries.usd": "175706c7875f23d709c8241dee499b181cf93092a7c17eec79b550c9dc3785a1", + "assets/generated/legs/go2_fl/usd/leg/payloads/instances.usda": "4f0ca1c8397a988f3dd2ec6049aa35085d68d9878a32903093f830c61dd5558f", + "assets/generated/legs/go2_fl/usd/leg/payloads/materials.usda": "bde8bc482c174febf8b86d97bf113a3e4eec527b9f4c8dd79569a5a7f9be4414", + "assets/generated/legs/go2_fl/usd/leg/payloads/robot.usda": "75656bf0fcdded66eccd49c4581fcb277b89f96499ea6cd29d6b92b6ede28580", + "assets/generated/legs/go2_fl/usd/leg_1/leg.usda": "13f98876a007f4b7eda90e75ba9eedbe3297ea50e462f4ea7bf596fcd530f98b", + "assets/generated/legs/go2_fl/usd/leg_1/payloads/Physics/mujoco.usda": "ca9b2d71269d830802d0a72ee1c160a2321d4cb211f1d777d2a042060fbdadc5", + "assets/generated/legs/go2_fl/usd/leg_1/payloads/Physics/physics.usda": "ee47f832e4508010efe7b90eb63b47ef933634a466649f924f7af69aeb969034", + "assets/generated/legs/go2_fl/usd/leg_1/payloads/Physics/physx.usda": "009cc4366af0b236c285b50f50d35a46dd8a2276b5d4849004adbe5fd4c92199", + "assets/generated/legs/go2_fl/usd/leg_1/payloads/base.usda": "343fea3750d9db1d489864346aed4e28614e602130d021f965c9fabffa87b600", + "assets/generated/legs/go2_fl/usd/leg_1/payloads/geometries.usd": "2d2e72634165736b1699e30966cbfac106301a8ec781e4696ea9d1accd4aae8a", + "assets/generated/legs/go2_fl/usd/leg_1/payloads/instances.usda": "aa569dc78172eba23f8f5f3b19e13a279a897b3898f5db8e59d2b74d7819f391", + "assets/generated/legs/go2_fl/usd/leg_1/payloads/materials.usda": "06c4c2484b2d2ada15a3c5eb12d0a364d559c1d9af55f22b5c1cfc32eca382d2", + "assets/generated/legs/go2_fl/usd/leg_1/payloads/robot.usda": "45a8fe399f1d035e88dc9ed62919715265ee882d5bff2bcad07b9d3f68859c41", + "assets/generated/legs/go2_fl/usd/leg_2/leg.usda": "412fd55d9db46fe8b3cabc422a2d7e2a5e6f78a53562ef1eb395ca86d009dbb4", + "assets/generated/legs/go2_fl/usd/leg_2/payloads/Physics/mujoco.usda": "e30d0486cf42c6bae7ff9038ba142815e9346b2fde2bafd750fdfe58e8329568", + "assets/generated/legs/go2_fl/usd/leg_2/payloads/Physics/physics.usda": "16ff31f5a9dc141635fc7aaf57e2242ad3a0ee5ded02acd5550b31f4fe024b4e", + "assets/generated/legs/go2_fl/usd/leg_2/payloads/Physics/physx.usda": "1a732b5f067a7f72b09d513d7088b2a5ec34de39bd8d2324dac121a6f6a2ac3c", + "assets/generated/legs/go2_fl/usd/leg_2/payloads/base.usda": "9fc950e6043c8557522e5ec895ab4306f96c1ec05feeef63f60b1bd0065a679b", + "assets/generated/legs/go2_fl/usd/leg_2/payloads/geometries.usd": "38fc52c5276a8dbb52b52287fdc73f3ac7964f12112c505747c2913646110311", + "assets/generated/legs/go2_fl/usd/leg_2/payloads/instances.usda": "8aa9a97f0e9e76fe62476959cfd613c264bb17ac6fc484359640aaa7cbea23c1", + "assets/generated/legs/go2_fl/usd/leg_2/payloads/materials.usda": "fd6f8feee0d77eb8672d72de676650eb3c3093f30f4a739203b6b506d2655b61", + "assets/generated/legs/go2_fl/usd/leg_2/payloads/robot.usda": "3b8a3f051b6107303c417f54fbde03bf487600ed8db485fa95d843725076ca1d", + "assets/generated/support/go2_fl_3kg_v0/LICENSE": "84aac59fd3246e3ddc49d1387644e8fcf43b0def4f0b9fe687f372e90446df2d", + "assets/generated/support/go2_fl_3kg_v0/dae/calf.dae": "29872fa1a435b92bc2b395fdfa7f0aee26101db3c494681896bd4ef24ee7883c", + "assets/generated/support/go2_fl_3kg_v0/dae/foot.dae": "ffbd95fd641866ce9bd277aa249b92dafc9148d70131fa2c52709a35ce5b710b", + "assets/generated/support/go2_fl_3kg_v0/dae/hip.dae": "8735e10617afe252cef0844c1d139d15bc6d4c653660d742fea9fe05c2704d8f", + "assets/generated/support/go2_fl_3kg_v0/dae/thigh.dae": "a622381ae308897ff143b8bbf02f075457c342b22984205040424a5a983246fa", + "assets/generated/support/go2_fl_3kg_v0/loaded_leg.urdf": "d9ed98ca72012159b027bafacf6181bb4276ed849d270081166e006973bdf56b", + "assets/generated/support/go2_fl_3kg_v0/support.json": "9910845796906fc79094fbe9d48600291bb90d4d4abb1b02d696747f8ecccae0", + "assets/generated/support/go2_fl_3kg_v0/usd/.asset_hash": "18a4281b82d17dfa9127c47f8e00b6df35a053854f4af47c29d20940b833ee25", + "assets/generated/support/go2_fl_3kg_v0/usd/config.yaml": "9c1fb1e0586855a24ecdf2110ff744c6ec154f1658150614cab8cf9aef816eaf", + "assets/generated/support/go2_fl_3kg_v0/usd/loaded_leg/loaded_leg.usda": "fe888c68398bf41e8644ba9b894a153042807e4c5c881a8e3bc3ed9f2a2b84ff", + "assets/generated/support/go2_fl_3kg_v0/usd/loaded_leg/payloads/Physics/mujoco.usda": "59f5931a210f8b3322266f6ffda1f29a94cb2e923bd3bd1b3e301bae96b62b41", + "assets/generated/support/go2_fl_3kg_v0/usd/loaded_leg/payloads/Physics/physics.usda": "091d14a16869bc833369835ea643e0cd231e98dab988761b47904bf0c47da56a", + "assets/generated/support/go2_fl_3kg_v0/usd/loaded_leg/payloads/Physics/physx.usda": "bc384acc4cd3ffefd0202c11fdea0a4448adb4c912ebbf52197a96d304dbe42e", + "assets/generated/support/go2_fl_3kg_v0/usd/loaded_leg/payloads/base.usda": "ef7b19d2bcd76d60b894ab368f141b80beaf9c0c69f37596a6fc6b774f7dc4f8", + "assets/generated/support/go2_fl_3kg_v0/usd/loaded_leg/payloads/geometries.usd": "68771be92510be58f2b0ce8891089d08a5eaee7a80352fca4e84808b7ebd0034", + "assets/generated/support/go2_fl_3kg_v0/usd/loaded_leg/payloads/instances.usda": "eac5ff19064fd0aedb49d6975936aa4f0072438fb6e6593084a0bcf39581e403", + "assets/generated/support/go2_fl_3kg_v0/usd/loaded_leg/payloads/materials.usda": "3bf7b2e12dde571af09be43b36a7b3825e96f0578d0b97dc85118efdd174115c", + "assets/generated/support/go2_fl_3kg_v0/usd/loaded_leg/payloads/robot.usda": "187c18cc30e67098b14ac144aa6b4ec0c3e960febb8dc7f29419cbd87b469f3f", + "configs/contact_cycle/acceptance_v1.json": "d0215529c48acb164aeed9245192fbd21255152d0195915ff1439760a353a13d", + "configs/contact_cycle/bounded_diagnostic_p2_extended_v1.json": "f3ab82a197ed2c015b1b0ff761162d643dc89d6b02dc9615dac295e1cc52d2c1", + "configs/contact_cycle/bounded_diagnostic_p2_v1.json": "70ba810313b067318c034a4f3e88fde6dc17c890d4def5057133a916acfdfc32", + "configs/contact_cycle/continuous_eval_p1_v1.json": "8ad69f1c3a0e1a85b20050088574a50c4d90dc88ec85e14e66826bae1e7823c3", + "configs/contact_cycle/diagnostic_proposal_v1.json": "918d97ccb1191963f83ccdddbe6d58bbe577d27a58d7891690ad881578ebdf55", + "configs/contact_cycle/functional_flow_v2.json": "16c064228b30f36bbd420b7c2290602bacae6601cac2cec5deb16440f7600625", + "configs/contact_cycle/functional_followup_v3.json": "aaed45884eab9912db6c7bac1d82e2ab27784982c524a838b7886cdd763146f4", + "configs/contact_cycle/go2_fl_v1.json": "14d663aef0c9c568886f3b013a1276d98af4c3b9d8f7e13838e047d0f416b089", + "configs/contact_cycle/performance_v042.json": "039dd6b7e795e7fdac9e300a91975479bd6a93a664130acd5c18a9ed84d0aaf3", + "configs/contact_cycle/sim_training_proposal_v1.json": "3b230eae5e3dd931cc5af7188591473a2da82b9daa04f3c6ac43941fd15ef039", + "configs/contact_cycle/sim_training_rootxy_proposal_v2.json": "4c5bf0d4110017bdd9597413f5c17624f2a38fce5c86a85709ea8c177224a813", + "configs/contact_cycle/sim_training_rootxy_v2.json": "95992f761ab052d95a898cadf75d11892fd8aa2b9f2867be0a2818afce9b68a1", + "configs/contact_cycle/sim_training_v1.json": "836fcf3cfd696cbdf5318f013ae71174847bf93142cb4c84c94861a3774eb8ff", + "configs/contact_cycle/simulation_functional_v1.json": "574564622f64b1ee266b91c7c5da12fff06acde5ff5c2ce4ba660e939343adf5", + "configs/contact_cycle/simulation_residual_rootxy_v2.json": "bb516c9f73a530994224a394b4e872fb399e0978f79e96a36639b62605c8c36f", + "configs/contact_cycle/simulation_residual_v1.json": "a2352c197bd6e13a2a729792657b26da120fd2d295d00f205eca8154aed82628", + "configs/contact_cycle/simulation_stress_v1.json": "a42b8f57df13d06d1f508c7e26291b6f215541e2fa225fe42dce60c5cd918087", + "configs/contact_cycle/skill_v4_desktop_allowlist.json": "af8c54b2901642e6a9e9fca41e094ec95ef09dd714ccfb74a2a2869fcf92ad8d", + "configs/contact_cycle/training_diagnostic_v1.json": "68ab3f4b817c061d3ef30ddb8a427b3b73d01b6bb6fc5d79a706866110ef637f", + "configs/contact_cycle/training_v1.json": "1aed880322d7984cf4c4042d8a14b11135b6ef2b0537c49b6d33ee2ffab78c62", + "configs/legs/go1_fl.json": "ad73812f4ea845643b4a8f13a2a5408b7017a9cf90810b0fa5ebd3e2941a3c81", + "configs/legs/go2_fl.json": "54d67c492b93b0389feed90ad4fef4a1daac889417a14d8153b60551fd21c88f", + "configs/parts/example_arm.json": "987aae834af571ed9be98421ef5312b0c6ea3dd410854633ced09334fa581fab", + "configs/parts/example_gripper.json": "ddc4862f8e118f064be818ed88e7fb0abd3f3a7d353b4bac525bc10f2406cd8a", + "configs/parts/example_hand.json": "ee4580f20c0c4ce7f972307a0361e2d0f6c5e86166357464e8abc46b310f85c2", + "configs/parts/example_head.json": "285d8e4fc7a9ed810fa23501c81f6ec7d3bd45e0584033f433f70a06a7f22286", + "configs/parts/example_mobile_base.json": "754e6fcc2cf0b65688d6f4213a98d89c8db56912cdb30b046513fd1fab505010", + "configs/parts/example_sensor.json": "a167614c9462c35a7c2d45dc3de577c92bd583e70f425854b9e7ff497d8a5119", + "configs/parts/example_torso.json": "e6ab083f0a2f45edbdd67c7b8357f723a39b2accd91bc5c0e6f94e42b6db3dc8", + "configs/parts/go2_fl.json": "14c512e971a27ea07cb66e73d9ffebee80549873f16f8a8f15ae065db2b50027", + "configs/software/part_position_control.json": "3124743fa958815fc062dd2c178b3535c35212f34beb9201795157d33e1d74e8", + "configs/software/part_rgb_perception.json": "9791989ad062223f1cfa81cfce208ca8a79465326d096be1c745ddbf9e282ae5", + "configs/software/wheel_velocity_control.json": "30fce099ebc60a2e47900b005d9e48f84423e351bbac4dca3e980b65d2e716ce", + "configs/standing/go2_fl_support_v0.json": "bb2671ba1f1750baf6f0ec3ebb2f555d60ee252358867aa378fc85e07790c99a", + "configs/training/go2_fl_loaded_stand_ppo_v1.json": "374c6fd86bda7e4fab80d8843f43e774e7357546fd68bbc498a31cb18aa7251a", + "configs/training/go2_fl_offline_v1.json": "35196e018b268f2187d5ba3f5ac207ecb7a94bf65b7d2fd290b58d4da9a6a046", + "configs/training/go2_fl_offline_v1_attempt2.json": "1c56a59a74cb35810b3a43e409509c03b9f96bcb285a2e09b887e01cef9df114", + "docs/contact_cycle_sim_training_plan.md": "c585658c16370e8efb6085ab538d0a9fb5bba61be4a26b57bb9e1936aa0d324f", + "performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2.tar.gz": "16c855f6086a90aedc3f50eb510d44f64f802254505146a61c83402df7d99151", + "performance_v042/plan.md": "1d59f67d4fc56896f63aafd8fd345ec9ebccd19bce207543da8ba90783e87c4d", + "performance_v042/presentation_amendment.md": "bbcdf6099b57bd26645674b1032e1e52e730a79cadc057cc62b88317eabdb89f", + "releases/NOTICE.md": "526e8eb3b4748baf595f61bdde98526dec4dcf878fc0dca02533bf1b3e2a72d5", + "releases/SHA256SUMS": "cce8f450909b90f55968b597b04d52f6fac2f00ee10bbe6056a845692239e516", + "releases/go2_fl_loaded_stand-1.0.0.acceptance.json": "4a8fc617770b74dead5d331259872571094b203543dbf2b070028f9e3de27b77", + "releases/go2_fl_loaded_stand-1.0.0.archive-load.json": "760abb6f7fbf624f9a5f4c3a8526118e4d386e43b60809838e9de0c00b013181", + "releases/go2_fl_loaded_stand-1.0.0.independent-load.json": "d50c4e8141c7fa4a4773246568f14e6501829f21959218d9b8c64744ad75fab0", + "releases/go2_fl_loaded_stand-1.0.0.staging-load.json": "23157a16407e45ecf35573a8a75f615fc9dab62bc2c8d8f055bb143f0276e0b4", + "releases/go2_fl_loaded_stand-1.0.0.tar.gz": "ad59972e041f079cc2584923aaa15798857e5619488ba76b69835b558956bd76", + "releases/go2_fl_loaded_stand-1.0.0/ASSET_LICENSE": "84aac59fd3246e3ddc49d1387644e8fcf43b0def4f0b9fe687f372e90446df2d", + "releases/go2_fl_loaded_stand-1.0.0/DEVIATIONS.md": "f40548bfd46f8c098ec2e358780492aa329f0647b43fedc729b64139f3f051e0", + "releases/go2_fl_loaded_stand-1.0.0/README.md": "2c8cb0ea4f057b5c07600f2054aa58eed35b5e45e253ce7eec9bc1a532fc57ea", + "releases/go2_fl_loaded_stand-1.0.0/actor.pt": "1384b5aa780cded1f4ed21b617ff8c883a5f82826c4cb4c9415b75f315b1e664", + "releases/go2_fl_loaded_stand-1.0.0/binding.json": "22cd42a44f29913b2f0bd04e685e77acdcc1ef7b0218f62733dc401d55b6d710", + "releases/go2_fl_loaded_stand-1.0.0/evidence/acceptance_gate.json": "9349197540f38a4c722a651d8ddb82ee3ffa77142117d5a4e27e79f463622e3c", + "releases/go2_fl_loaded_stand-1.0.0/evidence/candidate_lock.json": "1dce2b41208f438bd98958d443dd8106574eb19063e66b9cfddf9edfbec258b4", + "releases/go2_fl_loaded_stand-1.0.0/evidence/engineering.json": "430ab38191962e1da218d4375c4a489019ac0d5e3e04333d236c41076a2b7cef", + "releases/go2_fl_loaded_stand-1.0.0/evidence/exploratory.json": "b7d6aac44a871ce33c0bfa6b5c8578749d62b882a516c54bda36afd3d3cce5e8", + "releases/go2_fl_loaded_stand-1.0.0/evidence/exploratory_process.json": "350ec331451ddb9b41d3386fe4414214242cd799d8ae72c881a296ccf23f6e70", + "releases/go2_fl_loaded_stand-1.0.0/evidence/full.json": "449f62b55ada8c84c6d67783c2891684984b1a6ed5ec5aff69aa08ee14b083df", + "releases/go2_fl_loaded_stand-1.0.0/evidence/full_process.json": "26712c9dc6c0e17bc5614ad2b7d39906a3e111c2d00d413147732089d4308767", + "releases/go2_fl_loaded_stand-1.0.0/evidence/hold.json": "aeb05e1fb283d5bbcad54ceec968031907b60d5c424fc585c8da71d50d844d1a", + "releases/go2_fl_loaded_stand-1.0.0/evidence/hold_process.json": "3b08d09a04bcdef07ad198cf9654b74edbb0d54eea6043031d52e7d852f04e78", + "releases/go2_fl_loaded_stand-1.0.0/evidence/holdout.json": "725ed47c750053f594236b1f611550a3e234fa82b546a84da3831266b589b8d5", + "releases/go2_fl_loaded_stand-1.0.0/evidence/holdout_process.json": "0750f7d89d7058b8873f54909f32429a0977dfd65c4e3b9623c93b620c79c58b", + "releases/go2_fl_loaded_stand-1.0.0/evidence/independent_candidate.json": "54396bb01be4c499b41a328547614980cf702232fd57c014ec6c37d96561fd3a", + "releases/go2_fl_loaded_stand-1.0.0/evidence/operator_waiver.json": "3c8c03efcedc3c6eb2a0a8ca8fdae2629834473fb122b2ce5bbcc39161344d1e", + "releases/go2_fl_loaded_stand-1.0.0/evidence/pytest_final.log": "911005ae3371eefae02b59c53e82d3fb9ce75ab4e873ee8d51ecaef3e0d93eff", + "releases/go2_fl_loaded_stand-1.0.0/evidence/review.md": "e04acdcc57bf3365fd05d5b224f384f94d2f55d60391af16efded1edaa932d41", + "releases/go2_fl_loaded_stand-1.0.0/evidence/ruff.log": "a5b097bbb606a1132331f167e0dab21849bbe45b37cc1957f17dcc665ece6218", + "releases/go2_fl_loaded_stand-1.0.0/evidence/stability.json": "95a0f18edac40ece69430041b5083a011fe612a4770e899575ca985ba496e0b4", + "releases/go2_fl_loaded_stand-1.0.0/evidence/stability_process.json": "e2af5a4fd4341dcb4ccecdef54dfa9c6404133a54cf2d7d05179056095ddd26d", + "releases/go2_fl_loaded_stand-1.0.0/evidence/tested_candidate_manifest.json": "7cb478a3b17aaf307d2d6e3c2b49cc25aa9af1ee9d118dd731b52f618c27e628", + "releases/go2_fl_loaded_stand-1.0.0/example.pt": "f21e71bbc4b0e862a672d13daf67c31971f365426dd98662fc658ede6916c798", + "releases/go2_fl_loaded_stand-1.0.0/frozen_standing.py": "c19026845ea5ec98b21ed641cd294cccd502cf73907c08f0fe71a9a63067d8c6", + "releases/go2_fl_loaded_stand-1.0.0/manifest.json": "27e5e56908a0a8585a13913f27663b0dd3cdb7270614a0a05355334de4093e98", + "releases/go2_fl_loaded_stand-1.0.0/requirements.txt": "812ea7d306f227902500eb76d816fe9f65f75d201edc6e766118ed68d3fdfe0d", + "releases/go2_fl_loaded_stand-1.0.0/selection.json": "276302e9374337aed8d4d3ea35408c4a0dc9971ea37bcecda8ccc5208b6a296a", + "releases/go2_fl_loaded_stand-1.0.0/task.json": "bb2671ba1f1750baf6f0ec3ebb2f555d60ee252358867aa378fc85e07790c99a", + "releases/go2_fl_loaded_stand-1.0.0/training.json": "443187246b6a600a11566eb1f1d3dca260f7c6a64684a847af7577afc4e521c9", + "releases/go2_fl_reach-1.0.0.acceptance.json": "fce757d5b0ee310e9660907bcaa1c18d71d0c01095552c99fbf25d171c1860b7", + "releases/go2_fl_reach-1.0.0.independent-load.json": "2c6574c098682f93be7f5923cd63275b07ea6959056b24ce0947d26ce4c6977e", + "releases/go2_fl_reach-1.0.0.tar.gz": "f7d426fa23ba3ab72bf5a4f1a87845c0cfa8b6167c631061a7d00823c7dcd05b", + "releases/go2_fl_reach-1.0.0/ASSET_LICENSE": "84aac59fd3246e3ddc49d1387644e8fcf43b0def4f0b9fe687f372e90446df2d", + "releases/go2_fl_reach-1.0.0/README.md": "7c6cfaea271595f106e4f042afb94a4e16916c75405d17425a02fd08acf37dde", + "releases/go2_fl_reach-1.0.0/actor.pt": "cdfe459887e7629924df7e6a79fd2900eff184e5b25bc2a26bb585378f671c4a", + "releases/go2_fl_reach-1.0.0/binding.json": "a8b6decc1e311b853943e088b48773a2de78b7ed1d67e465f53b2d849f242dbd", + "releases/go2_fl_reach-1.0.0/config.json": "1c56a59a74cb35810b3a43e409509c03b9f96bcb285a2e09b887e01cef9df114", + "releases/go2_fl_reach-1.0.0/evidence/boundary.json": "978bc4359081e62496fb335ef2ae109ca35437f5044254a20f240f19ab2e9e64", + "releases/go2_fl_reach-1.0.0/evidence/data_dataset.json": "1228d9ee3b2cb65b6b98d9d193e7b66f8506a35436c6c5edea3c3816f5b60023", + "releases/go2_fl_reach-1.0.0/evidence/engineering_checks.json": "1d5bf66e9e382db26d69e5be23a96a8e96b2447fd0c10b8a5fcbce202a9e2013", + "releases/go2_fl_reach-1.0.0/evidence/inference_dependencies.txt": "71e6736e0da59e90e625b370c2ba5552183c13d3cf61327818d296a1ffce1d3a", + "releases/go2_fl_reach-1.0.0/evidence/provenance.json": "a8ad5ee503d64996c6077040cff1ffb1012466c1af4e66b458e0c275d4566c46", + "releases/go2_fl_reach-1.0.0/evidence/resume_exact.json": "339346a94987ee04d4ed0761eeb4a81aac0048351fffb1e8b2e21b970e3718fd", + "releases/go2_fl_reach-1.0.0/evidence/stability.json": "b350a501b2cb7381b7d7e060c38700f2f431c916fc57802b98f8364012273c9e", + "releases/go2_fl_reach-1.0.0/evidence/standalone.json": "ac8f980765567996fb95853661bbff5d559238f2b2ec7b69501848d953b0ea84", + "releases/go2_fl_reach-1.0.0/evidence/test.json": "b1c8cf1dd3a61800b13a971dde62d372c450c029ffbb2b4464175d67ff644264", + "releases/go2_fl_reach-1.0.0/evidence/tested_candidate_manifest.json": "ca84aa6c5b6e87cdd2238bc6848c9f046d6b20eb71e4c66ea090631b81cc172b", + "releases/go2_fl_reach-1.0.0/evidence/train_result.json": "5a110a7dfe373e288418f235f7db90909b578fa2da7443674247ea0e03886aee", + "releases/go2_fl_reach-1.0.0/evidence/validation_010000.json": "e1ba15034bf350e78ad1cb21c1fe906c15ddf6b03d373f661cf940941eb1eaba", + "releases/go2_fl_reach-1.0.0/evidence/validation_020000.json": "62898992738a4005d6a32e10303081911ffe0f1d5ac3b1bc7894b2d3c96cd7c7", + "releases/go2_fl_reach-1.0.0/evidence/validation_030000.json": "3d3943fdeea405578374edd016d182b1fe3b175f09b7c748ddbac54ca9ddf831", + "releases/go2_fl_reach-1.0.0/example_tokens.pt": "f91ac1f14f9dc63d9f857f5cf901573ef21a219f6618e506bd0b92b57df9538f", + "releases/go2_fl_reach-1.0.0/frozen_policy.py": "562d4ff6e4b5d1d569e16badcc44c972d303284e06371be22060a682aae38ffb", + "releases/go2_fl_reach-1.0.0/manifest.json": "3106158d2ab214b09360528fb3c994a713435f05f801a8bde5115ebd16079655", + "releases/go2_fl_reach-1.0.0/requirements.txt": "69191f795f024589b482e6bf90c5db6a5631c0296f383f193eb1c1f76dfeaefd", + "releases/go2_fl_reach-1.0.0/selection.json": "cdf8a22ac773b88322556ec77a35e5247814a13258bd684778754e50413ff4c6", + "releases/go2_fl_reach-1.0.1.acceptance.json": "6ee59208035250a1b7bfefb34d3cd157316b1522a893dfbb5cc554f485b38d2e", + "releases/go2_fl_reach-1.0.1.independent-load.json": "5e722e39c1d366064010fc8932f2e48edf9be5b291d5f67afc36da7df0131d0b", + "releases/go2_fl_reach-1.0.1.tar.gz": "90168f81e33abbe1f5ac49a71cc9447b61dea6db9bbb886878d15134695c9dc7", + "releases/go2_fl_reach-1.0.1/ASSET_LICENSE": "84aac59fd3246e3ddc49d1387644e8fcf43b0def4f0b9fe687f372e90446df2d", + "releases/go2_fl_reach-1.0.1/README.md": "3a62a42d34f2e03a34048430e21e4636e3aa681d9060a4f3f21ef6e97e25bb98", + "releases/go2_fl_reach-1.0.1/actor.pt": "cdfe459887e7629924df7e6a79fd2900eff184e5b25bc2a26bb585378f671c4a", + "releases/go2_fl_reach-1.0.1/binding.json": "a8b6decc1e311b853943e088b48773a2de78b7ed1d67e465f53b2d849f242dbd", + "releases/go2_fl_reach-1.0.1/config.json": "1c56a59a74cb35810b3a43e409509c03b9f96bcb285a2e09b887e01cef9df114", + "releases/go2_fl_reach-1.0.1/evidence/boundary.json": "ae5c744d8bdd026879922c0fe5f5d2ca08fa4c3e3372e7c5f81c5b1726f24773", + "releases/go2_fl_reach-1.0.1/evidence/data_dataset.json": "1228d9ee3b2cb65b6b98d9d193e7b66f8506a35436c6c5edea3c3816f5b60023", + "releases/go2_fl_reach-1.0.1/evidence/engineering_checks.json": "83c925eafadbc50f3c2a67b671ff6dee03c5a481915a30ccc96ca5584a5c393f", + "releases/go2_fl_reach-1.0.1/evidence/inference_dependencies.txt": "71e6736e0da59e90e625b370c2ba5552183c13d3cf61327818d296a1ffce1d3a", + "releases/go2_fl_reach-1.0.1/evidence/provenance.json": "1ac6f4c4c4b85b0a920561e89e5c621a2c64896bec454ca77573bb4c526a0f30", + "releases/go2_fl_reach-1.0.1/evidence/resume_exact.json": "d9e41e551c6f1bf30d0f7ab198b77f2dbaca8384980402ac62b343664e970568", + "releases/go2_fl_reach-1.0.1/evidence/stability.json": "2d888bd2fb4182802b63665a4b1d6aaf58f81a671b44581aafb88638e3014627", + "releases/go2_fl_reach-1.0.1/evidence/standalone.json": "e276b2f96cf46f3a5b3aafcc06c71d0122205da719e49f85af53e1c64c09996a", + "releases/go2_fl_reach-1.0.1/evidence/test.json": "b6d47f75b7fe0e5ef69e3e003cb47e4a1bfe6e8c80a6d2c4275201eab0132381", + "releases/go2_fl_reach-1.0.1/evidence/tested_candidate_manifest.json": "11396f964db7d8e26f9ca77b63dedb09a03ebe54ef3ebca11b0c4842b53617ce", + "releases/go2_fl_reach-1.0.1/evidence/train_result.json": "5a110a7dfe373e288418f235f7db90909b578fa2da7443674247ea0e03886aee", + "releases/go2_fl_reach-1.0.1/evidence/validation_010000.json": "e1ba15034bf350e78ad1cb21c1fe906c15ddf6b03d373f661cf940941eb1eaba", + "releases/go2_fl_reach-1.0.1/evidence/validation_020000.json": "62898992738a4005d6a32e10303081911ffe0f1d5ac3b1bc7894b2d3c96cd7c7", + "releases/go2_fl_reach-1.0.1/evidence/validation_030000.json": "3d3943fdeea405578374edd016d182b1fe3b175f09b7c748ddbac54ca9ddf831", + "releases/go2_fl_reach-1.0.1/example_tokens.pt": "f91ac1f14f9dc63d9f857f5cf901573ef21a219f6618e506bd0b92b57df9538f", + "releases/go2_fl_reach-1.0.1/frozen_policy.py": "562d4ff6e4b5d1d569e16badcc44c972d303284e06371be22060a682aae38ffb", + "releases/go2_fl_reach-1.0.1/manifest.json": "b685088e675fc624744a239644ce59766efab6bbb8f4790b4783c16f0ed100fc", + "releases/go2_fl_reach-1.0.1/release.json": "ad26bbcbcb321d2885f51d39e240c44707209163a9fe17072c64e9e04452419d", + "releases/go2_fl_reach-1.0.1/requirements.txt": "69191f795f024589b482e6bf90c5db6a5631c0296f383f193eb1c1f76dfeaefd", + "releases/go2_fl_reach-1.0.1/selection.json": "cdf8a22ac773b88322556ec77a35e5247814a13258bd684778754e50413ff4c6", + "scripts/adopt_cycle_sim_p1_evidence.py": "763c8e2beb97725c584863472ee9f1f5ac50397a65df00f7a366bca7d5b23075", + "scripts/anchor_common.py": "b1afa08d715a0d4cd66695cfd5cbea046ad55d31551f7ae44508a8a0dce1833b", + "scripts/anchor_smoke.py": "c6065e4e886a226640b2a8614746cfcc79c33042bdaefedbe8176c3283270a60", + "scripts/assets/build_loaded_leg.py": "8ab5072a6ce8b7ac1a0421b3704f15db4c8ac328ba32fde5cca253986a7ebcf0", + "scripts/assets/convert_go2_leg.py": "02b08bb94b496a446fe06ecadf7b1444131e8b493025ed024c45d53c5ab71c55", + "scripts/assets/convert_leg.py": "925fa3fc53c15d3c8a85d8fb594a9e8f65f5464dfac02d5a58323f2126f3daa4", + "scripts/assets/extract_go2_leg.py": "60c3a7dff1f91b57ca5654f8c5c658bbaad0485e6c5a7672292f4dcc6f2c868d", + "scripts/assets/extract_leg.py": "64a19b2a164e5566c6b176478d23b44491d82494253ea0a6a7d4da42f6eead31", + "scripts/assets/preview_go2_leg.py": "f3a8efbca8bfbb30902d96c31b20f306e0b41efdfc990591f1104397de08abe1", + "scripts/audit_contact_cycle.py": "8e4a40bdee1fefe0253a2d703b8019c52f385ca92133b6249d6bd31a41253273", + "scripts/audit_contact_cycle_functional.py": "b9d9eaf51c0719d58ad0742a1055b2ad696ddc7e13d602ad354ee0c356f596c4", + "scripts/audit_cycle_functional_flow.py": "87a92b659d5a60605468c22079de49ace57d096d4f8ce89bb30d658d9234ac66", + "scripts/audit_cycle_sim_evaluation.py": "ce40159343968e7b921aa2e6c2bb7d458f73e8620b6e5926f7ca3a2b615bef1f", + "scripts/evaluate_cycle_functional_flow.py": "1eb8602d33ceb0284ca51ee6260a8f88ad699da38ae8e19cf6ec99320eada069", + "scripts/evaluate_cycle_sim_residual.py": "a502ffd954be012ed5b038c6b5275536765d5a085b3d1c29e367e45ddea79acd", + "scripts/evaluate_standing.py": "0e47ec304b3d30d2e24f00486579f3560a3eda0e62df2be56beabe00c4950b25", + "scripts/examples/generate_part_descriptions.py": "6ffba9dc82895b9cdb3ef95588cebe1f98c595a70476aef6041ac304678a25e0", + "scripts/examples/go2_fl_skill_v4.py": "3091c90ca006d75704e967a91258990a5c3abb806351490e0222a94e01d93411", + "scripts/export_leg_bundle.py": "c5b0209e4770661098a626b0efa4d5055807098aaea7d9d4f2e57575a87e79ee", + "scripts/functional_flow_launch_v2.py": "597e87b6aae7a2a73fa9b380feb2b668b62cc4b72bc0b8d4d486bec4a8ad4e8e", + "scripts/functional_followup_launch_v3.py": "9ed414f036b3aae61a4573d8cd9893be40f6c33c36e825c5de213dc05987afa3", + "scripts/functional_gpu_watch_v3.py": "c56d8e1e5e60f79ccec8d8ef1e656481d8bd316e6cde33d51b1decaf8a972484", + "scripts/go2_fl_skill.py": "d95fe3c823c21c35ba45dec4221052959e3f096ef2ec311206c82774d08f12fa", + "scripts/leg_worker.py": "bc9cdb009315fcfaba9ccff2fd308ed41e70c89fec436a3c1e453ebfb772dec7", + "scripts/list_envs.py": "3f4509bf5e4bf1384840bacba69ca74a7d737faf0916cfe6572392b76bf373f8", + "scripts/migrate_leg_description.py": "8ee6cba732a185761e53fcfba0a8a68916f499e04c947ab8dc80abd74edd4c61", + "scripts/package_standing.py": "79d225924caf78b71ccfc348042977046bcd36b036933d0091ba09a5a95ccdb7", + "scripts/prepare_cycle_sim_binding.py": "ff31145d20ddba448097d21c1c5c896432f2757bf7b8faac15a595bb4c5ec7a0", + "scripts/probe_setup.py": "99483d67d52c675168823cbcb265cf1842b411ed5ddb903cbba5939fb7b90f70", + "scripts/profile_cycle_sim_evidence.py": "965c6720c2287f289d990c8b3c20d4cbfb7c672008fa1d8db3f5217cee1e8b6f", + "scripts/publish_standing.py": "7fbdfc6e5e0c226beb87d513f18f448683b042f48397721b66a17b7ed0368025", + "scripts/random_agent.py": "787e4bcc748cf755cf7498ced6203b073708276259c8492ae17dea2a56dd8cef", + "scripts/replay_cycle_sim_residual.py": "36b44925135c5452341f43737004217a2d9036fef290a23e48aa2526c1f0aedd", + "scripts/rootxy_launch_v2.py": "f7325fd2291ec18af61b6e10bbf136dc4df133b020d330d6b6709b4384a87aab", + "scripts/rsl_rl/cli_args.py": "610ecd0a51bac90c206e57578c7789c8cf5dfd5ebd0096c3ca398f9bd2f2b42d", + "scripts/rsl_rl/play.py": "a003a85addd751a25f1ddc20d8a85174d52db304c925e5156fe88d07a6b1b2a8", + "scripts/rsl_rl/play_rsl_rl.py": "c0ac3aa71ef15faf972417fcc7459be5c0659094d92c491dd74604a02f1b14ba", + "scripts/rsl_rl/train.py": "c30c148e5251abcb8b3146ec66f26646776e75116550c3f9c8b0c2089180354d", + "scripts/rsl_rl/train_rsl_rl.py": "0d6b0e651a7233eb55db2dbbe8a582b33ce6a823d15b0255decbc00be4ebc0a0", + "scripts/runtime_common.py": "57934860bc6fe1df64128376737aa2a80aafe8f85cf4bee38d7f4373edfe908b", + "scripts/skill_launch_v4.py": "61df4129f706b0f22d68471a81390180a1996a339d83cf49a89f37ee8340bb52", + "scripts/stage2_acceptance.py": "e716602abfc410713bb1f6f79bb8958433f0ed4ea40e237c3d55b305d2b41b53", + "scripts/stage2_boundary.py": "3c8c65581c82bdf689a2d8fe590f324acef5629e5e218675664218751815c326", + "scripts/stage2_sim.py": "69a1ef05779e5869502d2d693dd7d2c5cc84bb36f0acbf0b918f96aa44b37373", + "scripts/standing_acceptance.py": "a5cfbde5fe174973e1081d02b35ff3d8230ed77f963c729f24c43a43e78750c9", + "scripts/standing_deviation.py": "33f50f25e3099297cca00ccf120b66c09fd9c43ba88c774219f53a0028946467", + "scripts/standing_force_visualizer.py": "27fa7e804defc04c5cf7205f4fa750f42d7dd2516c0ff63b66e57359ddc35299", + "scripts/standing_protocol.py": "d8ba91c96006687ba5d3e54fd986c915a034f16f11748ea06d717632b6322db1", + "scripts/supervise_sim.py": "1d917d29f87cde38cd75343285ec18fdebc19bc7329c89d782b172ffb4779134", + "scripts/train_contact_cycle.py": "50fecf1ec8d21622d0d026183e11f8d94b872bb3f6842bcf47b1436d746dae25", + "scripts/train_cycle_sim_residual.py": "7c6e47b51090226c4d176fe022290a1c5ef0af06e47e7ae7f165bee02f21968b", + "scripts/train_cycle_sim_rootxy_v2.py": "2867b81132874d4ee56369bcafeb4f02df737cb8697e32690ae92df1e80a6241", + "scripts/train_leg_skill.py": "84dd54bc66bdec5ee3dc5e6c816f9119d49482d9422b9e8c272bb369db12b597", + "scripts/train_loaded_stand.py": "40de1c7b540b6a7df096508d7d533b679b7d8352b84dfe25b4dc201cec4f5652", + "scripts/train_offline_leg.py": "cf05cd55c6d5d875417928bc9d31d54d1d7c073d2877563d749bdf70e556a2b5", + "scripts/validate_descriptions.py": "bafbbf270dcd8d6015dfe1f81881b6c92d4eefd3f216d7ac48559aee60bcf031", + "scripts/verify_anchor.py": "f012a41cc4e0bb7cf13dae9afa234258987ec1f7c74ec1dbe2c3ebd5ad70c54d", + "scripts/verify_contact_cycle.py": "f28d4be6a200d8f7d35760efbcc78af30dc764d5071473cbad837c0d03bb98f3", + "scripts/verify_cycle_learning_runtime.py": "47a3b7563fbbd98440b3cb20e4032fe2b08dea6daadf259a5b52350be1f34185", + "scripts/verify_cycle_sim_learning_runtime.py": "dbdb2699aefe37dd785b1d56971da00ac4f458bf99288b70176932dd12d08f22", + "scripts/verify_cycle_sim_residual.py": "124ac86d30f5eea1b4c78cbd9263de21ce5aacde18b8c7ae4307f508fa19b55f", + "scripts/verify_cycle_sim_stress.py": "9ff3f94a30d682155b78539d2e8869b20c026e2f396ad1ad91809ab3c348edcb", + "scripts/verify_frozen_leg.py": "f9f3df78646dca7a8117bed74259f2300423edbdea0f2905bebe41f7dbe80d16", + "scripts/verify_frozen_standing.py": "7528979d2281ed3831f2cd3fadaba55a62a5a927ec33c587e43832dded51c409", + "scripts/verify_loaded_leg.py": "d1abace1c741c99702553456c3b9bfb3b52cda13c5b96947c29426703b6ea91e", + "scripts/verify_stage2_delivery.py": "0a35c13d0b789a62ea6c3012526bf8261963cc97d44589610828544122a26577", + "scripts/verify_wrench_physics.py": "97aed9f125eaf115ad29db650cdf1a0f0ba28c5d9c9953401e0ff4739aec08de", + "scripts/visualize_cycle_functional_flow.py": "34ce5f034e3655602ebadd2754782f24a6c37ea91add9f711bf1454b7a9d4d62", + "scripts/zero_agent.py": "495912b088ec008f276004b88e2d2942ddfe6a99782ec12e2902796a458e577b", + "source/SkillFactory/SkillFactory/__init__.py": "d98ceba70ec5d8584b0cab085fa96514406564bf8e28fa71cca8b811ff5b4f4b", + "source/SkillFactory/SkillFactory/assets/__init__.py": "03919861acfebb2452db622bc60b256d4d7a75336e82726e213a61c63f66ac58", + "source/SkillFactory/SkillFactory/assets/go2_leg.py": "426bd197dbc79ff965c45fdd47bac70bf4684f1d0a29ceaba89cade504dd70f6", + "source/SkillFactory/SkillFactory/legs/__init__.py": "ca6f7541ea78f762be54147f3c978ed9564d045115fdfc975639e639696b8876", + "source/SkillFactory/SkillFactory/legs/contact_cycle/__init__.py": "9d2ea3dc2768104cd4deef04e23bd07e432195bb60e7ddf80decc59618edee84", + "source/SkillFactory/SkillFactory/legs/contact_cycle/config.py": "0a6f178e359cf0697738661c15f80734a173ad7d8b10a6026207cf4348930c59", + "source/SkillFactory/SkillFactory/legs/contact_cycle/curriculum.py": "87dc05f475aaff3c51565285d339de99e94e07b2347d49f3c8d236140d33d068", + "source/SkillFactory/SkillFactory/legs/contact_cycle/mechanics.py": "a903bdd5b71043e19373d6d97cd7eab7387aa7d87cbb50d551be62129cfd20db", + "source/SkillFactory/SkillFactory/legs/contact_cycle/metrics.py": "6f3c1f4439803ef355384b7d1b741e3d925b07213802fd3d14160f2a80d88a5f", + "source/SkillFactory/SkillFactory/legs/contact_cycle/ppo.py": "d27bcd99bca5bc06118da9128bb0137d213583db074193c39abcca4bc0feb2df", + "source/SkillFactory/SkillFactory/legs/contact_cycle/task.py": "5f64b8a04be287cfd264f27f4f9b741368af2efa8ab94247be5e5405e1ed2d0b", + "source/SkillFactory/SkillFactory/legs/contact_cycle/training.py": "7efc153848cd77e9aa018032e7c67f5efaf86455fabe76341abbfdaf87181385", + "source/SkillFactory/SkillFactory/legs/contact_cycle_sim/__init__.py": "422d5dd27c1aa3f04098a07896344e9c545c593da5de14bdb1845552181df6fb", + "source/SkillFactory/SkillFactory/legs/contact_cycle_sim/config.py": "5d4c0af64a1aa57acf830ed19e3ed04bd61310c2c04dbd04f1bd52fa948812c2", + "source/SkillFactory/SkillFactory/legs/contact_cycle_sim/evaluation_adoption.py": "70fa5877866e48df6ad18e613290b4152739f3b30c4646c5eee07bc6d9417c2d", + "source/SkillFactory/SkillFactory/legs/contact_cycle_sim/evaluation_audit.py": "0898bdef1021a8a578673e70f0e0b13b0bce71782e6600c154806d1509df065f", + "source/SkillFactory/SkillFactory/legs/contact_cycle_sim/evaluation_binding.py": "45c0c3c61cb968f19264398e1e6776630ed8ba8a799c7fea405a830248128fbf", + "source/SkillFactory/SkillFactory/legs/contact_cycle_sim/evaluation_budget.py": "2cc58de32373df3d8508086cdaea5d7666f8d333f2822d401eccf21102225066", + "source/SkillFactory/SkillFactory/legs/contact_cycle_sim/evaluation_protocol.py": "7ee0eb5f2baee4dd2c0bf09109d49b39b885033ca066773c0c834e696e73bbc1", + "source/SkillFactory/SkillFactory/legs/contact_cycle_sim/functional_flow_binding_v2.py": "d47d99abde6d1944b6103007fcea0c9629cd6a299c7aeae06bf4a5c97ec05e9a", + "source/SkillFactory/SkillFactory/legs/contact_cycle_sim/functional_flow_v2.py": "9f4c84960d9dca07337527f41e8fa73fbdbf43968138ebc9872d6a3f06a79f1c", + "source/SkillFactory/SkillFactory/legs/contact_cycle_sim/functional_followup_binding_v3.py": "b10fb44971d6d267f9749de39a8e3f5b15b20cd1078df4a68e53689c4d2e539b", + "source/SkillFactory/SkillFactory/legs/contact_cycle_sim/functional_followup_v3.py": "744ea0f83e7c160220959f565dd3f9ba52f7c3c224f8781afbf1d69ffb12430a", + "source/SkillFactory/SkillFactory/legs/contact_cycle_sim/model.py": "22fc7ba5e693e4144855ba357b97a104e3e35a5865a2ce7c7185969b77f83fc4", + "source/SkillFactory/SkillFactory/legs/contact_cycle_sim/ppo.py": "1e5904272886bdef59bdc48220405a8f9801bb190dde1a6389b7fe81405d9166", + "source/SkillFactory/SkillFactory/legs/contact_cycle_sim/reference.py": "7cf153d304e146f7cccadba01c84c7a76ed6df26166431daeff45a9f11205f2b", + "source/SkillFactory/SkillFactory/legs/contact_cycle_sim/replay.py": "e3dc56513065df6c119296eca15c2370df244674ccbe935199fcacc655448639", + "source/SkillFactory/SkillFactory/legs/contact_cycle_sim/rootxy_binding_v2.py": "9d191020c99705642ceac9f766c2d645e562c30aa4f896a3aa230e8dbe61c9cb", + "source/SkillFactory/SkillFactory/legs/contact_cycle_sim/rootxy_diagnostics_v2.py": "a2a09ff58c76ca9d10d58a99581dbb25b1298994a091dc10b21d76216eba0b7b", + "source/SkillFactory/SkillFactory/legs/contact_cycle_sim/rootxy_runner_v2.py": "ee20a8d9a2e2d0ede7d59f17beedbcfc4beb1af4ff0b03f75ec83f2e58e16de2", + "source/SkillFactory/SkillFactory/legs/contact_cycle_sim/rootxy_runtime_v2.py": "37f6522cb989a6020bb0a23e3cec7a4bae52a093cdef9e148ec3403e5ecb3811", + "source/SkillFactory/SkillFactory/legs/contact_cycle_sim/rootxy_selection_v2.py": "fea5f9c1f2715efa9f9d1098fa485cb637eca1fb4becfba59f30e00ec7af3d75", + "source/SkillFactory/SkillFactory/legs/contact_cycle_sim/rootxy_training_v2.py": "992f4b67cbc4540b326b7d6441c9bbd3b697a7d227c57230caf13a791667b327", + "source/SkillFactory/SkillFactory/legs/contact_cycle_sim/skill_binding_v4.py": "3efb8a8b3aac7a18111e490f2841f5205d275c99aa350116d50e15388d5de26e", + "source/SkillFactory/SkillFactory/legs/contact_cycle_sim/skill_mailbox_v4.py": "53f742f2c6d6c7ad4fbae5f1fcd1d1a41be1845567b8a0fdd4b080bf6e13fb92", + "source/SkillFactory/SkillFactory/legs/contact_cycle_sim/skill_v4.py": "1cfa556a44ff749677bf030dd61792fbe85d60e424646844bdace05794fd102c", + "source/SkillFactory/SkillFactory/legs/contact_cycle_sim/stress.py": "82ee0593fc55417e09a4ccdbd4e9007878950012218f05976cd4b348af65a9c7", + "source/SkillFactory/SkillFactory/legs/contact_cycle_sim/training.py": "c9b01b68b25ee95c6a8910ab0997de63d5320ae457d37e2ca35e7ce2fa7be700", + "source/SkillFactory/SkillFactory/legs/frozen_policy.py": "562d4ff6e4b5d1d569e16badcc44c972d303284e06371be22060a682aae38ffb", + "source/SkillFactory/SkillFactory/legs/frozen_standing.py": "c19026845ea5ec98b21ed641cd294cccd502cf73907c08f0fe71a9a63067d8c6", + "source/SkillFactory/SkillFactory/legs/offline.py": "12ac018a2c76d046c8ed50ee105fcd6a33931f7c7a3bb027b6db332726ab064d", + "source/SkillFactory/SkillFactory/legs/policy.py": "cdfcc1da937d1b33652601d52a76b7c253ef64179822133317b0918ea84c2f6a", + "source/SkillFactory/SkillFactory/legs/resources/ground.usda": "26e7ef57327a36b59aacd0cc1ba0704ec4d86387450b4cab1f4020ae28bac70d", + "source/SkillFactory/SkillFactory/legs/spec.py": "e11d0df51131162c2416b099c2263e554ca72f13000a04828c79afc85a63f01d", + "source/SkillFactory/SkillFactory/legs/standing_ppo.py": "69d99ed40369a07ec1c8fee4220d9adbeb38958499d94c1bd7da054b78598565", + "source/SkillFactory/SkillFactory/legs/support.py": "2abb489659001ba12e23becdbb02bec45f69a2e0b4d7efaeaec1c72e25d888cc", + "source/SkillFactory/SkillFactory/legs/tokens.py": "86dccd0a4af945700ff3382d2638d9ca8ebe06151c403d90b4cdb00a8fde7ad5", + "source/SkillFactory/SkillFactory/legs/urdf.py": "694a6e0cf1c0825f02788982f528481932fe5cffb80738f130497c1040125c5a", + "source/SkillFactory/SkillFactory/tasks/__init__.py": "098fcc6bb68a96b995f3dc47aa377afb9d5e1da108a4e404a754b70e3bcca9eb", + "source/SkillFactory/SkillFactory/tasks/manager_based/__init__.py": "0f061c6be551c578c0bf4e7b9c217d86b5ff740adce37b99d70fd997feddcabe", + "source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle/__init__.py": "b522c8295767f1abc089a7f18acb8430dffd942632b920615ca36e1d02bfbc4a", + "source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle/cfg.py": "8fc2e4a8b2e0d79240be7804a1db9171e850de5ddc08928460b3181fbc744075", + "source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle/env.py": "8fef97e80ffc1b54c21286cd2727fedc4dc9fbbc978a11f4a6c6689bc1d87e5c", + "source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle/mdp.py": "c11b72bafc139eda802b0b1cb3a608327629a79c1b90bd8ecbb9b1173252c5cf", + "source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle/recording.py": "c718eba351d731bd4a6f864c9b8e47faeb70c7e1e583b8d108f654e0731f4224", + "source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle_sim/__init__.py": "fb3e31de1536f22112cac4e9dc64c9e5a1a009dca7bb3ab438ddcb03be52a6bd", + "source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle_sim/batched_kinematics_v042.py": "f41d12f48e800177520e6dec5a41137e27d4d6e80c4314026e0533f4074f7d97", + "source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle_sim/cfg.py": "777c9c75ce9daec938b6718ca9c382933b631014a17b87f880283f48ea9b8bdb", + "source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle_sim/env.py": "64bfd21a9c0a28206c37bb076d6b9c99441b55456ee119fcb162c6b483aa91f2", + "source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle_sim/evaluation_cfg.py": "62a83aa9976a4da00c49fa6d9dc61044ea705719047b2fd4f16e11fc671a3fa4", + "source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle_sim/evaluation_env.py": "04e98455035e347633b7ea6c1fcf5372b4e6ac33645805f1beac8f7784e424c6", + "source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle_sim/evaluation_instrumentation.py": "f61b78ae9b3891c66c1a859925ef72624227e87ce4d7f1e5915d314f2023eeae", + "source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle_sim/evaluation_mdp.py": "89c46b2038733a21c97cb72a4112ff16b48ed0e15b5070ebdebcd3ce0cd8f7ac", + "source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle_sim/evaluation_recording.py": "7669b96562216f2a25a797433b1e251fe2a43542aa96b0198c6d287c16f5759b", + "source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle_sim/evaluation_rng_scope.py": "8b2f707b07238d0518fea27d5fd6ea51976555c6e0baca305df5ba5adad84e3f", + "source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle_sim/functional_flow_recording_v2.py": "5e577ceb7f5b060519e594e1994d73027e8a6913c745c5720987451e8cce56aa", + "source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle_sim/live_cadence_v042.py": "3254a54a673fb3f27bf24f884210bc49c69c58b4fa2ac633a63ea4d699056915", + "source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle_sim/mdp.py": "6a75b567ef5e53b6f81c5286fd1fb5a9075462a2f37255083fff3094c7a8c933", + "source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle_sim/packed_recording_v042.py": "c929d294623bc6b21b1f34839c7a0d59d484d63b4b35623ebe0ddbbb4a21578e", + "source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle_sim/performance_v042.py": "49bc36b4dae71141914ec5d99aa12379f5a5ce22143968dd7211bb8cbb44d47d", + "source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle_sim/readonly_scope_v042.py": "024258ed6aeae33715eab0afebff92b9eb41ad97621c67f267834c6813991b7c", + "source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle_sim/recording.py": "8dc352f02a3cc84b4e2527f946a835d8c9ba5d4707d9545799cbe43c813969d0", + "source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle_sim/rootxy_cfg_v2.py": "14b12562928bff9354ea6ab507b37e03f31aa4329c071aa99794605fd29e4b72", + "source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle_sim/rootxy_recording_v2.py": "58df389f4449ff9bd90719a6f73ddf0f80516da413846f5847e9fc93670117cc", + "source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle_sim/sensor_epoch_v042.py": "cd2edb7ca336f4f80a1191d6967833f84d5598fbb6712efe51c7a24df607f71a", + "source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle_sim/skill_gui_v041.py": "688068d6a1771076d087dc3deb4414f04922ca0bc8a296555495a07d19f57751", + "source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle_sim/skill_recording_v4.py": "7daf5b8eb9f84c5d2dc7ac915d16771235583bb336161339003e811c4e59770c", + "source/SkillFactory/SkillFactory/tasks/manager_based/leg_skill/__init__.py": "85417fb746517b22ec450803a02b09e23bf06421d0e78d83f272cff7de2eb678", + "source/SkillFactory/SkillFactory/tasks/manager_based/leg_skill/leg_env.py": "abf20f5feb2114c02b5fc8647102430881640a0d3f3ac2a6503ff0dd4395cd98", + "source/SkillFactory/SkillFactory/tasks/manager_based/leg_skill/leg_env_cfg.py": "1c748307cc08e1b8367bb92fdf13a45bc3204abdf1cf423571b06d071e1b4815", + "source/SkillFactory/SkillFactory/tasks/manager_based/leg_skill/mdp.py": "3ac1792858de1f7576556661e4cfb8eb55c348e7fa3cf61c8e62d7fe04969bc0", + "source/SkillFactory/SkillFactory/tasks/manager_based/loaded_leg/__init__.py": "cabfbd1a302f26e808bf61b2d672eae8f29fd31fbeb2c4e559d1e5dc2631d28c", + "source/SkillFactory/SkillFactory/tasks/manager_based/loaded_leg/cfg.py": "36987e4eaf8973925ec7025fd29f458de3cef7f667fe794a989bbba8817df70f", + "source/SkillFactory/SkillFactory/tasks/manager_based/loaded_leg/env.py": "f18f82fe0fa50ef5591a247431d9230440021635c7025f0c5f458ef266ded855", + "source/SkillFactory/SkillFactory/tasks/manager_based/loaded_leg/mdp.py": "83ec027cf39675749c25ed0fe01518f8c430a768a5465e4c68efdfd5da6884da", + "source/SkillFactory/SkillFactory/tasks/manager_based/single_leg_anchor/__init__.py": "617836659c741b2758758ecfc0750c69e4354cc959abaeed767ee99759ff0454", + "source/SkillFactory/SkillFactory/tasks/manager_based/single_leg_anchor/anchor_env_cfg.py": "a60505bc5642b0260f1e68048b7fdc774b642d12fe0af61d702de5e9ce79ad1b", + "source/SkillFactory/SkillFactory/tasks/manager_based/single_leg_anchor/mdp/__init__.py": "2b998fd206546dc11d0ee693ab1030a3d9949094a6ee25d07bdabefab84a3806", + "source/SkillFactory/SkillFactory/tasks/manager_based/single_leg_anchor/mdp/actions.py": "91aa6bd581437c932c19415c7c1abc45b2329b9e72a10d17aebeda6142a249da", + "source/SkillFactory/SkillFactory/tasks/manager_based/single_leg_anchor/mdp/observations.py": "019a971445b99708386a6ffb27ec837f3b0aef1aa8fea59e8ae638783769b1f3", + "source/SkillFactory/SkillFactory/tasks/manager_based/skillfactory/__init__.py": "549cb89eaa62e7a2c1b632fb0954f233075b5a5c4298bc708716014598d390e7", + "source/SkillFactory/SkillFactory/tasks/manager_based/skillfactory/agents/__init__.py": "e72b43071221e271f69574d1d5e6116c5d71b41727973bf00560cb667d766435", + "source/SkillFactory/SkillFactory/tasks/manager_based/skillfactory/agents/rsl_rl_ppo_cfg.py": "06cab0b7c4dcc850db4c9aab7568920bbb8dfdd4bcfe8f368633cae79ee0cecd", + "source/SkillFactory/SkillFactory/tasks/manager_based/skillfactory/mdp/__init__.py": "382e3603f88e6111d595e976d6024c881a353d3fac7067741c2d335b4d8013b0", + "source/SkillFactory/SkillFactory/tasks/manager_based/skillfactory/mdp/__init__.pyi": "7bd8a874c9e897647a5b8fb9e649dca21be7d8556b8c7dbc3add5a09f3bb0a20", + "source/SkillFactory/SkillFactory/tasks/manager_based/skillfactory/mdp/rewards.py": "0942e3998791d58d8ace3816df5f5618f7e9f1f02fa982cf8620e0bcf7ea7852", + "source/SkillFactory/SkillFactory/tasks/manager_based/skillfactory/skillfactory_env_cfg.py": "29fec293ea067155fcb71a2bf0f09e87accee8001e5d901cb922fc714b96fe1f", + "source/SkillFactory/SkillFactory/ui_extension_example.py": "baafeec180c822280a2e9afa926c2aeb2aa6d758f26f6a42b2df5968a110d0a5", + "source/SkillFactory/config/extension.toml": "a04873f2b9c271386ce36df12158bc47c36a5ba0caca1dd9297b56b721c3861e", + "source/SkillFactory/docs/CHANGELOG.rst": "60c2e714b4128dd8f604c2e263d5b0f42fc63cc45020f0517abcbcf4a9fb53ff", + "source/SkillFactory/pyproject.toml": "0aafaeecb08244d278aa82585d07d1c8b4a31b58815b097bca70e1e1dbcee146", + "source/SkillFactory/setup.py": "4d3d08329490c65b298b96ddf9c79246a693c4b9379921dc019f85a69fa3be3f", + "tests/test_contact_cycle_sim_learning.py": "0c9b03ddd1c96de3ac89dd3d1bc9857c5a809747d381ee0909b37038d904cdef", + "tests/test_contact_cycle_sim_learning_physics.py": "ebe23fab328343e015d7d2b5c4006c98a63f8af3fb8f4d62d59cbf29b4b222bd", + "tests/test_contact_cycle_sim_training.py": "7541fd02841621880af8a3c04a7152d2b8d2e79035b2e5c51cd47e0ba7b3a506" + } +} diff --git a/archives/next_stage_cleanup.tar.gz b/archives/next_stage_cleanup.tar.gz new file mode 100644 index 0000000..c533926 Binary files /dev/null and b/archives/next_stage_cleanup.tar.gz differ diff --git a/docs/README.md b/docs/README.md index 6b0ddc1..4a81eba 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,37 +1,38 @@ # 文档入口 -最新:[0.4.2应用循环与GUI性能结果](contact_cycle_sim_performance_v042_result.md),真实窗口33.98FPS截图/全段35.30提交每秒,GUI/headless S1轨迹与0.4.1文件SHA相同;物理推进分别仅0.07060×/0.18325×。源码/原件/复核在仓库`performance_v042/`,独立包`performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/`及最终封装/库存凭据见该工作根;不是GPU100%或1×实时,不继承完整矩阵/u256/原生故障注入资格,旧包及accepted_skill=false保留。 - -主线:**0.4.1真实Kit GUI已实际验证**,[结果/真实图像/限制](contact_cycle_sim_gui_v041_result.md)、[GUI固定计划](contact_cycle_sim_gui_v041_plan.md)及[API](go2_fl_skill_v4_api.md)。独立包`bash demo_gui.sh`真实解析S1;GUI/headless各六周期通过、提前关窗按预期中止并清理。0.4.0原件不变,0.4.1不自动继承完整矩阵/u256资格,不追加训练/优化/扩域。 - -先前**Go2 FL接触周期仿真功能版0.4.0已交付**。可调用Python/CLI、解析20连续周期、三条六周期切换、u256同S1、停止拒绝及独立包真实仿真复现均通过,零训练;[本轮实际结果/命令/产物](contact_cycle_sim_skill_v4_result.md)、[API](go2_fl_skill_v4_api.md)、[预先固定合同](contact_cycle_sim_skill_v4_plan.md)。有限单seed/有辅助条件不是独立鲁棒验收,历史accepted_skill=false/严格失败不变,不追加精度优化/整机实机;文档或源码提交不是运行grant。先前[v3结果](contact_cycle_functional_followup_v3_result.md)保留。 - ## 下一阶段必读 -1. [当前进度](current_status.md):唯一当前状态摘要;物理结果、失配、部分训练与预算分开记录。 -2. [当前阶段结论](next_stage.md):限定功能目标完成,不自动试训/扩域;[持续执行授权](execution_authority.md)允许后续自主设预算护栏而不逐次请批。 -3. [接口与CPU测试](contact_cycle_runtime.md):46D、动作/物理边界、实现入口和测试命令。 -4. 当前先读[0.4.1真实GUI结果](contact_cycle_sim_gui_v041_result.md)和[公开接口](go2_fl_skill_v4_api.md);[0.4.0完整矩阵结果](contact_cycle_sim_skill_v4_result.md)保留为历史;历史[功能补验预先计划](contact_cycle_functional_followup_v3.md) / [实际逐组结果](contact_cycle_functional_followup_v3_result.md):命令、原门槛、初态配对、独立预算/绑定和真实Fn/gap/位移;原RootXY配方不再是默认推进方向。 -5. [评估/溯源/证据/监控](contact_cycle_native_monitor_v3.md):合并P1/P2、初态修复、v5绑定、XZ与native扫描合同。 -6. [证据索引](evidence_index.md):冻结身份、外部报告、失败账本和不可选取检查点。 +1. [当前状态](current_status.md):已验证能力、历史失败及未验证项。 +2. [下一阶段](next_stage.md):现有接口集成优先,不默认扩训/扩域。 +3. [公开接口](go2_fl_skill_v4_api.md) / [运行与CPU回归](contact_cycle_runtime.md)。 +4. [0.4.2实测结果](contact_cycle_sim_performance_v042_result.md) / [证据索引](evidence_index.md)。 +5. [执行边界](execution_authority.md):自主预设护栏,新会话/绑定/输出,不复用旧grant。 -## 按需保留 +## 按需参考 -- [统一软硬件规范v2](software_hardware_spec.md)及`schemas/`:静态描述/校验,通用运行adapter尚未实现。 -- [受载站立发布边界](loaded_stand_release_1_0_0.md):候选专属漂移豁免,禁止移用于新任务。 -- [原v1训练计划](contact_cycle_sim_training_plan.md)与[脚本残差压力测试计划](contact_cycle_sim_stress.md):**保留原路径/原字节**,冻结manifest/验证入口绑定它们。属于可复核输入,不是当前计划或授权;不为精简而破坏旧证据。 +- [统一软硬件描述v2](software_hardware_spec.md)及`schemas/`:静态校验已实现,通用运行adapter未实现。 +- [0.4.0完整矩阵结果](contact_cycle_sim_skill_v4_result.md):历史资格范围,不自动适用于当前源码。 +- [评估与native监控](contact_cycle_native_monitor_v3.md):溯源、初态、压缩证据和监督规则。 + +以下文件因源码/冻结manifest按路径或哈希引用而保留**原路径、原字节**,不是下一阶段任务或新运行授权: + +- `contact_cycle_sim_training_plan.md`、`contact_cycle_sim_stress.md`。 +- `contact_cycle_rootxy_v2_plan.md`、`contact_cycle_rootxy_v2_launch.md`。 +- `contact_cycle_sim_skill_v4_plan.md`、`contact_cycle_sim_gui_v041_plan.md`。 +- 仓库`performance_v042/{plan.md,presentation_amendment.md}`。 ## 历史资料 -过程性修复/第N次尝试及过期“下一步”已移出docs活动文档。归档仅用于溯源,其中的命令、预算、时钟与授权均不能直接执行。历史文档数量记录不作为当前清单;新功能计划/实际结果按任务保留,不按失败次数追加“第N次修复”文档。 +本次将旧v2/v3过程报告、0.4.1结果、站立发布说明、16个旧发布/旧32D分支测试和性能阶段一次性工具/中间报告移出活动目录。当前API、运行安全、GUI、性能、描述契约测试,以及冻结绑定测试保留;没有移动原始运行目录、权重、账本、来源快照或sealed交付物。 -- 本次整理前全部docs及根README:[归档](../archives/documentation_before_rootxy_handoff.tar.gz)、[逐文件SHA256清单](../archives/documentation_rootxy_handoff.json)。 -- 更早阶段:[原归档](../archives/documentation_before_simplification_20261014.tar.gz)、[原清单](../archives/documentation_cleanup_20261014.json)。 +- [整理前文档/测试及受版本管理过程文件备份](../archives/next_stage_cleanup.tar.gz)。 +- [逐文件SHA256、移出清单及保护文件清单](../archives/next_stage_cleanup.json)。未受版本管理的根级过程日志另存本机`archives/local_next_stage_process.tar.gz`,不提交。 +- 更早文档备份:`archives/documentation_before_rootxy_handoff.tar.gz`、`archives/documentation_before_simplification_20261014.tar.gz`及对应原JSON清单,未修改。 -只读查看,不解压覆盖当前工作区: +只读查看指定原文(成员路径与原仓库相同): ```sh -tar -xOf archives/documentation_before_rootxy_handoff.tar.gz docs/contact_cycle_p2_pairing_repair.md +tar -xOf archives/next_stage_cleanup.tar.gz docs/contact_cycle_functional_followup_v3_result.md ``` -没有删除/移动原日志、权重、失败轨迹、授权、账本、快照或发布包。本机`logs/`与`/home/cen/sf-runs/`不随本次提交交付;缺少这些实际产物的clone不能独立复现冻结加载/物理资格。Git提交是源码版本,不是新的已验收技能发布。 +若要研究旧发布测试,先将归档解压到**临时目录**,按原布局搭配对应Git版本及运行依赖;不要解压覆盖当前工作区,也不要把归档中的预算/命令/授权当新许可。原始外部证据见[索引](evidence_index.md),Git clone本身不包含完整本机运行产物。 diff --git a/docs/contact_cycle_functional_flow_v2.md b/docs/contact_cycle_functional_flow_v2.md deleted file mode 100644 index 8e1dca2..0000000 --- a/docs/contact_cycle_functional_flow_v2.md +++ /dev/null @@ -1,131 +0,0 @@ -# Go2 FL 功能流程 v2:实验前固定判据与准备记录 - -## 最新结论(详细实际结果另列) - -用户批准后已完成新物理运行:**解析单周期及连续3周期连同监督检查通过**;冻结u256单周期通过,三周期物理完成但GPU归属监督失败,原campaign失败不改写。实际36000共享物理调用、0优化,没有重试。实际命令、阶段结果、图/GIF和未解决的监督问题见[运行结果](contact_cycle_functional_flow_v2_result.md)。 - -## 运行前结论(以下准备/提案为当时记录,不是当前待授权状态) - -当时尚未完成新物理验证,尤其没有连续3周期通过证据;准备阶段新增物理调用=0、优化更新=0。不使用RootXY u64、不训练、不开展整机/实机/sim2real。 - -历史u256单周期可以复核为功能通过;历史严格P1双方仍是首周期卸载阶段漂移失败,不能事后改为通过或延长其轨迹。最近RootXY训练仍是81更新后基础设施中断,和本轮功能进展分开。 - -## 1. 新实验前固定的简单判据 - -固定文件:`configs/contact_cycle/functional_flow_v2.json`,SHA256 `16c064228b30f36bbd420b7c2290602bacae6601cac2cec5deb16440f7600625`。功能阈值**逐值复用**旧`simulation_functional_v1.json`,不是看新实验结果调门槛。 - -| 阶段 | 本轮功能判据 | -|---|---| -| 承重 | 承重末0.5s,真实法向力>2N的采样比例≥80%,平均Fn≥0.5W | -| 卸载 | 卸载末0.1s平均Fn / 前述承重窗口平均Fn≤0.8,即至少下降20%;不要求归零 | -| 抬腿/摆动 | 摆动段gap≥10mm且Fn≤2N的比例≥80%,连续满足≥0.1s | -| 三维摆动 | 保持50mm抬高+10mm拱高,命令XY为25/20mm;实际有向XY进度每轴≥命令50%(约12.5/10mm) | -| 落地/重新承重 | 重新承重末0.2s,接触比例≥80%、平均Fn≥0.5W;该窗口平均3D落点误差≤50mm | -| 连续动作 | 先完整9s单周期,再独立完整27s三周期;每周期都通过,不用平均成绩抵消失败 | -| 安全 | 全程有限;gap≥−2mm;根部高度误差≤100mm、tilt≤0.6rad;关节超界≤0.01rad,归一化力矩/速度≤1.00001;有界辅助保持原值,竖直guide严格为0 | - -W为仿真有效系统重量,当前约52.86N(质量约5.388kg),不是仅3kg载荷的重量。上述0.01rad是已有数值容差,不是扩大命令/执行器硬限制。 - -- 根部XY的30mm、旧P1接缝漂移20mm、额外落点/滑移精度只记录,不作为本轮功能门槛;依旧记录最大值和超限事实。保留碰撞、失控、高度、倾斜、关节、执行器、数值与辅助保护。 -- 初次接触获取仍要求200ms内达到≥0.5W、gap≤0.5mm并持续10ms;不能以从未接触的飞行跳过承重。 -- **初版不修改原相位终止规则**:仍保留提前离地保护、抬腿90%后gap≥20mm/Fn≤2N、摆动逐tick gap≥10mm、重新承重80%后Fn≥0.5W。它们可能比窗口功能判据严格;若成为首个实际阻碍,应另记具体失败、前瞻登记最小相位修订后再申请相应运行,不能忽略失败继续。 -- 全程500Hz物理/保护,100Hz控制;每周期时长仍为3/1/0.6/1.4/0.8/2.2s。 - -## 2. 最小实现与诚实的控制归属 - -新增`legs/contact_cycle_sim/functional_flow_v2.py`:独立`FUNCTIONAL_V2`描述符,复用已验证P1整数时钟和固定世界锚点A→B→A→B解析命令,**不带P1精度门槛**。27s的13500个命令与旧P1逐tick一致;两次接缝位置/载荷命令连续。没有改变IK、Jacobian载荷补偿、46D观察、±0.05rad残差权限或装置。 - -拟复用原`EvaluationContactCycleEnv`无autoreset运行时及`RuntimeHooks`:接缝先检查端点,再仅推进命令元数据并刷新一次参考;禁止reset/pose写入、落地重锚、轨迹拼接,保留物理/IK warm-start/动作与延迟/接触状态/全局时钟。新描述符的CPU测试**不等于**新运行器已获Kit资格。 - -两种控制分别出结果: - -1. **解析参考**:请求残差与有效残差为0,不加载actor做控制。 -2. **解析参考+冻结u256确定性均值残差**:使用原候选`tanh(actor_mean)`,不是策略独立控制、不是随机采样、不是RootXY u64。记录请求残差、投影后残差、reference-used/next、最终关节目标。 - -原u256 SHA256仍是`c088bb3aecaca751867118858626fd508f7a3983303802d7524353f80802cf99`。本轮不要求学习优于解析,不从跨运行的历史数字推断学习增益。 - -**启动尚有明确未完成项**:原P1/P2 runner固定校验旧协议,不能直接载入新描述符;新功能受监督入口/新配置绑定尚未接入和Kit验证。不得把协议文件换个路径传给旧runner、改旧P1阈值,或借旧grant/通用监督器绕过其认证。下一步仅做这项必要适配,不追加RootXY监控建设。 - -## 3. 已有真实仿真证据的只读复核 - -产物根:`logs/contact_cycle/functional_flow_v2_prepare01/`(本机日志,不随源码自动分发)。所有新报告为离线审计,原轨迹与旧结果未写入。`trace_functional_passed`只表示保留张量满足功能窗口;`runtime_continuity_verified=false`始终明确保留,张量本身不能证明无状态写入。 - -| 来源 | 本次离线复核 | 局限 | -|---|---|---| -| 原P0 u256 `first_episodes.pt` | 1/1单周期功能通过,9s/4500采样,无记录失败,记录动作等于tanh(mean) | 原P0初始化额外tick计数不足,不能当新运行或连续证明 | -| rxy-04解析参考 `validation_analytic_zero_selected.pt` | 保留4/4单周期通过,记录有效残差为0 | 仅选定4条,不重审完整128环境;减字段轨迹缺原始failure_flags等,不能补写完整安全/退出证明 | -| rxy-04冻结u256 `validation_frozen_u256_selected.pt` | 保留4/4单周期通过 | 同上;没有新增受监督回放或有效成对比较 | -| 同一P0轨迹请求3周期审计 | 拒绝通过,退出码2,后两周期not_evaluated | 明确禁止把9s扩为27s | - -### P0 u256的阶段测量 - -下表Fn为**整相位均值**,功能窗口结果另列,避免混淆重新承重的上升过程。 - -| 阶段 | Fn均值N | gap范围mm | 本阶段足端净位移XYZ mm | -|---|---:|---|---| -| 承重 | 52.86 | −0.0046~0.00006 | 1.86 / 0.17 / 0.002 | -| 卸载 | 40.41 | −0.0238~−0.0021 | −3.65 / −1.64 / −0.021 | -| 抬腿 | 5.19 | −0.0241~47.76 | 58.61 / −5.44 / 47.78 | -| 摆动 | 0 | 47.44~57.99 | 19.46 / 20.16 / 1.00 | -| 落地 | 0.016 | −0.00094~48.80 | −2.36 / −1.17 / −48.80 | -| 重新承重 | 25.90 | −0.0013~0.0022 | −1.34 / 0.11 / 0.002 | - -- 承重末窗口1.000W,卸载末0.481W,重新承重末0.981W;摆动全1.4s满足离地,实际有向进度0.776/1.007,平均落点误差9.967mm。 -- 最大根XY误差**68.981mm,仍如实记为超过30mm**;旧P1的严格失败不因此更改。 -- 原P0终止为9s timeout,无physical_failure;最大执行器力矩/速度比0.19884,关节超界0,竖直guide0。无新视频;`p0_u256_trace_plot.png`/`analytic_selected_env0_trace_plot.png`是**历史测量曲线,不是渲染关键帧或新实验**。 -- 解析参考保留env0:承重末1.000W、卸载末0.676W、重新承重末0.996W;摆动gap43.38~53.76mm、Fn0,阶段净XY21.55/18.34mm,落点误差13.703mm、最大根XY80.483mm。这些跨运行数字不构成策略优势对照。 -- 历史P1首个失败仍分别为u256在3.658s、参考在3.540s,首周期卸载,原因`P1_root_horizontal`。其后动作没有采样,不能说明放宽此门槛后必然完成。 - -## 4. 可复现的当前命令(CPU,不启动Kit) - -仓库根目录: - -```sh -PY=/home/cen/miniconda3/envs/linker_sim_isaac/bin/python -CUDA_VISIBLE_DEVICES='' "$PY" scripts/audit_cycle_functional_flow.py \ - --trace logs/contact_cycle/frozen_replay_p0_01/run/first_episodes.pt \ - --controller-kind learned_policy --cycles 1 \ - --output /tmp/sf-functional-p0-audit-NEW.json -# --output必须尚不存在;--cycles 3应返回2,不会拼接/重复数据。 -CUDA_VISIBLE_DEVICES='' PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 "$PY" -m pytest -q \ - tests/test_contact_cycle_functional_flow_v2.py tests/test_contact_cycle_functional.py -``` - -本次实际跑过全接触周期CPU回归:**1329 passed、6 skipped,108.37s**,日志/XML见证据根。不是全仓/PhysX回归;新增功能文件自身24项,加旧功能检查18项共42项。另做compileall和diff whitespace检查。 - -原P0真实启动命令记录在`logs/contact_cycle/frozen_replay_p0_01/supervisor.json`: - -```sh -# 历史复现模板,不是本轮运行授权;只支持单周期,不支持连续3周期。 -/home/cen/IsaacLab/isaaclab.sh -p scripts/replay_cycle_sim_residual.py \ - --replay --controller learned --num-envs 1 --headless --device cuda:0 \ - --output /home/cen/sf-runs/functional-p0-NEW/run -# reference将--controller learned换成reference;实际运行需新批准与监督。 -``` - -新功能三周期启动命令**尚未交付为可执行/合格命令**,须在新预算批准后完成上述有限入口适配和配置准备,再将实际命令/绑定存证;不能提供一个旧runner实际拒绝的假命令。 - -冻结检查的差异也保留:旧`verify_delivery.py`本次在AGENT.md逐字节比较失败(已有用户指令修改,未被本次改动)。随后使用现有`replay.verify_bundle`允许的**唯一既有AGENT非运行时代码例外**,134个冻结快照、其余live输入、候选身份和CPU确定性加载通过,见`frozen_cpu_preflight/`。没有修改验证器或冻结manifest来凑通过。 - -## 5. 一次性新仿真预算请求(原提案保留,后经用户批准并已消费) - -只为功能流程,不是训练预算,也不沿用P1/P2/RootXY旧授权: - -| 项目 | 提议上限 | -|---|---| -| GPU/环境 | RTX5080,单环境,500Hz物理/100Hz控制;无并行作业 | -| 配置准备 | 最多1次Kit配置准备,600s含120s清理;禁止构造环境/物理步/优化 | -| 物理运行 | 最多4次独立启动,每次600s含120s清理 | -| 顺序 | 解析1周期 → u256 1周期 → 解析连续3周期 → u256连续3周期;两个单周期先全部通过再进入连续验证 | -| rollout | 4500+4500+13500+13500 = **36000共享物理调用**(本轮1环境) | -| 初始化/预热 | 每物理启动≤250次,共≤1000;必须在构造前安装计数,超限停止 | -| 总物理上限 | **37000共享调用**,不是预计实际用量;最大7200个控制步,优化步0 | -| 时限 | campaign同boot绝对总窗口≤3000s(50分钟,含上述准备/清理),不另加隐藏运行 | -| 存储 | 新隔离根,own产物≤1GiB;native正增长另监控并声明采样覆盖局限,不冒称硬配额 | -| 故障处置 | 首个功能/安全/运行失败即保留证据并停campaign;不重试、不恢复、不现场改阈值续跑;未执行预算不称作实测调用 | - -先完成必要独立功能入口适配、绑定与CPU校验,再在这份**新授权**内配置准备并父级核对后串行执行。若已有安装不能满足准备/运行保护,停止并报告,不把本预算变为监控建设或训练许可。 - -新的物理运行须交付每tick原始轨迹、初态/命令/动作归属、初始化和部分控制计数、两接缝reset/pose写入计数零增量及carry-state核对、终止首因、clean exit/清理证据;尽量在同预算内采关键帧。视频失败不掩盖物理失败,也不能据此加启动。 - -**首要未解决问题**:放宽非安全精度门槛后,真实单腿能否不间断地完成第二、第三周期,当前证据不足。最小下一步是上述无训练对照验证,不是继续RootXY优化。 diff --git a/docs/contact_cycle_functional_flow_v2_result.md b/docs/contact_cycle_functional_flow_v2_result.md deleted file mode 100644 index 4284477..0000000 --- a/docs/contact_cycle_functional_flow_v2_result.md +++ /dev/null @@ -1,140 +0,0 @@ -# Go2 FL 功能流程 v2:真实单周期与连续3周期结果 - -## 结论与必须保留的失败 - -**解析零残差控制已在现有辅助装置下完成单周期及无重置连续3周期,功能与监督检查均通过。** 本轮“完整流程能否连续完成”的主目标已有新的真实仿真证据,不需要追加训练。 - -冻结u256+解析参考也记录了完整单周期和连续3周期,全部物理功能窗口、保护与接缝检查通过;**但u256连续3周期这一行的监督器在GPU归属检查报错,故该行监督不通过,原`campaign-result.json.success=false`保持不变。** 不把worker完成、退出0或事后清理通过替代这一失败;没有重试。 - -| 控制方式 | 实际长度/物理采样 | 物理功能结果 | 监督结果 | 最大根XY漂移(仅记录) | -|---|---:|---|---|---:| -| 解析参考,残差严格0 | 9s / 4500 | 1周期通过 | 通过 | 80.49mm | -| 解析参考+冻结u256确定性残差 | 9s / 4500 | 1周期通过 | 通过 | 68.98mm | -| 解析参考,残差严格0 | 27s / 13500 | 连续3周期通过 | 通过 | 80.49mm | -| 解析参考+冻结u256确定性残差 | 27s / 13500 | 连续3周期物理完成 | **GPU归属检查失败** | 68.98mm | - -对象仍为Go2 FL单腿、浮动根、仿真真值、3kg载荷/测力载体、有界XY/转动guide及主动竖直辅助,**竖直guide为0**。这不是整机、无辅助平衡、独立鲁棒验收或实机/sim2real能力;`accepted_skill=false`继续保留。所有旧严格P1失败和RootXY候选判定不改写。 - -## 1. 固定判据、控制与最小改动 - -判据在实验前固定于`configs/contact_cycle/functional_flow_v2.json`,SHA256 `16c064228b30f36bbd420b7c2290602bacae6601cac2cec5deb16440f7600625`;详情见[准备与判据](contact_cycle_functional_flow_v2.md)。本轮没有改变阈值、相位时长、原相位终止、IK/Jacobian载荷补偿、残差上限、装置或权重。只在独立功能协议中不施加原P1的额外精度门槛。 - -- 解析:实际请求/有效残差全程为0,actor不参与控制;不能称为学会了动作。 -- u256:原冻结权重 SHA256 `c088bb3aecaca751867118858626fd508f7a3983303802d7524353f80802cf99`,46D观察,`tanh(actor_mean)`确定性残差;不是策略独立控制或RootXY u64。实际有效残差峰值0.047431rad,记录请求、投影后残差、reference-used/next、实际关节目标和执行力矩。 -- 四行记录的初态张量逐字段相同;不据此宣称未观测的PhysX缓存/数值调度完整相等。记录动作等于确定性均值输出,且合成目标与有效残差逐tick核对通过。 -- 解析本身已足以完成三周期。残差确实改变动作/轨迹,但本轮不要求、也不声称学习在独立验收中优于解析;尤其不能把监督失败的u256三周期当成完全合格对照。 - -新增实现仅为必要的独立入口/绑定/紧凑记录: - -| 文件 | 用途 | -|---|---| -| `scripts/evaluate_cycle_functional_flow.py` | 固定顺序的一次性功能campaign;受监督FD交接,首失败即停,无训练/重试 | -| `scripts/functional_flow_launch_v2.py` | 新用户授权及预算;复用已有启动、owned-PID、GPU/native监控原语,不复用旧grant/ledger | -| `legs/contact_cycle_sim/functional_flow_binding_v2.py` | 实际cfg、冻结候选及有限源/安装依赖绑定;准备不构造环境 | -| `tasks/manager_based/contact_cycle_sim/functional_flow_recording_v2.py` | 同步500Hz完整记录、分阶段功能窗口、接缝carry-state核对;不每tick复制整份RNG | -| `scripts/visualize_cycle_functional_flow.py` | 只读测量曲线、FK关键状态图和GIF;不启动Kit或执行控制 | - -`EvaluationContactCycleEnv`、原参考、原残差动作及原安全代码未原地修改。没有进行RootXY优化或任何训练。 - -## 2. 各周期实际测量 - -W为有效系统重量52.8597N。承重末窗口各周期约1.000W,接触比例均100%;下表“卸载剩余”是末0.1s载荷相对承重末0.5s窗口的比值,不是整相位均值。所有摆动阶段实际Fn=0,完整1.4s满足离地;XYZ净位移取摆动阶段首末采样。脚抬高阶段的额外水平运动不计入摆动进度冒充成功。 - -| 控制/周期 | 卸载剩余(要求≤0.8) | 摆动gap范围mm | 摆动净XY mm | 重新承重末/W | 平均落点误差mm | -|---|---:|---|---|---:|---:| -| 解析单周期 | 0.676 | 43.38~53.76 | +21.54 / +18.34 | 0.996 | 13.70 | -| u256单周期 | 0.481 | 47.44~57.99 | +19.46 / +20.16 | 0.981 | 9.97 | -| 解析连续第1周期 | 0.676 | 43.38~53.76 | +21.54 / +18.34 | 0.996 | 13.70 | -| 解析连续第2周期 | 0.210 | 43.46~53.88 | −24.31 / −19.82 | 0.988 | 13.79 | -| 解析连续第3周期 | 0.167 | 43.44~53.89 | +24.44 / +19.31 | 0.996 | 13.66 | -| u256连续第1周期† | 0.481 | 47.44~57.99 | +19.46 / +20.16 | 0.981 | 9.97 | -| u256连续第2周期† | 0.026 | 47.75~57.98 | −24.16 / −19.50 | 0.974 | 8.75 | -| u256连续第3周期† | 0.006 | 47.80~57.96 | +21.94 / +20.22 | 0.981 | 9.92 | - -† 物理轨迹与worker检查完成,监督行仍失败,不作全面通过声明。 - -完整48行“每运行×每周期×每相位”的法向力min/mean/max、gap范围、XYZ位移、根XY最大值:`/home/cen/sf-runs/ff-authority-01/actual-phase-summary.csv`;结构化全部门槛与结果见`actual-summary.json`及各`*-offline-audit.json`。全程真实接触力来自物理contact sensor,不使用auxiliary/guide力冒充足端载荷。 - -## 3. 连续性与安全 - -两种控制的三周期原始轨迹均为**同一环境的全局tick1..13500、固定世界A→B→A→B**;不复用单周期产物、不拼接、不重锚。 - -- 初始reset/pose写入计数分别22/14;这包括允许的构造与唯一初始reset。起始后全程计数不增加,不能误写为“初始化也没有reset”。 -- 在tick4500、9000端点先审计该周期,再推进元数据;各45项枚举状态/RNG指纹前后相同。物理姿态/速度、关节、动作/目标历史、传感/执行延迟、接触/离地/获取状态、调度器与全局时钟均承接。 -- IK参考只正常刷新一次:900→901、1800→1801;没有controller reset或物理步夹入接缝。 -- 全部四行终止均为`protocol_complete`,物理cause为空,无partial-control补齐。三周期各2700控制/13500采样,单周期各900/4500;没有timeout-autoreset后的轨迹。 -- 原数值、碰撞、关节/执行器、初次接触获取、提前离地、抬腿/摆动/重新承重期限、低高度/倾斜与辅助保护均启用。初次承重接触在约0.010s获取。 - -四条完整实测轨迹的安全量:最小gap为−0.0298mm,最大关节超界0,最大归一化执行器力矩/速度比0.2153,竖直guide0,最大倾斜0.05892rad,最大高度误差67.78mm;没有记录到数值异常、明显穿透、失控倒塌或执行器越界。根水平漂移80.49/68.98mm继续记录,不是本轮失败条件;不改变旧30mm严格失败。 - -## 4. 监督失败:不隐藏、不反推原因 - -原失败位于`ff-01/campaign-result.json`的`u256-3.supervisor_error`: - -```text -GPUOwnership.check -> RuntimeError: -GPU ownership lost or residual task/foreign GPU client -``` - -worker实际报告完成13500tick、所有物理/连续性检查通过、preclose同对象cfg身份通过,退出码0。监督行同时记录`success=false`;整个campaign返回失败,没有重跑。 - -父级事后只读核对:446个绑定文件重哈希通过,新运行源码与原u256未变;全部owned PID/birth身份消失,无计算或任务图形残留,原7个桌面图形客户端仍在。**这些事后事实不能反证失败瞬间没有外来GPU客户/残留,也不能证明一定只是退出时NVML滞后**。失败瞬间的NVML clients与owned PID集合没有落盘,具体瞬时原因当前证据不足。 - -动作阶段没有首个失败;首个未通过的是u256三周期运行末段的GPU归属门禁。若以后确需补齐该行监督资格,最小下一步是先为该失败保留当时clients/owned快照并CPU验证,不放宽归属检查,再另行批准一个全新有界回放。**当前解析目标已完成,不默认追加这一运行,更不训练。** - -## 5. 预算、退出及证据 - -| 项目 | 实际/边界 | -|---|---| -| 授权 | 用户本轮明确“批准”;新`ff-authority-01/approval.json`,不沿用旧P1/P2/RootXY身份 | -| 启动 | 1次配置准备+4次串行物理启动,全部消费,无重试/恢复 | -| 物理 | 36000完成共享`SimulationContext.step`调用,初始化额外调用0;37000为保留上限,不是实测,不将剩余额度用于新启动 | -| 时长 | campaign约815.045s(13.58分钟),上限3000s;含准备、四运行及清理 | -| GPU/训练 | RTX5080、1环境、500/100Hz;优化0,不开展实机/整机/sim2real | -| 退出/清理 | 五个子进程均等待退出0且owned清理通过;最后一行的GPU监督失败仍单独保留 | -| 存储 | 父级检查时run根409655699字节+authority约数MB,合计远低于1GiB;最终逐文件inventory另存 | -| Native | 监控正增长340282589字节,含与run根重叠的redirect内容,不能与own bytes重复相加;不是硬配额、覆盖不完整 | - -证据目录均为本机外部文件,不自动随源码提交: - -- `/home/cen/sf-runs/ff-01/`:新授权副本、预算预留、零物理准备/独立审查、源快照、四行`trace.pt`/`initial-state.pt`/`events-and-seams.json`/worker及supervisor结果、原campaign失败和native报告。 -- `/home/cen/sf-runs/ff-authority-01/`:新授权原件、实际命令、GPU初态、父级退出核对、独立离线审计、全量阶段CSV/JSON、图/GIF及最终inventory。 -- 准备绑定 SHA256 `f6a6edc91ba7113ff1fa5a8a8c78e10d0dfe2fd1397881abc4e0a34add8bc7b7`;inventory SHA256 `770f2d923777fcf4ed3a993b86347ee27d1cf49f3beef0b61c58fcb8114d2bd0`。它们是这次配置身份,不是可重用运行授权。 - -测试:启动前相关CPU **341passed**;结束后接触周期CPU **1341passed、6skipped(108.65s)**;compileall和diff whitespace检查。CPU测试不替代本次真实物理,也不改写监督失败;不是全仓全依赖或RootXY训练资格验证。 - -## 6. 启动与可视化复现 - -实际已执行的命令(**存证,不可重用旧grant/目录再次执行**): - -```sh -/usr/bin/python3.12 scripts/evaluate_cycle_functional_flow.py --campaign \ - --output /home/cen/sf-runs/ff-01 \ - --approval /home/cen/sf-runs/ff-authority-01/approval.json \ - --trusted-approval-sha256 1d46b9cb220594967c93cf6be271879686e309ccff891ca9bfcd241d31ac6b61 -``` - -启动固定控制顺序:零物理PREP → 解析单周期 → u256单周期 → 解析连续3周期 → u256连续3周期。新机器/新运行需要实际冻结资产、新预算、新root/approval、配置绑定与监督;脚本拒绝已有root,不支持自动重试。具体子进程命令/每槽时钟/初态/参考身份在各`reservation.json`留存。 - -无需Kit即可复核实际三周期或生成图: - -```sh -PY=/home/cen/miniconda3/envs/linker_sim_isaac/bin/python -CUDA_VISIBLE_DEVICES='' "$PY" scripts/audit_cycle_functional_flow.py \ - --trace /home/cen/sf-runs/ff-01/reference-3/trace.pt \ - --controller-kind analytic_reference --cycles 3 --output /tmp/sf-actual-reference3-NEW.json -CUDA_VISIBLE_DEVICES='' "$PY" scripts/visualize_cycle_functional_flow.py \ - --trace /home/cen/sf-runs/ff-01/reference-3/trace.pt \ - --label 'analytic zero residual | three continuous cycles' \ - --output /tmp/sf-actual-reference3-visuals-NEW --gif -``` - -`*-NEW`必须不存在。离线audit只检查张量,`runtime_continuity_verified=false`是其有意保留的作用域;运行期连续性另由原worker/hook/seam证据证明,不能靠离线输出把监督结果提升为通过。 - -可直接查看: - -- [解析三周期状态图](file:///home/cen/sf-runs/ff-authority-01/reference-3-visuals/measured_state_keyframes.png) / [GIF](file:///home/cen/sf-runs/ff-authority-01/reference-3-visuals/measured_state_animation.gif) / [测量曲线](file:///home/cen/sf-runs/ff-authority-01/reference-3-visuals/timeline.png) -- [u256单周期状态图](file:///home/cen/sf-runs/ff-authority-01/u256-1-visuals/measured_state_keyframes.png) -- [u256三周期状态图(监督失败已标注)](file:///home/cen/sf-runs/ff-authority-01/u256-3-visuals/measured_state_keyframes.png) / [GIF](file:///home/cen/sf-runs/ff-authority-01/u256-3-visuals/measured_state_animation.gif) - -图/GIF由**真实测得根姿态和关节角的FK+真实足位置/接触力**只读生成,已核对显示帧FK足端与测量一致;它们不是Kit摄像机截图或新物理运行,不把示意渲染冒称为原始仿真视频。完整500Hz原始轨迹未抽稀,仅显示动画采样10fps。 diff --git a/docs/contact_cycle_functional_followup_v3.md b/docs/contact_cycle_functional_followup_v3.md deleted file mode 100644 index 43200c1..0000000 --- a/docs/contact_cycle_functional_followup_v3.md +++ /dev/null @@ -1,98 +0,0 @@ -# 功能补验 v3:实验前监督诊断与固定有限命令矩阵(准备记录) - -**后续实际执行已完成且全部通过**:新u256连续3周期补验及六组成对矩阵物理/运行完整性全通过,175500共享物理调用、0训练/0重试;见[实际逐组结果](contact_cycle_functional_followup_v3_result.md)。用户同时授予[后续无需逐次请批的预算权限](execution_authority.md)。以下完整保留运行前诊断、计划、当时未运行状态和预算提案,不作为当前状态或可重用命令。 - -## 运行前交付/未完成(历史时点) - -- 旧`ff-01`原件298个文件重哈希全部一致;原campaign/u256三周期监督失败不变,旧严格漂移失败不变。 -- 已只读诊断、补充最小GPU失败观测、固定一次u256补验及6组成对矩阵,完成CPU回归。**本轮Kit启动0、物理调用0、训练0;没有生成新grant或复用旧grant。** -- 新授权尚未获批,新的配置绑定/物理运行/矩阵都未执行,不能把CPU mock、计划或历史u256轨迹当作补验通过。 - -## 1. 监督失败诊断:知道什么,不知道什么 - -源:`/home/cen/sf-runs/ff-01/u256-3/{worker-result.json,supervisor-result.json,stdout.log}`、原源快照、GPU初态/退出核对及native终态日志;全部输入hash见`logs/contact_cycle/functional_followup_v3_prepare01/previous-supervision-diagnosis.json`。 - -- 同一真实27s轨迹已完成13500采样/2700控制/两个接缝,worker物理/连续性/preclose身份通过并退出0;监督行仍失败。 -- 原栈位于**live** `GPUOwnership.check()`的客户集合归属分支:`compute-active`或`graphics-active-approved_desktop`非空(含禁止桌面compute)。不是显式NVML库漂移、NVML查询异常或桌面身份变化报错分支,也不是final-only残留分支。 -- 记录的owned PID/birth为`729465/27594951`、`729470/27594951`、`729475/27594955`、`729526/27595002`。worker最终CLOCK_BOOTTIME为276208.208381944,监督行结束为276211.857108627,差3.648727s。native记录了quick framework shutdown/exit;**native timestampNs时钟与BOOTTIME没有本轮校准,不混用作精确因果时序**。 -- 退出后owned身份消失、GPU无compute/任务graphics、原7个桌面graphics客户仍在。这不证明检查瞬间没有外来客户、PID身份变化或观测竞态。 -- 本轮另行只读查询当前GPU和`/proc`:没有compute客户,四个旧owned PID当前都不存在;accounting当前Disabled/Accounted Processes None,未启用或修改任何设置。这是当前状态,不能恢复或证明旧失败瞬间的情况;见`current-gpu-readonly.log`及`current-process-readonly.json`。 -- **未知**:失败瞬间两类NVML客户PID列表、active owned/PID-birth集合、检查准确时间。因此无法区分真实外来、owned身份重用/变化与NVML/proc退出观测竞态;不归因为某个“最可能原因”。 - -最小修改是`scripts/functional_gpu_watch_v3.py`:调用原`GPUOwnership.check`,**原决策、顺序、失败条件不变,异常原样重新抛出**。仅保留检查直接消费的NVML列表、owned discovery/known身份、时钟和最近16次检查;失败后的`/proc`单独标为after-check证据。每秒及所有失败/最终检查发布`gpu-observations.json`。没有容忍/重试失败检查、NVML宽限、删除归属门禁、整体关闭检查或终止无关进程。 - -CPU构造了“NVML仍返回已知PID而discover已无此PID”的条件来复现该拒绝分支;它**仍失败**。这只是可复现的逻辑机制,不证明旧现场就是该机制。外来compute/新graphics、桌面compute、PID重用、桌面身份变化、库漂移、NVML异常与诊断存储失败均继续fail closed。 - -## 2. 实验前固定命令与判据 - -新描述符:`configs/contact_cycle/functional_followup_v3.json`,SHA256 **`aaed45884eab9912db6c7bac1d82e2ab27784982c524a838b7886cdd763146f4`**。它不是运行许可。 - -基准功能合同仍为`functional_flow_v2.json`(SHA256 `16c064228b30f36bbd420b7c2290602bacae6601cac2cec5deb16440f7600625`)。承重/重新承重≥0.5W且接触≥80%,卸载下降≥20%,真实摆动离地gap≥10mm且Fn≤2N比例≥80%/连续≥0.1s,有向XY各≥命令50%,落点窗口误差≤50mm;原数值/关节/执行器/高度倾斜/相位期限/碰撞及辅助保护均不改,30mm根XY只记录。 - -阶段/装置/权重保持原样:单Go2 FL、浮动根、有界XY/转动guide与主动辅助、竖直guide0,仿真真值,500/100Hz、9s周期、50mm抬高+10mm拱高、固定世界A→B→A→B;无扰动、噪声、形态变化、训练或参数/阈值搜索。u256仍为`c088bb3aecaca751867118858626fd508f7a3983303802d7524353f80802cf99`,解析参考+冻结确定性均值残差,不是独立策略。 - -先仅执行一次原命令`(+25,+20)mm`的u256连续3周期补验。必须同时满足物理功能、运行连续性、完整产物/preclose身份、退出0、GPU归属/清理/监督结果,才允许进入下表。失败则停止,不重试、不在剩余预算改阈值再跑。 - -幅度定义为水平向量长度16/24mm;方向为21.80°、38.66°、53.13°,两轴均非零,以沿用原XY功能门槛。新端点均落在已验证命令的组件包络`0' -``` - -CPU证据根:`logs/contact_cycle/functional_followup_v3_prepare01/`,包含旧现场诊断/输入hash、冻结计划与新源hash、回归日志/XML、冻结原候选核对和最终inventory/source snapshot。本机logs不自动随源码分发。此CPU准备形成时新物理轨迹尚不存在、首失败物理阶段not_evaluated;后续真实执行已完整通过,结果另列,不把CPU准备本身改判为步骤2/3通过。 diff --git a/docs/contact_cycle_functional_followup_v3_result.md b/docs/contact_cycle_functional_followup_v3_result.md deleted file mode 100644 index 9b055c4..0000000 --- a/docs/contact_cycle_functional_followup_v3_result.md +++ /dev/null @@ -1,116 +0,0 @@ -# 功能补验 v3 实际结果:u256补验及6组成对连续3周期全部通过 - -## 结论与逐组表 - -**本次新u256原命令补验、六组命令的解析/u256对照均完成连续3周期;物理功能与运行完整性全部通过,原campaign success=true,监督器等待退出0。** 原ff-01失败不改写;本次没有失败、重试或训练。 - -表中“物理”是实际承重→卸载→离地三维移动→落地重新承重,逐周期符合原功能窗口;“完整性”还要求无重置连续性、preclose绑定、全部产物、GPU归属、正常退出及owned清理。 - -| 固定组 | dx/dy mm | 解析:物理 / 完整性 | u256:物理 / 完整性 | 初态配对 | -|---|---|---|---|---| -| x_bias 16mm | 14.855627 / 5.942251 | 通过 / 通过 | 通过 / 通过 | 通过 | -| x_bias 24mm | 22.283441 / 8.913376 | 通过 / 通过 | 通过 / 通过 | 通过 | -| baseline_direction 16mm | 12.493901 / 9.995121 | 通过 / 通过 | 通过 / 通过 | 通过 | -| baseline_direction 24mm | 18.740851 / 14.992681 | 通过 / 通过 | 通过 / 通过 | 通过 | -| y_bias 16mm | 9.600000 / 12.800000 | 通过 / 通过 | 通过 / 通过 | 通过 | -| y_bias 24mm | 14.400000 / 19.200000 | 通过 / 通过 | 通过 / 通过 | 通过 | - -进入矩阵前,原命令`(+25,+20)mm`的**新u256三周期也物理/监督完整通过**(13500采样/2700控制)。每行是同一环境内27s、A→B→A→B,不拼接单周期、不瞬移、不在落点重锚;不同组/控制在各自新进程中初始化。所有13条物理轨迹均`protocol_complete`,无partial-control补齐。 - -限定对象依旧是**有原辅助条件的浮动根Go2 FL单腿、仿真真值、单开发seed93501**,非整机、无辅助平衡、实机或sim2real。六组位于原组件命令包络的有限内插点,不等于全工作域、扰动鲁棒性或独立验收;`accepted_skill=false`保持。 - -## 1. 监督失败诊断 - -旧ff-01已确认拒绝来自live GPU客户集合不属于active owned/已批准桌面graphics的分支。原失败瞬间的客户/PID-birth集合未存,**真实外来、owned身份变化或退出观测竞态仍无法归因**;事后GPU干净不能推翻旧失败。 - -本次只增加原检查直接消费的NVML列表/owned discovery/known身份、时间和最近16次样本落盘,**原决策、顺序、异常均不变,不增加NVML宽限、不吞失败、不关闭检查**。本次14个Kit子进程全部监督通过,原GPU异常没有复现;这不等于证明或修复了旧故障的具体原因。旧298个留档文件在本次运行后重新核对全部不变。 - -原输入hash、确切分支与未知项:[运行前诊断/固定计划](contact_cycle_functional_followup_v3.md)。本次`gpu-observations.json`、每行GPU终态/进程身份及父级事后核对见证据根。 - -**首失败:本次无。** 原ff-01的首个未通过项仍为GPU归属监督门禁,不改判为物理失败或全面通过。 - -## 2. 功能测量与控制价值 - -合同`functional_flow_v2.json`原字节SHA256 `16c064228b30f36bbd420b7c2290602bacae6601cac2cec5deb16440f7600625`不变;矩阵计划SHA256 `aaed45884eab9912db6c7bac1d82e2ab27784982c524a838b7886cdd763146f4`在实验前固定,未事后筛选方向/幅度或提高精度。 - -以下仅统计六组矩阵,每种控制18个周期。W≈52.8597N;卸载为末0.1s相对承重末窗口的载荷比,重新承重为末窗口平均Fn/W。 - -| 真实测量/门槛 | 解析零残差 | 解析参考+冻结u256 | -|---|---:|---:| -| 完整运行 / 周期 | 6/6;18/18 | 6/6;18/18 | -| 承重/重新承重接触比例最低(≥80%) | 100% / 100% | 100% / 100% | -| 承重末平均载荷最低(≥0.5W) | 0.999988W | 1.000007W | -| 卸载剩余比例最高(≤0.8) | 0.67577 | 0.48135 | -| 摆动真实腾空比例/连续时长 | 100% / 1.4s | 100% / 1.4s | -| 摆动实际Fn | 全部0N | 全部0N | -| 摆动gap范围 | 43.46~54.26mm | 47.45~58.12mm | -| 有向XY每轴进度最低(≥50%) | 68.38% | 53.09% | -| 重新承重末平均载荷最低(≥0.5W) | 0.98820W | 0.97448W | -| 每周期平均落点误差范围(≤50mm) | 13.52~13.82mm | 8.75~9.68mm | -| 根XY最大值(仅诊断,非30mm门槛) | 80.49mm | 68.98mm | - -- 解析模式真实请求/有效残差为0,actor不参与控制;不能说学习从零学会了整套流程。 -- u256权重不变,SHA256 `c088bb3aecaca751867118858626fd508f7a3983303802d7524353f80802cf99`,确定性`tanh(actor_mean)`+原解析参考;实际有效残差峰值0.047431rad,非独立策略。 -- **u256没有提高该矩阵的功能通过率,解析本身已足够。** u256落点/根XY测量较小,但小X命令的进度余量更低(最差53.09%对68.38%);不据这些单seed描述性结果宣称必要性或统计优越。当前功能目标不需要追加训练/RootXY精度优化。 - -实际世界目标与预先固定的协议逐13500tick独立核对,最大绝对差0;没有改命令或删掉不利样本。全部13条轨迹/39周期的完整**234个相位**Fn min/mean/max、gap、XYZ净位移及漂移见`analysis/actual-phase-summary.csv`;每周期窗口、控制归属及全部布尔门槛见`analysis/actual-summary.json`和13份`*-audit.json`。 - -## 3. 初态、连续性与保护 - -- 每组解析在首rollout前保存初态;u256在其首rollout前精确核对该记录。六对初态文件hash一致,包含原初态张量、RNG/枚举carry-state、IK/action/refresh、观察、固定anchors与命令。没有失配后恢复/修复或比较失配行;仍不宣称完整PhysX内部缓存相等。 -- 全部13轨迹各为global tick1..13500,完整500Hz采样、100Hz控制;两次接缝各45项枚举状态指纹相同,IK各正常刷新一次。所有初始化后reset/pose写入无增量(初始化API计数22/14,不冒称初始化也没有reset)。 -- 原相位截止、初次接触获取、提前分离、碰撞/穿透、数值、关节/力矩/速度、根高度/倾斜、辅助/guide保护均保留。辅助条件/装置/重力/质量/时长/权重不变,无外扰、噪声或形态变化。 -- 所有13轨迹:归一化执行器比最高0.215740、关节超界0、最小gap−0.0298mm、最大高度误差67.806mm(门槛100mm)、最大倾斜0.057871rad(门槛0.6);竖直guide0,无数值异常/失控或执行器越界。根XY>30mm如实记录,原严格P1失败不被重评为通过。 - -## 4. 授权、预算与清理 - -用户本轮批准固定计划,并明确后续预算无需逐次请批;[持续授权边界](execution_authority.md)保留每次自主预设护栏、零训练、首失败停止和独立登记。本次没有取消任何已经固定的上限。 - -| 项目 | 实际 / 上限 | -|---|---| -| Kit启动 | 1配置准备+13串行物理;无重试/恢复 | -| 共享物理API调用 | attempted=completed=**175500**;初始化额外0;保留上限178750不混为实测 | -| 完整模拟 | 39周期,351s仿真时间,13×27s连续轨迹 | -| 总时长 | **3585.201s / 6540s**,约59.75分钟,含配置与清理 | -| 设备/优化 | RTX5080,1环境,优化/训练0 | -| own逻辑字节 | 父核对时run根1440699387+authority约数MB,合计低于2GiB;最终逐文件inventory另存 | -| native正增长 | 1105834619字节;与own含重叠,不可重复相加;非硬配额、覆盖不完整 | -| OS退出/进程 | 14子进程均等待退出0,监督器也由外层driver实际wait退出0;全部owned PID/birth消失 | -| GPU/无关进程 | 无compute/任务graphics残留,原7桌面graphics客户身份均保持不变;没有终止无关进程 | -| 身份 | 实际同对象cfg由每worker preclose核对;父退出后重哈希450个有限绑定文件、当前源及原u256通过,不以新建cfg冒称同对象检查 | - -原u256/134原快照的只读核对继续通过(沿用既有AGENT非运行时例外,不修改旧逐字节验证器/manifest或抹去旧AGENT失败)。启动前CPU1380passed/6skipped;运行结束后接触周期CPU回归再次**1380passed/6skipped(109.86s)**,日志/XML在authority根。本次真实Kit/物理与CPU资格明确区分,未宣称全仓全依赖资格。 - -## 5. 证据与复现命令 - -证据是本机文件,不自动随源码分发: - -- `/home/cen/sf-runs/ff-v3-01/`:新approval/预算保留、0物理准备与独立审查、原源快照、13条`trace.pt`/`initial-state.pt`/`initial-pair.json`/`events-and-seams.json`及每行worker/supervisor结果;`campaign-result.json.success=true`。 -- `/home/cen/sf-runs/ff-v3-authority-01/`:当前用户原指令、实际绝对入口命令、GPU初态、driver实际wait退出、`parent-postexit.json`、旧失败298文件未变证明、原冻结核对、完整离线`analysis/`、状态图/GIF与最终inventory/source snapshot。 -- 本次准备绑定SHA256 `043cc8776ecae4ef27449d98165e1c5e3d9b73dc00ee41cb387dc822fcfe3e6a`;numerical inventory SHA256 `770f2d923777fcf4ed3a993b86347ee27d1cf49f3beef0b61c58fcb8114d2bd0`。与旧inventory相同不代表复用旧配置绑定或授权。 - -实际命令(**存证,旧目录/grant不得再次执行**): - -```sh -REPO=/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory -/usr/bin/python3.12 "$REPO/scripts/evaluate_cycle_functional_flow.py" --campaign --followup-v3 \ - --output /home/cen/sf-runs/ff-v3-01 \ - --approval /home/cen/sf-runs/ff-v3-authority-01/approval.json \ - --trusted-approval-sha256 a8310a9706ac54be7e2c5b3b34fb29af46bf0a24e3481197807822f469f46d00 -``` - -仅重算已有结果,无Kit/物理/训练(输出必须不存在): - -```sh -CUDA_VISIBLE_DEVICES='' /home/cen/miniconda3/envs/linker_sim_isaac/bin/python \ - /home/cen/sf-runs/ff-v3-authority-01/analyze_actual.py \ - --root /home/cen/sf-runs/ff-v3-01 --output /tmp/sf-v3-analysis-NEW -``` - -离线`runtime_continuity_verified=false`是张量审计自身的有意限制,不能单独证明无状态写入;本次运行期证明来自原hooks、seam、绑定和监督终态,而非离线工具提升判定。新实际执行仍按持续授权自主设定新护栏/目录/登记,不复用本次grant,当前任务已完成,不自动扩大范围。 - -可视化为**实测根/关节的FK+实测足端/接触力**,不是Kit摄像机录像或新物理;完整500Hz轨迹未抽稀,只有显示采样10fps: - -- [新u256原命令三周期GIF](file:///home/cen/sf-runs/ff-v3-authority-01/nominal3-visuals/measured_state_animation.gif) -- [y_bias16mm解析状态图](file:///home/cen/sf-runs/ff-v3-authority-01/y-bias16-reference-visuals/measured_state_keyframes.png) / [GIF](file:///home/cen/sf-runs/ff-v3-authority-01/y-bias16-reference-visuals/measured_state_animation.gif) -- [同组u256状态图](file:///home/cen/sf-runs/ff-v3-authority-01/y-bias16-u256-visuals/measured_state_keyframes.png) / [GIF](file:///home/cen/sf-runs/ff-v3-authority-01/y-bias16-u256-visuals/measured_state_animation.gif) diff --git a/docs/contact_cycle_runtime.md b/docs/contact_cycle_runtime.md index 11ae88e..1817dff 100644 --- a/docs/contact_cycle_runtime.md +++ b/docs/contact_cycle_runtime.md @@ -1,112 +1,53 @@ -# 接口与运行约束:Go2 FL参考+残差 +# 运行与CPU回归:Go2 FL参考+残差 -## 当前0.4.1:真实GUI与headless分开 +当前实测基线为[0.4.2解析S1](contact_cycle_sim_performance_v042_result.md),公开生命周期与命令见[API](go2_fl_skill_v4_api.md)。本文件仅保留实现边界和测试入口,不重复历次运行过程。 -[0.4.1实际结果](contact_cycle_sim_gui_v041_result.md):公开`start(..., gui=True)`/CLI `--gui`贯穿approval、监督和认证worker,默认仍headless。独立包`/home/cen/sf-deliveries/go2_fl_contact_cycle_sim-0.4.1/`中`bash demo_gui.sh`真实解析S1开窗;原`demo.sh`和`verify_functional.sh`保留。当前源码GUI/headless S1各六周期原物理/完整性通过;活跃GUI提前关闭2040tick按预期中止,exit2不算完成。 +## 固定物理与动作合同 -GUI仅新camera/light/UI,原负载及控制/物理/辅助不变;完整后只render保留原场景(最多10分钟),关闭后才完成身份/wait/清理。真实截图和原始录像/原速剪辑在包demo,不是FK动画,Kit约2–3FPS、不保证墙钟1×实时。原0.4.0全部字节/校验保留;0.4.1未重验其完整矩阵/u256或GUI安全停止/超时/极早启动关闭,不继承新资格。所有旧严格失败/accepted_skill=false保持。 - ---- - -## 历史可调用仿真功能版0.4.0 - -新公开接口/CLI已真实仿真验证,见[API及生命周期](go2_fl_skill_v4_api.md)与[本轮实际结果](contact_cycle_sim_skill_v4_result.md)。`scripts/go2_fl_skill.py`提供start/query/queue/request_stop/wait及authorize/validate/run/status/queue/stop;复用原解析IK/接触/保护,u256仍为可选冻结残差,不是通用adapter。 - -独立包`/home/cen/sf-deliveries/go2_fl_contact_cycle_sim-0.4.0/`:`bash demo.sh`真实启动S1;`bash verify_functional.sh`串行真实验证20周期/三序列/u256/停止拒绝。每次新有限登记/新grant/新目录;本轮当前登记已消费,不重跑旧例名。 - -原名义解析20周期、S1/S2/S3各6周期、u256 S1、边界停止/非法拒绝、独立目录公开CLI和外部实时Python队列均通过。目标为固定世界A去/回成对,命令仅A边界生效,不累积或测量重锚。保持原辅助/真值/单seed限制;30mm根XY只诊断,历史accepted_skill=false/严格失败不改写。下列v2/v3及冻结v1约束作为复用/历史继续保留,不取代当前API说明。 - ---- - -## 本轮独立功能版本(先于下列冻结v1合同阅读) - -当前优先级已由RootXY精度优化改为完整功能流程。新判据与预算见[功能流程v2](contact_cycle_functional_flow_v2.md),配置`configs/contact_cycle/functional_flow_v2.json`;原v1/严格P1/P2/RootXY配置和失败结果不变。30mm根XY在新功能版本中只记录,旧严格验收仍按原门槛判失败。 - -新增`legs/contact_cycle_sim/functional_flow_v2.py`只准备独立协议,复用整数时钟/固定A-B-A-B命令;原相位终止和全部安全保护初版不动。本轮复用无autoreset的`EvaluationContactCycleEnv`,两次接缝禁止reset、pose写入、测量落点重锚及拼接。分别报告零残差解析控制与解析参考+原冻结u256确定性残差。 - -`scripts/audit_cycle_functional_flow.py`是CPU只读审计,输出`trace_functional_passed`,**不授予运行许可、不证明运行期连续性**;全局时钟重启、失败标记及不足3周期均不能通过。实际受监督入口现为`scripts/evaluate_cycle_functional_flow.py`,新绑定在`functional_flow_binding_v2.py`,同步完整记录/接缝核对在`functional_flow_recording_v2.py`。它们使用独立用户批准,不通过旧P1/P2/RootXY授权绕过门禁。 - -本轮新授权已执行且消费:解析单周期及连续3周期连同监督检查通过,u256单周期通过;u256三周期物理完成但监督器GPU归属检查失败,**原campaign失败保持**。实际36000物理调用/初始化额外0/优化0,无重试;参见[完整结果与启动命令](contact_cycle_functional_flow_v2_result.md)。该次运行后未重试,不追加RootXY试训。 - -用户新批准的[功能补验v3已实际全部通过](contact_cycle_functional_followup_v3_result.md):同入口`--followup-v3`、新协议/绑定及原检查决策不变的GPU观测;新0物理准备后,先u256原命令3周期完整通过,再六组解析/u256成对3周期全通过,6对初态一致。175500共享调用、39周期、3585.201s、0训练/0重试;GPU/退出清理正常,旧失败仍保留、未查明具体原因。源码/权重/功能阈值/辅助不变,双方功能通过率6/6,不声称学习必要或全域鲁棒。用户另授[持续预算权限](execution_authority.md),后续自主预设护栏并新绑定/独立登记,不再逐次请批、不复用旧grant。原计划与CPU准备为[历史记录](contact_cycle_functional_followup_v3.md)。 - -## 原冻结v1契约(历史与复用边界保持) - -- 任务:`SkillFactory-Go2FL-ContactCycleSim-v1`。 -- 特征:`contact-cycle-sim-truth-residual-46-v1`;46D、float32、有限值,不能载入旧32D策略。 -- 名义9秒周期:承重3s、卸载1s、抬腿0.6s、摆动1.4s、落地0.8s、重新承重2.2s。 -- 500Hz物理/失败检查,100Hz控制。默认位移`[0.025,0.02,0]`m,净空0.05m+0.01m拱高。 -- 浮动根、3kg合成载荷/传感载体、真实接触/六维测力;当前有效系统质量约5.388kg,W指有效系统重量,不仅是3kg载荷重量。保留有界横向/转动辅助,竖直guide力必须为0。不是固定根,也不是无辅助平衡。 -- 当前使用仿真真值,名义任务不接受旧课程采样器、stand-only、扰动或传感/执行器随机化的静默混入。 - -## 观察与动作 - -| 观察索引 | 含义 | -|---|---| -| 0–31 | 原传感/命令32D,包括上一步完整归一化关节动作 | -| 32–34 | root相对命令挂载点的位置误差,世界系m | -| 35–37 | root相对命令的线速度误差,世界系m/s | -| 38 / 39 | 真实地面法向力Fn(N)/真实足端gap(m) | -| 40–42 | 下一控制步的归一化参考动作 | -| 43–45 | 上一控制步夹紧后的请求残差,不是投影后的实际残差 | - -参考由足端目标、阻尼IK和Jacobian载荷补偿生成,仅在reset或控制边界推进,不能因读取观察而推进。3维残差请求先夹到±1,每关节对应±0.05rad;合成目标再投影到原关节范围,投影只能缩小实际残差。 - -必须分别记录`reference_used_normalized`、`reference_next_normalized`、`residual_request_normalized`、`effective_residual_rad`和实际关节目标。PPO概率针对采样残差latent,不针对合成后的绝对关节动作。随机策略与确定性均值策略要明确区分。 - -checkpoint为`skillfactory.contact-cycle-sim-residual-ppo-checkpoint.v1`。原参考/零初始化actor成功不算学习;本轮已训练u256身份见[当前进度](current_status.md)。原task objective之外保留root位置/速度和残差成本,具体尺度以绑定配置为准,不能为了新实验原地改旧配置。 - -## 不可绕过的门禁 - -- 接触获取:200ms内达到至少0.5W并持续10ms、gap≤0.5mm;失败必须终止。 -- 离地检测:on=1mm、off=0.5mm、dwell=10ms;保持真实起始阶段和首次失败来源。 -- timeout bootstrap用reset前的终端观察;真实失败bootstrap为0;禁止跨reset串接回合。 -- 有限性、关节/力矩/速度约束、辅助力边界及物理失败检查保持启用。非有限动作必须在污染动作历史前拒绝。 -- 使用SI单位;项目对外四元数约定xyzw,与后端不同约定要显式转换。力/力矩坐标系与作用点必须明确,统一经唯一COM外力合成入口,不能重复叠加r×F或把辅助力冒充足端接触力。 -- 功能门槛是开发阶段形成的判据,不是独立验收;不得删失败、放宽门槛或用autoreset后的轨迹补成功。 +- 浮动根Go2 FL单腿,3kg合成负载/传感载体;有效系统约5.388kg,W指系统重量,不只负载重量。有界XY/转动辅助,竖直guide必须为0;使用仿真真值,不是无辅助平衡。 +- 物理/失败检查500Hz,控制100Hz;名义9秒周期:承重3s、卸载1s、抬腿0.6s、摆动1.4s、落地0.8s、重新承重2.2s。 +- 默认位移`[0.025,0.02,0]`m,净空0.05m+0.01m拱高。当前功能版本根XY30mm仅诊断,历史严格P1/RootXY仍按30mm判失败。 +- 46D float32有限值观察,不能加载旧32D策略。索引0–31为原传感/命令;32–34根位置误差,35–37根速度误差;38接触Fn、39足端gap;40–42下一步归一化参考;43–45上一步夹紧请求残差。 +- 原IK/载荷补偿参考只在reset或控制边界推进,不因读取观察推进。三维请求夹到±1,对应每关节±0.05rad,再投影至关节范围;投影不能扩大实际残差。 +- 分别记录reference_used/next、residual_request、effective_residual与实际目标;PPO概率针对采样latent,不针对合成关节目标。解析是零残差,u256是冻结确定性残差**加同一解析参考**。 +- 接触获取200ms内达到≥0.5W持续10ms且gap≤0.5mm;离地on/off为1/0.5mm、dwell10ms。原有限性、关节/力矩/速度、辅助及失控保护保持。 +- SI单位;对外四元数xyzw,与后端显式转换。力/力矩坐标系和作用点明确,唯一COM外力合成入口,不重复叠加r×F或把辅助力当接触力。 +- 无周期reset、pose写入、重锚、轨迹拼接/抽稀。失败保留首个来源及部分轨迹;timeout用reset前终端观察bootstrap,真实失败为0。 ## 实现入口 -| 用途 | 路径(仓库根目录相对路径) | +| 用途 | 仓库路径 | |---|---| -| 参考、模型、PPO、预算协议 | `source/SkillFactory/SkillFactory/legs/contact_cycle_sim/` | -| 仿真环境、动作、记录 | `source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle_sim/` | -| 任务/功能/训练配置 | `configs/contact_cycle/simulation_residual_v1.json`、`simulation_functional_v1.json`、`sim_training_v1.json` | -| 训练器(不是回放器) | `scripts/train_cycle_sim_residual.py` | -| 非优化接口/物理探针 | `scripts/verify_cycle_sim_residual.py`、`verify_cycle_sim_learning_runtime.py` | -| 功能审计 / Kit监督 | `scripts/audit_contact_cycle_functional.py` / `scripts/supervise_sim.py` | +| 公开Python/CLI | `scripts/go2_fl_skill.py`,`scripts/examples/go2_fl_skill_v4.py` | +| 命令/配对/邮箱/绑定 | `source/SkillFactory/SkillFactory/legs/contact_cycle_sim/skill_*v4.py` | +| 环境、逐步安全/记录/GUI/性能 | `source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle_sim/` | +| 配置 | `configs/contact_cycle/`;资产规格`configs/legs/` | +| 冻结只读加载/回放 | `legs/contact_cycle_sim/replay.py`、`scripts/replay_cycle_sim_residual.py` | +| 只读功能审计 | `scripts/audit_cycle_functional_flow.py`、`audit_contact_cycle_functional.py` | +| 监督/归属/监控 | `scripts/skill_launch_v4.py`及继承的functional/rootxy监督工具;[监控合同](contact_cycle_native_monitor_v3.md) | -旧`train_contact_cycle.py`仍属于32D路径;不要用于46D候选。已实现冻结回放`scripts/replay_cycle_sim_residual.py`,P1/P2准备与评估为`prepare_cycle_sim_binding.py`/`evaluate_cycle_sim_residual.py`。RootXY独立入口`train_cycle_sim_rootxy_v2.py`,同46D观察但独立task/checkpoint身份;仅XY奖励尺度变化,详见[配方](contact_cycle_rootxy_v2_plan.md)。新任务不得借用旧grant或用不可选取u64替换冻结u256。 +旧32D训练、46D训练、RootXY入口均保留为实现/冻结输入,但不作为当前任务自动执行。u64不可替代原u256。 -## 安全运行 +## CPU测试 -仓库根目录下执行。只读复核已有训练,不启动Kit: - -```sh -python3 logs/contact_cycle/sim_residual_training_v1/verify_delivery.py -``` - -本机CPU测试解释器:`/home/cen/miniconda3/envs/linker_sim_isaac/bin/python`(Python3.11/Torch2.7);不要用缺Torch的系统Python跑学习测试。用以下文件映射跳过顶层Kit任务注册,**仅供CPU测试,不可用于运行绑定**: +在仓库根执行,无GPU/Kit/训练: ```sh CUDA_VISIBLE_DEVICES='' PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \ - /home/cen/miniconda3/envs/linker_sim_isaac/bin/python - <<'PY' -import importlib.util, sys -from pathlib import Path -root = Path.cwd() -spec = importlib.util.spec_from_file_location( - 'SkillFactory', root / 'source/SkillFactory/SkillFactory/__init__.py', - submodule_search_locations=[str(root / 'source/SkillFactory/SkillFactory')]) -sys.modules['SkillFactory'] = importlib.util.module_from_spec(spec) -sys.path.insert(0, str(root / 'scripts')) -import pytest -targets = [str(p) for p in sorted((root / 'tests').glob('test_contact_cycle*.py'))] -raise SystemExit(pytest.main(['-q', *targets])) -PY + /home/cen/miniconda3/envs/linker_sim_isaac/bin/python scripts/test_cpu.py + +# 单项定位;不改变默认测试集/断言 +CUDA_VISIBLE_DEVICES='' PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \ + /home/cen/miniconda3/envs/linker_sim_isaac/bin/python scripts/test_cpu.py \ + tests/test_contact_cycle_live_cadence_v042.py + +/usr/bin/python3.12 scripts/go2_fl_skill.py validate +CUDA_VISIBLE_DEVICES='' /home/cen/miniconda3/envs/linker_sim_isaac/bin/python \ + scripts/go2_fl_skill.py validate --verify-frozen ``` -上面只跑接触周期主线。全仓旧发布/ABI测试要求Python3.12+Torch2.10.0;任务注册另需pxr/Isaac运行依赖,不应在此3.11/Torch2.7环境期待全套通过,也不能放宽冻结包版本检查来凑通过。不少CPU回归读取本机冻结快照/安装文件;缺少时失败或显式skip不等于新机器获得资格。Isaac运行使用固定`/home/cen/IsaacLab`、`/home/cen/isaacsim-6.0.1`及RTX5080,不把CPU测试版本当实际Kit依赖版本。 +`test_cpu.py`仅在测试进程映射SkillFactory包以跳过顶层Kit任务注册,运行保留的`tests/`;**不可用于运行绑定**。默认关闭外部pytest插件和物理集成opt-in;被skip的PhysX测试不是物理通过。旧发布/旧32D分支测试见[归档](README.md#历史资料),冻结manifest/运行绑定所需测试仍在原路径。 -默认测试中跳过的PhysX包装不算已执行物理验证。不要运行根目录`pytest`,它可能收集`logs/`中的归档测试;不要在根目录执行`uv sync`或修改外部Isaac Lab/Unitree资源。 +当前CPU环境为Python3.11/Torch2.7;真实运行是固定`/home/cen/IsaacLab`、`/home/cen/isaacsim-6.0.1`及RTX5080,不混为同一依赖资格。部分测试只读本机冻结快照或安装源,缺失/skip不能证明新机器已具备资格。`pyproject.toml`将默认收集范围限制为`tests/`,避免扫描`logs/`、sealed包或暂存目录;直接运行pytest仍须具备相应包/依赖。 -当前RootXY和P1/P2必须使用各自认证受监督入口,不得用通用`supervise_sim.py`替代授权/绑定/归属检查。监督器使用`/usr/bin/python3.12`,真实worker在认证FD交接后加载AppLauncher。不得覆盖原证据、杀无关进程或把工具attention当作卡死。采用同一boot绝对`CLOCK_BOOTTIME`截止、rollout预扣、成功后提交;中断不退款,旧grant/目录不复用。配置准备不等于批准运行。详情见[启动合同](contact_cycle_rootxy_v2_launch.md)和[评估监控](contact_cycle_native_monitor_v3.md)。 +不得在根目录`uv sync`或修改外部IsaacLab/Unitree资源来凑测试通过。CPU测试不调用Kit;真实新运行另按[执行边界](execution_authority.md)登记、绑定、监督与清理。通用`supervise_sim.py`不能替代当前认证入口。 diff --git a/docs/contact_cycle_sim_gui_v041_result.md b/docs/contact_cycle_sim_gui_v041_result.md deleted file mode 100644 index c18e71e..0000000 --- a/docs/contact_cycle_sim_gui_v041_result.md +++ /dev/null @@ -1,45 +0,0 @@ -# 0.4.1真实GUI交付结果(2026-10-16) - -**物理资格与GUI资格分别通过,范围仅本轮当前源码解析S1。** 原0.4.0不变;不是严格accepted_skill、精度优化、训练或整机/实机资格。 - -| 当前源码真实测试 | 物理/完整性 | GUI/退出 | 原判定 | -|---|---|---|---| -| `gui-complete11`,解析S1 | 6周期/27000tick,5接缝,逐周期原功能门槛及完整绑定通过 | 可见Kit、原载荷/足端/地面、实时HUD;最终保留约5秒后真实WM_DELETE;carry/计数不变、wait0、GPU清理 | success=true | -| `headless-S1`,解析S1 | 6周期/27000tick、原功能门槛及完整绑定通过;70个轨迹张量与GUI逐位相同(仅这两次同seed实测) | 无窗口;wait0及清理通过 | success=true | -| `gui-abort01`,运行中提前关窗 | 2040tick部分轨迹、0完整周期;无物理失败标志,无额外初始化步 | 原因`gui_window_closed_before_completion`;wait2、窗口/owned/GPU消失 | success=false,符合中止测试预期;不提升为完成 | - - -## 实证与原件 - -交付根`/home/cen/sf-deliveries/go2_fl_contact_cycle_sim-0.4.1`;全部原始运行根`/home/cen/sf-runs/skill-gui-v041-*`,审计/范围根`/home/cen/sf-runs/simskill-gui-v041-authority-01`。实际由独立包公开CLI/demo_gui.sh启动,记录binding.root来自该包,项目源不从开发仓库加载。GUI11/无窗口/中止父重哈希分别464/457/464个有限绑定文件,无失配;全部2143原保护文件无变化。 - -- 真实截图和35秒原速跳切剪辑见包`demo/`;原始240秒桌面视频及剪辑时间段保留。截图/录像不是FK重建,运行GUI不读取这些影像。录制前仅外部缩放自有X11窗口,物理/机器人位姿未改动。 -- GUI实际控制、载荷、接触/保护均原实现:500Hz物理、100Hz控制、render_interval20。实际墙钟GUI约2–3FPS,不保证1×实时,录像12FPS只是采样。当前两次完整GUI/headless轨迹70张量全部逐位相同;PREP有效cfg删除唯一视觉`sim.visualizer_cfgs`字段后完全一致。 -- 原解析S1指标:根XY最大80.4934mm(仅诊断)、高度误差51.2482mm、倾角0.0552400rad、最小gap -0.0297930mm、执行器比0.214642、关节超界0、竖直guide 0。所有6周期原功能窗口及固定世界目标逐tick核对通过。**不以这些结果改写旧30mm严格失败。** -- 初始化API reset/pose为22/14,rollout无增量、初始化物理调用0。完整运行27000调用;保留最终场景时只render,枚举carry及hook计数不变。不是隐藏PhysX完整状态快照。 -- GUI11外部观察器在已WM_DELETE、已取得两张最终保留图后,对刚销毁的同一X11窗口执行xprop而报错;原异常未抹去。原worker/监督success=true、调用方实际wait0,补充独立检查证实窗口/PID消失、严格GPU清理通过。该补件不覆盖失败worker判定,见`gui11-observer-supplement.json`。 - -## 全部尝试,不删除或翻案 - -| 尝试 | 原状态/原因 | 实际物理调用 | -|---|---|---:| -| 01、02 | PREP缺viewport/UI模块;改为GUI PREP/RUN有限显式启用/导入 | 0 | -| 03、04 | PREP退出间GPU观测/进程发现竞态;原判失败,确切最终收据SHA handoff修复,不放松GPU决策 | 0 | -| 05 | 未知graphics PID导致原严格检查拒绝,未豁免,原7桌面名单未扩展 | 0 | -| 06 | GUI经验已有Replicator而PREP未显式载入,可选模块可用性失配 | 0 | -| 07、08 | 构造相机晚加载两个renderer helper;第8次仅加诊断,cfg无差异,确切imports纳入PREP | 0 | -| 09 | 已有真实非headless App/KitVisualizer,但SDK未写遗留has_gui位;改查真实对象,不设置会改scene-query cfg的遗留位 | 0 | -| 10 | 6周期物理完成,退出前发现首个render延迟导入RTX utility,原完整性失败仍保留;确切依赖纳入PREP | 27000 | -| 11 | 当前源码真实GUI完整成功 | 27000 | -| headless-S1 | 当前源码无窗口完整成功 | 27000 | -| gui-abort01 | 真实提前关窗,按预期中止,原success=false | 2040 | - -所有旧失败的批准源码快照逐项与各自approval核对,无失配。显式PREP依赖不调用渲染/物理函数,不删来源检查;原GPUOwnership及observed wrapper决策源码与0.4.0相同。handoff后只有有界关闭,实际wait、owned清理及原strict final GPU检查仍强制。无NVML重试/宽限、未知客户端豁免或静默降级。 - -## 护栏与范围 - -本轮新范围开始2026-10-16 09:51:52 +08,12小时截止21:51:52;旧0.4.0授权此前已结束,未复用。每次新有限会话登记,父级额外跨会话汇总并串行执行,不把每会话上限当无限总预算。**21/24 Kit,354250/650000预留调用,83040实际调用(含失败10和预期中止),18个实际完成时钟周期中只有12个为合格完整周期;优化0。** 不退失败扣款、不使用剩余预算追加仿真。最终存储/耗时与压缩包SHA见外部authority的task-complete.json(压缩后生成,不自包含于包内)。 - -当前CPU回归1514passed/6skipped;独立源码复核无问题,CPU不授予GUI/物理资格。只做解析S1 GUI、headlessS1和活跃窗口中止;0.4.0已验完整矩阵不自动升级为0.4.1资格,旧权重不变但u256仍需当前源四条解析前置。 - -未实测:AppLauncher返回前极早关窗、GUI公开安全停止、10分钟自动超时、0.4.1 u256/GUI、其余GUI命令/20周期、多seed/全域/无辅助/整机/实机/sim2real。native采样监控覆盖有缺口,不是硬配额。目录/压缩包/校验分版;0.4.0 archive SHA256仍`c2ce36fee1109c785aa7edc5aca48c96f56d82b0102a15def1f2af4e08c4226c`。 diff --git a/docs/contact_cycle_sim_performance_v042_result.md b/docs/contact_cycle_sim_performance_v042_result.md index 0eff87f..50afe4e 100644 --- a/docs/contact_cycle_sim_performance_v042_result.md +++ b/docs/contact_cycle_sim_performance_v042_result.md @@ -50,6 +50,8 @@ Whole-device active-loop sampling: GPUutil mean**39.74%**, power**133.43W**, SMc ## Artifacts / accounting +Cleanup note: one-shot helpers, intermediate reviews/observations and repeated CPU receipts formerly at this root are now archived under their original member paths; see [cleanup inventory and recovery](README.md#历史资料). Final receipts, comparisons, physical audits, raw runs, approved snapshots and sealed deliveries remain in place. The original accounting below describes the completed task, not a new qualification of the cleaned workspace. + Root `performance_v042/`: original six attempts,41-input approved source snapshots, original receipts/traces, profiles/GPUCSV, genuine GUI PNG/video, audits, review findings/resolutions, CPUlogs/XML and `performance-result.json`. No large raw logs are presented as substitutes for compact evidence. Task totals before packaging: **11/12Kit,73500/120000reserved calls,67500actual calls,0optimizersteps**,57owned process identities checked/none alive; source41 qualifies12cycles, prior three successful one-cycle benchmarks add3cycles. Protected4427historical files rehashed unchanged in postexit checks. Final inventory/protected/process checks and delivery sealing remain separate receipts; elapsed/storage final accounting must be read from task-complete.json. Delivery is `performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/` with adjacent tar.gz/sha256; actual source41bytes equal the recorded staging qualification, without claiming another GPU run at the relocated delivery path. diff --git a/docs/current_status.md b/docs/current_status.md index 87b0b7b..47e8f7c 100644 --- a/docs/current_status.md +++ b/docs/current_status.md @@ -1,139 +1,26 @@ -# 当前进度:0.4.2性能与限定S1结果 +# 当前状态:Go2 FL仿真功能版0.4.2 -[0.4.2结果与限制](contact_cycle_sim_performance_v042_result.md):当前仓库`performance_v042/`保存全部原件。GUI窗口截图33.98FPS,全段绘制提交35.30次/秒;原物理/控制/门槛不变,新GUI/headless各6周期27000tick、70张量及完整文件SHA与0.4.1相同。CPU1557passed/6skipped;11Kit/67500实际调用/73500预留、0训练,结束时57owned身份均不存活。独立只读复核无封装阻塞。 +阶段已完成;本次仅整理文件,没有新Kit运行、物理验证或训练。 -**不是1×实时**:GUI54模拟秒耗时764.863墙钟秒(0.07060×),headless294.679秒(0.18325×);GPU整卡活跃均值39.74%/133.43W,未人为加负载或设省电上限。新高频渲染下提前关闭/visualizer故障等仅CPU负例,原生注入未测;完整矩阵/u256未重验。headless首次独立postexit观察器GPU admission异常原因未知,原件保留;实际wait0后原规则第二次严格核验通过,不作回溯归因。独立包在`performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/`,最终传输校验/库存/完成状态以`performance_v042/{package-verification,final-inventory,task-complete}.json`为准。包内完整CPU也1557passed/6skipped;首次打包漏历史测试fixture导致39项失败及补齐记录保留,不改任何运行源/断言/门槛。accepted_skill=false与旧严格失败不变。 +## 已验证基线 ---- - -# 历史:0.4.1真实Kit GUI与无窗口S1验证完成 - -[0.4.1完整结果](contact_cycle_sim_gui_v041_result.md) / [接口](go2_fl_skill_v4_api.md)。独立包`/home/cen/sf-deliveries/go2_fl_contact_cycle_sim-0.4.1/`,一条命令`bash demo_gui.sh`打开真实解析S1窗口;0.4.0目录、archive、校验与证据原样保留。 - -- **物理资格**:当前源码解析GUI S1与headless S1均6连续周期/27000tick,原功能/安全/连续性/完整绑定通过;两条实际轨迹70张量逐位相同,删除唯一视觉visualizer_cfgs后有效cfg相同。初始化reset/pose22/14后无增量,无重置/重锚/物理参数改动。 -- **GUI资格**:真实桌面Kit窗口、原蓝色3kg负载/足端/地面、动态相位/命令/周期HUD;原场景最终保留约5秒且carry/计数相等,真实WM_DELETE后wait0、窗口/PID消失、strict GPU清理通过。真实截图、原始240秒录屏及35秒原速跳切剪辑在包`demo/`,不是FK重建/录像替代。GUI约2–3FPS,不保证墙钟1×实时。 -- **提前关闭**:真实运行中在2040tick中止,0完整周期,原因gui_window_closed_before_completion、exit2、原success=false;部分轨迹无物理失败标志,preclose/wait/清理通过,不提升为完成。 -- 全部13次尝试共21/24Kit、83040实际调用(含完整性失败10的27000)、354250预留,0训练;01..09零物理失败原件及10的来源绑定失败不改判。11外部观察器关窗后查询已销毁窗口的异常也保留,独立补件不覆盖原worker判定。464/457/464有限绑定文件、2143原保护文件核对无变化;CPU1514passed/6skipped。 -- 未重新验证0.4.1完整20周期/三序列/u256矩阵或u256 GUI;极早启动关窗、GUI安全停止及10分钟自动超时未实测。范围仍单seed/原辅助/真值/单腿,旧严格accepted_skill=false/RootXY失败不变。本轮停止仿真,不耗用余量扩训/优化/扩域。 - ---- - -## 历史:仿真功能版0.4.0已交付、真实独立复现通过 - -本轮必需目标全部完成:[完整结果](contact_cycle_sim_skill_v4_result.md) / [Python与CLI接口](go2_fl_skill_v4_api.md)。独立本地包:`/home/cen/sf-deliveries/go2_fl_contact_cycle_sim-0.4.0/`(相邻tar.gz及SHA256)。不是旧严格accepted_skill发布,历史`accepted_skill=false`不变。 - -| 本轮功能 | 实际结果 | -|---|---| -| 可调用接口/本地包 | Python start/query/queue/request_stop/wait+CLI,带源码/配置/资产/u256/依赖hash/原始证据 | -| 解析长运行 | 原名义20连续周期通过,90000tick/19接缝 | -| 同运行切换 | 固定S1/S2/S3各6连续周期全部通过;固定世界A,去/回成对,无落点重锚 | -| 可选u256 | 解析全部通过后,同S1六周期物理/监督通过 | -| 停止/拒绝 | tick5请求、周期1安全停止;非法ID拒绝,carry/RNG不变 | -| 独立目录复现 | 公开CLI真实S1通过;公开Python外部实时queue/query/stop另一次6周期通过 | -| 演示/退出清理 | 实测状态重建GIF(非Kit录像);所有preclose、wait退出0、owned/GPU清理通过 | - -新9运行/58周期/261000实际共享物理调用,18Kit,0训练/0物理失败重试。逐周期检查原物理门槛,49接缝carry相等且一次刷新;初始化后reset/pose计数无增量。解析最大根XY80.49mm仅诊断,旧30mm严格失败不改写。父核对原保护1217文件无变化,当前与独立包运行源hash一致。CPU1486passed/6skipped只作辅助资格。 - -范围仍为有原辅助条件的浮动根Go2 FL单腿/仿真真值/seed93501,不声称无辅助平衡、全域、多seed、整机、实机或sim2real。u256仅本轮S1六周期验证,不声称优于解析。当前任务提前完成,不追加训练/RootXY/扩域;所有实际命令和原始证据见结果与索引。 - ---- - -## 历史状态:u256补验与6组有限命令成对连续3周期全部通过(零训练) - -当前对象是Go2 FL仿真单腿,浮动根、有界XY/转动辅助、竖直guide为0;使用仿真真值和主动辅助。**既有解析基线已完成完整功能流程,accepted_skill仍为false**(不表示独立鲁棒验收、无辅助平衡或整机/实机能力)。不继续RootXY精度优化,不训练,不开展整机/实机/sim2real。 - -## 最新实际结果:ff-v3-01全部通过,限定仿真功能目标已完成 - -- 用户明确“批准,以后你的预算是无限的,不需要我批准”;后续自主预设运行护栏,不再逐次请批,详见[持续执行授权](execution_authority.md)。本次仍严格执行原固定上限,0训练/0重试,未扩大任务范围。 -- **新u256原命令连续3周期完整通过后,6组成对矩阵全部通过**:每组解析/u256各27s连续3周期,物理、无重置连续性、完整产物、preclose身份、GPU监督、退出0和清理均通过;6对初态在u256首rollout前精确相等。原campaign success=true,13条完整轨迹/39周期/234个相位,初始reset/pose计数22/14后无增量。 -- 实际attempted=completed共享物理调用**175500**,初始化额外0;原保留178750不当实测或下次余量。总3585.201s(59.75分钟)<6540s;own约1.45GB<2GiB,native观察增长1105834619字节(与own重叠、非硬配额/完整覆盖)。14个Kit子进程及监督器都实际wait退出0,owned身份全部消失,无compute/任务graphics残留,7个原桌面身份不变。 -- **解析本身已足够,u256未提高有限矩阵功能通过率(双方6/6)**。u256落点误差较小,但最差每轴进度53.09%对解析68.38%,不据单seed结果称必要或统计优越。保持权重/辅助/原门槛;根XY80.49/68.98mm仅诊断,不重写旧严格失败。 -- 独立CPU重读13条原轨迹,原功能窗口与固定新命令逐tick一致(目标差0);离线工具自身不证明运行期连续性。父复核450个绑定文件、原候选/134快照及旧ff-01的298文件均通过;事后接触周期CPU回归1380passed/6skipped(109.86s)。旧GPU失败仍因缺瞬时列表而无法具体归因,本次未复现;没有放松归属检查。 - -[逐组物理/完整性表、真实力/gap/位移、预算/命令及图GIF](contact_cycle_functional_followup_v3_result.md)。原始根`/home/cen/sf-runs/ff-v3-01/`与`ff-v3-authority-01/`;不是全工作域/鲁棒性或独立技能验收。当前任务完成,不自动追加RootXY、训练、扰动或整机/实机。 - -## 运行前准备:功能补验v3只读诊断与CPU资格(当时未获新运行预算) - -- 已读最新状态/索引/ff-01结果,原298个留档文件重哈希一致。旧失败可定位到live GPU客户集合不属active owned/桌面graphics的门禁;没有失败瞬间NVML/PID-birth集合,仍不能判定外来、身份变化或观测竞态。原失败不改写,不终止无关进程。 -- 只增加原GPU检查的精确观测/近期检查落盘,保留原决策、顺序和异常,不增加NVML宽限或放松归属。针对性CPU等价/负例及首失败停止测试通过;接触周期全套**1380passed、6skipped(109.33s)**,不代表Kit或新物理资格。 -- 已固定`functional_followup_v3.json`:先一次原命令u256连续3周期监督补验;成功后才做21.80°/38.66°/53.13°三个方向×16/24mm两个幅度,六组各解析/u256连续3周期;组件位于原命令包络内,但新方向尚未物理验证。u256首个rollout之前精确核对该组解析初态/命令/RNG/IK,不匹配则停,不发布优劣差值。 -- 新模式/新绑定和CPU检查已接入;原功能阈值/辅助/权重不变,0训练,30mm根XY仍只记录。拟申请1准备+13物理启动、178750共享物理调用、6540s/109分钟、own2GiB/RTX5080单环境;**尚待用户对这一新预算明确批准,未生成grant、未创建新运行目录、未启动Kit/物理**。首次任意失败停止,剩余not_run,不重试/扩训。 - -[诊断、固定矩阵逐组未运行表及复现命令](contact_cycle_functional_followup_v3.md);CPU证据`logs/contact_cycle/functional_followup_v3_prepare01/`。本轮新增物理0,新的物理结果/运行完整性均not_evaluated,不拿ff-01物理完成冒充补验。 - -## 最近真实仿真:ff-01(此前新授权已消费,不重试) - -- 先固定功能判据,再经用户明确“批准”,完成1次零物理配置准备+4次串行物理启动。解析和冻结u256各完成新的9s单周期;**解析零残差27s/13500tick连续3周期连同监督检查通过**。两次接缝45项枚举承接状态相同、参考各刷新一次,初始reset之后没有reset/pose写入增量,没有瞬移/重锚/拼接。 -- 解析3周期:承重末各约1W,卸载剩余0.676/0.210/0.167,摆动Fn0/gap约43.4~53.9mm、净XY分别+21.54/+18.34、−24.31/−19.82、+24.44/+19.31mm,重新承重末0.996/0.988/0.996W;终止`protocol_complete`。最大根XY80.49mm只记录。 -- 冻结u256+解析参考的27s也记录全部物理功能/安全/连续性检查通过,worker退出0;**监督器末段GPU归属检查失败,该行监督不通过,原campaign success=false不改写**。故障瞬间clients/PID集合未存,不能断言只是NVML退出滞后或没有外来客户。未重试;不把事后清理通过换成通过判定。解析本身已足以达成本轮目标,不声称学习必要或优于解析。 -- 实际36000完成共享物理调用,初始化额外调用0,优化0;37000为预留上限,不能作为新启动余量。campaign约815.045s(13.58分钟),own产物约数百MB,未超50分钟/1GiB。五个子进程均等待退出0且清理通过;父级确认全部owned身份消失、无计算/任务图形残留、原7个桌面图形客户端存活,446个绑定文件及原u256重哈希通过。native监控非硬配额、覆盖不完整。 -- 启动前相关CPU341passed;结束后接触周期**1341passed、6skipped(108.65s)**。全程物理记录无数值/明显穿透/失控/关节执行器越界;最大归一化执行器比0.2153,关节超界0、最小gap−0.0298mm、竖直guide0。不是全仓全依赖资格。 - -实际命令、每阶段力/gap/位移、终止与监督失败详见[本轮结果](contact_cycle_functional_flow_v2_result.md)。证据根`/home/cen/sf-runs/ff-01/`及`ff-authority-01/`;有实测状态FK关键图/GIF(非Kit摄像机视频)。原严格P1失败、旧权重/发布包和全部失败账本保持不变。当前不再启动新仿真。 - -## 运行前准备记录(历史,当时尚未批准/启动) - -- 先核对实际代码、P0原轨迹、P1严格失败及rxy-04最新保留结果,再固定独立`functional_flow_v2.json`:复用原功能窗口,承重/重新承重≥0.5W且接触比例≥80%、卸载至少下降20%、摆动gap≥10mm且Fn≤2N的比例≥80%/连续≥0.1s、有向XY各≥命令50%。原碰撞、数值、关节/执行器、辅助和失控保护保留;30mm水平漂移只记录。 -- 新`FunctionalFlowProtocol`复用原整数时钟和解析A→B→A→B命令,不带P1额外精度门槛。13500tick命令逐一与旧P1相同,未修改原参考/残差/权重/历史配置。原相位终止初版不动。 -- **只读复核历史真实仿真**:P0 u256单周期1/1通过,卸载末0.481W、摆动gap47.44~57.99mm/净XY19.46、20.16mm、重新承重末0.981W;最大根XY68.98mm如实记录。最近解析/冻结u256各保留4条单周期也满足功能窗口,减字段轨迹局限见详细报告;不宣称重审了完整128环境或有效成对学习增益。 -- 明确拒绝以一条9s轨迹报告3周期通过。**本轮新物理调用0、优化0;连续3周期仍未验证**,旧P1双方首周期卸载阶段严格漂移失败不改写。 -- 接触周期CPU回归**1329passed、6skipped(108.37s)**;不是全仓/Kit/新物理资格。冻结CPU preflight通过134个原快照及候选核验,沿用已有AGENT非运行时例外;旧`verify_delivery.py`对AGENT逐字节失败也保留,不修改验证器。 -- 新功能受监督入口/配置绑定尚未接入与Kit验证,不能把新描述符直接塞入旧P1/P2 runner。已准备一次性新预算提案:配置准备1次+物理启动最多4次,RTX5080/单环境、36000 rollout+1000初始化=37000共享调用、总50分钟、own产物1GiB、0训练,无重试/恢复;**尚待批准,不创建grant、不借用旧授权**。 - -判据、历史阶段数据、离线复现命令、未完成的启动适配及预算详见[功能流程v2](contact_cycle_functional_flow_v2.md)。以新的完整动作证据判断进展,不以此前81次更新或精度收益替代。 - -## 既有RootXY与严格验收历史(保留,不作为本轮推进方向) - -单周期功能通过不等于连续稳定、扰动鲁棒、整机控制或实机能力。RootXY-v2实际完成81次PPO更新,尚无合格新候选。 - -## 已确认的里程碑 - -| 阶段 | 已观察结果 | 不能据此宣称 | +| 版本 | 实测范围 | 不可外推 | |---|---|---| -| 原46D残差PPO | 256更新、1,048,576训练转移;u0/64/128/192/256各128/128名义9秒功能通过,按预设规则冻结u256 | 从零学会任务、独立验收;零残差参考原本可完成周期 | -| P0冻结回放 | u256首次9秒通过,900控制/4500采样tick;高度/摆动/落点19.385/7.492/9.967mm | 初始化额外tick已完整计数、连续周期通过 | -| P1连续周期 | 学习/参考分别在3.658/3.540s越过30mm水平根漂移门槛;均在首周期卸载阶段停止 | 已完成任何连续周期或接缝验证 | -| P2扰动矩阵 | p2-02退出0、20行执行、75,863实际共享物理调用、清理通过;完整XZ离线审计复现 | 有效对照:全部10组命令初态失配,原始8/10对5/10不能说明策略优势 | -| RootXY第一次RUN | rxy-03参考基线中因文件扫描竞态停止,0更新 | 已完成基线或最终物理计数 | -| RootXY第二次RUN | rxy-04实际完成81更新,u64开发验证128/128功能/安全通过;约43.80分钟后因另一扫描竞态停止 | 完整训练成功或存在合格候选 | +| 0.4.2当前源码 | 解析S1 GUI/headless各6周期、27000tick;70张量及完整轨迹文件与0.4.1相同 | 未重验nominal20/S2/S3/u256、新绘制节拍的原生故障注入 | +| 0.4.1历史 | 解析S1 GUI/headless各6周期;真实提前关窗2040tick按预期中止并清理 | 中止不是完整成功,旧GUI资格不自动继承到0.4.2 | +| 0.4.0历史 | 解析20周期、三条6周期切换、u256 S1、停止/非法拒绝、独立目录公开接口复现 | 不是当前源码完整矩阵、全命令域或全GUI资格 | -P2跨行状态捕获前一行末态足位置,导致anchors/q_ik不同。已恢复首个构造命令并在参考推理前检查配对;失配时致命停止且禁止发布比较差值。**修复只有CPU资格,尚无修复后的P2物理验证**。两次P2运行授权均耗尽,现代码不支持p2-03自动重试。 +[0.4.2完整结果](contact_cycle_sim_performance_v042_result.md):真实GUI截图33.98FPS,全段绘制提交35.30次/秒;GUI54模拟秒耗时764.863墙钟秒,RTF **0.07060×**;headless294.679秒,RTF **0.18325×**。GPU整卡均值39.74%/133.43W,含桌面客户端,不是进程独占指标或GPU100%。 -## 最近训练结果:rxy-04 +该阶段11Kit、67500实际物理调用、73500预留、0训练;结束57个owned身份均不存活。原始CPU验收1557passed/6skipped属于当时交付物,不是本次精简后测试集的数量。独立包及最终封装凭据见[证据索引](evidence_index.md)。 -任务`SkillFactory-Go2FL-ContactCycleSimRootXY-v2`,128环境、train92511/dev93511。正式优化前参考与冻结u256均通过原128/128功能基线。u64结果如下,单位mm,统计为128环境指标的均值: +## 必须保留的限制与失败 -| 验证对象 | 功能通过 | 全程XY>30mm | XY RMS | 每环境最大XY的均值 | -|---|---:|---:|---:|---:| -| 解析零残差 | 128/128 | 126/128 | 25.423 | 79.663 | -| 冻结u256 | 128/128 | 126/128 | 16.250 | 68.146 | -| 新u64 | 128/128 | 126/128 | 15.796 | 67.196 | +- `accepted_skill=false`。对象为浮动根Go2 FL单腿、3kg合成负载、仿真真值、有界XY/转动辅助,竖直guide为0;有限单seed功能通过不等于独立鲁棒验收、无辅助平衡、整机或实机能力。 +- 原46D残差PPO冻结u256完成256更新、名义9秒开发验证128/128通过,解析本身也能完成任务。v3有限矩阵双方6/6,没有功能通过率学习增益,不预设追加训练必要。 +- 严格P1双方均在首周期根XY超过30mm而失败;P2虽执行20行,但10组初态全部失配,不能支持学习策略优越性。P2修复只有CPU资格。 +- RootXY-v2完成81更新;u64功能128/128通过但126/128仍超过30mm,无合格候选,不可发布或恢复。扫描竞态最终修复尚未完成端到端训练验证。 +- ff-01 u256三周期物理完成但GPU监督失败;0.4.2首个独立headless退出观察器也异常,确切瞬时原因未知。后续通过不改写旧失败。 +- 旧Reach1.0.1/站立1.0.0不变。站立120秒漂移30.78mm超30mm仅获候选专属豁免,不能移用于本任务。 -u64平均XY RMS约改善2.8%,但超限数量未减少,`candidate_key(rows,64)=None`。这只是已查看的开发seed结果,不是独立holdout或显著性结论。u64仅留存诊断,不可发布、不可恢复训练。 - -- 81次完成更新对应331,776环境转移;第82次rollout已预扣但未提交,优化账本335,872转移,**不退还**。 -- 最近故障:native扫描先stat临时文件,原子重命名后`os.access=False`被误判为权限失败;不是物理失败。监督器停止worker,清理正常。 -- 最后物理快照26,468完成调用/26,467安全样本,写于scene-update之前;不是最终计数,也不能据此认定缺安全样本。worker最终报告缺失,最终实际总计未知。 -- 父级确认4个owned PID消失、无计算/任务图形残留、原7个桌面图形客户端存活;修改源码前623个绑定文件重哈希通过,仅证明静态文件,不替代缺失的worker最终同对象配置检查。 -- 输出167,275,915字节,监控native正增长85,068,025字节;监控不是硬配额。 - -## 修复状态与未完成项 - -1. 配置准备现使用精确RootXY128环境规范化和有限固定PhysX预导入;rxy-03/04配置准备均成功,早期rxy-01/02失败保留。 -2. 输出大小扫描以单次lstat读取元数据;失踪条目最多4次完整重扫,持续变化/权限错误仍停止。继承ledger整体guard也仅对FileNotFound有限重试,不改旧冻结训练器。 -3. native扫描对access=False只在同目录fd复查确认ENOENT时记录消失并保留末次字节作保守计数;不可读且仍存在的文件/其他错误继续失败。此最后修复仅CPU验证,**尚未完成端到端训练资格验证**。 -4. 最近修复专项280passed/1skip;rxy-04启动前组合790passed/1skip。CPU测试、配置准备、物理功能、候选验收须分开;独立适配器复审曾因服务限额中断,不声称已获完整独立批准。 -5. 当前所有旧准备绑定均不能授权修改后的源码。既有运行授权已消费;本次文档整理/源码提交不授权新Kit运行或训练。 - -## 预算与历史边界 - -- 原ContactCycle历史账本31,850,496环境转移保持不变;RootXY账本另列,不伪造合并后的实际执行数。 -- P1/P2历史预留254,500共享物理调用,不是实际调用总数。 -- 两次RootXY RUN各保留完整上限1,048,576优化+806,400验证环境转移、73,460共享调用;累计授权预留2,097,152+1,612,800转移、146,920共享调用。首RUN完成0更新,第二RUN完成81;预留与实测严格分开。 -- 原u256仍是冻结开发基线。旧32D失败、Reach1.0.1、受载站立1.0.0及候选专属漂移豁免均不改写。站立豁免不得用于本任务。 - -## 本次源码整理验证 - -接触周期全套+PartSpec契约+已有可视化/CLI改动:**1403passed、6skipped**(CPU,113.30s)。全仓首次试跑为1544passed/9skipped/28failed:本次README版本标题已修正;6项旧lifecycle fixture补齐新增constructor-export元数据边界后通过;其余21项涉及当前3.11/Torch2.7环境不满足旧冻结发布的3.12/Torch2.10约束,或缺少pxr任务注册依赖,未放宽生产检查。不能称全仓/Kit验证全绿。 - -归档逐文件hash和冻结计划原字节另行检查;本次不启动物理或训练。产物身份和失败报告见[证据索引](evidence_index.md);后续按[下一阶段](next_stage.md)推进。 +下一步见[下一阶段](next_stage.md)。历史逐次过程已归档,不再在当前状态追加旧准备/预算记录。 diff --git a/docs/evidence_index.md b/docs/evidence_index.md index c2aee53..4559f23 100644 --- a/docs/evidence_index.md +++ b/docs/evidence_index.md @@ -1,173 +1,53 @@ -# 下一阶段证据索引 +# 证据索引 -## 最新:0.4.2应用循环与高频GUI(限定解析S1) +相对路径以仓库根为准。以下均为历史已发生运行,不是可复用grant;本次整理不产生新的物理资格。 -[结果/测量边界](contact_cycle_sim_performance_v042_result.md)。仓库`performance_v042/`内:`performance-result.json`、`runs/display-S1-05/`(真实PNG/120s原速录屏、原worker/campaign/27000tick轨迹)、`runs/headless-S1-06/`、两份`*-physical-audit/actual-audit.json`、`display05-v041-GUI11-comparison.json`、`display-S1-05--headless-S1-06-comparison.json`、`final-source-evidence-review.md`、CPU1557passed/6skipped日志/XML及41输入来源快照。GUI截图33.98FPS/全段35.30提交每秒;GUI/headless RTF仅0.07060×/0.18325×。 +## 当前0.4.2 -首个baseline PREP失败、CPU收集失败、两次P1审查及修复、headless首个独立postexit观察失败(原因未知)和后续严格通过原件全部保留。GUI/无界面原campaign均成功,70张量/文件SHA与0.4.1一致,不继承完整矩阵或原生故障注入资格。旧0.4.0/0.4.1原件/严格失败不改写。独立包`performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/`及相邻tar.gz/sha256;最终`package-verification.json`、`final-inventory.json`、`task-complete.json`在该工作根。包内CPU完整1557passed/6skipped;首次漏测试fixture的39fail、补齐两次记录与最终成功原件均保留,历史fixture不是运行grant。 +[实测报告](contact_cycle_sim_performance_v042_result.md)。限定当前源码解析S1 GUI/headless,各27000tick;`accepted_skill=false`。 -## 最新:0.4.1真实Kit GUI(物理与GUI分别验证,零训练) - -[实际结果与限制](contact_cycle_sim_gui_v041_result.md) / [固定GUI计划](contact_cycle_sim_gui_v041_plan.md) / [API](go2_fl_skill_v4_api.md)。GUI S1/headless S1各6周期成功;提前关窗2040tick/exit2为预期中止,原success=false不提升。21Kit/83040实际调用;2143原件无变化,0.4.0分版保留。 - -| 路径 | 原始证据/用途 | +| 路径 | 用途 | |---|---| -| `/home/cen/sf-deliveries/go2_fl_contact_cycle_sim-0.4.1/`及相邻archive/sha256 | README、demo_gui.sh、原headless入口、源码/资产/冻结权重、校验;不捆绑已装Isaac运行时 | -| 包`demo/{support,lift,airborne,touchdown,reload,command-switch,final-retained}.png` | 真实X11 Kit窗口像素,非FK重建 | -| 包`demo/live-kit-window.mp4`、`live-kit-edited-original-speed.mp4`及`excerpt-provenance.json` | 原始240秒连续录像与35秒原速跳切;12FPS是采样,不是Kit渲染帧率 | -| `/home/cen/sf-runs/skill-gui-v041-{gui-complete11,headless-S1,gui-abort01}/S1/` | 原始approval/PREP绑定、500Hz trace、events/seams、worker/supervisor、strict GPU监督和wait退出 | -| `/home/cen/sf-runs/skill-gui-v041-gui-complete01`至`11`(第8为gui-diagnostic08) | 所有失败/修复现场原样保留,01..09零物理,10完整27000调用但来源绑定失败,不翻案 | -| `/home/cen/sf-runs/simskill-gui-v041-authority-01/acceptance.json` | 跨13次独立会话的整体预算/原判定/源对照汇总,不冒充单共享会话ledger | -| authority各`*-postexit.json`、`*-physical-audit/`、`abort-partial-audit.json` | 当前源码464/457/464有限绑定文件、owned/GPU/2143保护文件及独立原轨迹功能核对 | -| authority`gui-headless-trace-comparison.json` | 两次同seed当前源码的70轨迹张量实测逐位相等,不宣称其他seed必相等 | -| authority`gui11-observer-supplement.json`、原`gui-complete11/trial-result.json` | 真实WM_DELETE后xprop查已销毁自有窗口的原异常与补件;不覆写原worker/监督判定 | -| authority`cpu-acceptance.log/.xml`、`final-{source,frozen}-validation.json` | 1514passed/6skipped与原u256/134快照校验,仅CPU资格 | -| `/home/cen/sf-runs/simskill-gui-v041-*-review.md` | 独立源码/实际证据只读复核,不能代替真实运行 | -| 包`evidence/v041/` | 上述主要原件与失败源码快照;native缓存和无关桌面原图仅原路径本机留档 | +| `performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/`及相邻tar.gz/sha256 | 已封包独立交付,源码/资产/冻结权重/证据/真实图像录像,封包字节不变 | +| `performance_v042/{performance-result,package-verification,final-inventory,task-complete}.json` | 实测汇总、最终封包/库存/完成凭据;不是精简后工作区的新认证 | +| `performance_v042/runs/display-S1-05/`、`runs/headless-S1-06/` | 原始approval/worker/campaign、500Hz完整轨迹、GUI PNG/120秒原速录屏 | +| `performance_v042/{display05,headless06}-physical-audit/` | 原功能窗口及固定世界目标独立CPU复核 | +| `performance_v042/display05-v041-GUI11-comparison.json`、`display-S1-05--headless-S1-06-comparison.json` | GUI/headless/0.4.1三份70张量及文件SHA相同 | +| `performance_v042/baseline-profile02--{combined-profile04,sensor-profile03}-comparison.json` | 相同profiler/单周期的性能与轨迹对照 | +| `performance_v042/final-source-evidence-review.md` | 最终只读复核,不替代物理运行 | +| `performance_v042/cpu-full03.{log,xml}`、`delivery-cpu-final.{log,xml}` | 当时源码/封包1557passed/6skipped,不是本次精简测试集的计数 | +| `performance_v042/approved-sources/`、其他原来源快照、`staging/` | 已运行版本/来源绑定原件;没有改写为当前工作区 | ---- +原GUI/headless轨迹SHA256:`d0934245e50f3d7e174b24c109f167236c4693a023d1da01bbadfd71e41b4dba`。 +封包tar.gz SHA256:`16c855f6086a90aedc3f50eb510d44f64f802254505146a61c83402df7d99151`。 -## 历史:仿真功能版0.4.0完成并独立复现(零训练) +首次PREP失败、CPU失败、代码审查/修复及首次headless退出观察器异常全部保留在原运行目录或[整理归档](README.md#历史资料)中;根级旧过程文件按原相对路径查询`archives/next_stage_cleanup.json`,不再假设它们仍散落于工作根。首次退出观察失败原因未知,后续严格通过不回溯改判。 -[实际通过表/命令/限制](contact_cycle_sim_skill_v4_result.md) / [接口](go2_fl_skill_v4_api.md) / [运行前固定计划](contact_cycle_sim_skill_v4_plan.md)。解析20周期、S1/S2/S3各6周期、u256 S1、停止/拒绝、独立目录公开CLI及实时Python接口均物理/完整性通过;58周期/261000实际物理调用、18Kit、49接缝,无物理失败重试。`sim_functional_accepted=true`,历史`accepted_skill=false`不变。 +## 历史功能与失败证据 -| 路径 | 作用 | +| 证据根 | 结论/入口 | |---|---| -| `/home/cen/sf-deliveries/go2_fl_contact_cycle_sim-0.4.0/` | 独立可调用本地包,源码/配置/资产/u256/依赖及原始证据;README、demo.sh、verify_functional.sh、SHA256SUMS | -| 相邻`.tar.gz`及`.tar.gz.sha256` | 同版本本地压缩副本及文件校验,不在旧releases发布 | -| 包内`evidence/acceptance.json` | 9运行逐项物理/连续性/监督/父退出核对及真实指标;不升级旧严格验收 | -| 包内`demo/measured_state_animation.gif`及PNG | 独立S1实测root/joint FK+实测足端/接触力,**非Kit摄像机录像** | -| `/home/cen/sf-runs/skill-v4-01-{nominal20,S1,S2,S3,u256-S1,stop,invalid,independent-S1,independent-live}/` | 全新当次grant/准备/绑定、逐500Hz原trace/initial/events/seams、worker/supervisor结果及GPU/native监督原件 | -| `/home/cen/sf-runs/simskill-v4-authority-01/registration.json`、`skill-v4-ledger.json` | 本轮用户12小时独立登记、deadline、24Kit/650000调用/24GiB护栏;实际9次run均共享serial锁/ledger,不复用旧grant | -| authority根各`*-invocation.json`、`*-driver-exit.json`、`*-postexit.json` | 真实命令/调用方wait退出、456有限绑定文件及owned/GPU清理;独立live另见client JSON | -| authority根各`*-audit/{actual-audit.json,phase-summary.csv}` | 9条完整原轨迹/58周期/348相位离线物理核对及固定世界目标逐tick差0;离线自身不证明运行期连续性 | -| authority根`independent-live-client.json`、`live_public_demo.py` | 独立包公开Python实际启动/外部queue两命令/query/非法拒绝/stop/wait结果;不是预装固定演示替代 | -| authority根`independent-S1-invocation.json`及独立`prepare/binding.json` | cwd与所有运行源/资产来自独立目录的真实Kit复现,非开发目录冒充 | -| authority根`final-source-validation.json`、`independent-frozen-validation.json`、`acceptance.json` | 当前与独立包有限运行源一致、原134snapshot/u256核对,保护原件1217文件无变化 | -| authority根`final-cpu-tests.log/.xml` | CPU1486passed/6skipped,非Kit/物理资格替代 | -| `/home/cen/sf-runs/simskill-v4-{review,acceptance-review}.md` | 独立代码/实际证据审查;前置完整矩阵门禁问题已修复复审,物理结果以原件为准 | -| authority根`task-complete.json`、`final-inventory.json` | 最终任务收尾/实际护栏使用、产物hash;未用预算不触发后续运行 | +| `/home/cen/sf-deliveries/go2_fl_contact_cycle_sim-0.4.1/` | GUI/headless S1六周期通过;真实关窗2040tick预期中止,历史结果文档已归档 | +| `/home/cen/sf-runs/simskill-gui-v041-authority-01/` | `acceptance.json`、退出/轨迹比较/CPU凭据;01..11失败现场及原判定未改 | +| `/home/cen/sf-deliveries/go2_fl_contact_cycle_sim-0.4.0/` | [0.4.0完整矩阵与独立复现](contact_cycle_sim_skill_v4_result.md) | +| `/home/cen/sf-runs/simskill-v4-authority-01/` | 9运行/58周期/261000实际调用,`acceptance.json`与最终库存 | +| `/home/cen/sf-runs/ff-v3-01/`、`ff-v3-authority-01/` | 新u256三周期及六组成对矩阵全通过,39周期/175500调用,双方6/6;详细报告已归档 | +| `/home/cen/sf-runs/ff-01/`、`ff-authority-01/` | 解析三周期监督通过,u256三周期物理完成但GPU监督失败;确切瞬时原因未知 | +| `logs/contact_cycle/frozen_replay_p0_01/` | 原u256名义单周期P0回放 | +| `/home/cen/sf-runs/p1-03/` | `FINAL_P1_ROW{0,1}.md`:双方严格根XY失败 | +| `/home/cen/sf-runs/p2-01/`、`p2-02/` | 首次bootstrap失败;后次20行/75863调用,但10组初态全部失配,不支持策略优势 | +| `/home/cen/sf-runs/rxy-authority-{03,04}/`、`rxy-04/` | `FINAL_PILOT_ATTEMPT.md`、账本/进度/验证:0及81更新,u64不可选取;缺失最终报告保持缺失 | +| `logs/contact_cycle/`及`/home/cen/sf-runs/diag-cpu-01/FINAL_DIAGNOSIS.md` | 更早32D及诊断失败,不删除或重新解释 | +| `releases/go2_fl_reach-1.0.1/`、`go2_fl_loaded_stand-1.0.0/` | 原发布保持;站立`DEVIATIONS.md`及原证据只对该候选生效 | -本轮源码接口支持有限7命令/1..20周期;只声明真实表内验证范围。无u25620周期/任意切换、无辅助平衡、多seed、整机实机/sim2real结论。旧目录/原件保持原路径原字节。下面是历史索引,旧grant与当时“未运行”状态不是当前授权或新版本结果。 - ---- - -相对路径以仓库为根;`/home/cen/sf-runs/`是本机外部证据,**不随此源码提交**。原始轨迹、权重、授权、账本不移动/覆写;历史grant不是新运行许可。跨机器使用须另行携带并校验所需资产、快照、权重和报告。 - -## 最新实际结果:ff-v3-01全部通过(13条连续轨迹/39周期,0训练) - -[逐组物理/完整性、测量与命令](contact_cycle_functional_followup_v3_result.md)。**先新u256补验完整通过,再完成6组各解析/u256连续3周期;6对初态一致,物理/监督/退出/清理全部通过,原campaign success=true**。双方6/6,没有功能通过率学习增益;accepted_skill=false,不称全域/鲁棒/无辅助平衡。旧GPU失败未知原因仍保留。 - -| 本机证据(不随源码自动分发) | 用途/范围 | -|---|---| -| `/home/cen/sf-runs/ff-v3-01/campaign-result.json` | 原始最终通过判定、14行退出/清理/身份与实际175500共享物理调用;无失败/重试 | -| 同根`prepare/`、`preparation-reviewed.json` | 新0物理配置准备及父450有限文件复核,非复用旧绑定 | -| 同根`u256-nominal-3/` | 原命令新13500采样/2700控制/两个接缝,完整补验通过 | -| 同根六组`*-reference/`与`*-u256/` | 原trace/initial-state/initial-pair/events-and-seams及worker/supervisor结果,连续3周期不拼接 | -| 同根`gpu-observations.json` | 原检查直接消费的NVML/active/known集合及最近16次,原决策不放宽 | -| `/home/cen/sf-runs/ff-v3-authority-01/{approval.json,invocation.json,gpu-baseline.json}` | 用户新批准与持续预算指令、真实命令/硬件/桌面初态 | -| 同根`supervisor-exit.json`、`parent-postexit.json` | 监督器实际wait退出0,owned消失、GPU无残留、7桌面身份不变、450文件重哈希;同对象cfg是原worker preclose检查 | -| 同根`analysis/actual-summary.json`、13份`*-audit.json` | 原张量独立CPU功能复核及固定新命令逐tick目标差0,离线审计自身不证明运行期连续性 | -| 同根`analysis/actual-phase-summary.csv` | 真实234相位力/gap/XYZ净位移及漂移,不是计划轨迹 | -| 同根`final-contact-cycle-tests.log`/`.xml` | 事后接触周期CPU1380passed/6skipped(109.86s),不是全仓/依赖资格 | -| 同根`previous-failure-still-unchanged.json`、`final-frozen-verification.json` | 旧298文件不变;原候选/134快照通过,AGENT非运行时例外不抹去旧逐字节失败 | -| 同根`nominal3-visuals/`、`y-bias16-{reference,u256}-visuals/` | 实测状态FK关键图/GIF,非Kit摄像机录像;原500Hz数据不抽稀 | -| 同根`final-inventory.json`、`final-source-snapshot/` | 最终证据逐文件hash/大小及当前交付源码;inventory不递归包含自身 | - -用户后续不再逐次请批预算,见[持续授权边界](execution_authority.md);每次仍须自行固定护栏/新身份/独立登记,不复用已消费grant,不默认扩大任务或自动训练。 - -## 功能补验v3运行前只读诊断/CPU准备(历史阶段,新物理0) - -[监督诊断、固定小矩阵与预算/命令](contact_cycle_functional_followup_v3.md)。旧ff-01的298文件校验一致;只能确认live客户集合归属拒绝,失败瞬间PID集合缺失,真实外来/身份变化/观测竞态仍未知。旧失败不改判。 - -| 证据/源码 | 作用域 | -|---|---| -| `configs/contact_cycle/functional_followup_v3.json` | 先u256原命令3周期补验,再3方向×2幅度×2控制各3周期;固定新预算,不是grant;SHA256 `aaed45884eab9912db6c7bac1d82e2ab27784982c524a838b7886cdd763146f4` | -| `logs/contact_cycle/functional_followup_v3_prepare01/previous-supervision-diagnosis.json` | 只读旧终态/源快照/GPU初态复核、全部输入hash、已知分支及未知项;不倒推具体失败PID | -| 同根`frozen-plan-check.json` | stdlib检查的14槽顺序、具体命令/预算/当前源hash,execution_authorized=false | -| 同根`contact-cycle-tests.log`/`.xml` | CPU1380passed/6skipped;含GPU检查决策等价、退出/身份变化负例、初态门禁、首失败停止的mock,不是物理通过 | -| 同根`targeted-tests.log`/`.xml` | 早期专项138passed,保留中间资格记录 | -| 同根`frozen-verification.json`、`final-inventory.json`、`source_snapshot/` | 原冻结候选/134快照核对、CPU准备身份;不冒充新的Kit同对象绑定 | -| `scripts/functional_gpu_watch_v3.py` | 原GPU决策不变,仅精确记录已有查询/discover及近期样本,失败仍抛出;没有NVML宽限/重试 | - -本CPU准备形成时拟用`/home/cen/sf-runs/ff-v3-01/`和`ff-v3-authority-01/`尚不存在,步骤2/3均未运行、尚无新grant;后续实际完整通过见上方最新证据。不得复用旧授权/绑定;解析和学习物理功能与监督完整性继续分别报告。 - -## 最近真实仿真:功能流程v2单周期与连续3周期 - -[实际结果、阶段数据与启动命令](contact_cycle_functional_flow_v2_result.md)。**解析单周期及连续3周期监督通过;u256三周期物理完成但GPU监督失败,原campaign success=false保留**。实际36000共享物理调用、0优化,无重试;不是独立技能或实机验收。 - -| 证据根/产物 | 用途与限制 | -|---|---| -| `/home/cen/sf-runs/ff-01/` | 本轮新批准的零物理配置准备+4行真实物理;原始轨迹/动作/接缝/worker与supervisor结果、授权副本及源快照 | -| `ff-01/campaign-result.json` | **整体监督失败原件**;前三物理行监督通过,最后u256三周期GPU归属检查失败,不能用worker退出0改为通过 | -| `ff-01/reference-3/trace.pt`、`events-and-seams.json`、`supervisor-result.json` | 解析27s/13500tick、三个功能周期/两个无重置接缝及监督通过 | -| `ff-01/u256-3/` | 完整27s物理通过的原始记录,worker/preclose/退出0与GPU监督失败分别保留 | -| `/home/cen/sf-runs/ff-authority-01/approval.json`、`invocation.json` | 用户本轮“批准”对应的新授权和实际命令;已消费,不得复用 | -| `ff-authority-01/actual-summary.json`、`actual-phase-summary.csv` | 4运行/8周期/48相位的Fn、gap、XYZ、漂移、安全及终止汇总;不隐藏最后监督失败 | -| `ff-authority-01/parent-postexit.json` | 446绑定文件/原u256核对、owned身份消失、无计算/任务图形残留、原7桌面客户端存活;不能反证故障瞬间归属 | -| `ff-authority-01/*-offline-audit.json` | 四条实际全轨迹离线功能复核;自身不证明运行连续性或提升监督结果 | -| `ff-authority-01/reference-3-visuals/`、`u256-3-visuals/`等 | 实测状态FK关键图/GIF及曲线,非Kit摄像机视频;u256三周期图已标注监督失败 | -| `ff-authority-01/cpu-qualification.log`、`final-contact-cycle-tests.log` | 启动前相关341passed;结束后接触周期1341passed/6skipped,非全仓全依赖资格 | -| `ff-authority-01/final-inventory.json` | 本轮产物与源码hash/字节留档;不修改原campaign失败或旧权重/旧账本 | - -表内`ff-01/`及`ff-authority-01/`简写均以`/home/cen/sf-runs/`为前缀,是本机外部文件,不随源码自动分发。失败瞬间NVML clients/owned PID集合未存,具体原因证据不足;没有重试或追加训练。解析主功能目标已完成,当前不再启动仿真。 - -## 功能流程v2运行前准备证据(历史阶段,无新物理) - -当时准备结论/固定判据见[功能流程v2](contact_cycle_functional_flow_v2.md)。证据根`logs/contact_cycle/functional_flow_v2_prepare01/`为本机日志,不自动随源码提交;该准备阶段物理调用0、优化0,当时尚无连续3周期验证,不将历史严格失败改判。 - -| 新产物 | 含义/局限 | -|---|---| -| `configs/contact_cycle/functional_flow_v2.json` | 实验前固定的独立功能判据;SHA256 `16c064228b30f36bbd420b7c2290602bacae6601cac2cec5deb16440f7600625`;不是授权 | -| `historical_p0_audit.json` | 原P0真实u256单周期1/1满足功能窗口;新仿真0,最大根XY68.98mm保留 | -| `historical_analytic_selected_audit.json`、`historical_frozen_selected_audit.json` | 最近rxy-04双方各4条保留单周期满足窗口;减字段/选择子集,不是完整128环境安全重审或有效配对增益 | -| `historical_p0_not_three_cycles.json` | 同一9s轨迹要求3周期被拒绝,后两周期not_evaluated | -| `frozen_cpu_preflight/` | 134原快照+u256身份/CPU加载通过,沿用既有AGENT非运行时例外;无Kit/物理 | -| `strict_verify_delivery_failure.log` | 旧逐字节验证器本次在用户已改的AGENT.md失败,未改验证器或旧manifest | -| `contact_cycle_tests.log` / `.xml` | 1329passed、6skipped;仅CPU接触周期回归,不是全仓/新运行资格 | -| `p0_u256_trace_plot.png`、`analytic_selected_env0_trace_plot.png` | 历史实测力/间隙/位移/漂移曲线,不是新仿真视频或渲染关键帧 | -| `inventory.json`、`source_snapshot/` | 本次CPU/只读证据与新代码的hash留档,不是Kit运行绑定或grant | - -原P0/原P1/rxy-04轨迹、权重、grant、失败/账本保持原处原字节。新功能受监督入口仍需有限适配与新配置准备,不能把这些准备证据说成已获启动资格。 - -## 必须保护的身份 +## 冻结身份 | 对象 | 路径 / SHA256 | |---|---| -| 冻结v1候选 | `logs/contact_cycle/sim_residual_training_v1/prepared01/candidate_u0256.pt` | +| 原u256候选 | `logs/contact_cycle/sim_residual_training_v1/prepared01/candidate_u0256.pt` | | 候选SHA256 | `c088bb3aecaca751867118858626fd508f7a3983303802d7524353f80802cf99` | -| 原训练manifest SHA256 | `a70a226f176104414d2da295f08cce230f6b91ed3e2b78490c78f7ffce95ab01` | -| RootXY u64(不可选取) | `/home/cen/sf-runs/rxy-04/checkpoint_u0064.pt` | +| 原manifest SHA256 | `a70a226f176104414d2da295f08cce230f6b91ed3e2b78490c78f7ffce95ab01` | +| 不可选取u64 | `/home/cen/sf-runs/rxy-04/checkpoint_u0064.pt` | | u64 SHA256 | `960eacdba588fe27fc1751be3be5ac575d10e2ef742d2708d35a304209372aa8` | -原v1训练seed91501/dev93501,256更新;128/128名义开发功能通过。u256相对u0高度RMS27.325→19.623mm、摆动13.680→7.494mm、落点13.705→9.951mm;候选不是独立验收技能。原执行子代理训练后曾`fetch failed`,父级只读复核结果,不掩盖执行链路异常。 - -## 首先阅读的证据 - -| 证据根 | 入口与用途 | -|---|---| -| `logs/contact_cycle/sim_residual_training_v1/` | `parent_final_verification.json`、`verify_delivery.py`、`prepared01/`;原训练/冻结快照 | -| `logs/contact_cycle/frozen_replay_p0_01/` | `run/result.json`、`supervisor.json`;名义单周期复现 | -| `/home/cen/sf-runs/p1-03/` | `FINAL_P1_ROW0.md`、`FINAL_P1_ROW1.md`、`row1-paired-analysis.json`;双方严格漂移失败 | -| `/home/cen/sf-runs/p2-01/` | `FINAL_P2_ATTEMPT.md`;bootstrap失败、20行not_run、计数缺失、91,000预留保留 | -| `/home/cen/sf-runs/p2-02/` | `FINAL_P2_MATRIX.md`、`parent-offline-audit.json`、`audit_retained_matrix.py`;20条完整XZ复核、全部10组失配 | -| `/home/cen/sf-runs/rxy-authority-03/` | `FINAL_PILOT_ATTEMPT.md`;首次RUN扫描竞态、0更新、终态缺失 | -| `/home/cen/sf-runs/rxy-authority-04/` | `FINAL_PILOT_ATTEMPT.md`、`parent-postexit.json`、`validation-summary.json`、`parent-progress-check.json`;81更新与u64非候选结论 | -| `/home/cen/sf-runs/rxy-04/` | `progress.jsonl`、`budget.json`、`run-supervisor.json`、`physics-counts.json`、三个`validation_*.json`;原始部分训练证据 | - -rxy-authority目录包含本机授权生成脚本,仅可参考结构,不复制旧身份/时钟/PID作为新授权。rxy-01/02配置失败、rxy-03/04配置成功均保留在对应根中。RootXY失败后的counter快照不是最终实际总数;缺失报告保持缺失。 - -## 旧发布和更早失败 - -- Reach:`releases/go2_fl_reach-1.0.1/`。 -- 受载站立:`releases/go2_fl_loaded_stand-1.0.0/`;[候选专属豁免说明](loaded_stand_release_1_0_0.md)。原120秒30.78mm>30mm仍是原始失败,不能推广豁免。 -- 旧32D/更早评估失败:`logs/contact_cycle/`及`/home/cen/sf-runs/diag-cpu-01/FINAL_DIAGNOSIS.md`。不删除失败权重或历史账本。 -- 文档原文与旧细节见[历史资料](README.md#历史资料);归档不构成可执行计划。 - -只读检查原训练产物(需要本机实际证据文件): - -```sh -python3 logs/contact_cycle/sim_residual_training_v1/verify_delivery.py -``` - -任何新源码/文档改动都可能影响manifest;新准备必须重建,不能凭Git提交或历史文件重哈希自动获得运行资格。 +原u256 manifest及134文件`source_snapshot/`保留,既有AGENT非运行时例外不扩展。当前源码/文档变化不追认历史grant;真实新运行必须重新绑定。`logs/`、外部`sf-runs/`及生成资产不随源码自动分发,新机器须另带实际产物并校验。 diff --git a/docs/execution_authority.md b/docs/execution_authority.md index 0b7aaf8..c5e37e5 100644 --- a/docs/execution_authority.md +++ b/docs/execution_authority.md @@ -1,31 +1,18 @@ -# 当前执行与预算授权 +# 执行与授权边界 -## 最新本轮:0.4.1真实GUI(独立新范围,停止仿真) +用户已明确后续预算无需逐次请批;在**当前用户目标范围内**自主执行,不以等待预算批准阻塞。但不限总预算不等于取消保护、自动扩域或无界后台任务。 -用户要求保留0.4.0并加入实时GUI,依既有自主执行指令固定[GUI计划](contact_cycle_sim_gui_v041_plan.md)。新scope从2026-10-16 09:51:52 +08开始,12小时截止21:51:52;原0.4.0授权已结束,绝不复用/延长。证据根`/home/cen/sf-runs/simskill-gui-v041-authority-01/`,scope.json及protected-registration.json固定24Kit/650000调用/24GiB、零训练/零优化,保留所有失败、GPU/身份/安全/退出保护。 +## 每次真实运行仍需 -实际13个新试验分别创建独立有限会话(不是共用一个ledger),父级另做跨会话预算/串行核对:21Kit、354250预留调用、83040实际调用,含失败10的27000与预期中止2040;所有owned清理完成。GUI/headless各六周期原监督通过,提前关窗原判失败且按预期保留部分轨迹;详见[结果](contact_cycle_sim_gui_v041_result.md)。当前停止物理,不自动耗用剩余预算。未来用户显式运行demo/authorize是新的有界调用,不是后台持续任务。 +- 先固定范围、时间/启动次数/物理调用/存储/清理护栏,记录当前源码、配置、设备和身份。 +- 新有限会话、新grant、新绑定、新输出;不复用已消费授权、旧目录或失败作业,不自动重试/恢复。 +- RTX5080运行;保留物理安全、GPU归属、逐500Hz轨迹、截止、preclose、实际wait和owned清理。不得终止无关进程或放宽门槛。 +- 失败、预扣及实际调用分别保留;CPU准备不等于物理资格,git提交不等于技能验收。 ---- +`go2_fl_skill.py authorize`是调用方显式创建新的≤12小时有限会话,只登记而不启动Kit。各run仍新建approval并串行受监督执行;公开接口上限详见[API](go2_fl_skill_v4_api.md)。不把历史任务剩余预算当新运行授权。 -## 历史:12小时仿真功能包自主任务(已提前完成) +## 本次及已完成阶段 -用户明确授权本轮新代码/测试/串行RTX5080仿真/本地打包,要求最多12小时、零训练、不做RootXY/整机/实机/sim2real/通用adapter,同一问题最多两轮有依据修复复验,不改门槛/保护、不删失败证据。开始2026-10-15 17:38:07 +08,截止2026-10-16 05:38:07 +08;[固定计划](contact_cycle_sim_skill_v4_plan.md)。 +本次仅文件整理/CPU回归,不启动仿真或训练,不改变技术方向。上一阶段0.4.2已完成,当前不自动追加RootXY、训练、扰动/噪声、形态、整机/硬件、sim2real或通用adapter。 -本轮独立登记`/home/cen/sf-runs/simskill-v4-authority-01/registration.json`,运行共享serial锁与ledger;24Kit/650000物理调用/24GiB整体护栏,单run4GiB、原GPU归属/物理/截止/退出/清理保护全部保留,绝不复用旧grant。实际18Kit/261000调用/58周期,0训练/0物理失败重试;[已完成结果](contact_cycle_sim_skill_v4_result.md)。剩余预算不自动使用。 - -包的`authorize`是**未来调用方显式操作**,只生成全新≤12小时的有界本地会话登记,不启动仿真、不复用/延长本任务;真实运行仍各新grant/新配置绑定/新输出。不是无限后台执行授权,当前自主任务在交付后停止。 - ---- - -## 先前持续预算授权及v3已消费运行(历史保留) - -用户最新明确指令:**“批准,以后你的预算是无限的,不需要我批准”**。 - -- 后续不再逐次询问预算批准;在当前用户目标范围内,自主固定并记录每个campaign的时间、物理调用、启动次数、存储及退出护栏,再执行。 -- “不限总预算”不等于取消运行保护、放宽功能标准、无界后台任务或自动重复失败作业。仍需独立输出、当次源码/配置/设备身份和独立授权登记,不沿用消费过的grant。 -- 当前任务仍零训练,不扩大到整机、硬件、sim2real、外扰、噪声或形态变化。精度门槛不提高,30mm根XY仅诊断;所有原数值/关节/执行器/失控和GPU归属保护继续启用。 -- 先u256原命令连续3周期完整补验,再固定六组成对矩阵。首个功能、安全、配对或运行异常停止当次campaign,保留现场及剩余not_run;不因“预算无限”自动重试。 -- 当前`ff-v3-01`仍严格沿用用户已经批准的预先固定上限:1次零物理准备+13次物理启动,178750共享物理调用,6540s,own2GiB,单环境RTX5080,0优化。 - -本轮原指令、实际身份/预算及新授权保存在`/home/cen/sf-runs/ff-v3-authority-01/approval.json`。此文件表达持续授权范围,不是可重用运行grant,也不是物理验证结果。 +旧0.4.0、0.4.1、v3授权均已消费;原scope/approval/ledger、失败现场及实际预算见[证据索引](evidence_index.md)。当时的完整授权说明保存在[整理前归档](README.md#历史资料)中,不能作为可复用运行grant。 diff --git a/docs/go2_fl_skill_v4_api.md b/docs/go2_fl_skill_v4_api.md index 0fc0017..581a192 100644 --- a/docs/go2_fl_skill_v4_api.md +++ b/docs/go2_fl_skill_v4_api.md @@ -1,6 +1,12 @@ -# Go2 FL仿真功能接口:0.4.1实时GUI扩展(非严格accepted_skill) +# Go2 FL仿真功能接口:0.4.2(非严格accepted_skill) -## 0.4.1:实时窗口与headless明确分开 +## 当前0.4.2 + +公开命令/生命周期仍使用下述v4接口。高频GUI在每个已完成安全检查和同步证据的新物理状态后绘制,原render_interval20保留且不重复提交;headless不创建painter。实测解析S1 GUI/headless各六周期,旧0.4.1轨迹逐字节保持;完整矩阵/u256和新绘制节拍的原生故障注入未重验。真实GUI约34FPS但物理推进只有0.07060×,详见[实测结果](contact_cycle_sim_performance_v042_result.md)。独立包为`performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/`。 + +以下0.4.1段落解释继承的GUI契约及当时绘制频率,不代表0.4.2新增资格;当前状态以[交接摘要](current_status.md)为准。 + +## 继承的0.4.1契约:实时窗口与headless明确分开 公开Python增加严格布尔`gui=False`参数;CLI增加`--gui`。默认仍无窗口,控制/物理范围与0.4.0完全相同。示例:`start(NEW_OUTPUT, NEW_REGISTRATION, sequence='S1', controller='analytic', gui=True)`。`gui`进入精确spec、approval及认证FD,worker仅RUN使用`AppLauncher(visualizer='kit', headless=False)`;PREP始终headless/零环境/零物理。GUI依赖在PREP/RUN预导入并绑定,仅演示配置增加KitVisualizerCfg,不改物理参数、原render_interval20或控制步长。 diff --git a/docs/loaded_stand_release_1_0_0.md b/docs/loaded_stand_release_1_0_0.md deleted file mode 100644 index 4894140..0000000 --- a/docs/loaded_stand_release_1_0_0.md +++ /dev/null @@ -1,74 +0,0 @@ -# Go2 FL受载站立1.0.0:带明确偏差豁免的冻结发布 - -## 当前授权与范围 - -用户在获知120秒耐久漂移30.62/30.78mm超过30mm后明确表示: - -> 这个120秒耐久的飘逸超过的很小,可以视为通过 - -据此只对**当前1024候选、当前120秒耐久原始证据、环境6和19的foot_drift一项**作特例放行。不是将全局阈值改成31mm,不授权其它失败、其它权重或新的试验结果,不代表实机安全认证。 - -- 原始结果:环境6=0.030620924223339147m;环境19=0.03078258298377699m;原限值0.03m。 -- 原始`stability/result.json`及`publication_gate.json`仍为失败,旧summary保留。 -- 候选manifest:`7cb478a3b17aaf307d2d6e3c2b49cc25aa9af1ee9d118dd731b52f618c27e628`。 -- checkpoint:`f2197339dea3622ed92b82fdddff3400f2a82f3ca4d4fd3be6c72b45f1a77704`。 -- 原始holdout/full/exploratory/耐久trace均不重跑、不改写;继续独立CPU重算与发布完整性检查。 -- 豁免记录:`logs/loaded_stand/release_deviation_v1/operator_waiver.json`,SHA256 `3c8c03efcedc3c6eb2a0a8ca8fdae2629834473fb122b2ce5bbcc39161344d1e`。 - -本次使用`--waiver`与`--waiver-sha256`双显式参数。缺少批准、hash不符、额外失败、实测值/证据变化、不同候选均拒绝;不传豁免时原发布拒绝行为不变。软件只返回单独的豁免回执,不能将原始passed或门槛改成true。 - -正式包必须明确标记`accepted_with_deviation`、`acceptance_basis=operator_waiver`及`unwaived_required_physics_passed=false`,保留实际`foot_drift=false`;附带`DEVIATIONS.md`和原文豁免记录。其它物理/源码/日志/加载门槛保持不变。最终目录及归档必须在独立CPU解释器中验证。 - -## 发布状态 - -**已完成带偏差豁免的冻结发布,不是原始物理门槛全部通过。** - -- 只读目录:`releases/go2_fl_loaded_stand-1.0.0/`,30个manifest条目;177,670字节归档:`releases/go2_fl_loaded_stand-1.0.0.tar.gz`。 -- 最终manifest SHA256:`27e5e56908a0a8585a13913f27663b0dd3cdb7270614a0a05355334de4093e98`。 -- 归档SHA256:`ad59972e041f079cc2584923aaa15798857e5619488ba76b69835b558956bd76`。 -- 验收报告:`releases/go2_fl_loaded_stand-1.0.0.acceptance.json`;同时保留`staging-load`、`independent-load`、`archive-load`报告。候选、暂存、正式目录和解包均在隔离CPU解释器中通过独立加载;B1/16/64/256各100次确定性调用、损坏/接口错误拒绝。 -- 测试:256 passed、3个原可选Kit测试skipped;Ruff/diff通过,独立代码复审OK。增加无豁免仍拒绝、错误范围/hash/额外失败拒绝,以及审批读取/复制时替换再恢复的竞态回归。 -- 未重训或重跑物理,不改actor/normalization/接口/候选manifest。原始拒绝报告、原始trace、旧summary及旧Reach发布校验均不变;新增全局checksum条目而非覆盖旧条目。 -- `logs/loaded_stand/release_deviation_v1/final_verification.json`再次核对只读权限、核心字节、批准记录、归档全部manifest文件和旧证据;`raw_stability_passed=false`被明确保留。 - -## 使用 - -将归档解包,在Python3.12/Torch2.10.0环境中导入包内`frozen_standing.py`;不需要Isaac、项目代码、训练checkpoint或NumPy。部署方必须从实际rig配置获得task/support hash,不能用包内期望值替代对部署rig的核对。 - -```python -from frozen_standing import FrozenStanding -policy = FrozenStanding( - "go2_fl_loaded_stand-1.0.0", - manifest_sha256="27e5e56908a0a8585a13913f27663b0dd3cdb7270614a0a05355334de4093e98", - task_sha256=deployed_task_sha256, - support_sha256=deployed_support_manifest_sha256, - device="cpu", -) -action = policy.act(observation) # float32[B,3],100Hz -q_target = policy.position_targets(observation) # rad,驱动仍需限矩/限速 -``` - -### GUI演示与扰动力箭头 - -在本机桌面终端、仓库根目录运行(沿用已有派生资产): - -```bash -unset CONDA_PREFIX VIRTUAL_ENV -export PYTHONPATH="$PWD/source/SkillFactory" PYTHONUNBUFFERED=1 -OUT="logs/loaded_stand/view_$(date +%Y%m%d_%H%M%S)" -python3 scripts/supervise_sim.py \ - --log "$OUT.log" --report "${OUT}_process.json" -- \ - /home/cen/IsaacLab/isaaclab.sh -p scripts/evaluate_standing.py \ - --package releases/go2_fl_loaded_stand-1.0.0 \ - --manifest 27e5e56908a0a8585a13913f27663b0dd3cdb7270614a0a05355334de4093e98 \ - --mode full --controller policy --device cuda:0 --viz kit \ - --force-arrows --force-arrow-scale 0.03 --output "$OUT" -``` - -- `--force-arrows`是可选的纯显示开关,默认关闭。橙色箭头尾部位于底座实际施力点,方向为世界坐标系的**实际已施加扰动力**,长度=`|F|×0.03 m/N`(5N→15cm、10N→30cm)。它不是合力、导向力或安装口传感器反力。 -- 无力时隐藏;纯力矩场景也没有力箭头,不能据此判断没有扰动。箭头使用本地程序化圆柱/圆锥,无碰撞/刚体,无需下载箭头资产。 -- `full`为13个固定场景×14秒,3–6和8–11秒有载荷。默认镜头靠近无扰动的`env_0`;可在Stage选中`/World/envs/env_6/Robot`后按F聚焦向下加载场景。 -- 要显示预登记的随机场景/幅值/时移,改成`--mode holdout`(256环境、固定随机种子);它不是每帧无限制随机换向。`--mode stability`则为26环境×120秒重复载荷。 -- 这是重新仿真,不训练,完成后关闭窗口。显示可能改变运行耗时/图形内存,结果写入独立目录;不替换原始发布证据,也不将已有豁免自动用于新试验。 - -完整混合坐标系/单位见包内README;已批准的漂移偏差见`DEVIATIONS.md`。适用域仍是Go2 FL、3kg合成底座、PGS、有XY/转动导向且竖直辅助为0的仿真单腿,不是无辅助平衡、四足或实机安全认证。 diff --git a/docs/next_stage.md b/docs/next_stage.md index 068530b..3d90ca9 100644 --- a/docs/next_stage.md +++ b/docs/next_stage.md @@ -1,72 +1,26 @@ -# 当前阶段:0.4.2性能与限定S1实测通过 +# 下一阶段交接 -[0.4.2结果](contact_cycle_sim_performance_v042_result.md):高频真实GUI约34FPS、全段35.30绘制提交/墙钟秒;完整解析S1 GUI/headless各27000tick与0.4.1轨迹逐字节相同。0训练/不改原保护,剩余原生槽不用于扩训或扩域。独立包在`performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/`;完成状态以工作根`task-complete.json`及包校验/库存凭据为准,不再启动仿真。 +## 默认方向:集成现有仿真功能接口 -仍非1×实时(GUI0.07060×、headless0.18325×),GPU整卡约40%,不通过额外环境/虚假负载追求100%。进一步吞吐优化需另固定范围,不能牺牲逐步安全/证据或冒充已有资格。新绘制节拍的原生故障注入及完整矩阵/u256未验证;历史strict RootXY失败/accepted_skill=false不变。 +1. 先读[当前状态](current_status.md)与[公开API](go2_fl_skill_v4_api.md),以已封包0.4.2为基线,确认上层启动、状态查询、队列和停止的使用需求。 +2. 先做CPU静态/生命周期回归:按[运行说明](contact_cycle_runtime.md)执行`python scripts/test_cpu.py`;CPU通过不证明物理成功。 +3. 如需修改当前源码,先固定受影响范围和验收项。0.4.2只重新验证了解析S1 GUI/headless,不能借0.4.0完整矩阵声称新版本全域或u256合格。 +4. 确需真实验证时,按[执行边界](execution_authority.md)创建新有限会话、新绑定、新输出;保留逐500Hz安全/证据及监督退出清理,不复用旧grant或失败目录。 ---- +## 尚未具备的证据 -# 历史阶段完成:0.4.1真实GUI演示与实际验证 +- 当前源码nominal20/S2/S3/u256以及新高频绘制节拍下的原生提前关闭、visualizer故障、安全停止/查看超时资格。 +- 1×实时物理:现有GUI0.07060×、headless0.18325×。若目标是吞吐优化,另固定范围并以相同协议/开销比较,不以渲染FPS替代物理速度。 +- 多seed、全命令域、无辅助平衡、整机/实机、sim2real或通用v2运行adapter。 -[0.4.1结果](contact_cycle_sim_gui_v041_result.md):独立包`/home/cen/sf-deliveries/go2_fl_contact_cycle_sim-0.4.1/`,`bash demo_gui.sh`真实解析S1开窗,`bash demo.sh`仍无窗口,`bash verify_functional.sh`仍为原完整headless验证入口(0.4.1未重跑完整矩阵)。GUI/headless各六周期通过,活跃窗口提前关闭按预期中止;真实截图/原始录屏和原速剪辑见包demo。0.4.0原件/校验完全不变。 +以上是证据缺口,不是自动待执行的仿真矩阵或训练任务。本次整理不启动Kit,不耗用旧预算。 -当前停止仿真,不自动使用剩余3个Kit槽。只建议直接使用已有仿真功能接口;新目标另固定有界范围。不追加训练、RootXY精度优化、控制扩域、整机/实机/sim2real或通用adapter。未实测项(极早关闭、GUI安全停止/超时、u256 GUI等)见结果,不把0.4.0历史矩阵升级成新版本资格。 +## 非默认方向 ---- +不为当前功能目标继续RootXY精度优化或追加训练。若后续明确选择此方向,须先回归扫描器竞态、监督器与候选提交路径,再重新固定独立实验;不得恢复不可选取u64、改写旧门槛/失败/账本或把P2失配当有效比较。原[配方](contact_cycle_rootxy_v2_plan.md)与[启动合同](contact_cycle_rootxy_v2_launch.md)仅保留为绑定输入和实现参考。 -## 历史:仿真功能版0.4.0技能包已本地交付 +## 后续文件约定 -[本轮真实结果](contact_cycle_sim_skill_v4_result.md):Python/CLI、解析20连续周期、三条六周期切换、可选u256 S1、停止/非法拒绝、独立包公开接口真实复现、演示与监督退出清理全部完成。包在`/home/cen/sf-deliveries/go2_fl_contact_cycle_sim-0.4.0/`;启动`bash demo.sh`,完整验证`bash verify_functional.sh`。每次显式调用创建新有限登记,不复用本轮已消费grant/输出。 - -下一阶段先使用现有仿真功能包集成上层调用;新需求再固定有限验证范围。当前不追加物理、训练、RootXY精度优化、整机/实机/sim2real或通用adapter。尚未验证u25620周期/其余切换、多seed/无辅助/全域,不把可调用接口等同于这些能力。历史严格验收与accepted_skill保持原值。 - -本轮12小时授权提前完成,未用预算不自动耗用;将来明确调用`authorize`仅新建有上限的本地会话,不自动启动任务或延长旧任务。 - ---- - -## 历史阶段:限定仿真功能与有限成对矩阵通过;不自动扩训 - -[补验v3实际结果](contact_cycle_functional_followup_v3_result.md):新u256原命令连续3周期完整通过,随后固定3方向×16/24mm的六组,解析/u256各3周期,全部物理/运行完整性通过,6对初态一致。实际175500共享物理调用、39周期、3585.201s,0训练/0重试;进程/GPU清理和原件核对通过。 - -解析零残差已经足以完成本阶段功能,u256没有提高有限矩阵功能通过率,不必为当前目标追加训练或RootXY精度优化;冻结u256保留为已验证对照,不更换历史权重/发布包。根XY超过30mm仅诊断,旧严格失败不改写。旧GPU失败仍缺瞬时列表,本次未复现不等于查明旧原因。 - -用户明确后续预算无需逐次请批,见[持续执行授权](execution_authority.md)。如有后续任务,在该目标范围内自主预设时间/调用/存储/退出护栏及独立登记,不复用已消费grant/目录;不再以“等待预算批准”阻塞。当前限定任务已完成,不自动拓展扰动、噪声、形态、整机/实机/sim2real。有限单seed矩阵不是全域/鲁棒性或独立技能验收,accepted_skill=false。 - ---- - -## 原RootXY下一阶段计划(历史保留,本轮不执行) - -以下原待办不构成本轮授权或默认技术方向。当前没有合格RootXY候选,旧授权不可复用;不恢复u64、不追加旧账本、不扩大残差。原30mm门槛继续约束旧RootXY/严格P1,不移用于本轮独立功能版本。 - -## 1. 优先解决基础设施可靠性 - -- 对两个输出扫描器与继承ledger统一做原子发布并发压力回归,覆盖`.pending`创建/替换/消失、权限拒绝、symlink/目录替换、持续churn、磁盘/截止时间/清理故障。 -- 保留完整扫描/保守计数,不把真实权限错误吞掉;确认新修复不会低估输出或阻塞监督器。若做真实native路径采样,先明确只读范围与时间,不遍历无关缓存。 -- 专项CPU通过后复核监督器的归属、500Hz安全覆盖、初始化/部分控制计数、最终结果和候选提交路径。独立复审若仍不可用,应明确披露,不用测试代替批准。 -- 完成标准:可复现并捕获两次旧竞态,修复在并发压力下不误报;真实拒绝/预算/取消仍停止,且不会发布候选。 - -## 2. 经另行授权后进行一次新试训 - -1. 复核[固定配方](contact_cycle_rootxy_v2_plan.md)及P1/P2局限,形成诚实的名义单周期可行性决定;P2失配绝不写成通过。 -2. 新隔离短路径、新manifest/来源快照、新desktop身份基线和存储策略。保留所有旧失败、grant、claim和完整扣款。 -3. 按[启动契约](contact_cycle_rootxy_v2_launch.md)单独授权配置PREP:600s含120s清理、零环境/物理/优化;父级验证真实结果与静态文件后,才可另发RUN授权。 -4. 如继续原配方:RTX5080、128环境、最多256更新、7200s含120s清理、1GiB,一次启动,无重试/恢复。旧u256只导入actor/log_std/normalization,fresh critic/Adam/RNG。 -5. 参考和冻结策略各128/128原功能基线必须在优化前通过;开发u64/128/192/256同样128/128,否则停止。不能以return提高替代物理功能。 -6. 任何缺失最终证据、非零退出或清理/身份失败均使检查点不可选取;完整训练也允许“无候选”。只有监督器可在全部终态门槛通过后发布lock。 - -当前dev93511已查看;95511仅是拟用holdout,未来锁定候选前须重新检查是否被使用。不得把重复dev试验当独立泛化证据。新训练预算不是下游P1/P2/holdout预算。 - -## 3. 根据漂移证据决定是否改变方案 - -u64仅将XY RMS从16.250降到15.796mm,而最大漂移均值仍67.196mm、126/128超限。先检查卸载阶段逐tick根漂移、接触载荷、参考饱和及实际残差权限;不能仅凭critic loss或少量RMS收益扩训。 - -若奖励、参考、观测或辅助结构需修改,另立版本、预登记对照和门槛,重新做受影响资格验证;不原地修改冻结v1或RootXY失败证据。 - -## 4. 训练后再补能力证据 - -- 仅合格且完整发布的候选进入新的P0回放和严格P1连续周期;周期间不能reset、瞬移、reanchor或拼接回合。 -- P2修复尚未物理验证;现有p2-01/02根均已消费。新矩阵需先审查有限新campaign支持,不能直接创建p2-03绕过限制。 -- 配对初态一致、事件实际投递、完整轨迹/终态/离线审计分别验证。未投递的扰动不能用来描述受扰后的失败。 -- 整机、无辅助平衡、硬件、sim2real和通用v2 adapter暂不扩展。 - -交付保持精简:更新[current_status.md](current_status.md)和[evidence_index.md](evidence_index.md),详细故障/哈希放独立证据目录,不再追加同级“第N次修复”文档。 +- 当前结论只更新`current_status.md`,后续步骤只更新本文,证据位置只更新`evidence_index.md`。 +- 测试留可复用契约、边界和安全回归;任务临时探针/第N次修复报告放运行目录,不再堆入`docs/`和`tests/`。 +- 历史过程见[归档](README.md#历史资料),恢复到临时目录查看,不覆盖当前文件。 diff --git a/docs/software_hardware_spec.md b/docs/software_hardware_spec.md index b91cd09..1bffdbe 100644 --- a/docs/software_hardware_spec.md +++ b/docs/software_hardware_spec.md @@ -6,7 +6,7 @@ **已落地:** PartSpec v2 / SoftwareSpec v2、JSON Schema、跨文件语义校验、不同部位的设计示例、现有 Go2 单腿描述迁移与回归测试。仓库只保留本规范及两份 v2 Schema,不再并列维护旧版规范。 -**尚未落地:** v2 通用仿真/训练 adapter、描述驱动 launcher、实机驱动、v2 通用冻结发布、跨部件协调训练。设计模板不是厂家资产;静态契约匹配不证明机械结构可制造、物理模型准确或策略已训练。当前专用单腿链路的进度见[当前状态](current_status.md),参考+学习残差的46D契约见[运行接口](contact_cycle_runtime.md),两者均不代表v2通用adapter已实现。旧Reach绑定leg-token-v1;受载站立使用独立观测及六维测力,已[带候选专属漂移豁免发布1.0.0](loaded_stand_release_1_0_0.md),原始30mm门槛并非通过。旧实现/验收详述已归入[历史资料](README.md#历史资料),不作为另一份统一规范。 +**尚未落地:** v2 通用仿真/训练 adapter、描述驱动 launcher、实机驱动、v2 通用冻结发布、跨部件协调训练。设计模板不是厂家资产;静态契约匹配不证明机械结构可制造、物理模型准确或策略已训练。当前专用单腿链路的进度见[当前状态](current_status.md),参考+学习残差的46D契约见[运行接口](contact_cycle_runtime.md),两者均不代表v2通用adapter已实现。旧Reach绑定leg-token-v1;受载站立使用独立观测及六维测力,已[带候选专属漂移豁免发布1.0.0](../releases/go2_fl_loaded_stand-1.0.0/DEVIATIONS.md),原始30mm门槛并非通过。旧实现/验收详述已归入[历史资料](README.md#历史资料),不作为另一份统一规范。 ## 2. 分层模型 diff --git a/performance_v042/README.md b/performance_v042/README.md index 119b647..200fbc9 100644 --- a/performance_v042/README.md +++ b/performance_v042/README.md @@ -1,31 +1,18 @@ -# 0.4.2 Git checkpoint / local delivery evidence +# 0.4.2已完成基线与本机交付证据 -This directory versions performance helper source, the bound plan/presentation -amendment, independent reviews/resolutions, CPU results including original -failures, compact original receipt extracts, trace comparisons, physical audits, -and final package/whole-task verification receipts. +[实测结果](../docs/contact_cycle_sim_performance_v042_result.md) / [证据索引](../docs/evidence_index.md)。仅当前已测源码解析S1 GUI/headless,`accepted_skill=false`,不是新完整矩阵/u256或硬件资格。 -The measured result and limitations are in -[`../docs/contact_cycle_sim_performance_v042_result.md`](../docs/contact_cycle_sim_performance_v042_result.md). -`accepted_skill=false`; only current-source analytic S1 GUI/headless is qualified. -The native runs used the recorded staging path, not this Git commit as a new -native trial. Committing does not authorize another run or revive a closed grant. +## 保留在此处 -## Local artifacts deliberately not committed +- `plan.md`、`presentation_amendment.md`:运行源按路径/哈希绑定,保留原字节;不是新任务授权。 +- `performance-result.json`、最终封包/任务/库存凭据、最终CPU日志、轨迹比较及物理审计、最终独立复核。 +- `runs/`、`staging/`、原approved-source快照:原始运行和身份来源,未移动/覆写。 +- `deliveries/go2_fl_contact_cycle_sim-0.4.2/`及相邻tar.gz/sha256:sealed交付物完全不变。tar.gz SHA256:`16c855f6086a90aedc3f50eb510d44f64f802254505146a61c83402df7d99151`。 -- `deliveries/go2_fl_contact_cycle_sim-0.4.2/` and adjacent `.tar.gz`/`.sha256`: - sealed source-identical runtime, original selected evidence and genuine PNG/ - original-speed MP4. Archive SHA256: - `16c855f6086a90aedc3f50eb510d44f64f802254505146a61c83402df7d99151`. -- `runs/`, `staging/`, approved-source snapshots, large inventories and generated - native caches. Original raw evidence remains locally; compact records retain - original paths and hashes. No private issuer/session/authority files enter Git. -- Historical frozen candidate/snapshot/validation inputs and generated local - robot assets remain under the existing repository output policy. A fresh Git - clone alone is not the complete qualified-machine runtime; use the sealed - local delivery and documented Isaac Sim/IsaacLab dependencies. +## 已移出活动目录 -`package-verification.json` and `task-complete.json` refer to the already sealed -local artifact; they do not attest that every file in the later Git checkpoint -was inside that archive. This README and output exclusion policy were added -only for the requested Git commit, without altering sealed delivery bytes. +一次性封装/同步/收尾脚本、逐轮代码审查与修复记录、重复CPU日志/XML及中间观察报告已按原路径压缩归档;查询[清单](../archives/next_stage_cleanup.json)及[恢复说明](../docs/README.md#历史资料)。原失败全部可恢复,没有将后续成功覆写成旧失败的结论。 + +这些旧凭据只证明当时已封包/已运行的版本,不证明本次整理后的工作区又做过一次GPU验证。新改动需重新绑定,不能执行归档中的旧身份/命令来恢复授权。 + +大文件、来源快照、私有会话和本机运行时仍不提交Git;新clone不是完整qualified-machine runtime,应另带sealed包及固定IsaacLab/IsaacSim依赖。 diff --git a/performance_v042/add_delivery_fixtures.py b/performance_v042/add_delivery_fixtures.py deleted file mode 100644 index 875c2f1..0000000 --- a/performance_v042/add_delivery_fixtures.py +++ /dev/null @@ -1,10 +0,0 @@ -#!/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)) diff --git a/performance_v042/add_delivery_replay_fixtures.py b/performance_v042/add_delivery_replay_fixtures.py deleted file mode 100644 index 0b6c5e7..0000000 --- a/performance_v042/add_delivery_replay_fixtures.py +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/python3.12 -import pathlib,json,hashlib,shutil -A=pathlib.Path(__file__).resolve().parent;D=A.parent;P=pathlib.Path(json.loads((A/'assembly.json').read_text())['package']);I=json.loads((P/'evidence-inventory.json').read_text());entries=[] -for src,n in [(D/'logs/contact_cycle/frozen_replay_p0_01/run/initial_state.pt','logs/contact_cycle/frozen_replay_p0_01/run/initial_state.pt'),(D/'logs/contact_cycle/frozen_replay_p0_01/run/first_episodes.pt','logs/contact_cycle/frozen_replay_p0_01/run/first_episodes.pt'),(pathlib.Path('/home/cen/sf-runs/p1-01/launch-0/trial-00/trace.v1.jsonl.gz'),'tests/fixtures/p1-trace.v1.jsonl.gz')]: - 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':hashlib.sha256(src.read_bytes()).hexdigest(),'bytes':src.stat().st_size};entries.append(entry);I.append(entry) -(P/'evidence-inventory.json').write_text(json.dumps(I,indent=2)+'\n') -(A/'delivery-replay-fixtures.json').write_text(json.dumps({'second_CPU':'1556passed7skipped, zero failures; one additional skip from missing P0replay fixture','action':'Include exact original P0initial/episodes and P1failuretrace as CPUfixtures. Portable bundled test locator points to embedded P1 trace; assertions/hash/tolerances unchanged. Not a native P1 rerun or promotion; no runtime source changed.','fixtures':entries},indent=2)+'\n') -print('copied3 historical replay fixtures') diff --git a/performance_v042/assemble_delivery.py b/performance_v042/assemble_delivery.py deleted file mode 100644 index ef4debc..0000000 --- a/performance_v042/assemble_delivery.py +++ /dev/null @@ -1,162 +0,0 @@ -#!/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)})) diff --git a/performance_v042/assembly.json b/performance_v042/assembly.json deleted file mode 100644 index b66ea42..0000000 --- a/performance_v042/assembly.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "package": "/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2", - "copied_evidence_files": 697, - "authority_inputs": 41, - "source_bytes_match_native_qualified_inputs": true, - "sealed": false -} diff --git a/performance_v042/baseline02-postexit.json b/performance_v042/baseline02-postexit.json deleted file mode 100644 index 14999b4..0000000 --- a/performance_v042/baseline02-postexit.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "campaign_original_success": true, - "owned_identities_checked": 11, - "owned_alive": [], - "finite_bound_files_checked": 465, - "binding_file_mismatches": [], - "protected_file_mismatches": [], - "gpu_clients": { - "compute": [], - "graphics": [ - 2420, - 2618, - 3268, - 4486, - 574096, - 602685, - 696142 - ] - }, - "gpu_review": { - "uuid": "GPU-7d882fc3-f771-6d29-4e58-f0fa2a18a3a5", - "compute_pids": [], - "approved_desktop_graphics_pids": [ - 2420, - 2618, - 3268, - 4486, - 574096, - 602685, - 696142 - ], - "task_graphics_pids": [], - "clean": true, - "scope": "owned-compute-and-graphics.plus-pinned-desktop-graphics-only" - }, - "static_check_not_same_cfg_proof": true, - "boottime": 357443.021005604, - "passed": true -} diff --git a/performance_v042/build_staging.py b/performance_v042/build_staging.py deleted file mode 100644 index 9ee8658..0000000 --- a/performance_v042/build_staging.py +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/python3.12 -import pathlib,shutil,json,hashlib,subprocess -A=pathlib.Path(__file__).resolve().parent;D=A.parent;OLD=pathlib.Path('/home/cen/sf-deliveries/go2_fl_contact_cycle_sim-0.4.1');P=A/'staging/go2_fl_contact_cycle_sim-0.4.2-work' -assert not P.exists();P.mkdir(parents=True) -skip={'evidence','demo','demos','README.md','RESULTS.md','skill-package.json','SHA256SUMS','dependencies.json','build-inventory.json'} -for p in OLD.iterdir(): - if p.name in skip:continue - if p.is_dir():shutil.copytree(p,P/p.name,ignore=shutil.ignore_patterns('__pycache__','.pytest_cache')) - elif p.is_file():shutil.copy2(p,P/p.name) -old=json.loads(pathlib.Path('/home/cen/sf-runs/skill-gui-v041-gui-complete11/S1/approval.json').read_text())['sources'] -extra=['source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle_sim/performance_v042.py','configs/contact_cycle/performance_v042.json','performance_v042/plan.md'] -for n in list(old)+extra: - (P/n).parent.mkdir(parents=True,exist_ok=True);shutil.copy2(D/n,P/n) -(P/'README.md').write_text('0.4.2 profiling worktree only. Not a qualified release. See parent performance_v042/plan.md. Original0.4.0/1 preserved.\n') -(A/'staging.json').write_text(json.dumps({'root':str(P),'base':str(OLD),'source_files':list(old)+extra},indent=2)+'\n');print(P) diff --git a/performance_v042/combined-code-review.md b/performance_v042/combined-code-review.md deleted file mode 100644 index f363981..0000000 --- a/performance_v042/combined-code-review.md +++ /dev/null @@ -1,29 +0,0 @@ -## Review - -Paths below use `T = source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle_sim/`. - -- **Correct — invocation-local reads/restoration:** `T/readonly_scope_v042.py:24–53` memoizes only listed no-argument reads, preserves instance overrides versus inherited methods, and restores them in `finally`. Clock/anchor identities and completed-physics/reset/pose counters are checked before normal return. Installation scopes only original safety evaluation; packed snapshot has its own separate scope (`:56–62`; `T/packed_recording_v042.py:94–98`). -- **Correct — physical sequencing/reset guards:** mount-reference routing requires source identity (`T/readonly_scope_v042.py:65–71`). Proxy reset still delegates to the guarded original sensor. Installation occurs before initial reset (`scripts/evaluate_cycle_functional_flow.py:255–258`); per-tick safety and synchronous evidence remain before another step (`T/evaluation_env.py:457–471`). -- **Correct — batching/layout:** `T/batched_kinematics_v042.py:12–17` orders probes as three positive then three negative perturbations per input row, subtracts corresponding pairs, and transposes into the original Jacobian column layout. Epsilon, IK iterations, solve formula and limits are not changed. -- **Correct — capture/provenance:** packing groups by exact device/dtype and uses blocking CPU transfer plus independently owned field storage (`T/packed_recording_v042.py:17–42`). Both new modules are preloaded, source-bound and authority-bound; qualification precedes environment construction and its record participates in exact PREP/RUN verification (`scripts/evaluate_cycle_functional_flow.py:68–69,118–124`; `source/SkillFactory/SkillFactory/legs/contact_cycle_sim/skill_binding_v4.py:15–16,46–53`; `scripts/skill_launch_v4.py:30–31`). -- **Fixed:** None; read-only review. - -### Finding — P1: sampled “bitwise” qualification uses numeric equality - -**Location:** `T/batched_kinematics_v042.py:32–36`. - -`torch.equal(old, new)` determines both `all_bitwise_equal` and whether the batched Jacobian is installed. It tests numeric equality, not representation equality: float32 `+0.0` and `-0.0` compare equal despite differing bits. Their absolute difference also records zero. - -This contradicts the requested sampled-bitwise gate. It does **not** establish that actual FK samples currently differ; it establishes that the qualification cannot enforce its stated criterion. - -**Smallest fix:** compare contiguous float32 representations using integer views, and add a signed-zero negative test plus qualification-fallback coverage. Retain the existing numeric maximum-difference report and explicit original-Jacobian selection. - -**Merge verdict: BLOCK the combined qualification run pending this correction.** Other inspected seams are suitable for bounded runtime qualification, not final acceptance. - -### Validation and residual risks - -- Inspected supplied `performance_v042/cpu-combined.log` and XML: **55 passed**, zero failures/errors/skips. These are supplied results, not tests executed by this reviewer. -- Current `configs/contact_cycle/performance_v042.json:2` selects `sensor_epoch`, not `combined`. Freeze and authenticate the intended combined configuration before running; the current selection will not exercise the combined path. -- No edits, tests, shell commands, Kit/GPU operations, installs or subdelegation were performed. -- Native combined trace equivalence, reset behavior, gates and performance remain unqualified. No all-input bitwise or new performance claim is approved. -- Protected-artifact hashes and historical receipt integrity were not independently recomputed. `watchdog_diff` does not establish committed-range equivalence; review focused on the named candidate source seams and supplied artifacts. \ No newline at end of file diff --git a/performance_v042/combined-review-P1-resolution.md b/performance_v042/combined-review-P1-resolution.md deleted file mode 100644 index de33ba0..0000000 --- a/performance_v042/combined-review-P1-resolution.md +++ /dev/null @@ -1,9 +0,0 @@ -# Combined review P1 resolution, before actual qualification - -The review correctly identified numeric torch.equal as insufficient for the sampled bitwise Jacobian gate (signed zero). Fixed with contiguous float32 int32 representation comparison; dtype/shape/device must also match. Nonfinite math qualification now fails before environment construction. The numeric max-absolute-difference remains separately reported. - -Added negative test using +0 and -0 Jacobian outputs: numeric equality holds, byte equality fails, sampled qualifier.applied=false/max_abs=0/reason=not_exact_keep_original, and the original method is retained. Current performance/math/original runtime targeted CPU suite:56passed, cpu-combined-fixed.log/.xml. No extra Kit or physical work for this fix. Native all-input equivalence remains unproved; actual complete traces must be compared. - -Also changed the future trace comparator from numeric equality to uint8 representation equality (all dtypes), including signed zero. The existing baseline02/sensor03 trace files already have identical whole-file SHA256, independent of the old numeric comparator. - -The first actual combined case uses a fresh approval/session and mode=combined/profile=true, not the prior sensor_epoch configuration. All39source/config/plan inputs are frozen in its own approval and preserved at next staging sync. No old package, native SDK source, physical/controller parameter, safety threshold, source verification, GPU admission or shutdown gate changed. diff --git a/performance_v042/combined04-postexit.json b/performance_v042/combined04-postexit.json deleted file mode 100644 index 82bd249..0000000 --- a/performance_v042/combined04-postexit.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "campaign_original_success": true, - "owned_identities_checked": 11, - "owned_alive": [], - "finite_bound_files_checked": 469, - "binding_file_mismatches": [], - "protected_file_mismatches": [], - "gpu_clients": { - "compute": [], - "graphics": [ - 2420, - 2618, - 3268, - 4486, - 574096, - 602685, - 696142 - ] - }, - "gpu_review": { - "uuid": "GPU-7d882fc3-f771-6d29-4e58-f0fa2a18a3a5", - "compute_pids": [], - "approved_desktop_graphics_pids": [ - 2420, - 2618, - 3268, - 4486, - 574096, - 602685, - 696142 - ], - "task_graphics_pids": [], - "clean": true, - "scope": "owned-compute-and-graphics.plus-pinned-desktop-graphics-only" - }, - "static_check_not_same_cfg_proof": true, - "boottime": 359474.643529006, - "passed": true -} diff --git a/performance_v042/compare_traces.py b/performance_v042/compare_traces.py deleted file mode 100644 index be717a8..0000000 --- a/performance_v042/compare_traces.py +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env python3 -import argparse,json,pathlib,hashlib,torch -A=pathlib.Path(__file__).resolve().parent -p=argparse.ArgumentParser();p.add_argument('--left',required=True);p.add_argument('--right',required=True);args=p.parse_args();torch.set_num_threads(2) -paths=[A/'runs'/n/'campaign/run/trace.pt' for n in (args.left,args.right)];traces=[torch.load(p,map_location='cpu',weights_only=True) for p in paths];a,b=traces -unequal=[];diagnostics={} -for k in a: - if k not in b or a[k].dtype!=b[k].dtype or a[k].shape!=b[k].shape or not torch.equal(a[k].contiguous().reshape(-1).view(torch.uint8),b[k].contiguous().reshape(-1).view(torch.uint8)): - unequal.append(k) - if k in b and a[k].shape==b[k].shape:diagnostics[k]={'max_abs':float((a[k].double()-b[k].double()).abs().max()),'unequal_values':int((a[k]!=b[k]).sum())} -r={'left':args.left,'right':args.right,'trace_sha256':[hashlib.sha256(p.read_bytes()).hexdigest() for p in paths],'tensor_keys':len(a),'keysets_equal':a.keys()==b.keys(),'all_bitwise_equal':a.keys()==b.keys() and not unequal,'unequal_keys':unequal,'diagnostics':diagnostics,'scope':'Measured native same-seed same-protocol traces only; not a promise of determinism elsewhere. No new physical steps.'};out=A/(args.left+'--'+args.right+'-comparison.json');out.write_text(json.dumps(r,indent=2)+'\n');print(r) diff --git a/performance_v042/cpu-combined-fixed.log b/performance_v042/cpu-combined-fixed.log deleted file mode 100644 index 3cddc97..0000000 --- a/performance_v042/cpu-combined-fixed.log +++ /dev/null @@ -1,2 +0,0 @@ -........................................................ [100%] -56 passed in 8.06s diff --git a/performance_v042/cpu-combined-fixed.xml b/performance_v042/cpu-combined-fixed.xml deleted file mode 100644 index dfaacce..0000000 --- a/performance_v042/cpu-combined-fixed.xml +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/performance_v042/cpu-combined.log b/performance_v042/cpu-combined.log deleted file mode 100644 index 87bf062..0000000 --- a/performance_v042/cpu-combined.log +++ /dev/null @@ -1,2 +0,0 @@ -....................................................... [100%] -55 passed in 8.30s diff --git a/performance_v042/cpu-combined.xml b/performance_v042/cpu-combined.xml deleted file mode 100644 index a634e95..0000000 --- a/performance_v042/cpu-combined.xml +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/performance_v042/cpu-display-fixed.log b/performance_v042/cpu-display-fixed.log deleted file mode 100644 index 71c81d8..0000000 --- a/performance_v042/cpu-display-fixed.log +++ /dev/null @@ -1,2 +0,0 @@ -.................................................................... [100%] -68 passed in 8.06s diff --git a/performance_v042/cpu-display-fixed.xml b/performance_v042/cpu-display-fixed.xml deleted file mode 100644 index 64e4e9f..0000000 --- a/performance_v042/cpu-display-fixed.xml +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/performance_v042/cpu-display-health.log b/performance_v042/cpu-display-health.log deleted file mode 100644 index e0a476a..0000000 --- a/performance_v042/cpu-display-health.log +++ /dev/null @@ -1,3 +0,0 @@ -........................................................................ [ 93%] -..... [100%] -77 passed in 8.13s diff --git a/performance_v042/cpu-display-health.xml b/performance_v042/cpu-display-health.xml deleted file mode 100644 index 47eb438..0000000 --- a/performance_v042/cpu-display-health.xml +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/performance_v042/cpu-display.log b/performance_v042/cpu-display.log deleted file mode 100644 index 9f1906e..0000000 --- a/performance_v042/cpu-display.log +++ /dev/null @@ -1,45 +0,0 @@ - -==================================== ERRORS ==================================== -________ ERROR collecting tests/test_contact_cycle_live_cadence_v042.py ________ -ImportError while importing test module '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/tests/test_contact_cycle_live_cadence_v042.py'. -Hint: make sure your test modules/packages have valid Python names. -Traceback: -../../../miniconda3/envs/linker_sim_isaac/lib/python3.11/importlib/__init__.py:126: in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -tests/test_contact_cycle_live_cadence_v042.py:6: in - M=importlib.import_module('SkillFactory.tasks.manager_based.contact_cycle_sim.live_cadence_v042') - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -../../../miniconda3/envs/linker_sim_isaac/lib/python3.11/importlib/__init__.py:126: in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -source/SkillFactory/SkillFactory/tasks/__init__.py:12: in - from isaaclab_tasks.utils import import_packages -../../../opt/IsaacLab/source/isaaclab_tasks/isaaclab_tasks/__init__.py:33: in - from .utils import import_packages -../../../opt/IsaacLab/source/isaaclab_tasks/isaaclab_tasks/utils/__init__.py:9: in - from .parse_cfg import get_checkpoint_path, load_cfg_from_registry, parse_env_cfg -../../../opt/IsaacLab/source/isaaclab_tasks/isaaclab_tasks/utils/parse_cfg.py:17: in - from isaaclab.envs import DirectRLEnvCfg, ManagerBasedRLEnvCfg -../../../opt/IsaacLab/source/isaaclab/isaaclab/envs/__init__.py:45: in - from . import mdp, ui -../../../opt/IsaacLab/source/isaaclab/isaaclab/envs/mdp/__init__.py:18: in - from .actions import * # noqa: F401, F403 - ^^^^^^^^^^^^^^^^^^^^^^ -../../../opt/IsaacLab/source/isaaclab/isaaclab/envs/mdp/actions/__init__.py:8: in - from .actions_cfg import * -../../../opt/IsaacLab/source/isaaclab/isaaclab/envs/mdp/actions/actions_cfg.py:8: in - from isaaclab.controllers import DifferentialIKControllerCfg, OperationalSpaceControllerCfg -../../../opt/IsaacLab/source/isaaclab/isaaclab/controllers/__init__.py:14: in - from .differential_ik import DifferentialIKController -../../../opt/IsaacLab/source/isaaclab/isaaclab/controllers/differential_ik.py:12: in - from isaaclab.utils.math import apply_delta_pose, compute_pose_error -../../../opt/IsaacLab/source/isaaclab/isaaclab/utils/__init__.py:14: in - from .mesh import * -../../../opt/IsaacLab/source/isaaclab/isaaclab/utils/mesh.py:14: in - from pxr import Usd, UsdGeom -E ModuleNotFoundError: No module named 'pxr' -=========================== short test summary info ============================ -ERROR tests/test_contact_cycle_live_cadence_v042.py -!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!! -1 error in 1.10s diff --git a/performance_v042/cpu-display.xml b/performance_v042/cpu-display.xml deleted file mode 100644 index e153572..0000000 --- a/performance_v042/cpu-display.xml +++ /dev/null @@ -1,38 +0,0 @@ -ImportError while importing test module '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/tests/test_contact_cycle_live_cadence_v042.py'. -Hint: make sure your test modules/packages have valid Python names. -Traceback: -../../../miniconda3/envs/linker_sim_isaac/lib/python3.11/importlib/__init__.py:126: in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -tests/test_contact_cycle_live_cadence_v042.py:6: in <module> - M=importlib.import_module('SkillFactory.tasks.manager_based.contact_cycle_sim.live_cadence_v042') - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -../../../miniconda3/envs/linker_sim_isaac/lib/python3.11/importlib/__init__.py:126: in import_module - return _bootstrap._gcd_import(name[level:], package, level) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -source/SkillFactory/SkillFactory/tasks/__init__.py:12: in <module> - from isaaclab_tasks.utils import import_packages -../../../opt/IsaacLab/source/isaaclab_tasks/isaaclab_tasks/__init__.py:33: in <module> - from .utils import import_packages -../../../opt/IsaacLab/source/isaaclab_tasks/isaaclab_tasks/utils/__init__.py:9: in <module> - from .parse_cfg import get_checkpoint_path, load_cfg_from_registry, parse_env_cfg -../../../opt/IsaacLab/source/isaaclab_tasks/isaaclab_tasks/utils/parse_cfg.py:17: in <module> - from isaaclab.envs import DirectRLEnvCfg, ManagerBasedRLEnvCfg -../../../opt/IsaacLab/source/isaaclab/isaaclab/envs/__init__.py:45: in <module> - from . import mdp, ui -../../../opt/IsaacLab/source/isaaclab/isaaclab/envs/mdp/__init__.py:18: in <module> - from .actions import * # noqa: F401, F403 - ^^^^^^^^^^^^^^^^^^^^^^ -../../../opt/IsaacLab/source/isaaclab/isaaclab/envs/mdp/actions/__init__.py:8: in <module> - from .actions_cfg import * -../../../opt/IsaacLab/source/isaaclab/isaaclab/envs/mdp/actions/actions_cfg.py:8: in <module> - from isaaclab.controllers import DifferentialIKControllerCfg, OperationalSpaceControllerCfg -../../../opt/IsaacLab/source/isaaclab/isaaclab/controllers/__init__.py:14: in <module> - from .differential_ik import DifferentialIKController -../../../opt/IsaacLab/source/isaaclab/isaaclab/controllers/differential_ik.py:12: in <module> - from isaaclab.utils.math import apply_delta_pose, compute_pose_error -../../../opt/IsaacLab/source/isaaclab/isaaclab/utils/__init__.py:14: in <module> - from .mesh import * -../../../opt/IsaacLab/source/isaaclab/isaaclab/utils/mesh.py:14: in <module> - from pxr import Usd, UsdGeom -E ModuleNotFoundError: No module named 'pxr' \ No newline at end of file diff --git a/performance_v042/cpu-first.log b/performance_v042/cpu-first.log deleted file mode 100644 index e422777..0000000 --- a/performance_v042/cpu-first.log +++ /dev/null @@ -1,49 +0,0 @@ -.......FF................................... [100%] -=================================== FAILURES =================================== -____ test_substep_two_keeps_offending_packed_frame_all_causes_and_no_render ____ - -make_env = .make at 0x76bc60275120> - - def test_substep_two_keeps_offending_packed_frame_all_causes_and_no_render(make_env): - frames = [];pack = copy_function();renders = [] - def evidence(event, s): - if event.kind != 'tick':return () - f = pack({'value': torch.tensor([float('nan') if event.clock.global_tick == 2 else 1.])}, group_cpu=True) - frames.append(f) - return ('fault_one', 'fault_two') if not bool(torch.isfinite(f['value']).all()) else () - env, hooks, _ = make_env(evidence=evidence) - env.cfg.sim.render_interval = 2;env.sim.is_rendering = True - env.sim.render = lambda **_: renders.append(True) - result = env.step(torch.zeros(1, 3)) - assert result.stop.causes == ('fault_one', 'fault_two') -> assert env.sim.calls == hooks.rollout_steps == 2 and len(frames) == 2 and not renders -E assert (4 == 2) -E + where 4 = .Sim object at 0x76bc6026d7d0>.calls -E + where .Sim object at 0x76bc6026d7d0> = .sim -E + and 2 = .rollout_steps - -tests/test_contact_cycle_performance_v042.py:140: AssertionError -_______________ test_transfer_exception_stops_before_third_step ________________ - -make_env = .make at 0x76bc60144540> - - def test_transfer_exception_stops_before_third_step(make_env): - pack = copy_function();events = [] - def evidence(event, s): - if event.kind == 'tick': - events.append(event.clock.global_tick) - if event.clock.global_tick == 2:pack({'bad': 1}) - return () - env, hooks, _ = make_env(evidence=evidence) - result = env.step(torch.zeros(1, 3)) -> assert env.sim.calls == hooks.rollout_steps == 2 and events == [1, 2] -E assert (4 == 2) -E + where 4 = .Sim object at 0x76bc608743d0>.calls -E + where .Sim object at 0x76bc608743d0> = .sim -E + and 2 = .rollout_steps - -tests/test_contact_cycle_performance_v042.py:153: AssertionError -=========================== short test summary info ============================ -FAILED tests/test_contact_cycle_performance_v042.py::test_substep_two_keeps_offending_packed_frame_all_causes_and_no_render -FAILED tests/test_contact_cycle_performance_v042.py::test_transfer_exception_stops_before_third_step -2 failed, 42 passed in 8.69s diff --git a/performance_v042/cpu-first.xml b/performance_v042/cpu-first.xml deleted file mode 100644 index b1ec044..0000000 --- a/performance_v042/cpu-first.xml +++ /dev/null @@ -1,38 +0,0 @@ -make_env = <function make_env.<locals>.make at 0x76bc60275120> - - def test_substep_two_keeps_offending_packed_frame_all_causes_and_no_render(make_env): - frames = [];pack = copy_function();renders = [] - def evidence(event, s): - if event.kind != 'tick':return () - f = pack({'value': torch.tensor([float('nan') if event.clock.global_tick == 2 else 1.])}, group_cpu=True) - frames.append(f) - return ('fault_one', 'fault_two') if not bool(torch.isfinite(f['value']).all()) else () - env, hooks, _ = make_env(evidence=evidence) - env.cfg.sim.render_interval = 2;env.sim.is_rendering = True - env.sim.render = lambda **_: renders.append(True) - result = env.step(torch.zeros(1, 3)) - assert result.stop.causes == ('fault_one', 'fault_two') -> assert env.sim.calls == hooks.rollout_steps == 2 and len(frames) == 2 and not renders -E assert (4 == 2) -E + where 4 = <test_contact_cycle_sim_evaluation_runtime.runtime.<locals>.Sim object at 0x76bc6026d7d0>.calls -E + where <test_contact_cycle_sim_evaluation_runtime.runtime.<locals>.Sim object at 0x76bc6026d7d0> = <SkillFactory.tasks.manager_based.contact_cycle_sim.evaluation_env.EvaluationContactCycleEnv object at 0x76bc6026ff90>.sim -E + and 2 = <SkillFactory.tasks.manager_based.contact_cycle_sim.evaluation_env.RuntimeHooks object at 0x76bc6036b450>.rollout_steps - -tests/test_contact_cycle_performance_v042.py:140: AssertionErrormake_env = <function make_env.<locals>.make at 0x76bc60144540> - - def test_transfer_exception_stops_before_third_step(make_env): - pack = copy_function();events = [] - def evidence(event, s): - if event.kind == 'tick': - events.append(event.clock.global_tick) - if event.clock.global_tick == 2:pack({'bad': 1}) - return () - env, hooks, _ = make_env(evidence=evidence) - result = env.step(torch.zeros(1, 3)) -> assert env.sim.calls == hooks.rollout_steps == 2 and events == [1, 2] -E assert (4 == 2) -E + where 4 = <test_contact_cycle_sim_evaluation_runtime.runtime.<locals>.Sim object at 0x76bc608743d0>.calls -E + where <test_contact_cycle_sim_evaluation_runtime.runtime.<locals>.Sim object at 0x76bc608743d0> = <SkillFactory.tasks.manager_based.contact_cycle_sim.evaluation_env.EvaluationContactCycleEnv object at 0x76bc60152110>.sim -E + and 2 = <SkillFactory.tasks.manager_based.contact_cycle_sim.evaluation_env.RuntimeHooks object at 0x76bc60808ad0>.rollout_steps - -tests/test_contact_cycle_performance_v042.py:153: AssertionError \ No newline at end of file diff --git a/performance_v042/cpu-full01.log b/performance_v042/cpu-full01.log deleted file mode 100644 index f8c209f..0000000 --- a/performance_v042/cpu-full01.log +++ /dev/null @@ -1,23 +0,0 @@ -........................................................................ [ 4%] -........................................................................ [ 9%] -.........................................sss............................ [ 14%] -........................................................................ [ 18%] -........................................................................ [ 23%] -........................................................................ [ 28%] -........................................................................ [ 32%] -........................................................................ [ 37%] -........................................................................ [ 42%] -........................................................................ [ 47%] -........................................................................ [ 51%] -........................................................................ [ 56%] -.......................................s................................ [ 61%] -........................................................................ [ 65%] -.......s................................................................ [ 70%] -........................................................................ [ 75%] -....................................................s................... [ 80%] -........................................................................ [ 84%] -........................................................................ [ 89%] -........................................................................ [ 94%] -........................................................................ [ 98%] -.................. [100%] -1524 passed, 6 skipped in 114.98s (0:01:54) diff --git a/performance_v042/cpu-full01.xml b/performance_v042/cpu-full01.xml deleted file mode 100644 index ef063e4..0000000 --- a/performance_v042/cpu-full01.xml +++ /dev/null @@ -1 +0,0 @@ -/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/tests/test_contact_cycle_physics.py:15: requires supervised Isaac PhysX/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/tests/test_contact_cycle_physics.py:15: requires supervised Isaac PhysX/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/tests/test_contact_cycle_physics.py:15: requires supervised Isaac PhysX/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/tests/test_contact_cycle_sim_evaluation_runner.py:1067: explicit harmless installed shell/FD probe opt-in required/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/tests/test_contact_cycle_sim_learning_physics.py:13: requires explicit supervised nonlearning PhysX API probe/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/tests/test_contact_cycle_sim_residual_physics.py:13: requires supervised Isaac PhysX \ No newline at end of file diff --git a/performance_v042/cpu-full02.log b/performance_v042/cpu-full02.log deleted file mode 100644 index cf537e0..0000000 --- a/performance_v042/cpu-full02.log +++ /dev/null @@ -1,23 +0,0 @@ -........................................................................ [ 4%] -........................................................................ [ 9%] -.....................................................sss................ [ 14%] -........................................................................ [ 18%] -........................................................................ [ 23%] -........................................................................ [ 28%] -........................................................................ [ 32%] -........................................................................ [ 37%] -........................................................................ [ 42%] -........................................................................ [ 46%] -........................................................................ [ 51%] -........................................................................ [ 56%] -...................................................s.................... [ 60%] -........................................................................ [ 65%] -...................s.................................................... [ 70%] -........................................................................ [ 74%] -................................................................s....... [ 79%] -........................................................................ [ 84%] -........................................................................ [ 88%] -........................................................................ [ 93%] -........................................................................ [ 98%] -.............................. [100%] -1536 passed, 6 skipped in 116.21s (0:01:56) diff --git a/performance_v042/cpu-full02.xml b/performance_v042/cpu-full02.xml deleted file mode 100644 index 5ec6657..0000000 --- a/performance_v042/cpu-full02.xml +++ /dev/null @@ -1 +0,0 @@ -/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/tests/test_contact_cycle_physics.py:15: requires supervised Isaac PhysX/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/tests/test_contact_cycle_physics.py:15: requires supervised Isaac PhysX/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/tests/test_contact_cycle_physics.py:15: requires supervised Isaac PhysX/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/tests/test_contact_cycle_sim_evaluation_runner.py:1067: explicit harmless installed shell/FD probe opt-in required/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/tests/test_contact_cycle_sim_learning_physics.py:13: requires explicit supervised nonlearning PhysX API probe/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/tests/test_contact_cycle_sim_residual_physics.py:13: requires supervised Isaac PhysX \ No newline at end of file diff --git a/performance_v042/cpu-second.log b/performance_v042/cpu-second.log deleted file mode 100644 index a78240a..0000000 --- a/performance_v042/cpu-second.log +++ /dev/null @@ -1,2 +0,0 @@ -............................................ [100%] -44 passed in 8.08s diff --git a/performance_v042/cpu-second.xml b/performance_v042/cpu-second.xml deleted file mode 100644 index bb2b814..0000000 --- a/performance_v042/cpu-second.xml +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/performance_v042/delivery-cache-cleanup.json b/performance_v042/delivery-cache-cleanup.json deleted file mode 100644 index 281aa50..0000000 --- a/performance_v042/delivery-cache-cleanup.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "preseal_observation": "First refresh asserted because generated bytecode cache remained after CPU verification. No runtime source mismatch; no archive had been sealed.", - "removed_only_package_generated_dirs": [ - "source/SkillFactory/SkillFactory/legs/contact_cycle_sim/__pycache__" - ] -} diff --git a/performance_v042/delivery-cpu-second.log b/performance_v042/delivery-cpu-second.log deleted file mode 100644 index 3fe8af3..0000000 --- a/performance_v042/delivery-cpu-second.log +++ /dev/null @@ -1,23 +0,0 @@ -........................................................................ [ 4%] -........................................................................ [ 9%] -........................................................................ [ 13%] -..sss................................................................... [ 18%] -........................................................................ [ 23%] -........................................................................ [ 27%] -........................................................................ [ 32%] -........................................................................ [ 36%] -........................................................................ [ 41%] -........................................................................ [ 46%] -........................................................................ [ 50%] -........................................................................ [ 55%] -........................................................................ [ 59%] -s....................................................................... [ 64%] -...........s............................s............................... [ 69%] -........................................................................ [ 73%] -........................................................................ [ 78%] -.............s.......................................................... [ 82%] -........................................................................ [ 87%] -........................................................................ [ 92%] -........................................................................ [ 96%] -................................................... [100%] -1556 passed, 7 skipped in 114.68s (0:01:54) diff --git a/performance_v042/delivery-cpu-second.xml b/performance_v042/delivery-cpu-second.xml deleted file mode 100644 index 5d989e5..0000000 --- a/performance_v042/delivery-cpu-second.xml +++ /dev/null @@ -1 +0,0 @@ -/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/tests/test_contact_cycle_physics.py:15: requires supervised Isaac PhysX/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/tests/test_contact_cycle_physics.py:15: requires supervised Isaac PhysX/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/tests/test_contact_cycle_physics.py:15: requires supervised Isaac PhysX/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/tests/test_contact_cycle_sim_evaluation_runner.py:1067: explicit harmless installed shell/FD probe opt-in required/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/tests/test_contact_cycle_sim_evaluation_runtime.py:646: Recorded P0/P1 artifacts not present/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/tests/test_contact_cycle_sim_learning_physics.py:13: requires explicit supervised nonlearning PhysX API probe/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/tests/test_contact_cycle_sim_residual_physics.py:13: requires supervised Isaac PhysX \ No newline at end of file diff --git a/performance_v042/delivery-cpu.log b/performance_v042/delivery-cpu.log deleted file mode 100644 index 36b7ef8..0000000 --- a/performance_v042/delivery-cpu.log +++ /dev/null @@ -1,2016 +0,0 @@ -........................................................................ [ 4%] -........................................................................ [ 9%] -........................................................................ [ 13%] -..sss................................................................... [ 18%] -........................................................................ [ 23%] -........................................................................ [ 27%] -........................................................................ [ 32%] -........................................................................ [ 36%] -........................................................................ [ 41%] -........................................................................ [ 46%] -........................................................................ [ 50%] -........................................................................ [ 55%] -..........................FFFFF.F....F...........FFFFFFFFFFFF........... [ 59%] -sFF.FF........FFFFFFFFFFFFF............................................. [ 64%] -...........s............................s............................... [ 69%] -........................................................................ [ 73%] -........................................................................ [ 78%] -.............s.......................................................... [ 82%] -..............................FF...........F............................ [ 87%] -........................................................................ [ 92%] -........................................................................ [ 96%] -................................................... [100%] -=================================== FAILURES =================================== -_ test_storage_policy_only_trusts_bound_facts_not_capacity[native_hard_cap-True] _ - -tmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_storage_policy_only_trust0') -field = 'native_hard_cap', value = True - - @pytest.mark.parametrize('field,value', [('native_hard_cap', True), - ('scope', 'monitored_only'), ('boot_id', 'old'), - ('not_after_boottime', 0), ('mount_identity', 'other')]) - def test_storage_policy_only_trusts_bound_facts_not_capacity(tmp_path, field, value): - args, _, review = trusted_inputs(tmp_path) - review[field] = value - args.storage_policy.write_bytes(b.encode(review)) - args.trusted_storage_policy_sha256 = b.digest(args.storage_policy) - with pytest.raises(RuntimeError, match='storage_policy'): -> cli.storage_policy_check(args, b) - -tests/test_contact_cycle_sim_evaluation_runner.py:501: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundError -_ test_storage_policy_only_trusts_bound_facts_not_capacity[scope-monitored_only] _ - -tmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_storage_policy_only_trust1') -field = 'scope', value = 'monitored_only' - - @pytest.mark.parametrize('field,value', [('native_hard_cap', True), - ('scope', 'monitored_only'), ('boot_id', 'old'), - ('not_after_boottime', 0), ('mount_identity', 'other')]) - def test_storage_policy_only_trusts_bound_facts_not_capacity(tmp_path, field, value): - args, _, review = trusted_inputs(tmp_path) - review[field] = value - args.storage_policy.write_bytes(b.encode(review)) - args.trusted_storage_policy_sha256 = b.digest(args.storage_policy) - with pytest.raises(RuntimeError, match='storage_policy'): -> cli.storage_policy_check(args, b) - -tests/test_contact_cycle_sim_evaluation_runner.py:501: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundError -____ test_storage_policy_only_trusts_bound_facts_not_capacity[boot_id-old] _____ - -tmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_storage_policy_only_trust2') -field = 'boot_id', value = 'old' - - @pytest.mark.parametrize('field,value', [('native_hard_cap', True), - ('scope', 'monitored_only'), ('boot_id', 'old'), - ('not_after_boottime', 0), ('mount_identity', 'other')]) - def test_storage_policy_only_trusts_bound_facts_not_capacity(tmp_path, field, value): - args, _, review = trusted_inputs(tmp_path) - review[field] = value - args.storage_policy.write_bytes(b.encode(review)) - args.trusted_storage_policy_sha256 = b.digest(args.storage_policy) - with pytest.raises(RuntimeError, match='storage_policy'): -> cli.storage_policy_check(args, b) - -tests/test_contact_cycle_sim_evaluation_runner.py:501: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundError -_ test_storage_policy_only_trusts_bound_facts_not_capacity[not_after_boottime-0] _ - -tmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_storage_policy_only_trust3') -field = 'not_after_boottime', value = 0 - - @pytest.mark.parametrize('field,value', [('native_hard_cap', True), - ('scope', 'monitored_only'), ('boot_id', 'old'), - ('not_after_boottime', 0), ('mount_identity', 'other')]) - def test_storage_policy_only_trusts_bound_facts_not_capacity(tmp_path, field, value): - args, _, review = trusted_inputs(tmp_path) - review[field] = value - args.storage_policy.write_bytes(b.encode(review)) - args.trusted_storage_policy_sha256 = b.digest(args.storage_policy) - with pytest.raises(RuntimeError, match='storage_policy'): -> cli.storage_policy_check(args, b) - -tests/test_contact_cycle_sim_evaluation_runner.py:501: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundError -_ test_storage_policy_only_trusts_bound_facts_not_capacity[mount_identity-other] _ - -tmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_storage_policy_only_trust4') -field = 'mount_identity', value = 'other' - - @pytest.mark.parametrize('field,value', [('native_hard_cap', True), - ('scope', 'monitored_only'), ('boot_id', 'old'), - ('not_after_boottime', 0), ('mount_identity', 'other')]) - def test_storage_policy_only_trusts_bound_facts_not_capacity(tmp_path, field, value): - args, _, review = trusted_inputs(tmp_path) - review[field] = value - args.storage_policy.write_bytes(b.encode(review)) - args.trusted_storage_policy_sha256 = b.digest(args.storage_policy) - with pytest.raises(RuntimeError, match='storage_policy'): -> cli.storage_policy_check(args, b) - -tests/test_contact_cycle_sim_evaluation_runner.py:501: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundError -________________ test_failed_popen_is_charged_and_not_retryable ________________ - -tmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_failed_popen_is_charged_a0') -monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x78fb2424bfd0> - - def test_failed_popen_is_charged_and_not_retryable(tmp_path, monkeypatch): - args, _, _ = trusted_inputs(tmp_path) - calls = [] - monkeypatch.setattr(cli, 'native_size', lambda path, **_kw: native_scan_result(0, path=path)) - - def failed(*a, **kw): - calls.append(a) - raise OSError('CPU mock Popen failure') - - monkeypatch.setattr(cli.subprocess, 'Popen', failed) - monkeypatch.setattr(cli.ctypes, 'CDLL', lambda *_a, **_kw: NS(prctl=lambda *_: 0)) -> assert cli.supervise(args) == 1 - ^^^^^^^^^^^^^^^^^^^ - -tests/test_contact_cycle_sim_evaluation_runner.py:522: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:1744: in supervise - policy = storage_policy_check(args, b) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundError -________ test_supervisor_three_fresh_processes_bound_logs_and_P2_review ________ - -tmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_supervisor_three_fresh_pr0') -monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x78fb24259d90> - - def test_supervisor_three_fresh_processes_bound_logs_and_P2_review(tmp_path, monkeypatch): - args, grant, _ = trusted_inputs(tmp_path) - calls, payloads, cleaned = [], [], [] - - class Channel: - def fileno(self): - return 987 - - def set_inheritable(self, _): - pass - - def close(self): - pass - - class Owned: - supervisor = (1, 2) - known = set() - unknown = False - def attach(self, _): - pass - def discover(self): - return {} - - def exchange(child, channel, payload, *_): - payloads.append(payload) - - def popen(command, **kwargs): - index = len(calls) - calls.append((command, kwargs)) - output = args.artifact_root / f'launch-{index}' - b.durable_write(output / 'result.json', b.encode({ - 'observed_counts': {'attempted_steps': 7, 'completed_steps': 7, - 'initialization_steps': 2, 'rollout_steps': 5}, - 'continuation_eligible': True, 'preclose_identity_verified': True})) - b.durable_write(output / 'preclose-filesystem.json', b.encode({ - 'files': {}, 'frozen_root': str(tmp_path / 'no-frozen'), 'scope': 'CPU fixture'})) - stdout = tmp_path / f'mock-pipe-{index}' - stdout.write_bytes(b'CPU mocked child output\n') - return NS(pid=12345, stdout=stdout.open('rb'), returncode=0, wait=lambda **_: None, poll=lambda: 0) - - monkeypatch.setattr(cli.socket, 'socketpair', lambda: (Channel(), Channel())) - monkeypatch.setattr(cli.subprocess, 'Popen', popen) - monkeypatch.setattr(cli, 'exchange_worker', exchange) - monkeypatch.setattr(cli, 'OwnedProcesses', Owned) - monkeypatch.setattr(cli, 'native_size', lambda path, **_kw: native_scan_result(0, path=path)) - monkeypatch.setattr(cli.ctypes, 'CDLL', lambda *_a, **_kw: NS(prctl=lambda *_: 0)) - monkeypatch.setattr(cli.os, 'getpgid', lambda _: 12345) - monkeypatch.setattr(cli, 'cleanup_group', lambda child, *_: cleaned.append(child.pid) or True) - for index in range(3): - args.protocol = cli.PROTOCOLS[index == 2] - grant.update(launch_index=index, stage='P2' if index == 2 else 'P1', - trial_indices=list(range(20)) if index == 2 else [index], - protocol_sha256=b.digest(ROOT / args.protocol)) - if index == 2: - grant['p1_evidence_sha256'] = [b.tree_digest(args.artifact_root / f'launch-{i}') for i in (0, 1)] - args.grant.write_bytes(b.encode(grant)) - args.trusted_grant_sha256 = b.digest(args.grant) -> assert cli.supervise(args) == 0 - ^^^^^^^^^^^^^^^^^^^ - -tests/test_contact_cycle_sim_evaluation_runner.py:618: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:1744: in supervise - policy = storage_policy_check(args, b) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundError -_ test_storage_policy_requires_explicit_approved_monitoring[approval_sha256-0000000000000000000000000000000000000000000000000000000000000000] _ - -tmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_storage_policy_requires_e0') -field = 'approval_sha256' -value = '0000000000000000000000000000000000000000000000000000000000000000' - - @pytest.mark.parametrize('field,value', [('approval_sha256', '0' * 64), ('check_interval_seconds', 2), - ('coverage_gaps', []), ('native_paths', []), - ('shared_native_paths', []), ('task_owned_cache_paths', []), - ('format', 'skillfactory.output-storage-policy.v2'), - ('format', 'skillfactory.output-storage-policy.v3'), - ('free_space_paths', []), ('free_space_mount_identities', {}), - ('min_free_bytes', 0), ('max_native_growth_bytes', 0)]) - def test_storage_policy_requires_explicit_approved_monitoring(tmp_path, field, value): - args, _, policy = trusted_inputs(tmp_path) - policy[field] = value - args.storage_policy.write_bytes(b.encode(policy)) - args.trusted_storage_policy_sha256 = b.digest(args.storage_policy) - with pytest.raises(RuntimeError, match='storage_policy'): -> cli.storage_policy_check(args, b) - -tests/test_contact_cycle_sim_evaluation_runner.py:908: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundError -_ test_storage_policy_requires_explicit_approved_monitoring[check_interval_seconds-2] _ - -tmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_storage_policy_requires_e1') -field = 'check_interval_seconds', value = 2 - - @pytest.mark.parametrize('field,value', [('approval_sha256', '0' * 64), ('check_interval_seconds', 2), - ('coverage_gaps', []), ('native_paths', []), - ('shared_native_paths', []), ('task_owned_cache_paths', []), - ('format', 'skillfactory.output-storage-policy.v2'), - ('format', 'skillfactory.output-storage-policy.v3'), - ('free_space_paths', []), ('free_space_mount_identities', {}), - ('min_free_bytes', 0), ('max_native_growth_bytes', 0)]) - def test_storage_policy_requires_explicit_approved_monitoring(tmp_path, field, value): - args, _, policy = trusted_inputs(tmp_path) - policy[field] = value - args.storage_policy.write_bytes(b.encode(policy)) - args.trusted_storage_policy_sha256 = b.digest(args.storage_policy) - with pytest.raises(RuntimeError, match='storage_policy'): -> cli.storage_policy_check(args, b) - -tests/test_contact_cycle_sim_evaluation_runner.py:908: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundError -_ test_storage_policy_requires_explicit_approved_monitoring[coverage_gaps-value2] _ - -tmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_storage_policy_requires_e2') -field = 'coverage_gaps', value = [] - - @pytest.mark.parametrize('field,value', [('approval_sha256', '0' * 64), ('check_interval_seconds', 2), - ('coverage_gaps', []), ('native_paths', []), - ('shared_native_paths', []), ('task_owned_cache_paths', []), - ('format', 'skillfactory.output-storage-policy.v2'), - ('format', 'skillfactory.output-storage-policy.v3'), - ('free_space_paths', []), ('free_space_mount_identities', {}), - ('min_free_bytes', 0), ('max_native_growth_bytes', 0)]) - def test_storage_policy_requires_explicit_approved_monitoring(tmp_path, field, value): - args, _, policy = trusted_inputs(tmp_path) - policy[field] = value - args.storage_policy.write_bytes(b.encode(policy)) - args.trusted_storage_policy_sha256 = b.digest(args.storage_policy) - with pytest.raises(RuntimeError, match='storage_policy'): -> cli.storage_policy_check(args, b) - -tests/test_contact_cycle_sim_evaluation_runner.py:908: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundError -_ test_storage_policy_requires_explicit_approved_monitoring[native_paths-value3] _ - -tmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_storage_policy_requires_e3') -field = 'native_paths', value = [] - - @pytest.mark.parametrize('field,value', [('approval_sha256', '0' * 64), ('check_interval_seconds', 2), - ('coverage_gaps', []), ('native_paths', []), - ('shared_native_paths', []), ('task_owned_cache_paths', []), - ('format', 'skillfactory.output-storage-policy.v2'), - ('format', 'skillfactory.output-storage-policy.v3'), - ('free_space_paths', []), ('free_space_mount_identities', {}), - ('min_free_bytes', 0), ('max_native_growth_bytes', 0)]) - def test_storage_policy_requires_explicit_approved_monitoring(tmp_path, field, value): - args, _, policy = trusted_inputs(tmp_path) - policy[field] = value - args.storage_policy.write_bytes(b.encode(policy)) - args.trusted_storage_policy_sha256 = b.digest(args.storage_policy) - with pytest.raises(RuntimeError, match='storage_policy'): -> cli.storage_policy_check(args, b) - -tests/test_contact_cycle_sim_evaluation_runner.py:908: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundError -_ test_storage_policy_requires_explicit_approved_monitoring[shared_native_paths-value4] _ - -tmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_storage_policy_requires_e4') -field = 'shared_native_paths', value = [] - - @pytest.mark.parametrize('field,value', [('approval_sha256', '0' * 64), ('check_interval_seconds', 2), - ('coverage_gaps', []), ('native_paths', []), - ('shared_native_paths', []), ('task_owned_cache_paths', []), - ('format', 'skillfactory.output-storage-policy.v2'), - ('format', 'skillfactory.output-storage-policy.v3'), - ('free_space_paths', []), ('free_space_mount_identities', {}), - ('min_free_bytes', 0), ('max_native_growth_bytes', 0)]) - def test_storage_policy_requires_explicit_approved_monitoring(tmp_path, field, value): - args, _, policy = trusted_inputs(tmp_path) - policy[field] = value - args.storage_policy.write_bytes(b.encode(policy)) - args.trusted_storage_policy_sha256 = b.digest(args.storage_policy) - with pytest.raises(RuntimeError, match='storage_policy'): -> cli.storage_policy_check(args, b) - -tests/test_contact_cycle_sim_evaluation_runner.py:908: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundError -_ test_storage_policy_requires_explicit_approved_monitoring[task_owned_cache_paths-value5] _ - -tmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_storage_policy_requires_e5') -field = 'task_owned_cache_paths', value = [] - - @pytest.mark.parametrize('field,value', [('approval_sha256', '0' * 64), ('check_interval_seconds', 2), - ('coverage_gaps', []), ('native_paths', []), - ('shared_native_paths', []), ('task_owned_cache_paths', []), - ('format', 'skillfactory.output-storage-policy.v2'), - ('format', 'skillfactory.output-storage-policy.v3'), - ('free_space_paths', []), ('free_space_mount_identities', {}), - ('min_free_bytes', 0), ('max_native_growth_bytes', 0)]) - def test_storage_policy_requires_explicit_approved_monitoring(tmp_path, field, value): - args, _, policy = trusted_inputs(tmp_path) - policy[field] = value - args.storage_policy.write_bytes(b.encode(policy)) - args.trusted_storage_policy_sha256 = b.digest(args.storage_policy) - with pytest.raises(RuntimeError, match='storage_policy'): -> cli.storage_policy_check(args, b) - -tests/test_contact_cycle_sim_evaluation_runner.py:908: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundError -_ test_storage_policy_requires_explicit_approved_monitoring[format-skillfactory.output-storage-policy.v2] _ - -tmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_storage_policy_requires_e6') -field = 'format', value = 'skillfactory.output-storage-policy.v2' - - @pytest.mark.parametrize('field,value', [('approval_sha256', '0' * 64), ('check_interval_seconds', 2), - ('coverage_gaps', []), ('native_paths', []), - ('shared_native_paths', []), ('task_owned_cache_paths', []), - ('format', 'skillfactory.output-storage-policy.v2'), - ('format', 'skillfactory.output-storage-policy.v3'), - ('free_space_paths', []), ('free_space_mount_identities', {}), - ('min_free_bytes', 0), ('max_native_growth_bytes', 0)]) - def test_storage_policy_requires_explicit_approved_monitoring(tmp_path, field, value): - args, _, policy = trusted_inputs(tmp_path) - policy[field] = value - args.storage_policy.write_bytes(b.encode(policy)) - args.trusted_storage_policy_sha256 = b.digest(args.storage_policy) - with pytest.raises(RuntimeError, match='storage_policy'): -> cli.storage_policy_check(args, b) - -tests/test_contact_cycle_sim_evaluation_runner.py:908: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundError -_ test_storage_policy_requires_explicit_approved_monitoring[format-skillfactory.output-storage-policy.v3] _ - -tmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_storage_policy_requires_e7') -field = 'format', value = 'skillfactory.output-storage-policy.v3' - - @pytest.mark.parametrize('field,value', [('approval_sha256', '0' * 64), ('check_interval_seconds', 2), - ('coverage_gaps', []), ('native_paths', []), - ('shared_native_paths', []), ('task_owned_cache_paths', []), - ('format', 'skillfactory.output-storage-policy.v2'), - ('format', 'skillfactory.output-storage-policy.v3'), - ('free_space_paths', []), ('free_space_mount_identities', {}), - ('min_free_bytes', 0), ('max_native_growth_bytes', 0)]) - def test_storage_policy_requires_explicit_approved_monitoring(tmp_path, field, value): - args, _, policy = trusted_inputs(tmp_path) - policy[field] = value - args.storage_policy.write_bytes(b.encode(policy)) - args.trusted_storage_policy_sha256 = b.digest(args.storage_policy) - with pytest.raises(RuntimeError, match='storage_policy'): -> cli.storage_policy_check(args, b) - -tests/test_contact_cycle_sim_evaluation_runner.py:908: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundError -_ test_storage_policy_requires_explicit_approved_monitoring[free_space_paths-value8] _ - -tmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_storage_policy_requires_e8') -field = 'free_space_paths', value = [] - - @pytest.mark.parametrize('field,value', [('approval_sha256', '0' * 64), ('check_interval_seconds', 2), - ('coverage_gaps', []), ('native_paths', []), - ('shared_native_paths', []), ('task_owned_cache_paths', []), - ('format', 'skillfactory.output-storage-policy.v2'), - ('format', 'skillfactory.output-storage-policy.v3'), - ('free_space_paths', []), ('free_space_mount_identities', {}), - ('min_free_bytes', 0), ('max_native_growth_bytes', 0)]) - def test_storage_policy_requires_explicit_approved_monitoring(tmp_path, field, value): - args, _, policy = trusted_inputs(tmp_path) - policy[field] = value - args.storage_policy.write_bytes(b.encode(policy)) - args.trusted_storage_policy_sha256 = b.digest(args.storage_policy) - with pytest.raises(RuntimeError, match='storage_policy'): -> cli.storage_policy_check(args, b) - -tests/test_contact_cycle_sim_evaluation_runner.py:908: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundError -_ test_storage_policy_requires_explicit_approved_monitoring[free_space_mount_identities-value9] _ - -tmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_storage_policy_requires_e9') -field = 'free_space_mount_identities', value = {} - - @pytest.mark.parametrize('field,value', [('approval_sha256', '0' * 64), ('check_interval_seconds', 2), - ('coverage_gaps', []), ('native_paths', []), - ('shared_native_paths', []), ('task_owned_cache_paths', []), - ('format', 'skillfactory.output-storage-policy.v2'), - ('format', 'skillfactory.output-storage-policy.v3'), - ('free_space_paths', []), ('free_space_mount_identities', {}), - ('min_free_bytes', 0), ('max_native_growth_bytes', 0)]) - def test_storage_policy_requires_explicit_approved_monitoring(tmp_path, field, value): - args, _, policy = trusted_inputs(tmp_path) - policy[field] = value - args.storage_policy.write_bytes(b.encode(policy)) - args.trusted_storage_policy_sha256 = b.digest(args.storage_policy) - with pytest.raises(RuntimeError, match='storage_policy'): -> cli.storage_policy_check(args, b) - -tests/test_contact_cycle_sim_evaluation_runner.py:908: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundError -_ test_storage_policy_requires_explicit_approved_monitoring[min_free_bytes-0] __ - -tmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_storage_policy_requires_e10') -field = 'min_free_bytes', value = 0 - - @pytest.mark.parametrize('field,value', [('approval_sha256', '0' * 64), ('check_interval_seconds', 2), - ('coverage_gaps', []), ('native_paths', []), - ('shared_native_paths', []), ('task_owned_cache_paths', []), - ('format', 'skillfactory.output-storage-policy.v2'), - ('format', 'skillfactory.output-storage-policy.v3'), - ('free_space_paths', []), ('free_space_mount_identities', {}), - ('min_free_bytes', 0), ('max_native_growth_bytes', 0)]) - def test_storage_policy_requires_explicit_approved_monitoring(tmp_path, field, value): - args, _, policy = trusted_inputs(tmp_path) - policy[field] = value - args.storage_policy.write_bytes(b.encode(policy)) - args.trusted_storage_policy_sha256 = b.digest(args.storage_policy) - with pytest.raises(RuntimeError, match='storage_policy'): -> cli.storage_policy_check(args, b) - -tests/test_contact_cycle_sim_evaluation_runner.py:908: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundError -_ test_storage_policy_requires_explicit_approved_monitoring[max_native_growth_bytes-0] _ - -tmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_storage_policy_requires_e11') -field = 'max_native_growth_bytes', value = 0 - - @pytest.mark.parametrize('field,value', [('approval_sha256', '0' * 64), ('check_interval_seconds', 2), - ('coverage_gaps', []), ('native_paths', []), - ('shared_native_paths', []), ('task_owned_cache_paths', []), - ('format', 'skillfactory.output-storage-policy.v2'), - ('format', 'skillfactory.output-storage-policy.v3'), - ('free_space_paths', []), ('free_space_mount_identities', {}), - ('min_free_bytes', 0), ('max_native_growth_bytes', 0)]) - def test_storage_policy_requires_explicit_approved_monitoring(tmp_path, field, value): - args, _, policy = trusted_inputs(tmp_path) - policy[field] = value - args.storage_policy.write_bytes(b.encode(policy)) - args.trusted_storage_policy_sha256 = b.digest(args.storage_policy) - with pytest.raises(RuntimeError, match='storage_policy'): -> cli.storage_policy_check(args, b) - -tests/test_contact_cycle_sim_evaluation_runner.py:908: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundError -_______ test_supervise_captures_failed_handshake_through_cleanup[False] ________ - -tmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_supervise_captures_failed0') -monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x78fb1fbe1d50> -overflow = False - - @pytest.mark.parametrize('overflow', [False, True]) - def test_supervise_captures_failed_handshake_through_cleanup(tmp_path, monkeypatch, overflow): - args, _, _ = trusted_inputs(tmp_path) - monkeypatch.setattr(cli, 'native_size', lambda path, **_kw: native_scan_result(0, path=path)) - monkeypatch.setattr(cli.ctypes, 'CDLL', lambda *_a, **_kw: NS(prctl=lambda *_: 0)) - owned = NS(supervisor=(1, 2), known={(100, 10)}, attach=lambda _: None, - discover=lambda: {}, reap=lambda _: None, unknown=False) - monkeypatch.setattr(cli, 'OwnedProcesses', lambda: owned) - source = tmp_path / 'mock-pipe' - trace = b'Traceback: import failed BEFORE hello\n' - source.write_bytes(trace + (b'x' * b.STDOUT_BYTES if overflow else b'')) - def popen(*_, **__): - return NS(pid=100, stdout=source.open('rb'), returncode=1, poll=lambda: 1) - def failed_exchange(child, channel, payload, budget, capture, *_): - if overflow: - capture.check() - capture.check() - raise RuntimeError('identity_worker_handshake_eof') - monkeypatch.setattr(cli.subprocess, 'Popen', popen) - monkeypatch.setattr(cli, 'exchange_worker', failed_exchange) -> assert cli.supervise(args) == 1 - ^^^^^^^^^^^^^^^^^^^ - -tests/test_contact_cycle_sim_evaluation_runner.py:1158: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:1744: in supervise - policy = storage_policy_check(args, b) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundError -________ test_supervise_captures_failed_handshake_through_cleanup[True] ________ - -tmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_supervise_captures_failed1') -monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x78fb243585d0> -overflow = True - - @pytest.mark.parametrize('overflow', [False, True]) - def test_supervise_captures_failed_handshake_through_cleanup(tmp_path, monkeypatch, overflow): - args, _, _ = trusted_inputs(tmp_path) - monkeypatch.setattr(cli, 'native_size', lambda path, **_kw: native_scan_result(0, path=path)) - monkeypatch.setattr(cli.ctypes, 'CDLL', lambda *_a, **_kw: NS(prctl=lambda *_: 0)) - owned = NS(supervisor=(1, 2), known={(100, 10)}, attach=lambda _: None, - discover=lambda: {}, reap=lambda _: None, unknown=False) - monkeypatch.setattr(cli, 'OwnedProcesses', lambda: owned) - source = tmp_path / 'mock-pipe' - trace = b'Traceback: import failed BEFORE hello\n' - source.write_bytes(trace + (b'x' * b.STDOUT_BYTES if overflow else b'')) - def popen(*_, **__): - return NS(pid=100, stdout=source.open('rb'), returncode=1, poll=lambda: 1) - def failed_exchange(child, channel, payload, budget, capture, *_): - if overflow: - capture.check() - capture.check() - raise RuntimeError('identity_worker_handshake_eof') - monkeypatch.setattr(cli.subprocess, 'Popen', popen) - monkeypatch.setattr(cli, 'exchange_worker', failed_exchange) -> assert cli.supervise(args) == 1 - ^^^^^^^^^^^^^^^^^^^ - -tests/test_contact_cycle_sim_evaluation_runner.py:1158: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:1744: in supervise - policy = storage_policy_check(args, b) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundError -___ test_supervise_setup_failure_terminates_reaps_and_closes_pipes[capture] ____ - -tmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_supervise_setup_failure_t0') -monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x78fb1fc92650> -failure = 'capture' - - @pytest.mark.parametrize('failure', ['capture', 'attach']) - def test_supervise_setup_failure_terminates_reaps_and_closes_pipes(tmp_path, monkeypatch, failure): - args, _, _ = trusted_inputs(tmp_path) - monkeypatch.setattr(cli, 'native_size', lambda path, **_kw: native_scan_result(0, path=path)) - monkeypatch.setattr(cli.ctypes, 'CDLL', lambda *_a, **_kw: NS(prctl=lambda *_: 0)) - parent = cli.os.getpid() - table = {parent: (1, 0, 0, 'S')} - monkeypatch.setattr(cli, 'process_table', lambda: dict(table)) - owned = cli.OwnedProcesses() - monkeypatch.setattr(cli, 'OwnedProcesses', lambda: owned) - events = [] - pipe = (tmp_path / 'pipe').open('w+b') - child = NS(pid=100, stdout=pipe, returncode=None) - - def poll(): - if table.get(100, (None, None, None, None))[3] == 'Z': - del table[100] - child.returncode = -cli.signal.SIGTERM - events.append('reaped') - return child.returncode - - child.poll = poll - - def popen(*_, **kwargs): - assert kwargs['start_new_session'] - table[100] = (10, parent, 100, 'S') - events.append('spawned') - return child - - attach = owned.attach - - def attaching(process): - assert events == ['spawned'] - events.append('attached') - if failure == 'attach': - raise RuntimeError('injected_attach_failure') - attach(process) - - def capture(*_): - assert owned.root == (100, 10) - events.append('capture') - raise OSError('injected_capture_constructor_failure') - - def terminate(pid, row, sig): - assert pid == 100 and row[0] == 10 and pipe.closed - assert sig == cli.signal.SIGTERM - table[100] = (10, parent, 100, 'Z') - events.append('terminated') - - monkeypatch.setattr(cli.subprocess, 'Popen', popen) - monkeypatch.setattr(owned, 'attach', attaching) - monkeypatch.setattr(owned, 'signal', terminate) - monkeypatch.setattr(cli, 'StdoutCapture', capture) -> assert cli.supervise(args) == 1 - ^^^^^^^^^^^^^^^^^^^ - -tests/test_contact_cycle_sim_evaluation_runner.py:1238: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:1744: in supervise - policy = storage_policy_check(args, b) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundError -____ test_supervise_setup_failure_terminates_reaps_and_closes_pipes[attach] ____ - -tmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_supervise_setup_failure_t1') -monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x78fb30ae0f50> -failure = 'attach' - - @pytest.mark.parametrize('failure', ['capture', 'attach']) - def test_supervise_setup_failure_terminates_reaps_and_closes_pipes(tmp_path, monkeypatch, failure): - args, _, _ = trusted_inputs(tmp_path) - monkeypatch.setattr(cli, 'native_size', lambda path, **_kw: native_scan_result(0, path=path)) - monkeypatch.setattr(cli.ctypes, 'CDLL', lambda *_a, **_kw: NS(prctl=lambda *_: 0)) - parent = cli.os.getpid() - table = {parent: (1, 0, 0, 'S')} - monkeypatch.setattr(cli, 'process_table', lambda: dict(table)) - owned = cli.OwnedProcesses() - monkeypatch.setattr(cli, 'OwnedProcesses', lambda: owned) - events = [] - pipe = (tmp_path / 'pipe').open('w+b') - child = NS(pid=100, stdout=pipe, returncode=None) - - def poll(): - if table.get(100, (None, None, None, None))[3] == 'Z': - del table[100] - child.returncode = -cli.signal.SIGTERM - events.append('reaped') - return child.returncode - - child.poll = poll - - def popen(*_, **kwargs): - assert kwargs['start_new_session'] - table[100] = (10, parent, 100, 'S') - events.append('spawned') - return child - - attach = owned.attach - - def attaching(process): - assert events == ['spawned'] - events.append('attached') - if failure == 'attach': - raise RuntimeError('injected_attach_failure') - attach(process) - - def capture(*_): - assert owned.root == (100, 10) - events.append('capture') - raise OSError('injected_capture_constructor_failure') - - def terminate(pid, row, sig): - assert pid == 100 and row[0] == 10 and pipe.closed - assert sig == cli.signal.SIGTERM - table[100] = (10, parent, 100, 'Z') - events.append('terminated') - - monkeypatch.setattr(cli.subprocess, 'Popen', popen) - monkeypatch.setattr(owned, 'attach', attaching) - monkeypatch.setattr(owned, 'signal', terminate) - monkeypatch.setattr(cli, 'StdoutCapture', capture) -> assert cli.supervise(args) == 1 - ^^^^^^^^^^^^^^^^^^^ - -tests/test_contact_cycle_sim_evaluation_runner.py:1238: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:1744: in supervise - policy = storage_policy_check(args, b) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundError -____________ test_storage_policy_historical_v2_is_not_reinterpreted ____________ - -tmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_storage_policy_historical0') - - def test_storage_policy_historical_v2_is_not_reinterpreted(tmp_path): - args, _, policy = trusted_inputs(tmp_path) - policy['format'] = 'skillfactory.output-storage-policy.v2' - del policy['shared_native_paths'], policy['task_owned_cache_paths'] - policy['coverage_gaps'] = list(cli.NATIVE_GAPS[:-1]) - args.storage_policy.write_bytes(b.encode(policy)) - args.trusted_storage_policy_sha256 = b.digest(args.storage_policy) - with pytest.raises(RuntimeError, match='storage_policy_identity_or_conditions_mismatch'): -> cli.storage_policy_check(args, b) - -tests/test_contact_cycle_sim_evaluation_runner.py:1341: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundError -___ test_storage_policy_paths_are_exact_writer_paths[omission-native_paths] ____ - -tmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_storage_policy_paths_are_0') -change = 'omission', field = 'native_paths' - - @pytest.mark.parametrize('field', ['native_paths', 'shared_native_paths', 'task_owned_cache_paths', 'free_space_paths']) - @pytest.mark.parametrize('change', ['omission', 'addition', 'alias']) - def test_storage_policy_paths_are_exact_writer_paths(tmp_path, change, field): - args, _, policy = trusted_inputs(tmp_path) - if change == 'omission': - policy[field].pop() - elif change == 'addition': - policy[field].append('/tmp/arbitrary-external-cache') - else: - policy[field][0] += '/../alias' - args.storage_policy.write_bytes(b.encode(policy)) - args.trusted_storage_policy_sha256 = b.digest(args.storage_policy) - with pytest.raises(RuntimeError, match='storage_policy_identity_or_conditions_mismatch'): -> cli.storage_policy_check(args, b) - -tests/test_contact_cycle_sim_evaluation_runner.py:1357: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundError -_ test_storage_policy_paths_are_exact_writer_paths[omission-shared_native_paths] _ - -tmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_storage_policy_paths_are_1') -change = 'omission', field = 'shared_native_paths' - - @pytest.mark.parametrize('field', ['native_paths', 'shared_native_paths', 'task_owned_cache_paths', 'free_space_paths']) - @pytest.mark.parametrize('change', ['omission', 'addition', 'alias']) - def test_storage_policy_paths_are_exact_writer_paths(tmp_path, change, field): - args, _, policy = trusted_inputs(tmp_path) - if change == 'omission': - policy[field].pop() - elif change == 'addition': - policy[field].append('/tmp/arbitrary-external-cache') - else: - policy[field][0] += '/../alias' - args.storage_policy.write_bytes(b.encode(policy)) - args.trusted_storage_policy_sha256 = b.digest(args.storage_policy) - with pytest.raises(RuntimeError, match='storage_policy_identity_or_conditions_mismatch'): -> cli.storage_policy_check(args, b) - -tests/test_contact_cycle_sim_evaluation_runner.py:1357: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundError -_ test_storage_policy_paths_are_exact_writer_paths[omission-task_owned_cache_paths] _ - -tmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_storage_policy_paths_are_2') -change = 'omission', field = 'task_owned_cache_paths' - - @pytest.mark.parametrize('field', ['native_paths', 'shared_native_paths', 'task_owned_cache_paths', 'free_space_paths']) - @pytest.mark.parametrize('change', ['omission', 'addition', 'alias']) - def test_storage_policy_paths_are_exact_writer_paths(tmp_path, change, field): - args, _, policy = trusted_inputs(tmp_path) - if change == 'omission': - policy[field].pop() - elif change == 'addition': - policy[field].append('/tmp/arbitrary-external-cache') - else: - policy[field][0] += '/../alias' - args.storage_policy.write_bytes(b.encode(policy)) - args.trusted_storage_policy_sha256 = b.digest(args.storage_policy) - with pytest.raises(RuntimeError, match='storage_policy_identity_or_conditions_mismatch'): -> cli.storage_policy_check(args, b) - -tests/test_contact_cycle_sim_evaluation_runner.py:1357: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundError -_ test_storage_policy_paths_are_exact_writer_paths[omission-free_space_paths] __ - -tmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_storage_policy_paths_are_3') -change = 'omission', field = 'free_space_paths' - - @pytest.mark.parametrize('field', ['native_paths', 'shared_native_paths', 'task_owned_cache_paths', 'free_space_paths']) - @pytest.mark.parametrize('change', ['omission', 'addition', 'alias']) - def test_storage_policy_paths_are_exact_writer_paths(tmp_path, change, field): - args, _, policy = trusted_inputs(tmp_path) - if change == 'omission': - policy[field].pop() - elif change == 'addition': - policy[field].append('/tmp/arbitrary-external-cache') - else: - policy[field][0] += '/../alias' - args.storage_policy.write_bytes(b.encode(policy)) - args.trusted_storage_policy_sha256 = b.digest(args.storage_policy) - with pytest.raises(RuntimeError, match='storage_policy_identity_or_conditions_mismatch'): -> cli.storage_policy_check(args, b) - -tests/test_contact_cycle_sim_evaluation_runner.py:1357: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundError -___ test_storage_policy_paths_are_exact_writer_paths[addition-native_paths] ____ - -tmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_storage_policy_paths_are_4') -change = 'addition', field = 'native_paths' - - @pytest.mark.parametrize('field', ['native_paths', 'shared_native_paths', 'task_owned_cache_paths', 'free_space_paths']) - @pytest.mark.parametrize('change', ['omission', 'addition', 'alias']) - def test_storage_policy_paths_are_exact_writer_paths(tmp_path, change, field): - args, _, policy = trusted_inputs(tmp_path) - if change == 'omission': - policy[field].pop() - elif change == 'addition': - policy[field].append('/tmp/arbitrary-external-cache') - else: - policy[field][0] += '/../alias' - args.storage_policy.write_bytes(b.encode(policy)) - args.trusted_storage_policy_sha256 = b.digest(args.storage_policy) - with pytest.raises(RuntimeError, match='storage_policy_identity_or_conditions_mismatch'): -> cli.storage_policy_check(args, b) - -tests/test_contact_cycle_sim_evaluation_runner.py:1357: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundError -_ test_storage_policy_paths_are_exact_writer_paths[addition-shared_native_paths] _ - -tmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_storage_policy_paths_are_5') -change = 'addition', field = 'shared_native_paths' - - @pytest.mark.parametrize('field', ['native_paths', 'shared_native_paths', 'task_owned_cache_paths', 'free_space_paths']) - @pytest.mark.parametrize('change', ['omission', 'addition', 'alias']) - def test_storage_policy_paths_are_exact_writer_paths(tmp_path, change, field): - args, _, policy = trusted_inputs(tmp_path) - if change == 'omission': - policy[field].pop() - elif change == 'addition': - policy[field].append('/tmp/arbitrary-external-cache') - else: - policy[field][0] += '/../alias' - args.storage_policy.write_bytes(b.encode(policy)) - args.trusted_storage_policy_sha256 = b.digest(args.storage_policy) - with pytest.raises(RuntimeError, match='storage_policy_identity_or_conditions_mismatch'): -> cli.storage_policy_check(args, b) - -tests/test_contact_cycle_sim_evaluation_runner.py:1357: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundError -_ test_storage_policy_paths_are_exact_writer_paths[addition-task_owned_cache_paths] _ - -tmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_storage_policy_paths_are_6') -change = 'addition', field = 'task_owned_cache_paths' - - @pytest.mark.parametrize('field', ['native_paths', 'shared_native_paths', 'task_owned_cache_paths', 'free_space_paths']) - @pytest.mark.parametrize('change', ['omission', 'addition', 'alias']) - def test_storage_policy_paths_are_exact_writer_paths(tmp_path, change, field): - args, _, policy = trusted_inputs(tmp_path) - if change == 'omission': - policy[field].pop() - elif change == 'addition': - policy[field].append('/tmp/arbitrary-external-cache') - else: - policy[field][0] += '/../alias' - args.storage_policy.write_bytes(b.encode(policy)) - args.trusted_storage_policy_sha256 = b.digest(args.storage_policy) - with pytest.raises(RuntimeError, match='storage_policy_identity_or_conditions_mismatch'): -> cli.storage_policy_check(args, b) - -tests/test_contact_cycle_sim_evaluation_runner.py:1357: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundError -_ test_storage_policy_paths_are_exact_writer_paths[addition-free_space_paths] __ - -tmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_storage_policy_paths_are_7') -change = 'addition', field = 'free_space_paths' - - @pytest.mark.parametrize('field', ['native_paths', 'shared_native_paths', 'task_owned_cache_paths', 'free_space_paths']) - @pytest.mark.parametrize('change', ['omission', 'addition', 'alias']) - def test_storage_policy_paths_are_exact_writer_paths(tmp_path, change, field): - args, _, policy = trusted_inputs(tmp_path) - if change == 'omission': - policy[field].pop() - elif change == 'addition': - policy[field].append('/tmp/arbitrary-external-cache') - else: - policy[field][0] += '/../alias' - args.storage_policy.write_bytes(b.encode(policy)) - args.trusted_storage_policy_sha256 = b.digest(args.storage_policy) - with pytest.raises(RuntimeError, match='storage_policy_identity_or_conditions_mismatch'): -> cli.storage_policy_check(args, b) - -tests/test_contact_cycle_sim_evaluation_runner.py:1357: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundError -_____ test_storage_policy_paths_are_exact_writer_paths[alias-native_paths] _____ - -tmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_storage_policy_paths_are_8') -change = 'alias', field = 'native_paths' - - @pytest.mark.parametrize('field', ['native_paths', 'shared_native_paths', 'task_owned_cache_paths', 'free_space_paths']) - @pytest.mark.parametrize('change', ['omission', 'addition', 'alias']) - def test_storage_policy_paths_are_exact_writer_paths(tmp_path, change, field): - args, _, policy = trusted_inputs(tmp_path) - if change == 'omission': - policy[field].pop() - elif change == 'addition': - policy[field].append('/tmp/arbitrary-external-cache') - else: - policy[field][0] += '/../alias' - args.storage_policy.write_bytes(b.encode(policy)) - args.trusted_storage_policy_sha256 = b.digest(args.storage_policy) - with pytest.raises(RuntimeError, match='storage_policy_identity_or_conditions_mismatch'): -> cli.storage_policy_check(args, b) - -tests/test_contact_cycle_sim_evaluation_runner.py:1357: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundError -_ test_storage_policy_paths_are_exact_writer_paths[alias-shared_native_paths] __ - -tmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_storage_policy_paths_are_9') -change = 'alias', field = 'shared_native_paths' - - @pytest.mark.parametrize('field', ['native_paths', 'shared_native_paths', 'task_owned_cache_paths', 'free_space_paths']) - @pytest.mark.parametrize('change', ['omission', 'addition', 'alias']) - def test_storage_policy_paths_are_exact_writer_paths(tmp_path, change, field): - args, _, policy = trusted_inputs(tmp_path) - if change == 'omission': - policy[field].pop() - elif change == 'addition': - policy[field].append('/tmp/arbitrary-external-cache') - else: - policy[field][0] += '/../alias' - args.storage_policy.write_bytes(b.encode(policy)) - args.trusted_storage_policy_sha256 = b.digest(args.storage_policy) - with pytest.raises(RuntimeError, match='storage_policy_identity_or_conditions_mismatch'): -> cli.storage_policy_check(args, b) - -tests/test_contact_cycle_sim_evaluation_runner.py:1357: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundError -_ test_storage_policy_paths_are_exact_writer_paths[alias-task_owned_cache_paths] _ - -tmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_storage_policy_paths_are_10') -change = 'alias', field = 'task_owned_cache_paths' - - @pytest.mark.parametrize('field', ['native_paths', 'shared_native_paths', 'task_owned_cache_paths', 'free_space_paths']) - @pytest.mark.parametrize('change', ['omission', 'addition', 'alias']) - def test_storage_policy_paths_are_exact_writer_paths(tmp_path, change, field): - args, _, policy = trusted_inputs(tmp_path) - if change == 'omission': - policy[field].pop() - elif change == 'addition': - policy[field].append('/tmp/arbitrary-external-cache') - else: - policy[field][0] += '/../alias' - args.storage_policy.write_bytes(b.encode(policy)) - args.trusted_storage_policy_sha256 = b.digest(args.storage_policy) - with pytest.raises(RuntimeError, match='storage_policy_identity_or_conditions_mismatch'): -> cli.storage_policy_check(args, b) - -tests/test_contact_cycle_sim_evaluation_runner.py:1357: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundError -___ test_storage_policy_paths_are_exact_writer_paths[alias-free_space_paths] ___ - -tmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_storage_policy_paths_are_11') -change = 'alias', field = 'free_space_paths' - - @pytest.mark.parametrize('field', ['native_paths', 'shared_native_paths', 'task_owned_cache_paths', 'free_space_paths']) - @pytest.mark.parametrize('change', ['omission', 'addition', 'alias']) - def test_storage_policy_paths_are_exact_writer_paths(tmp_path, change, field): - args, _, policy = trusted_inputs(tmp_path) - if change == 'omission': - policy[field].pop() - elif change == 'addition': - policy[field].append('/tmp/arbitrary-external-cache') - else: - policy[field][0] += '/../alias' - args.storage_policy.write_bytes(b.encode(policy)) - args.trusted_storage_policy_sha256 = b.digest(args.storage_policy) - with pytest.raises(RuntimeError, match='storage_policy_identity_or_conditions_mismatch'): -> cli.storage_policy_check(args, b) - -tests/test_contact_cycle_sim_evaluation_runner.py:1357: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundError -_________ test_manifest_explicit_additive_identity_and_immutable_base __________ - - def test_manifest_explicit_additive_identity_and_immutable_base(): -> manifest = p.make_manifest(ROOT, ROOT / p.CONFIG_PATH) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -tests/test_contact_cycle_sim_rootxy_v2.py:118: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -source/SkillFactory/SkillFactory/legs/contact_cycle_sim/rootxy_training_v2.py:121: in make_manifest - "sha256": hashlib.sha256(parity_path.read_bytes()).hexdigest()}, - ^^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/sim_residual_training_v1/prepared01/validation_u0256_trace.pt') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/sim_residual_training_v1/prepared01/validation_u0256_trace.pt' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundError -________ test_actual_frozen_saved46d_actor_parity_fresh_critic_Adam_RNG ________ - - def test_actual_frozen_saved46d_actor_parity_fresh_critic_Adam_RNG(): -> trace = torch.load(ROOT / Path(p.replay.CANDIDATE).parent / 'validation_u0256_trace.pt', - map_location='cpu', weights_only=True) - -tests/test_contact_cycle_sim_rootxy_v2.py:130: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/site-packages/torch/serialization.py:1479: in load - with _open_file_like(f, "rb") as opened_file: - ^^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/site-packages/torch/serialization.py:759: in _open_file_like - return _open_file(name_or_buffer, mode) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = -name = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/sim_residual_training_v1/prepared01/validation_u0256_trace.pt') -mode = 'rb' - - def __init__(self, name: Union[str, os.PathLike[str]], mode: str) -> None: -> super().__init__(open(name, mode)) - ^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/sim_residual_training_v1/prepared01/validation_u0256_trace.pt' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/site-packages/torch/serialization.py:740: FileNotFoundError -_ test_full_saved_episode_streaming_metrics_match_direct_reduction_and_compact_audit _ - - def test_full_saved_episode_streaming_metrics_match_direct_reduction_and_compact_audit(): - # Retrospective tensor reduction only: no policy call or simulator step. -> trace = torch.load(ROOT / Path(p.replay.CANDIDATE).parent / 'validation_u0256_trace.pt', - map_location='cpu', weights_only=True) - -tests/test_contact_cycle_sim_rootxy_v2.py:310: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/site-packages/torch/serialization.py:1479: in load - with _open_file_like(f, "rb") as opened_file: - ^^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/site-packages/torch/serialization.py:759: in _open_file_like - return _open_file(name_or_buffer, mode) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = -name = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/sim_residual_training_v1/prepared01/validation_u0256_trace.pt') -mode = 'rb' - - def __init__(self, name: Union[str, os.PathLike[str]], mode: str) -> None: -> super().__init__(open(name, mode)) - ^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/sim_residual_training_v1/prepared01/validation_u0256_trace.pt' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/site-packages/torch/serialization.py:740: FileNotFoundError -=========================== short test summary info ============================ -FAILED tests/test_contact_cycle_sim_evaluation_runner.py::test_storage_policy_only_trusts_bound_facts_not_capacity[native_hard_cap-True] -FAILED tests/test_contact_cycle_sim_evaluation_runner.py::test_storage_policy_only_trusts_bound_facts_not_capacity[scope-monitored_only] -FAILED tests/test_contact_cycle_sim_evaluation_runner.py::test_storage_policy_only_trusts_bound_facts_not_capacity[boot_id-old] -FAILED tests/test_contact_cycle_sim_evaluation_runner.py::test_storage_policy_only_trusts_bound_facts_not_capacity[not_after_boottime-0] -FAILED tests/test_contact_cycle_sim_evaluation_runner.py::test_storage_policy_only_trusts_bound_facts_not_capacity[mount_identity-other] -FAILED tests/test_contact_cycle_sim_evaluation_runner.py::test_failed_popen_is_charged_and_not_retryable -FAILED tests/test_contact_cycle_sim_evaluation_runner.py::test_supervisor_three_fresh_processes_bound_logs_and_P2_review -FAILED tests/test_contact_cycle_sim_evaluation_runner.py::test_storage_policy_requires_explicit_approved_monitoring[approval_sha256-0000000000000000000000000000000000000000000000000000000000000000] -FAILED tests/test_contact_cycle_sim_evaluation_runner.py::test_storage_policy_requires_explicit_approved_monitoring[check_interval_seconds-2] -FAILED tests/test_contact_cycle_sim_evaluation_runner.py::test_storage_policy_requires_explicit_approved_monitoring[coverage_gaps-value2] -FAILED tests/test_contact_cycle_sim_evaluation_runner.py::test_storage_policy_requires_explicit_approved_monitoring[native_paths-value3] -FAILED tests/test_contact_cycle_sim_evaluation_runner.py::test_storage_policy_requires_explicit_approved_monitoring[shared_native_paths-value4] -FAILED tests/test_contact_cycle_sim_evaluation_runner.py::test_storage_policy_requires_explicit_approved_monitoring[task_owned_cache_paths-value5] -FAILED tests/test_contact_cycle_sim_evaluation_runner.py::test_storage_policy_requires_explicit_approved_monitoring[format-skillfactory.output-storage-policy.v2] -FAILED tests/test_contact_cycle_sim_evaluation_runner.py::test_storage_policy_requires_explicit_approved_monitoring[format-skillfactory.output-storage-policy.v3] -FAILED tests/test_contact_cycle_sim_evaluation_runner.py::test_storage_policy_requires_explicit_approved_monitoring[free_space_paths-value8] -FAILED tests/test_contact_cycle_sim_evaluation_runner.py::test_storage_policy_requires_explicit_approved_monitoring[free_space_mount_identities-value9] -FAILED tests/test_contact_cycle_sim_evaluation_runner.py::test_storage_policy_requires_explicit_approved_monitoring[min_free_bytes-0] -FAILED tests/test_contact_cycle_sim_evaluation_runner.py::test_storage_policy_requires_explicit_approved_monitoring[max_native_growth_bytes-0] -FAILED tests/test_contact_cycle_sim_evaluation_runner.py::test_supervise_captures_failed_handshake_through_cleanup[False] -FAILED tests/test_contact_cycle_sim_evaluation_runner.py::test_supervise_captures_failed_handshake_through_cleanup[True] -FAILED tests/test_contact_cycle_sim_evaluation_runner.py::test_supervise_setup_failure_terminates_reaps_and_closes_pipes[capture] -FAILED tests/test_contact_cycle_sim_evaluation_runner.py::test_supervise_setup_failure_terminates_reaps_and_closes_pipes[attach] -FAILED tests/test_contact_cycle_sim_evaluation_runner.py::test_storage_policy_historical_v2_is_not_reinterpreted -FAILED tests/test_contact_cycle_sim_evaluation_runner.py::test_storage_policy_paths_are_exact_writer_paths[omission-native_paths] -FAILED tests/test_contact_cycle_sim_evaluation_runner.py::test_storage_policy_paths_are_exact_writer_paths[omission-shared_native_paths] -FAILED tests/test_contact_cycle_sim_evaluation_runner.py::test_storage_policy_paths_are_exact_writer_paths[omission-task_owned_cache_paths] -FAILED tests/test_contact_cycle_sim_evaluation_runner.py::test_storage_policy_paths_are_exact_writer_paths[omission-free_space_paths] -FAILED tests/test_contact_cycle_sim_evaluation_runner.py::test_storage_policy_paths_are_exact_writer_paths[addition-native_paths] -FAILED tests/test_contact_cycle_sim_evaluation_runner.py::test_storage_policy_paths_are_exact_writer_paths[addition-shared_native_paths] -FAILED tests/test_contact_cycle_sim_evaluation_runner.py::test_storage_policy_paths_are_exact_writer_paths[addition-task_owned_cache_paths] -FAILED tests/test_contact_cycle_sim_evaluation_runner.py::test_storage_policy_paths_are_exact_writer_paths[addition-free_space_paths] -FAILED tests/test_contact_cycle_sim_evaluation_runner.py::test_storage_policy_paths_are_exact_writer_paths[alias-native_paths] -FAILED tests/test_contact_cycle_sim_evaluation_runner.py::test_storage_policy_paths_are_exact_writer_paths[alias-shared_native_paths] -FAILED tests/test_contact_cycle_sim_evaluation_runner.py::test_storage_policy_paths_are_exact_writer_paths[alias-task_owned_cache_paths] -FAILED tests/test_contact_cycle_sim_evaluation_runner.py::test_storage_policy_paths_are_exact_writer_paths[alias-free_space_paths] -FAILED tests/test_contact_cycle_sim_rootxy_v2.py::test_manifest_explicit_additive_identity_and_immutable_base -FAILED tests/test_contact_cycle_sim_rootxy_v2.py::test_actual_frozen_saved46d_actor_parity_fresh_critic_Adam_RNG -FAILED tests/test_contact_cycle_sim_rootxy_v2.py::test_full_saved_episode_streaming_metrics_match_direct_reduction_and_compact_audit -39 failed, 1517 passed, 7 skipped in 117.64s (0:01:57) diff --git a/performance_v042/delivery-cpu.xml b/performance_v042/delivery-cpu.xml deleted file mode 100644 index b416f72..0000000 --- a/performance_v042/delivery-cpu.xml +++ /dev/null @@ -1,1836 +0,0 @@ -/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/tests/test_contact_cycle_physics.py:15: requires supervised Isaac PhysX/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/tests/test_contact_cycle_physics.py:15: requires supervised Isaac PhysX/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/tests/test_contact_cycle_physics.py:15: requires supervised Isaac PhysXtmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_storage_policy_only_trust0') -field = 'native_hard_cap', value = True - - @pytest.mark.parametrize('field,value', [('native_hard_cap', True), - ('scope', 'monitored_only'), ('boot_id', 'old'), - ('not_after_boottime', 0), ('mount_identity', 'other')]) - def test_storage_policy_only_trusts_bound_facts_not_capacity(tmp_path, field, value): - args, _, review = trusted_inputs(tmp_path) - review[field] = value - args.storage_policy.write_bytes(b.encode(review)) - args.trusted_storage_policy_sha256 = b.digest(args.storage_policy) - with pytest.raises(RuntimeError, match='storage_policy'): -> cli.storage_policy_check(args, b) - -tests/test_contact_cycle_sim_evaluation_runner.py:501: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundErrortmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_storage_policy_only_trust1') -field = 'scope', value = 'monitored_only' - - @pytest.mark.parametrize('field,value', [('native_hard_cap', True), - ('scope', 'monitored_only'), ('boot_id', 'old'), - ('not_after_boottime', 0), ('mount_identity', 'other')]) - def test_storage_policy_only_trusts_bound_facts_not_capacity(tmp_path, field, value): - args, _, review = trusted_inputs(tmp_path) - review[field] = value - args.storage_policy.write_bytes(b.encode(review)) - args.trusted_storage_policy_sha256 = b.digest(args.storage_policy) - with pytest.raises(RuntimeError, match='storage_policy'): -> cli.storage_policy_check(args, b) - -tests/test_contact_cycle_sim_evaluation_runner.py:501: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundErrortmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_storage_policy_only_trust2') -field = 'boot_id', value = 'old' - - @pytest.mark.parametrize('field,value', [('native_hard_cap', True), - ('scope', 'monitored_only'), ('boot_id', 'old'), - ('not_after_boottime', 0), ('mount_identity', 'other')]) - def test_storage_policy_only_trusts_bound_facts_not_capacity(tmp_path, field, value): - args, _, review = trusted_inputs(tmp_path) - review[field] = value - args.storage_policy.write_bytes(b.encode(review)) - args.trusted_storage_policy_sha256 = b.digest(args.storage_policy) - with pytest.raises(RuntimeError, match='storage_policy'): -> cli.storage_policy_check(args, b) - -tests/test_contact_cycle_sim_evaluation_runner.py:501: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundErrortmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_storage_policy_only_trust3') -field = 'not_after_boottime', value = 0 - - @pytest.mark.parametrize('field,value', [('native_hard_cap', True), - ('scope', 'monitored_only'), ('boot_id', 'old'), - ('not_after_boottime', 0), ('mount_identity', 'other')]) - def test_storage_policy_only_trusts_bound_facts_not_capacity(tmp_path, field, value): - args, _, review = trusted_inputs(tmp_path) - review[field] = value - args.storage_policy.write_bytes(b.encode(review)) - args.trusted_storage_policy_sha256 = b.digest(args.storage_policy) - with pytest.raises(RuntimeError, match='storage_policy'): -> cli.storage_policy_check(args, b) - -tests/test_contact_cycle_sim_evaluation_runner.py:501: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundErrortmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_storage_policy_only_trust4') -field = 'mount_identity', value = 'other' - - @pytest.mark.parametrize('field,value', [('native_hard_cap', True), - ('scope', 'monitored_only'), ('boot_id', 'old'), - ('not_after_boottime', 0), ('mount_identity', 'other')]) - def test_storage_policy_only_trusts_bound_facts_not_capacity(tmp_path, field, value): - args, _, review = trusted_inputs(tmp_path) - review[field] = value - args.storage_policy.write_bytes(b.encode(review)) - args.trusted_storage_policy_sha256 = b.digest(args.storage_policy) - with pytest.raises(RuntimeError, match='storage_policy'): -> cli.storage_policy_check(args, b) - -tests/test_contact_cycle_sim_evaluation_runner.py:501: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundErrortmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_failed_popen_is_charged_a0') -monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x78fb2424bfd0> - - def test_failed_popen_is_charged_and_not_retryable(tmp_path, monkeypatch): - args, _, _ = trusted_inputs(tmp_path) - calls = [] - monkeypatch.setattr(cli, 'native_size', lambda path, **_kw: native_scan_result(0, path=path)) - - def failed(*a, **kw): - calls.append(a) - raise OSError('CPU mock Popen failure') - - monkeypatch.setattr(cli.subprocess, 'Popen', failed) - monkeypatch.setattr(cli.ctypes, 'CDLL', lambda *_a, **_kw: NS(prctl=lambda *_: 0)) -> assert cli.supervise(args) == 1 - ^^^^^^^^^^^^^^^^^^^ - -tests/test_contact_cycle_sim_evaluation_runner.py:522: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:1744: in supervise - policy = storage_policy_check(args, b) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundErrortmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_supervisor_three_fresh_pr0') -monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x78fb24259d90> - - def test_supervisor_three_fresh_processes_bound_logs_and_P2_review(tmp_path, monkeypatch): - args, grant, _ = trusted_inputs(tmp_path) - calls, payloads, cleaned = [], [], [] - - class Channel: - def fileno(self): - return 987 - - def set_inheritable(self, _): - pass - - def close(self): - pass - - class Owned: - supervisor = (1, 2) - known = set() - unknown = False - def attach(self, _): - pass - def discover(self): - return {} - - def exchange(child, channel, payload, *_): - payloads.append(payload) - - def popen(command, **kwargs): - index = len(calls) - calls.append((command, kwargs)) - output = args.artifact_root / f'launch-{index}' - b.durable_write(output / 'result.json', b.encode({ - 'observed_counts': {'attempted_steps': 7, 'completed_steps': 7, - 'initialization_steps': 2, 'rollout_steps': 5}, - 'continuation_eligible': True, 'preclose_identity_verified': True})) - b.durable_write(output / 'preclose-filesystem.json', b.encode({ - 'files': {}, 'frozen_root': str(tmp_path / 'no-frozen'), 'scope': 'CPU fixture'})) - stdout = tmp_path / f'mock-pipe-{index}' - stdout.write_bytes(b'CPU mocked child output\n') - return NS(pid=12345, stdout=stdout.open('rb'), returncode=0, wait=lambda **_: None, poll=lambda: 0) - - monkeypatch.setattr(cli.socket, 'socketpair', lambda: (Channel(), Channel())) - monkeypatch.setattr(cli.subprocess, 'Popen', popen) - monkeypatch.setattr(cli, 'exchange_worker', exchange) - monkeypatch.setattr(cli, 'OwnedProcesses', Owned) - monkeypatch.setattr(cli, 'native_size', lambda path, **_kw: native_scan_result(0, path=path)) - monkeypatch.setattr(cli.ctypes, 'CDLL', lambda *_a, **_kw: NS(prctl=lambda *_: 0)) - monkeypatch.setattr(cli.os, 'getpgid', lambda _: 12345) - monkeypatch.setattr(cli, 'cleanup_group', lambda child, *_: cleaned.append(child.pid) or True) - for index in range(3): - args.protocol = cli.PROTOCOLS[index == 2] - grant.update(launch_index=index, stage='P2' if index == 2 else 'P1', - trial_indices=list(range(20)) if index == 2 else [index], - protocol_sha256=b.digest(ROOT / args.protocol)) - if index == 2: - grant['p1_evidence_sha256'] = [b.tree_digest(args.artifact_root / f'launch-{i}') for i in (0, 1)] - args.grant.write_bytes(b.encode(grant)) - args.trusted_grant_sha256 = b.digest(args.grant) -> assert cli.supervise(args) == 0 - ^^^^^^^^^^^^^^^^^^^ - -tests/test_contact_cycle_sim_evaluation_runner.py:618: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:1744: in supervise - policy = storage_policy_check(args, b) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundErrortmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_storage_policy_requires_e0') -field = 'approval_sha256' -value = '0000000000000000000000000000000000000000000000000000000000000000' - - @pytest.mark.parametrize('field,value', [('approval_sha256', '0' * 64), ('check_interval_seconds', 2), - ('coverage_gaps', []), ('native_paths', []), - ('shared_native_paths', []), ('task_owned_cache_paths', []), - ('format', 'skillfactory.output-storage-policy.v2'), - ('format', 'skillfactory.output-storage-policy.v3'), - ('free_space_paths', []), ('free_space_mount_identities', {}), - ('min_free_bytes', 0), ('max_native_growth_bytes', 0)]) - def test_storage_policy_requires_explicit_approved_monitoring(tmp_path, field, value): - args, _, policy = trusted_inputs(tmp_path) - policy[field] = value - args.storage_policy.write_bytes(b.encode(policy)) - args.trusted_storage_policy_sha256 = b.digest(args.storage_policy) - with pytest.raises(RuntimeError, match='storage_policy'): -> cli.storage_policy_check(args, b) - -tests/test_contact_cycle_sim_evaluation_runner.py:908: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundErrortmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_storage_policy_requires_e1') -field = 'check_interval_seconds', value = 2 - - @pytest.mark.parametrize('field,value', [('approval_sha256', '0' * 64), ('check_interval_seconds', 2), - ('coverage_gaps', []), ('native_paths', []), - ('shared_native_paths', []), ('task_owned_cache_paths', []), - ('format', 'skillfactory.output-storage-policy.v2'), - ('format', 'skillfactory.output-storage-policy.v3'), - ('free_space_paths', []), ('free_space_mount_identities', {}), - ('min_free_bytes', 0), ('max_native_growth_bytes', 0)]) - def test_storage_policy_requires_explicit_approved_monitoring(tmp_path, field, value): - args, _, policy = trusted_inputs(tmp_path) - policy[field] = value - args.storage_policy.write_bytes(b.encode(policy)) - args.trusted_storage_policy_sha256 = b.digest(args.storage_policy) - with pytest.raises(RuntimeError, match='storage_policy'): -> cli.storage_policy_check(args, b) - -tests/test_contact_cycle_sim_evaluation_runner.py:908: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundErrortmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_storage_policy_requires_e2') -field = 'coverage_gaps', value = [] - - @pytest.mark.parametrize('field,value', [('approval_sha256', '0' * 64), ('check_interval_seconds', 2), - ('coverage_gaps', []), ('native_paths', []), - ('shared_native_paths', []), ('task_owned_cache_paths', []), - ('format', 'skillfactory.output-storage-policy.v2'), - ('format', 'skillfactory.output-storage-policy.v3'), - ('free_space_paths', []), ('free_space_mount_identities', {}), - ('min_free_bytes', 0), ('max_native_growth_bytes', 0)]) - def test_storage_policy_requires_explicit_approved_monitoring(tmp_path, field, value): - args, _, policy = trusted_inputs(tmp_path) - policy[field] = value - args.storage_policy.write_bytes(b.encode(policy)) - args.trusted_storage_policy_sha256 = b.digest(args.storage_policy) - with pytest.raises(RuntimeError, match='storage_policy'): -> cli.storage_policy_check(args, b) - -tests/test_contact_cycle_sim_evaluation_runner.py:908: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundErrortmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_storage_policy_requires_e3') -field = 'native_paths', value = [] - - @pytest.mark.parametrize('field,value', [('approval_sha256', '0' * 64), ('check_interval_seconds', 2), - ('coverage_gaps', []), ('native_paths', []), - ('shared_native_paths', []), ('task_owned_cache_paths', []), - ('format', 'skillfactory.output-storage-policy.v2'), - ('format', 'skillfactory.output-storage-policy.v3'), - ('free_space_paths', []), ('free_space_mount_identities', {}), - ('min_free_bytes', 0), ('max_native_growth_bytes', 0)]) - def test_storage_policy_requires_explicit_approved_monitoring(tmp_path, field, value): - args, _, policy = trusted_inputs(tmp_path) - policy[field] = value - args.storage_policy.write_bytes(b.encode(policy)) - args.trusted_storage_policy_sha256 = b.digest(args.storage_policy) - with pytest.raises(RuntimeError, match='storage_policy'): -> cli.storage_policy_check(args, b) - -tests/test_contact_cycle_sim_evaluation_runner.py:908: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundErrortmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_storage_policy_requires_e4') -field = 'shared_native_paths', value = [] - - @pytest.mark.parametrize('field,value', [('approval_sha256', '0' * 64), ('check_interval_seconds', 2), - ('coverage_gaps', []), ('native_paths', []), - ('shared_native_paths', []), ('task_owned_cache_paths', []), - ('format', 'skillfactory.output-storage-policy.v2'), - ('format', 'skillfactory.output-storage-policy.v3'), - ('free_space_paths', []), ('free_space_mount_identities', {}), - ('min_free_bytes', 0), ('max_native_growth_bytes', 0)]) - def test_storage_policy_requires_explicit_approved_monitoring(tmp_path, field, value): - args, _, policy = trusted_inputs(tmp_path) - policy[field] = value - args.storage_policy.write_bytes(b.encode(policy)) - args.trusted_storage_policy_sha256 = b.digest(args.storage_policy) - with pytest.raises(RuntimeError, match='storage_policy'): -> cli.storage_policy_check(args, b) - -tests/test_contact_cycle_sim_evaluation_runner.py:908: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundErrortmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_storage_policy_requires_e5') -field = 'task_owned_cache_paths', value = [] - - @pytest.mark.parametrize('field,value', [('approval_sha256', '0' * 64), ('check_interval_seconds', 2), - ('coverage_gaps', []), ('native_paths', []), - ('shared_native_paths', []), ('task_owned_cache_paths', []), - ('format', 'skillfactory.output-storage-policy.v2'), - ('format', 'skillfactory.output-storage-policy.v3'), - ('free_space_paths', []), ('free_space_mount_identities', {}), - ('min_free_bytes', 0), ('max_native_growth_bytes', 0)]) - def test_storage_policy_requires_explicit_approved_monitoring(tmp_path, field, value): - args, _, policy = trusted_inputs(tmp_path) - policy[field] = value - args.storage_policy.write_bytes(b.encode(policy)) - args.trusted_storage_policy_sha256 = b.digest(args.storage_policy) - with pytest.raises(RuntimeError, match='storage_policy'): -> cli.storage_policy_check(args, b) - -tests/test_contact_cycle_sim_evaluation_runner.py:908: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundErrortmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_storage_policy_requires_e6') -field = 'format', value = 'skillfactory.output-storage-policy.v2' - - @pytest.mark.parametrize('field,value', [('approval_sha256', '0' * 64), ('check_interval_seconds', 2), - ('coverage_gaps', []), ('native_paths', []), - ('shared_native_paths', []), ('task_owned_cache_paths', []), - ('format', 'skillfactory.output-storage-policy.v2'), - ('format', 'skillfactory.output-storage-policy.v3'), - ('free_space_paths', []), ('free_space_mount_identities', {}), - ('min_free_bytes', 0), ('max_native_growth_bytes', 0)]) - def test_storage_policy_requires_explicit_approved_monitoring(tmp_path, field, value): - args, _, policy = trusted_inputs(tmp_path) - policy[field] = value - args.storage_policy.write_bytes(b.encode(policy)) - args.trusted_storage_policy_sha256 = b.digest(args.storage_policy) - with pytest.raises(RuntimeError, match='storage_policy'): -> cli.storage_policy_check(args, b) - -tests/test_contact_cycle_sim_evaluation_runner.py:908: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundErrortmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_storage_policy_requires_e7') -field = 'format', value = 'skillfactory.output-storage-policy.v3' - - @pytest.mark.parametrize('field,value', [('approval_sha256', '0' * 64), ('check_interval_seconds', 2), - ('coverage_gaps', []), ('native_paths', []), - ('shared_native_paths', []), ('task_owned_cache_paths', []), - ('format', 'skillfactory.output-storage-policy.v2'), - ('format', 'skillfactory.output-storage-policy.v3'), - ('free_space_paths', []), ('free_space_mount_identities', {}), - ('min_free_bytes', 0), ('max_native_growth_bytes', 0)]) - def test_storage_policy_requires_explicit_approved_monitoring(tmp_path, field, value): - args, _, policy = trusted_inputs(tmp_path) - policy[field] = value - args.storage_policy.write_bytes(b.encode(policy)) - args.trusted_storage_policy_sha256 = b.digest(args.storage_policy) - with pytest.raises(RuntimeError, match='storage_policy'): -> cli.storage_policy_check(args, b) - -tests/test_contact_cycle_sim_evaluation_runner.py:908: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundErrortmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_storage_policy_requires_e8') -field = 'free_space_paths', value = [] - - @pytest.mark.parametrize('field,value', [('approval_sha256', '0' * 64), ('check_interval_seconds', 2), - ('coverage_gaps', []), ('native_paths', []), - ('shared_native_paths', []), ('task_owned_cache_paths', []), - ('format', 'skillfactory.output-storage-policy.v2'), - ('format', 'skillfactory.output-storage-policy.v3'), - ('free_space_paths', []), ('free_space_mount_identities', {}), - ('min_free_bytes', 0), ('max_native_growth_bytes', 0)]) - def test_storage_policy_requires_explicit_approved_monitoring(tmp_path, field, value): - args, _, policy = trusted_inputs(tmp_path) - policy[field] = value - args.storage_policy.write_bytes(b.encode(policy)) - args.trusted_storage_policy_sha256 = b.digest(args.storage_policy) - with pytest.raises(RuntimeError, match='storage_policy'): -> cli.storage_policy_check(args, b) - -tests/test_contact_cycle_sim_evaluation_runner.py:908: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundErrortmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_storage_policy_requires_e9') -field = 'free_space_mount_identities', value = {} - - @pytest.mark.parametrize('field,value', [('approval_sha256', '0' * 64), ('check_interval_seconds', 2), - ('coverage_gaps', []), ('native_paths', []), - ('shared_native_paths', []), ('task_owned_cache_paths', []), - ('format', 'skillfactory.output-storage-policy.v2'), - ('format', 'skillfactory.output-storage-policy.v3'), - ('free_space_paths', []), ('free_space_mount_identities', {}), - ('min_free_bytes', 0), ('max_native_growth_bytes', 0)]) - def test_storage_policy_requires_explicit_approved_monitoring(tmp_path, field, value): - args, _, policy = trusted_inputs(tmp_path) - policy[field] = value - args.storage_policy.write_bytes(b.encode(policy)) - args.trusted_storage_policy_sha256 = b.digest(args.storage_policy) - with pytest.raises(RuntimeError, match='storage_policy'): -> cli.storage_policy_check(args, b) - -tests/test_contact_cycle_sim_evaluation_runner.py:908: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundErrortmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_storage_policy_requires_e10') -field = 'min_free_bytes', value = 0 - - @pytest.mark.parametrize('field,value', [('approval_sha256', '0' * 64), ('check_interval_seconds', 2), - ('coverage_gaps', []), ('native_paths', []), - ('shared_native_paths', []), ('task_owned_cache_paths', []), - ('format', 'skillfactory.output-storage-policy.v2'), - ('format', 'skillfactory.output-storage-policy.v3'), - ('free_space_paths', []), ('free_space_mount_identities', {}), - ('min_free_bytes', 0), ('max_native_growth_bytes', 0)]) - def test_storage_policy_requires_explicit_approved_monitoring(tmp_path, field, value): - args, _, policy = trusted_inputs(tmp_path) - policy[field] = value - args.storage_policy.write_bytes(b.encode(policy)) - args.trusted_storage_policy_sha256 = b.digest(args.storage_policy) - with pytest.raises(RuntimeError, match='storage_policy'): -> cli.storage_policy_check(args, b) - -tests/test_contact_cycle_sim_evaluation_runner.py:908: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundErrortmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_storage_policy_requires_e11') -field = 'max_native_growth_bytes', value = 0 - - @pytest.mark.parametrize('field,value', [('approval_sha256', '0' * 64), ('check_interval_seconds', 2), - ('coverage_gaps', []), ('native_paths', []), - ('shared_native_paths', []), ('task_owned_cache_paths', []), - ('format', 'skillfactory.output-storage-policy.v2'), - ('format', 'skillfactory.output-storage-policy.v3'), - ('free_space_paths', []), ('free_space_mount_identities', {}), - ('min_free_bytes', 0), ('max_native_growth_bytes', 0)]) - def test_storage_policy_requires_explicit_approved_monitoring(tmp_path, field, value): - args, _, policy = trusted_inputs(tmp_path) - policy[field] = value - args.storage_policy.write_bytes(b.encode(policy)) - args.trusted_storage_policy_sha256 = b.digest(args.storage_policy) - with pytest.raises(RuntimeError, match='storage_policy'): -> cli.storage_policy_check(args, b) - -tests/test_contact_cycle_sim_evaluation_runner.py:908: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundError/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/tests/test_contact_cycle_sim_evaluation_runner.py:1067: explicit harmless installed shell/FD probe opt-in requiredtmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_supervise_captures_failed0') -monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x78fb1fbe1d50> -overflow = False - - @pytest.mark.parametrize('overflow', [False, True]) - def test_supervise_captures_failed_handshake_through_cleanup(tmp_path, monkeypatch, overflow): - args, _, _ = trusted_inputs(tmp_path) - monkeypatch.setattr(cli, 'native_size', lambda path, **_kw: native_scan_result(0, path=path)) - monkeypatch.setattr(cli.ctypes, 'CDLL', lambda *_a, **_kw: NS(prctl=lambda *_: 0)) - owned = NS(supervisor=(1, 2), known={(100, 10)}, attach=lambda _: None, - discover=lambda: {}, reap=lambda _: None, unknown=False) - monkeypatch.setattr(cli, 'OwnedProcesses', lambda: owned) - source = tmp_path / 'mock-pipe' - trace = b'Traceback: import failed BEFORE hello\n' - source.write_bytes(trace + (b'x' * b.STDOUT_BYTES if overflow else b'')) - def popen(*_, **__): - return NS(pid=100, stdout=source.open('rb'), returncode=1, poll=lambda: 1) - def failed_exchange(child, channel, payload, budget, capture, *_): - if overflow: - capture.check() - capture.check() - raise RuntimeError('identity_worker_handshake_eof') - monkeypatch.setattr(cli.subprocess, 'Popen', popen) - monkeypatch.setattr(cli, 'exchange_worker', failed_exchange) -> assert cli.supervise(args) == 1 - ^^^^^^^^^^^^^^^^^^^ - -tests/test_contact_cycle_sim_evaluation_runner.py:1158: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:1744: in supervise - policy = storage_policy_check(args, b) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundErrortmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_supervise_captures_failed1') -monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x78fb243585d0> -overflow = True - - @pytest.mark.parametrize('overflow', [False, True]) - def test_supervise_captures_failed_handshake_through_cleanup(tmp_path, monkeypatch, overflow): - args, _, _ = trusted_inputs(tmp_path) - monkeypatch.setattr(cli, 'native_size', lambda path, **_kw: native_scan_result(0, path=path)) - monkeypatch.setattr(cli.ctypes, 'CDLL', lambda *_a, **_kw: NS(prctl=lambda *_: 0)) - owned = NS(supervisor=(1, 2), known={(100, 10)}, attach=lambda _: None, - discover=lambda: {}, reap=lambda _: None, unknown=False) - monkeypatch.setattr(cli, 'OwnedProcesses', lambda: owned) - source = tmp_path / 'mock-pipe' - trace = b'Traceback: import failed BEFORE hello\n' - source.write_bytes(trace + (b'x' * b.STDOUT_BYTES if overflow else b'')) - def popen(*_, **__): - return NS(pid=100, stdout=source.open('rb'), returncode=1, poll=lambda: 1) - def failed_exchange(child, channel, payload, budget, capture, *_): - if overflow: - capture.check() - capture.check() - raise RuntimeError('identity_worker_handshake_eof') - monkeypatch.setattr(cli.subprocess, 'Popen', popen) - monkeypatch.setattr(cli, 'exchange_worker', failed_exchange) -> assert cli.supervise(args) == 1 - ^^^^^^^^^^^^^^^^^^^ - -tests/test_contact_cycle_sim_evaluation_runner.py:1158: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:1744: in supervise - policy = storage_policy_check(args, b) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundErrortmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_supervise_setup_failure_t0') -monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x78fb1fc92650> -failure = 'capture' - - @pytest.mark.parametrize('failure', ['capture', 'attach']) - def test_supervise_setup_failure_terminates_reaps_and_closes_pipes(tmp_path, monkeypatch, failure): - args, _, _ = trusted_inputs(tmp_path) - monkeypatch.setattr(cli, 'native_size', lambda path, **_kw: native_scan_result(0, path=path)) - monkeypatch.setattr(cli.ctypes, 'CDLL', lambda *_a, **_kw: NS(prctl=lambda *_: 0)) - parent = cli.os.getpid() - table = {parent: (1, 0, 0, 'S')} - monkeypatch.setattr(cli, 'process_table', lambda: dict(table)) - owned = cli.OwnedProcesses() - monkeypatch.setattr(cli, 'OwnedProcesses', lambda: owned) - events = [] - pipe = (tmp_path / 'pipe').open('w+b') - child = NS(pid=100, stdout=pipe, returncode=None) - - def poll(): - if table.get(100, (None, None, None, None))[3] == 'Z': - del table[100] - child.returncode = -cli.signal.SIGTERM - events.append('reaped') - return child.returncode - - child.poll = poll - - def popen(*_, **kwargs): - assert kwargs['start_new_session'] - table[100] = (10, parent, 100, 'S') - events.append('spawned') - return child - - attach = owned.attach - - def attaching(process): - assert events == ['spawned'] - events.append('attached') - if failure == 'attach': - raise RuntimeError('injected_attach_failure') - attach(process) - - def capture(*_): - assert owned.root == (100, 10) - events.append('capture') - raise OSError('injected_capture_constructor_failure') - - def terminate(pid, row, sig): - assert pid == 100 and row[0] == 10 and pipe.closed - assert sig == cli.signal.SIGTERM - table[100] = (10, parent, 100, 'Z') - events.append('terminated') - - monkeypatch.setattr(cli.subprocess, 'Popen', popen) - monkeypatch.setattr(owned, 'attach', attaching) - monkeypatch.setattr(owned, 'signal', terminate) - monkeypatch.setattr(cli, 'StdoutCapture', capture) -> assert cli.supervise(args) == 1 - ^^^^^^^^^^^^^^^^^^^ - -tests/test_contact_cycle_sim_evaluation_runner.py:1238: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:1744: in supervise - policy = storage_policy_check(args, b) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundErrortmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_supervise_setup_failure_t1') -monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x78fb30ae0f50> -failure = 'attach' - - @pytest.mark.parametrize('failure', ['capture', 'attach']) - def test_supervise_setup_failure_terminates_reaps_and_closes_pipes(tmp_path, monkeypatch, failure): - args, _, _ = trusted_inputs(tmp_path) - monkeypatch.setattr(cli, 'native_size', lambda path, **_kw: native_scan_result(0, path=path)) - monkeypatch.setattr(cli.ctypes, 'CDLL', lambda *_a, **_kw: NS(prctl=lambda *_: 0)) - parent = cli.os.getpid() - table = {parent: (1, 0, 0, 'S')} - monkeypatch.setattr(cli, 'process_table', lambda: dict(table)) - owned = cli.OwnedProcesses() - monkeypatch.setattr(cli, 'OwnedProcesses', lambda: owned) - events = [] - pipe = (tmp_path / 'pipe').open('w+b') - child = NS(pid=100, stdout=pipe, returncode=None) - - def poll(): - if table.get(100, (None, None, None, None))[3] == 'Z': - del table[100] - child.returncode = -cli.signal.SIGTERM - events.append('reaped') - return child.returncode - - child.poll = poll - - def popen(*_, **kwargs): - assert kwargs['start_new_session'] - table[100] = (10, parent, 100, 'S') - events.append('spawned') - return child - - attach = owned.attach - - def attaching(process): - assert events == ['spawned'] - events.append('attached') - if failure == 'attach': - raise RuntimeError('injected_attach_failure') - attach(process) - - def capture(*_): - assert owned.root == (100, 10) - events.append('capture') - raise OSError('injected_capture_constructor_failure') - - def terminate(pid, row, sig): - assert pid == 100 and row[0] == 10 and pipe.closed - assert sig == cli.signal.SIGTERM - table[100] = (10, parent, 100, 'Z') - events.append('terminated') - - monkeypatch.setattr(cli.subprocess, 'Popen', popen) - monkeypatch.setattr(owned, 'attach', attaching) - monkeypatch.setattr(owned, 'signal', terminate) - monkeypatch.setattr(cli, 'StdoutCapture', capture) -> assert cli.supervise(args) == 1 - ^^^^^^^^^^^^^^^^^^^ - -tests/test_contact_cycle_sim_evaluation_runner.py:1238: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:1744: in supervise - policy = storage_policy_check(args, b) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundErrortmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_storage_policy_historical0') - - def test_storage_policy_historical_v2_is_not_reinterpreted(tmp_path): - args, _, policy = trusted_inputs(tmp_path) - policy['format'] = 'skillfactory.output-storage-policy.v2' - del policy['shared_native_paths'], policy['task_owned_cache_paths'] - policy['coverage_gaps'] = list(cli.NATIVE_GAPS[:-1]) - args.storage_policy.write_bytes(b.encode(policy)) - args.trusted_storage_policy_sha256 = b.digest(args.storage_policy) - with pytest.raises(RuntimeError, match='storage_policy_identity_or_conditions_mismatch'): -> cli.storage_policy_check(args, b) - -tests/test_contact_cycle_sim_evaluation_runner.py:1341: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundErrortmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_storage_policy_paths_are_0') -change = 'omission', field = 'native_paths' - - @pytest.mark.parametrize('field', ['native_paths', 'shared_native_paths', 'task_owned_cache_paths', 'free_space_paths']) - @pytest.mark.parametrize('change', ['omission', 'addition', 'alias']) - def test_storage_policy_paths_are_exact_writer_paths(tmp_path, change, field): - args, _, policy = trusted_inputs(tmp_path) - if change == 'omission': - policy[field].pop() - elif change == 'addition': - policy[field].append('/tmp/arbitrary-external-cache') - else: - policy[field][0] += '/../alias' - args.storage_policy.write_bytes(b.encode(policy)) - args.trusted_storage_policy_sha256 = b.digest(args.storage_policy) - with pytest.raises(RuntimeError, match='storage_policy_identity_or_conditions_mismatch'): -> cli.storage_policy_check(args, b) - -tests/test_contact_cycle_sim_evaluation_runner.py:1357: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundErrortmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_storage_policy_paths_are_1') -change = 'omission', field = 'shared_native_paths' - - @pytest.mark.parametrize('field', ['native_paths', 'shared_native_paths', 'task_owned_cache_paths', 'free_space_paths']) - @pytest.mark.parametrize('change', ['omission', 'addition', 'alias']) - def test_storage_policy_paths_are_exact_writer_paths(tmp_path, change, field): - args, _, policy = trusted_inputs(tmp_path) - if change == 'omission': - policy[field].pop() - elif change == 'addition': - policy[field].append('/tmp/arbitrary-external-cache') - else: - policy[field][0] += '/../alias' - args.storage_policy.write_bytes(b.encode(policy)) - args.trusted_storage_policy_sha256 = b.digest(args.storage_policy) - with pytest.raises(RuntimeError, match='storage_policy_identity_or_conditions_mismatch'): -> cli.storage_policy_check(args, b) - -tests/test_contact_cycle_sim_evaluation_runner.py:1357: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundErrortmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_storage_policy_paths_are_2') -change = 'omission', field = 'task_owned_cache_paths' - - @pytest.mark.parametrize('field', ['native_paths', 'shared_native_paths', 'task_owned_cache_paths', 'free_space_paths']) - @pytest.mark.parametrize('change', ['omission', 'addition', 'alias']) - def test_storage_policy_paths_are_exact_writer_paths(tmp_path, change, field): - args, _, policy = trusted_inputs(tmp_path) - if change == 'omission': - policy[field].pop() - elif change == 'addition': - policy[field].append('/tmp/arbitrary-external-cache') - else: - policy[field][0] += '/../alias' - args.storage_policy.write_bytes(b.encode(policy)) - args.trusted_storage_policy_sha256 = b.digest(args.storage_policy) - with pytest.raises(RuntimeError, match='storage_policy_identity_or_conditions_mismatch'): -> cli.storage_policy_check(args, b) - -tests/test_contact_cycle_sim_evaluation_runner.py:1357: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundErrortmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_storage_policy_paths_are_3') -change = 'omission', field = 'free_space_paths' - - @pytest.mark.parametrize('field', ['native_paths', 'shared_native_paths', 'task_owned_cache_paths', 'free_space_paths']) - @pytest.mark.parametrize('change', ['omission', 'addition', 'alias']) - def test_storage_policy_paths_are_exact_writer_paths(tmp_path, change, field): - args, _, policy = trusted_inputs(tmp_path) - if change == 'omission': - policy[field].pop() - elif change == 'addition': - policy[field].append('/tmp/arbitrary-external-cache') - else: - policy[field][0] += '/../alias' - args.storage_policy.write_bytes(b.encode(policy)) - args.trusted_storage_policy_sha256 = b.digest(args.storage_policy) - with pytest.raises(RuntimeError, match='storage_policy_identity_or_conditions_mismatch'): -> cli.storage_policy_check(args, b) - -tests/test_contact_cycle_sim_evaluation_runner.py:1357: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundErrortmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_storage_policy_paths_are_4') -change = 'addition', field = 'native_paths' - - @pytest.mark.parametrize('field', ['native_paths', 'shared_native_paths', 'task_owned_cache_paths', 'free_space_paths']) - @pytest.mark.parametrize('change', ['omission', 'addition', 'alias']) - def test_storage_policy_paths_are_exact_writer_paths(tmp_path, change, field): - args, _, policy = trusted_inputs(tmp_path) - if change == 'omission': - policy[field].pop() - elif change == 'addition': - policy[field].append('/tmp/arbitrary-external-cache') - else: - policy[field][0] += '/../alias' - args.storage_policy.write_bytes(b.encode(policy)) - args.trusted_storage_policy_sha256 = b.digest(args.storage_policy) - with pytest.raises(RuntimeError, match='storage_policy_identity_or_conditions_mismatch'): -> cli.storage_policy_check(args, b) - -tests/test_contact_cycle_sim_evaluation_runner.py:1357: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundErrortmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_storage_policy_paths_are_5') -change = 'addition', field = 'shared_native_paths' - - @pytest.mark.parametrize('field', ['native_paths', 'shared_native_paths', 'task_owned_cache_paths', 'free_space_paths']) - @pytest.mark.parametrize('change', ['omission', 'addition', 'alias']) - def test_storage_policy_paths_are_exact_writer_paths(tmp_path, change, field): - args, _, policy = trusted_inputs(tmp_path) - if change == 'omission': - policy[field].pop() - elif change == 'addition': - policy[field].append('/tmp/arbitrary-external-cache') - else: - policy[field][0] += '/../alias' - args.storage_policy.write_bytes(b.encode(policy)) - args.trusted_storage_policy_sha256 = b.digest(args.storage_policy) - with pytest.raises(RuntimeError, match='storage_policy_identity_or_conditions_mismatch'): -> cli.storage_policy_check(args, b) - -tests/test_contact_cycle_sim_evaluation_runner.py:1357: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundErrortmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_storage_policy_paths_are_6') -change = 'addition', field = 'task_owned_cache_paths' - - @pytest.mark.parametrize('field', ['native_paths', 'shared_native_paths', 'task_owned_cache_paths', 'free_space_paths']) - @pytest.mark.parametrize('change', ['omission', 'addition', 'alias']) - def test_storage_policy_paths_are_exact_writer_paths(tmp_path, change, field): - args, _, policy = trusted_inputs(tmp_path) - if change == 'omission': - policy[field].pop() - elif change == 'addition': - policy[field].append('/tmp/arbitrary-external-cache') - else: - policy[field][0] += '/../alias' - args.storage_policy.write_bytes(b.encode(policy)) - args.trusted_storage_policy_sha256 = b.digest(args.storage_policy) - with pytest.raises(RuntimeError, match='storage_policy_identity_or_conditions_mismatch'): -> cli.storage_policy_check(args, b) - -tests/test_contact_cycle_sim_evaluation_runner.py:1357: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundErrortmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_storage_policy_paths_are_7') -change = 'addition', field = 'free_space_paths' - - @pytest.mark.parametrize('field', ['native_paths', 'shared_native_paths', 'task_owned_cache_paths', 'free_space_paths']) - @pytest.mark.parametrize('change', ['omission', 'addition', 'alias']) - def test_storage_policy_paths_are_exact_writer_paths(tmp_path, change, field): - args, _, policy = trusted_inputs(tmp_path) - if change == 'omission': - policy[field].pop() - elif change == 'addition': - policy[field].append('/tmp/arbitrary-external-cache') - else: - policy[field][0] += '/../alias' - args.storage_policy.write_bytes(b.encode(policy)) - args.trusted_storage_policy_sha256 = b.digest(args.storage_policy) - with pytest.raises(RuntimeError, match='storage_policy_identity_or_conditions_mismatch'): -> cli.storage_policy_check(args, b) - -tests/test_contact_cycle_sim_evaluation_runner.py:1357: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundErrortmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_storage_policy_paths_are_8') -change = 'alias', field = 'native_paths' - - @pytest.mark.parametrize('field', ['native_paths', 'shared_native_paths', 'task_owned_cache_paths', 'free_space_paths']) - @pytest.mark.parametrize('change', ['omission', 'addition', 'alias']) - def test_storage_policy_paths_are_exact_writer_paths(tmp_path, change, field): - args, _, policy = trusted_inputs(tmp_path) - if change == 'omission': - policy[field].pop() - elif change == 'addition': - policy[field].append('/tmp/arbitrary-external-cache') - else: - policy[field][0] += '/../alias' - args.storage_policy.write_bytes(b.encode(policy)) - args.trusted_storage_policy_sha256 = b.digest(args.storage_policy) - with pytest.raises(RuntimeError, match='storage_policy_identity_or_conditions_mismatch'): -> cli.storage_policy_check(args, b) - -tests/test_contact_cycle_sim_evaluation_runner.py:1357: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundErrortmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_storage_policy_paths_are_9') -change = 'alias', field = 'shared_native_paths' - - @pytest.mark.parametrize('field', ['native_paths', 'shared_native_paths', 'task_owned_cache_paths', 'free_space_paths']) - @pytest.mark.parametrize('change', ['omission', 'addition', 'alias']) - def test_storage_policy_paths_are_exact_writer_paths(tmp_path, change, field): - args, _, policy = trusted_inputs(tmp_path) - if change == 'omission': - policy[field].pop() - elif change == 'addition': - policy[field].append('/tmp/arbitrary-external-cache') - else: - policy[field][0] += '/../alias' - args.storage_policy.write_bytes(b.encode(policy)) - args.trusted_storage_policy_sha256 = b.digest(args.storage_policy) - with pytest.raises(RuntimeError, match='storage_policy_identity_or_conditions_mismatch'): -> cli.storage_policy_check(args, b) - -tests/test_contact_cycle_sim_evaluation_runner.py:1357: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundErrortmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_storage_policy_paths_are_10') -change = 'alias', field = 'task_owned_cache_paths' - - @pytest.mark.parametrize('field', ['native_paths', 'shared_native_paths', 'task_owned_cache_paths', 'free_space_paths']) - @pytest.mark.parametrize('change', ['omission', 'addition', 'alias']) - def test_storage_policy_paths_are_exact_writer_paths(tmp_path, change, field): - args, _, policy = trusted_inputs(tmp_path) - if change == 'omission': - policy[field].pop() - elif change == 'addition': - policy[field].append('/tmp/arbitrary-external-cache') - else: - policy[field][0] += '/../alias' - args.storage_policy.write_bytes(b.encode(policy)) - args.trusted_storage_policy_sha256 = b.digest(args.storage_policy) - with pytest.raises(RuntimeError, match='storage_policy_identity_or_conditions_mismatch'): -> cli.storage_policy_check(args, b) - -tests/test_contact_cycle_sim_evaluation_runner.py:1357: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundErrortmp_path = PosixPath('/tmp/pytest-of-cen/pytest-258/test_storage_policy_paths_are_11') -change = 'alias', field = 'free_space_paths' - - @pytest.mark.parametrize('field', ['native_paths', 'shared_native_paths', 'task_owned_cache_paths', 'free_space_paths']) - @pytest.mark.parametrize('change', ['omission', 'addition', 'alias']) - def test_storage_policy_paths_are_exact_writer_paths(tmp_path, change, field): - args, _, policy = trusted_inputs(tmp_path) - if change == 'omission': - policy[field].pop() - elif change == 'addition': - policy[field].append('/tmp/arbitrary-external-cache') - else: - policy[field][0] += '/../alias' - args.storage_policy.write_bytes(b.encode(policy)) - args.trusted_storage_policy_sha256 = b.digest(args.storage_policy) - with pytest.raises(RuntimeError, match='storage_policy_identity_or_conditions_mismatch'): -> cli.storage_policy_check(args, b) - -tests/test_contact_cycle_sim_evaluation_runner.py:1357: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -scripts/evaluate_cycle_sim_residual.py:365: in storage_policy_check - read_trusted(ROOT / STORAGE_APPROVAL, STORAGE_APPROVAL_SHA256) -scripts/evaluate_cycle_sim_residual.py:231: in read_trusted - payload = Path(path).read_bytes() - ^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundError/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/tests/test_contact_cycle_sim_evaluation_runtime.py:646: Recorded P0/P1 artifacts not present/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/tests/test_contact_cycle_sim_learning_physics.py:13: requires explicit supervised nonlearning PhysX API probe/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/tests/test_contact_cycle_sim_residual_physics.py:13: requires supervised Isaac PhysXdef test_manifest_explicit_additive_identity_and_immutable_base(): -> manifest = p.make_manifest(ROOT, ROOT / p.CONFIG_PATH) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -tests/test_contact_cycle_sim_rootxy_v2.py:118: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -source/SkillFactory/SkillFactory/legs/contact_cycle_sim/rootxy_training_v2.py:121: in make_manifest - "sha256": hashlib.sha256(parity_path.read_bytes()).hexdigest()}, - ^^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1050: in read_bytes - with self.open(mode='rb') as f: - ^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/sim_residual_training_v1/prepared01/validation_u0256_trace.pt') -mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None - - def open(self, mode='r', buffering=-1, encoding=None, - errors=None, newline=None): - """ - Open the file pointed by this path and return a file object, as - the built-in open() function does. - """ - if "b" not in mode: - encoding = io.text_encoding(encoding) -> return io.open(self, mode, buffering, encoding, errors, newline) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/sim_residual_training_v1/prepared01/validation_u0256_trace.pt' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/pathlib.py:1044: FileNotFoundErrordef test_actual_frozen_saved46d_actor_parity_fresh_critic_Adam_RNG(): -> trace = torch.load(ROOT / Path(p.replay.CANDIDATE).parent / 'validation_u0256_trace.pt', - map_location='cpu', weights_only=True) - -tests/test_contact_cycle_sim_rootxy_v2.py:130: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/site-packages/torch/serialization.py:1479: in load - with _open_file_like(f, "rb") as opened_file: - ^^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/site-packages/torch/serialization.py:759: in _open_file_like - return _open_file(name_or_buffer, mode) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = <torch.serialization._open_file object at 0x78fb1f51d750> -name = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/sim_residual_training_v1/prepared01/validation_u0256_trace.pt') -mode = 'rb' - - def __init__(self, name: Union[str, os.PathLike[str]], mode: str) -> None: -> super().__init__(open(name, mode)) - ^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/sim_residual_training_v1/prepared01/validation_u0256_trace.pt' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/site-packages/torch/serialization.py:740: FileNotFoundErrordef test_full_saved_episode_streaming_metrics_match_direct_reduction_and_compact_audit(): - # Retrospective tensor reduction only: no policy call or simulator step. -> trace = torch.load(ROOT / Path(p.replay.CANDIDATE).parent / 'validation_u0256_trace.pt', - map_location='cpu', weights_only=True) - -tests/test_contact_cycle_sim_rootxy_v2.py:310: -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/site-packages/torch/serialization.py:1479: in load - with _open_file_like(f, "rb") as opened_file: - ^^^^^^^^^^^^^^^^^^^^^^^^ -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/site-packages/torch/serialization.py:759: in _open_file_like - return _open_file(name_or_buffer, mode) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -self = <torch.serialization._open_file object at 0x78fb1dd741d0> -name = PosixPath('/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/sim_residual_training_v1/prepared01/validation_u0256_trace.pt') -mode = 'rb' - - def __init__(self, name: Union[str, os.PathLike[str]], mode: str) -> None: -> super().__init__(open(name, mode)) - ^^^^^^^^^^^^^^^^ -E FileNotFoundError: [Errno 2] No such file or directory: '/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/sim_residual_training_v1/prepared01/validation_u0256_trace.pt' - -/home/cen/miniconda3/envs/linker_sim_isaac/lib/python3.11/site-packages/torch/serialization.py:740: FileNotFoundError \ No newline at end of file diff --git a/performance_v042/delivery-fixture-repair.json b/performance_v042/delivery-fixture-repair.json deleted file mode 100644 index 033049c..0000000 --- a/performance_v042/delivery-fixture-repair.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "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": [ - { - "original": "/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md", - "package": "logs/contact_cycle/evaluation_runner_recovery_v1/USER_STORAGE_SCOPE_AMENDMENT.md", - "sha256": "e4fac0d36799c9beb67af7687a390a6b5e8390bde1d4b840a6e26c309578c8db", - "bytes": 1268 - }, - { - "original": "/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/logs/contact_cycle/sim_residual_training_v1/prepared01/validation_u0256_trace.pt", - "package": "logs/contact_cycle/sim_residual_training_v1/prepared01/validation_u0256_trace.pt", - "sha256": "bd77ade52943989f0bcc119da74812038d46284e0c1a01794d81db40827be438", - "bytes": 28030639 - } - ], - "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." -} diff --git a/performance_v042/delivery-replay-fixtures.json b/performance_v042/delivery-replay-fixtures.json deleted file mode 100644 index 08d8032..0000000 --- a/performance_v042/delivery-replay-fixtures.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "second_CPU": "1556passed7skipped, zero failures; one additional skip from missing P0replay fixture", - "action": "Include exact original P0initial/episodes and P1failuretrace as CPUfixtures. Portable bundled test locator points to embedded P1 trace; assertions/hash/tolerances unchanged. Not a native P1 rerun or promotion; no runtime source changed.", - "fixtures": [ - { - "original": "/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/logs/contact_cycle/frozen_replay_p0_01/run/initial_state.pt", - "package": "logs/contact_cycle/frozen_replay_p0_01/run/initial_state.pt", - "sha256": "2e2b506b9d98d72cf64e32fcabfcc66561a694bb44a203408e95b960f29fa168", - "bytes": 18613 - }, - { - "original": "/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/logs/contact_cycle/frozen_replay_p0_01/run/first_episodes.pt", - "package": "logs/contact_cycle/frozen_replay_p0_01/run/first_episodes.pt", - "sha256": "d416095c66245f4c3359e619a04b0b092a2aca551cf0c23ca990b6b592d72149", - "bytes": 7117885 - }, - { - "original": "/home/cen/sf-runs/p1-01/launch-0/trial-00/trace.v1.jsonl.gz", - "package": "tests/fixtures/p1-trace.v1.jsonl.gz", - "sha256": "c943489ad035ca94a9f3edb0307113ed67af0d7bfc90543963f0eac699bfc6ee", - "bytes": 4543248 - } - ] -} diff --git a/performance_v042/delivery-validation-final.json b/performance_v042/delivery-validation-final.json deleted file mode 100644 index 0b01316..0000000 --- a/performance_v042/delivery-validation-final.json +++ /dev/null @@ -1,122 +0,0 @@ -{ - "execution_authorized": false, - "new_physics_calls": 0, - "commands": { - "validated_nominal": [ - 0.025, - 0.02, - 0.0 - ], - "x_bias-16mm": [ - 0.01485562705416415, - 0.00594225082166566, - 0.0 - ], - "x_bias-24mm": [ - 0.022283440581246223, - 0.00891337623249849, - 0.0 - ], - "baseline_direction-16mm": [ - 0.012493900951088486, - 0.009995120760870788, - 0.0 - ], - "baseline_direction-24mm": [ - 0.01874085142663273, - 0.014992681141306183, - 0.0 - ], - "y_bias-16mm": [ - 0.0096, - 0.0128, - 0.0 - ], - "y_bias-24mm": [ - 0.0144, - 0.0192, - 0.0 - ] - }, - "sequences": { - "nominal20": [ - "validated_nominal" - ], - "S1": [ - "x_bias-16mm", - "baseline_direction-24mm", - "y_bias-16mm" - ], - "S2": [ - "y_bias-24mm", - "x_bias-24mm", - "baseline_direction-16mm" - ], - "S3": [ - "baseline_direction-24mm", - "y_bias-24mm", - "x_bias-16mm" - ] - }, - "sources": { - "scripts/evaluate_cycle_functional_flow.py": "1eb8602d33ceb0284ca51ee6260a8f88ad699da38ae8e19cf6ec99320eada069", - "scripts/functional_flow_launch_v2.py": "597e87b6aae7a2a73fa9b380feb2b668b62cc4b72bc0b8d4d486bec4a8ad4e8e", - "scripts/evaluate_cycle_sim_residual.py": "a502ffd954be012ed5b038c6b5275536765d5a085b3d1c29e367e45ddea79acd", - "scripts/rootxy_launch_v2.py": "f7325fd2291ec18af61b6e10bbf136dc4df133b020d330d6b6709b4384a87aab", - "scripts/audit_contact_cycle_functional.py": "b9d9eaf51c0719d58ad0742a1055b2ad696ddc7e13d602ad354ee0c356f596c4", - "configs/contact_cycle/functional_flow_v2.json": "16c064228b30f36bbd420b7c2290602bacae6601cac2cec5deb16440f7600625", - "source/SkillFactory/SkillFactory/legs/contact_cycle_sim/functional_flow_v2.py": "9f4c84960d9dca07337527f41e8fa73fbdbf43968138ebc9872d6a3f06a79f1c", - "source/SkillFactory/SkillFactory/legs/contact_cycle_sim/functional_flow_binding_v2.py": "d47d99abde6d1944b6103007fcea0c9629cd6a299c7aeae06bf4a5c97ec05e9a", - "source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle_sim/functional_flow_recording_v2.py": "5e577ceb7f5b060519e594e1994d73027e8a6913c745c5720987451e8cce56aa", - "source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle_sim/evaluation_env.py": "04e98455035e347633b7ea6c1fcf5372b4e6ac33645805f1beac8f7784e424c6", - "source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle_sim/evaluation_cfg.py": "62a83aa9976a4da00c49fa6d9dc61044ea705719047b2fd4f16e11fc671a3fa4", - "source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle_sim/evaluation_mdp.py": "89c46b2038733a21c97cb72a4112ff16b48ed0e15b5070ebdebcd3ce0cd8f7ac", - "source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle_sim/recording.py": "8dc352f02a3cc84b4e2527f946a835d8c9ba5d4707d9545799cbe43c813969d0", - "source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle/recording.py": "c718eba351d731bd4a6f864c9b8e47faeb70c7e1e583b8d108f654e0731f4224", - "source/SkillFactory/SkillFactory/legs/contact_cycle_sim/evaluation_binding.py": "45c0c3c61cb968f19264398e1e6776630ed8ba8a799c7fea405a830248128fbf", - "source/SkillFactory/SkillFactory/legs/contact_cycle_sim/evaluation_budget.py": "2cc58de32373df3d8508086cdaea5d7666f8d333f2822d401eccf21102225066", - "configs/contact_cycle/functional_followup_v3.json": "aaed45884eab9912db6c7bac1d82e2ab27784982c524a838b7886cdd763146f4", - "scripts/functional_followup_launch_v3.py": "9ed414f036b3aae61a4573d8cd9893be40f6c33c36e825c5de213dc05987afa3", - "scripts/functional_gpu_watch_v3.py": "c56d8e1e5e60f79ccec8d8ef1e656481d8bd316e6cde33d51b1decaf8a972484", - "source/SkillFactory/SkillFactory/legs/contact_cycle_sim/functional_followup_v3.py": "744ea0f83e7c160220959f565dd3f9ba52f7c3c224f8781afbf1d69ffb12430a", - "source/SkillFactory/SkillFactory/legs/contact_cycle_sim/functional_followup_binding_v3.py": "b10fb44971d6d267f9749de39a8e3f5b15b20cd1078df4a68e53689c4d2e539b", - "scripts/audit_cycle_functional_flow.py": "87a92b659d5a60605468c22079de49ace57d096d4f8ce89bb30d658d9234ac66", - "scripts/go2_fl_skill.py": "d95fe3c823c21c35ba45dec4221052959e3f096ef2ec311206c82774d08f12fa", - "scripts/skill_launch_v4.py": "61df4129f706b0f22d68471a81390180a1996a339d83cf49a89f37ee8340bb52", - "docs/contact_cycle_sim_skill_v4_plan.md": "ab552aa76dc30420557f4e82519fa2531677261ed7a63c5128dd22a6029c71c6", - "configs/contact_cycle/skill_v4_desktop_allowlist.json": "af8c54b2901642e6a9e9fca41e094ec95ef09dd714ccfb74a2a2869fcf92ad8d", - "source/SkillFactory/SkillFactory/legs/contact_cycle_sim/skill_v4.py": "1cfa556a44ff749677bf030dd61792fbe85d60e424646844bdace05794fd102c", - "source/SkillFactory/SkillFactory/legs/contact_cycle_sim/skill_mailbox_v4.py": "53f742f2c6d6c7ad4fbae5f1fcd1d1a41be1845567b8a0fdd4b080bf6e13fb92", - "source/SkillFactory/SkillFactory/legs/contact_cycle_sim/skill_binding_v4.py": "3efb8a8b3aac7a18111e490f2841f5205d275c99aa350116d50e15388d5de26e", - "source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle_sim/skill_recording_v4.py": "7daf5b8eb9f84c5d2dc7ac915d16771235583bb336161339003e811c4e59770c", - "source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle_sim/skill_gui_v041.py": "688068d6a1771076d087dc3deb4414f04922ca0bc8a296555495a07d19f57751", - "docs/contact_cycle_sim_gui_v041_plan.md": "508af7cbf5ea9b01a9f66871ed0c041c1c195e9adfb12e8289fb78b79860cb5f", - "source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle_sim/performance_v042.py": "49bc36b4dae71141914ec5d99aa12379f5a5ce22143968dd7211bb8cbb44d47d", - "configs/contact_cycle/performance_v042.json": "039dd6b7e795e7fdac9e300a91975479bd6a93a664130acd5c18a9ed84d0aaf3", - "performance_v042/plan.md": "1d59f67d4fc56896f63aafd8fd345ec9ebccd19bce207543da8ba90783e87c4d", - "source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle_sim/sensor_epoch_v042.py": "cd2edb7ca336f4f80a1191d6967833f84d5598fbb6712efe51c7a24df607f71a", - "source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle_sim/packed_recording_v042.py": "c929d294623bc6b21b1f34839c7a0d59d484d63b4b35623ebe0ddbbb4a21578e", - "source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle_sim/readonly_scope_v042.py": "024258ed6aeae33715eab0afebff92b9eb41ad97621c67f267834c6813991b7c", - "source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle_sim/batched_kinematics_v042.py": "f41d12f48e800177520e6dec5a41137e27d4d6e80c4314026e0533f4074f7d97", - "source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle_sim/live_cadence_v042.py": "3254a54a673fb3f27bf24f884210bc49c69c58b4fa2ac633a63ea4d699056915", - "performance_v042/presentation_amendment.md": "bbcdf6099b57bd26645674b1032e1e52e730a79cadc057cc62b88317eabdb89f" - }, - "frozen": { - "candidate_path": "/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/sim_residual_training_v1/prepared01/candidate_u0256.pt", - "candidate_sha256": "c088bb3aecaca751867118858626fd508f7a3983303802d7524353f80802cf99", - "manifest_sha256": "a70a226f176104414d2da295f08cce230f6b91ed3e2b78490c78f7ffce95ab01", - "snapshot_files_verified": 134, - "live_source_exceptions": [ - { - "path": "AGENT.md", - "snapshot_sha256": "cec5e09fb709a88759e3c8b9ec9e17c95fc6bad3a24cc99b8617d2c9531dad8e", - "live_sha256": "d25b6c9db8f7f61adc2837ca227c46ad9b40f177f153346b1bfdb8d14891be91", - "reason": "Parent-approved non-runtime instruction drift only; snapshot unchanged" - } - ], - "replay_sources": { - "scripts/replay_cycle_sim_residual.py": "36b44925135c5452341f43737004217a2d9036fef290a23e48aa2526c1f0aedd", - "source/SkillFactory/SkillFactory/legs/contact_cycle_sim/replay.py": "e3dc56513065df6c119296eca15c2370df244674ccbe935199fcacc655448639" - } - } -} diff --git a/performance_v042/delivery-validation.json b/performance_v042/delivery-validation.json deleted file mode 100644 index 0b01316..0000000 --- a/performance_v042/delivery-validation.json +++ /dev/null @@ -1,122 +0,0 @@ -{ - "execution_authorized": false, - "new_physics_calls": 0, - "commands": { - "validated_nominal": [ - 0.025, - 0.02, - 0.0 - ], - "x_bias-16mm": [ - 0.01485562705416415, - 0.00594225082166566, - 0.0 - ], - "x_bias-24mm": [ - 0.022283440581246223, - 0.00891337623249849, - 0.0 - ], - "baseline_direction-16mm": [ - 0.012493900951088486, - 0.009995120760870788, - 0.0 - ], - "baseline_direction-24mm": [ - 0.01874085142663273, - 0.014992681141306183, - 0.0 - ], - "y_bias-16mm": [ - 0.0096, - 0.0128, - 0.0 - ], - "y_bias-24mm": [ - 0.0144, - 0.0192, - 0.0 - ] - }, - "sequences": { - "nominal20": [ - "validated_nominal" - ], - "S1": [ - "x_bias-16mm", - "baseline_direction-24mm", - "y_bias-16mm" - ], - "S2": [ - "y_bias-24mm", - "x_bias-24mm", - "baseline_direction-16mm" - ], - "S3": [ - "baseline_direction-24mm", - "y_bias-24mm", - "x_bias-16mm" - ] - }, - "sources": { - "scripts/evaluate_cycle_functional_flow.py": "1eb8602d33ceb0284ca51ee6260a8f88ad699da38ae8e19cf6ec99320eada069", - "scripts/functional_flow_launch_v2.py": "597e87b6aae7a2a73fa9b380feb2b668b62cc4b72bc0b8d4d486bec4a8ad4e8e", - "scripts/evaluate_cycle_sim_residual.py": "a502ffd954be012ed5b038c6b5275536765d5a085b3d1c29e367e45ddea79acd", - "scripts/rootxy_launch_v2.py": "f7325fd2291ec18af61b6e10bbf136dc4df133b020d330d6b6709b4384a87aab", - "scripts/audit_contact_cycle_functional.py": "b9d9eaf51c0719d58ad0742a1055b2ad696ddc7e13d602ad354ee0c356f596c4", - "configs/contact_cycle/functional_flow_v2.json": "16c064228b30f36bbd420b7c2290602bacae6601cac2cec5deb16440f7600625", - "source/SkillFactory/SkillFactory/legs/contact_cycle_sim/functional_flow_v2.py": "9f4c84960d9dca07337527f41e8fa73fbdbf43968138ebc9872d6a3f06a79f1c", - "source/SkillFactory/SkillFactory/legs/contact_cycle_sim/functional_flow_binding_v2.py": "d47d99abde6d1944b6103007fcea0c9629cd6a299c7aeae06bf4a5c97ec05e9a", - "source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle_sim/functional_flow_recording_v2.py": "5e577ceb7f5b060519e594e1994d73027e8a6913c745c5720987451e8cce56aa", - "source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle_sim/evaluation_env.py": "04e98455035e347633b7ea6c1fcf5372b4e6ac33645805f1beac8f7784e424c6", - "source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle_sim/evaluation_cfg.py": "62a83aa9976a4da00c49fa6d9dc61044ea705719047b2fd4f16e11fc671a3fa4", - "source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle_sim/evaluation_mdp.py": "89c46b2038733a21c97cb72a4112ff16b48ed0e15b5070ebdebcd3ce0cd8f7ac", - "source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle_sim/recording.py": "8dc352f02a3cc84b4e2527f946a835d8c9ba5d4707d9545799cbe43c813969d0", - "source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle/recording.py": "c718eba351d731bd4a6f864c9b8e47faeb70c7e1e583b8d108f654e0731f4224", - "source/SkillFactory/SkillFactory/legs/contact_cycle_sim/evaluation_binding.py": "45c0c3c61cb968f19264398e1e6776630ed8ba8a799c7fea405a830248128fbf", - "source/SkillFactory/SkillFactory/legs/contact_cycle_sim/evaluation_budget.py": "2cc58de32373df3d8508086cdaea5d7666f8d333f2822d401eccf21102225066", - "configs/contact_cycle/functional_followup_v3.json": "aaed45884eab9912db6c7bac1d82e2ab27784982c524a838b7886cdd763146f4", - "scripts/functional_followup_launch_v3.py": "9ed414f036b3aae61a4573d8cd9893be40f6c33c36e825c5de213dc05987afa3", - "scripts/functional_gpu_watch_v3.py": "c56d8e1e5e60f79ccec8d8ef1e656481d8bd316e6cde33d51b1decaf8a972484", - "source/SkillFactory/SkillFactory/legs/contact_cycle_sim/functional_followup_v3.py": "744ea0f83e7c160220959f565dd3f9ba52f7c3c224f8781afbf1d69ffb12430a", - "source/SkillFactory/SkillFactory/legs/contact_cycle_sim/functional_followup_binding_v3.py": "b10fb44971d6d267f9749de39a8e3f5b15b20cd1078df4a68e53689c4d2e539b", - "scripts/audit_cycle_functional_flow.py": "87a92b659d5a60605468c22079de49ace57d096d4f8ce89bb30d658d9234ac66", - "scripts/go2_fl_skill.py": "d95fe3c823c21c35ba45dec4221052959e3f096ef2ec311206c82774d08f12fa", - "scripts/skill_launch_v4.py": "61df4129f706b0f22d68471a81390180a1996a339d83cf49a89f37ee8340bb52", - "docs/contact_cycle_sim_skill_v4_plan.md": "ab552aa76dc30420557f4e82519fa2531677261ed7a63c5128dd22a6029c71c6", - "configs/contact_cycle/skill_v4_desktop_allowlist.json": "af8c54b2901642e6a9e9fca41e094ec95ef09dd714ccfb74a2a2869fcf92ad8d", - "source/SkillFactory/SkillFactory/legs/contact_cycle_sim/skill_v4.py": "1cfa556a44ff749677bf030dd61792fbe85d60e424646844bdace05794fd102c", - "source/SkillFactory/SkillFactory/legs/contact_cycle_sim/skill_mailbox_v4.py": "53f742f2c6d6c7ad4fbae5f1fcd1d1a41be1845567b8a0fdd4b080bf6e13fb92", - "source/SkillFactory/SkillFactory/legs/contact_cycle_sim/skill_binding_v4.py": "3efb8a8b3aac7a18111e490f2841f5205d275c99aa350116d50e15388d5de26e", - "source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle_sim/skill_recording_v4.py": "7daf5b8eb9f84c5d2dc7ac915d16771235583bb336161339003e811c4e59770c", - "source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle_sim/skill_gui_v041.py": "688068d6a1771076d087dc3deb4414f04922ca0bc8a296555495a07d19f57751", - "docs/contact_cycle_sim_gui_v041_plan.md": "508af7cbf5ea9b01a9f66871ed0c041c1c195e9adfb12e8289fb78b79860cb5f", - "source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle_sim/performance_v042.py": "49bc36b4dae71141914ec5d99aa12379f5a5ce22143968dd7211bb8cbb44d47d", - "configs/contact_cycle/performance_v042.json": "039dd6b7e795e7fdac9e300a91975479bd6a93a664130acd5c18a9ed84d0aaf3", - "performance_v042/plan.md": "1d59f67d4fc56896f63aafd8fd345ec9ebccd19bce207543da8ba90783e87c4d", - "source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle_sim/sensor_epoch_v042.py": "cd2edb7ca336f4f80a1191d6967833f84d5598fbb6712efe51c7a24df607f71a", - "source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle_sim/packed_recording_v042.py": "c929d294623bc6b21b1f34839c7a0d59d484d63b4b35623ebe0ddbbb4a21578e", - "source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle_sim/readonly_scope_v042.py": "024258ed6aeae33715eab0afebff92b9eb41ad97621c67f267834c6813991b7c", - "source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle_sim/batched_kinematics_v042.py": "f41d12f48e800177520e6dec5a41137e27d4d6e80c4314026e0533f4074f7d97", - "source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle_sim/live_cadence_v042.py": "3254a54a673fb3f27bf24f884210bc49c69c58b4fa2ac633a63ea4d699056915", - "performance_v042/presentation_amendment.md": "bbcdf6099b57bd26645674b1032e1e52e730a79cadc057cc62b88317eabdb89f" - }, - "frozen": { - "candidate_path": "/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/deliveries/go2_fl_contact_cycle_sim-0.4.2/logs/contact_cycle/sim_residual_training_v1/prepared01/candidate_u0256.pt", - "candidate_sha256": "c088bb3aecaca751867118858626fd508f7a3983303802d7524353f80802cf99", - "manifest_sha256": "a70a226f176104414d2da295f08cce230f6b91ed3e2b78490c78f7ffce95ab01", - "snapshot_files_verified": 134, - "live_source_exceptions": [ - { - "path": "AGENT.md", - "snapshot_sha256": "cec5e09fb709a88759e3c8b9ec9e17c95fc6bad3a24cc99b8617d2c9531dad8e", - "live_sha256": "d25b6c9db8f7f61adc2837ca227c46ad9b40f177f153346b1bfdb8d14891be91", - "reason": "Parent-approved non-runtime instruction drift only; snapshot unchanged" - } - ], - "replay_sources": { - "scripts/replay_cycle_sim_residual.py": "36b44925135c5452341f43737004217a2d9036fef290a23e48aa2526c1f0aedd", - "source/SkillFactory/SkillFactory/legs/contact_cycle_sim/replay.py": "e3dc56513065df6c119296eca15c2370df244674ccbe935199fcacc655448639" - } - } -} diff --git a/performance_v042/display-S1-05-review-extract.json b/performance_v042/display-S1-05-review-extract.json deleted file mode 100644 index db2cac9..0000000 --- a/performance_v042/display-S1-05-review-extract.json +++ /dev/null @@ -1,151 +0,0 @@ -{ - "originals": { - "/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/runs/display-S1-05/campaign/run/worker-result.json": "668473b107926954758b0b85da0b0de2c882e5169101c20f38bf4943a8a21dd1", - "/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/runs/display-S1-05/campaign/campaign-result.json": "38cd9d5dcc45c0dca02d880d475c81efa6725c75657cd18d1d64ca7e5fa6f130", - "/home/cen/Embodied_Workspace/Isaac_Projects/SkillFactory/performance_v042/runs/display-S1-05/observer/result.json": "96de9a8dead726adac1a4765b4842d1c83cabccb7496b889232cecfac800009c" - }, - "worker": { - "cycles_completed": 6, - "gui": { - "camera": "/World/SkillDemoCamera", - "close_reason": "window_close", - "enabled": true, - "hold_no_physics": true, - "last_tick": 27000, - "max_final_view_seconds": 600, - "protocol_completed": true, - "render_updates": 27059, - "source": "live PhysX and actual state; no playback; original 3kg payload mesh" - }, - "hook_violations": [], - "performance_installation": { - "constructor_sensor_references_routed": [ - "mount_wrench" - ], - "implementation": "SkillFactory.tasks.manager_based.contact_cycle_sim.sensor_epoch_v042.EpochSensor", - "jacobian": { - "all_bitwise_equal": true, - "applied": true, - "epsilon_rad": 0.0005, - "ik_parameters_changed": false, - "max_abs": 0.0, - "qualification": "sampled same-device same-dtype original-vs-batched math; not all-input proof", - "reason": "exact_samples", - "samples": 33 - }, - "safety_read_scope": true, - "sensors": [ - "foot_contact", - "mount_wrench" - ] - }, - "physics_counts": { - "attempted_steps": 27000, - "completed_steps": 27000, - "composer_buffer_replacements": 27000, - "initialization_steps": 0, - "pose_write_calls": 14, - "reset_calls": 22, - "rollout_steps": 27000 - }, - "preclose_identity_verified": true, - "runtime_continuity_verified": true, - "runtime_stop": { - "all_sim_steps_attempted": 27000, - "all_sim_steps_completed": 27000, - "causes": [], - "clock": { - "cycle_index": 5, - "global_tick": 27000, - "local_tick": 4500 - }, - "completed_clock_cycles": 6, - "completed_controls": 5400, - "composer_buffer_replacements": 27000, - "fatal": false, - "initialization_steps": 0, - "partial_control_ticks": 0, - "physics_ticks": 27000, - "pose_write_calls": 14, - "reason": "protocol_complete", - "reset_calls": 22, - "rollout_steps": 27000, - "trial_index": 0 - }, - "shutdown_handoff_ready": true, - "success": true - }, - "campaign": { - "success": true, - "actual_final_physics_calls": 27000, - "reserved_physics_calls": 27250, - "accepted_skill": false, - "optimizer_steps": 0 - }, - "rows": [ - { - "slot": "prepare", - "success": true, - "returncode": 0, - "waited_exit": true, - "cleanup_clean": true, - "shutdown_handoff": { - "last_live_gpu": { - "approved_desktop_graphics_pids": [ - 2420, - 2618, - 3268, - 4486, - 574096, - 602685, - 696142 - ], - "clean": false, - "compute_pids": [ - 954474 - ], - "scope": "owned-compute-and-graphics.plus-pinned-desktop-graphics-only", - "task_graphics_pids": [ - 954474 - ], - "uuid": "GPU-7d882fc3-f771-6d29-4e58-f0fa2a18a3a5" - }, - "released": true, - "scope": "No physics after receipt; bounded owned cleanup then unchanged strict final GPU check", - "worker_result_sha256": "edd32a18be7cc48b7d03c18cf8dfd967eb2aa7143dc31520bd45c6b1a215f48b" - } - }, - { - "slot": "run", - "success": true, - "returncode": 0, - "waited_exit": true, - "cleanup_clean": true, - "shutdown_handoff": { - "last_live_gpu": { - "approved_desktop_graphics_pids": [ - 2420, - 2618, - 3268, - 4486, - 574096, - 602685, - 696142 - ], - "clean": false, - "compute_pids": [ - 956416 - ], - "scope": "owned-compute-and-graphics.plus-pinned-desktop-graphics-only", - "task_graphics_pids": [ - 956416 - ], - "uuid": "GPU-7d882fc3-f771-6d29-4e58-f0fa2a18a3a5" - }, - "released": true, - "scope": "No physics after receipt; bounded owned cleanup then unchanged strict final GPU check", - "worker_result_sha256": "668473b107926954758b0b85da0b0de2c882e5169101c20f38bf4943a8a21dd1" - } - } - ] -} diff --git a/performance_v042/display-code-review.md b/performance_v042/display-code-review.md deleted file mode 100644 index ad82905..0000000 --- a/performance_v042/display-code-review.md +++ /dev/null @@ -1,25 +0,0 @@ -## Review - -- **Correct:** Original safety and synchronous evidence finish before painting; physical/evidence failures suppress painting (`source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle_sim/live_cadence_v042.py:48–55`). Added-frame early close returns the literal abort cause before another step; final-tick completion is preserved (`:26–36`). -- **Correct:** Attachment is GUI-only, after `gui.start`; both combined modes receive runtime math qualification (`scripts/evaluate_cycle_functional_flow.py:122–125,270–272`). The new module is preloaded and source-bound; the amendment is included in approval sources (`:70`; `skill_binding_v4.py:18`; `scripts/skill_launch_v4.py:32–33`). -- **Correct:** Physics throughput and render-generation rate are reported separately, without claiming measured display-present FPS (`source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle_sim/performance_v042.py:90–94`). - -### Finding: P1 — SDK-swallowed visualizer failures permit silent missing paints - -**Location:** `source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle_sim/live_cadence_v042.py:28–36`. - -The painter treats a returning `sim.render()` as successful, increments `additional_renders`, and checks only GUI/app closure. However, the installed SDK catches exceptions from `viz.step()`, closes/removes that visualizer, and returns normally: - -- `/home/cen/IsaacLab/source/isaaclab/isaaclab/sim/simulation_context.py:829–839` -- `render_generation` still increments at `:776`; subsequent updates with no visualizers return immediately at `:793–794`. - -Consequently, a Kit visualizer failure during an added paint can leave the app running, allow the next physical step, and count subsequent no-op renders as successful paints. This contradicts the new every-accepted-tick-paint contract. The direct render-throw test (`tests/test_contact_cycle_live_cadence_v042.py:78–83`) does not cover this SDK-swallowed failure. - -**Smallest fix:** Retain and validate the expected Kit visualizer around added renders, failing closed if it is removed/closed. Check its health before subsequent physics as well, covering failures in retained interval20 renders. Add a negative case where rendering returns normally after removing the visualizer. - -- **Fixed:** None; read-only review. -- **Merge verdict: BLOCK** — address this exception gap before spending the fresh full-S1 GUI qualification run. - -### Qualification limits - -The existing XML reports **68 passed, zero failures/errors**, including 12 presentation cases; nothing was rerun. CPU tests do not establish native acceptance. GUI/headless trace equivalence, measured presentation responsiveness/RTF, native early-close behavior, and renderer physical side effects remain empirical qualification work. In particular, SDK rendering invokes kinematic/fabric refresh (`simulation_context.py:800–801`; `physx_manager.py:329–335`), although the inspected path does not integrate another physics step. \ No newline at end of file diff --git a/performance_v042/display-review-P1-resolution.md b/performance_v042/display-review-P1-resolution.md deleted file mode 100644 index 8373ccb..0000000 --- a/performance_v042/display-review-P1-resolution.md +++ /dev/null @@ -1,9 +0,0 @@ -# Display review P1 correction before native qualification - -The reviewer found SimulationContext.update_visualizers swallows exceptions, removes the failing visualizer, and still increments render_generation. Native render-call return or generation count alone is NOT successful painting proof. - -VerifiedTickPainter now retains exactly one expected concrete Kit instance. It checks identity membership, closed/running status, rendering-paused and training-paused flags at construction, before an added render, and AFTER its return. Only then increments additional_renders. A swallowed removal/close/paused state fails closed. No replacement visualizer is admitted. This does not claim display-present timestamps. - -Evaluator invokes the same check before EVERY next physical call and immediately after every env.step/control, covering failures in original interval20 renders (including the final protocol tick). Final viewing uses the same guard per iteration, with an additional post-hold check. Headless/other modes without a painter have no new visualizer requirement. Existing user-close abort checks remain first in before_physics; intentional canceled close at full completion remains distinct from lost visualizer. - -Added CPU cases for normal-return/swallowed removal with app still alive, removal in original interval20 at both midprotocol/final tick preventing the next physical call, closed/not-running/render-paused/training-paused/replaced concrete instances, and no-painter headless. Presentation/math/original runtime suite77passed (cpu-display-health.log/.xml). Native equivalence and actual responsiveness remain unqualified until the new real run. Existing failed collection log remains preserved; no GPU retry has occurred for these fixes. diff --git a/performance_v042/display05-postexit.json b/performance_v042/display05-postexit.json deleted file mode 100644 index 7c87c1f..0000000 --- a/performance_v042/display05-postexit.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "campaign_original_success": true, - "owned_identities_checked": 11, - "owned_alive": [], - "finite_bound_files_checked": 470, - "binding_file_mismatches": [], - "protected_file_mismatches": [], - "gpu_clients": { - "compute": [], - "graphics": [ - 2420, - 2618, - 3268, - 4486, - 574096, - 602685, - 696142 - ] - }, - "gpu_review": { - "uuid": "GPU-7d882fc3-f771-6d29-4e58-f0fa2a18a3a5", - "compute_pids": [], - "approved_desktop_graphics_pids": [ - 2420, - 2618, - 3268, - 4486, - 574096, - 602685, - 696142 - ], - "task_graphics_pids": [], - "clean": true, - "scope": "owned-compute-and-graphics.plus-pinned-desktop-graphics-only" - }, - "static_check_not_same_cfg_proof": true, - "boottime": 361576.443472762, - "passed": true -} diff --git a/performance_v042/display05-review-extract.json b/performance_v042/display05-review-extract.json deleted file mode 100644 index d0e165b..0000000 --- a/performance_v042/display05-review-extract.json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "originals": { - "worker": "performance_v042/runs/display-S1-05/campaign/run/worker-result.json", - "campaign": "performance_v042/runs/display-S1-05/campaign/campaign-result.json", - "observer": "performance_v042/runs/display-S1-05/observer/result.json" - }, - "worker": { - "cycles_completed": 6, - "gui": { - "camera": "/World/SkillDemoCamera", - "close_reason": "window_close", - "enabled": true, - "hold_no_physics": true, - "last_tick": 27000, - "max_final_view_seconds": 600, - "protocol_completed": true, - "render_updates": 27059, - "source": "live PhysX and actual state; no playback; original 3kg payload mesh" - }, - "hook_violations": [], - "performance_installation": { - "constructor_sensor_references_routed": [ - "mount_wrench" - ], - "implementation": "SkillFactory.tasks.manager_based.contact_cycle_sim.sensor_epoch_v042.EpochSensor", - "jacobian": { - "all_bitwise_equal": true, - "applied": true, - "epsilon_rad": 0.0005, - "ik_parameters_changed": false, - "max_abs": 0.0, - "qualification": "sampled same-device same-dtype original-vs-batched math; not all-input proof", - "reason": "exact_samples", - "samples": 33 - }, - "safety_read_scope": true, - "sensors": [ - "foot_contact", - "mount_wrench" - ] - }, - "physics_counts": { - "attempted_steps": 27000, - "completed_steps": 27000, - "composer_buffer_replacements": 27000, - "initialization_steps": 0, - "pose_write_calls": 14, - "reset_calls": 22, - "rollout_steps": 27000 - }, - "preclose_identity_verified": true, - "runtime_continuity_verified": true, - "runtime_stop": { - "all_sim_steps_attempted": 27000, - "all_sim_steps_completed": 27000, - "causes": [], - "clock": { - "cycle_index": 5, - "global_tick": 27000, - "local_tick": 4500 - }, - "completed_clock_cycles": 6, - "completed_controls": 5400, - "composer_buffer_replacements": 27000, - "fatal": false, - "initialization_steps": 0, - "partial_control_ticks": 0, - "physics_ticks": 27000, - "pose_write_calls": 14, - "reason": "protocol_complete", - "reset_calls": 22, - "rollout_steps": 27000, - "trial_index": 0 - }, - "shutdown_handoff_ready": true, - "success": true - }, - "campaign": { - "reserved_physics_calls": 27250, - "success": true - }, - "rows": [ - { - "success": true - }, - { - "success": true - } - ] -} diff --git a/performance_v042/finalize_measurements.py b/performance_v042/finalize_measurements.py deleted file mode 100644 index 2612d3c..0000000 --- a/performance_v042/finalize_measurements.py +++ /dev/null @@ -1,43 +0,0 @@ -#!/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']})) diff --git a/performance_v042/finish_task.py b/performance_v042/finish_task.py deleted file mode 100644 index 3b7663d..0000000 --- a/performance_v042/finish_task.py +++ /dev/null @@ -1,49 +0,0 @@ -#!/usr/bin/python3.12 -"""Final independent static/process/GPU/protected/accounting checks. No physics.""" -import pathlib,json,hashlib,sys,time,datetime,ctypes -A=pathlib.Path(__file__).resolve().parent;D=A.parent -read=lambda p:json.loads(p.read_text());sha=lambda p:hashlib.sha256(p.read_bytes()).hexdigest() -seal=read(A/'package-verification.json');P=pathlib.Path(seal['package']);S=pathlib.Path(read(A/'staging.json')['root']);scope=read(A/'scope.json');assert not (A/'task-complete.json').exists() -assert sha(pathlib.Path(seal['archive']))==seal['archive_sha256'] -for line in (P/'SHA256SUMS').read_text().splitlines(): - h,n=line.split(' ',1);assert sha(P/n)==h,n -auth=read(A/'runs/display-S1-05/campaign/approval.json')['sources'];assert all(sha(P/n)==sha(S/n)==sha(D/n)==h for n,h in auth.items()) -protected=read(A/'protected-registration.json')['protected'];bad=[n for n,h in protected.items() if not pathlib.Path(n).is_file() or sha(pathlib.Path(n))!=h];assert not bad,bad -identities=[];intervals=[];cases=[] -for r in (A/'runs').iterdir(): - c=read(r/'campaign/campaign-result.json');o=read(r/'observer/result.json');identities += [i for row in c['rows'] for i in row['owned_identities']];intervals.append({'case':r.name,'begin_wall':o['began_wall'],'end_wall':o['ended_wall'],'Kit':len(c['rows'])});cases.append(c) -intervals.sort(key=lambda x:x['begin_wall']);assert all(x['end_wall']<=y['begin_wall'] for x,y in zip(intervals,intervals[1:])),intervals -alive=[] -for pid,birth in identities: - try: - st=pathlib.Path(f'/proc/{pid}/stat').read_text() - if int(st[st.rfind(')')+2:].split()[19])==birth:alive.append([pid,birth]) - except FileNotFoundError:pass -assert not alive,alive -sys.path.insert(0,str(S/'scripts'));import functional_flow_launch_v2 as f -identity=read(A/'runs/headless-S1-06/campaign/approval.json')['gpu_identity'];gpu=f.ownership.GPUOwnership(identity);review=gpu.check(type('EmptyOwned',(),{'discover':lambda self:{}})(),final=True);clients={k:sorted(v) for k,v in gpu.clients().items()};assert not clients['compute'] -# This scan is a final owned-storage inventory, not a claim to monitor all -# shared caches continuously. pytest root is conservatively counted even if -# it includes unrelated tests. Symlinks are listed but never followed. -entries=[];seen=set();bytes_=0;gaps=[] -roots=[A,pathlib.Path('/tmp/pytest-of-cen')] -for root in roots: - if not root.exists():continue - for p in root.rglob('*'): - if p.is_symlink():continue - try: - if p.is_file(): - n=str(p.resolve()) - if n not in seen: - seen.add(n);s=p.stat().st_size;bytes_+=s;entries.append({'path':n,'bytes':s,'sha256':sha(p) if root==A else None,'scope':'task-root' if root==A else 'conservative-shared-pytest-temp'}) - except (FileNotFoundError,PermissionError) as e:gaps.append({'path':str(p),'error':type(e).__name__}) -for p in [D/'setup-preflight.json',*(D/n for n in auth),D/'docs/contact_cycle_sim_performance_v042_result.md']: - n=str(p.resolve()) - if n not in seen:seen.add(n);s=p.stat().st_size;bytes_+=s;entries.append({'path':n,'bytes':s,'sha256':sha(p),'scope':'additional-source/probe/result'}) -reserve=16*1024**2;accounted=bytes_+reserve;elapsed=time.time()-datetime.datetime.fromisoformat(scope['start']).timestamp();kits=sum(len(c['rows']) for c in cases);actual=sum(c['actual_final_physics_calls'] for c in cases);reserved=sum(c['reserved_physics_calls'] for c in cases) -assert kits==11 and actual==67500 and reserved==73500 -assert kits<=scope['limits']['kit_launches'] and reserved<=scope['limits']['physics_calls'] and accounted<=scope['limits']['owned_bytes'] and elapsed rootxy_launch_v2.py:315, GPUOwnership constructor", - "pid_evidence": "The constructor exception did not report actual PID sets; the exact transient cause is unestablished. Do not claim an owned teardown race or a foreign client as proven.", - "followup_observation": "2026-10-16 14:59:29 local nvidia-smi showed compute empty and exactly graphics2420,2618,3268,4486,574096,602685,696142, matching unchanged approval; external observer/result.json confirms actual callerwait0 and campaign/worker success.", - "action": "Preserve this failure, rerun only the same read-only strict postexit verifier after actual wait/clean observation, no new Kit/physics, no whitelist/source changes, no process termination. Later success is a later observation, not retroactive explanation of this exception." -} diff --git a/performance_v042/headless06-postexit-second.json b/performance_v042/headless06-postexit-second.json deleted file mode 100644 index 2564e44..0000000 --- a/performance_v042/headless06-postexit-second.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "campaign_original_success": true, - "owned_identities_checked": 8, - "owned_alive": [], - "finite_bound_files_checked": 463, - "binding_file_mismatches": [], - "protected_file_mismatches": [], - "gpu_clients": { - "compute": [], - "graphics": [ - 2420, - 2618, - 3268, - 4486, - 574096, - 602685, - 696142 - ] - }, - "gpu_review": { - "uuid": "GPU-7d882fc3-f771-6d29-4e58-f0fa2a18a3a5", - "compute_pids": [], - "approved_desktop_graphics_pids": [ - 2420, - 2618, - 3268, - 4486, - 574096, - 602685, - 696142 - ], - "task_graphics_pids": [], - "clean": true, - "scope": "owned-compute-and-graphics.plus-pinned-desktop-graphics-only" - }, - "static_check_not_same_cfg_proof": true, - "boottime": 362094.201891648, - "passed": true -} diff --git a/performance_v042/performance-summary-pre-headless.json b/performance_v042/performance-summary-pre-headless.json deleted file mode 100644 index d0c47c4..0000000 --- a/performance_v042/performance-summary-pre-headless.json +++ /dev/null @@ -1,296 +0,0 @@ -{ - "baseline-profile02": { - "loop": { - "active_loop_wall_seconds": 113.54154362500412, - "actual_render_generations_per_wall_second": 1.9816535236046455, - "control_calls": 900, - "cprofile_enabled": true, - "mode": "baseline", - "physics_samples": 4500, - "physics_ticks_per_wall_second": 39.63307047209291, - "render_generations": 225, - "scope": "Actual env.step loop incl gates/recording/UI. Startup and final viewing excluded. cProfile adds overhead. Render generations are submissions, not display-present GPU timings.", - "simulation_seconds_per_wall_second": 0.07926614094418583 - }, - "gpu_window_basis": "estimated: profile_file_mtime minus measured_loop_duration; slight serialization-offset uncertainty", - "device_wide_gpu_samples": { - "utilization.gpu [%]": { - "n": 227, - "mean": 16.198237885462554, - "min": 1.0, - "max": 24.0 - }, - "utilization.memory [%]": { - "n": 227, - "mean": 2.488986784140969, - "min": 1.0, - "max": 8.0 - }, - "power.draw [W]": { - "n": 227, - "mean": 75.59013215859031, - "min": 59.14, - "max": 77.94 - }, - "power.limit [W]": { - "n": 227, - "mean": 360.0, - "min": 360.0, - "max": 360.0 - }, - "clocks.current.sm [MHz]": { - "n": 227, - "mean": 2895.9030837004407, - "min": 2647.0, - "max": 2910.0 - }, - "memory.used [MiB]": { - "n": 227, - "mean": 6310.920704845815, - "min": 5990.0, - "max": 6391.0 - } - } - }, - "sensor-profile03": { - "loop": { - "active_loop_ended_wall": 1792129722.1940768, - "active_loop_started_wall": 1792129630.083723, - "active_loop_wall_seconds": 92.10295005096123, - "actual_render_generations_per_wall_second": 2.4429184936585187, - "capture_implementation": "SkillFactory.tasks.manager_based.contact_cycle_sim.recording.SimCycleRecorder", - "control_calls": 900, - "cprofile_enabled": true, - "mode": "sensor_epoch", - "physics_samples": 4500, - "physics_ticks_per_wall_second": 48.858369873170375, - "render_generations": 225, - "scope": "Actual env.step loop incl gates/recording/UI. Startup and final viewing excluded. cProfile adds overhead. Render generations are submissions, not display-present GPU timings.", - "sensor_epochs": { - "foot_contact": { - "fetches": 4501, - "invalidations": 4501, - "requests": 57614 - }, - "mount_wrench": { - "fetches": 0, - "invalidations": 4501, - "requests": 0 - } - }, - "simulation_seconds_per_wall_second": 0.09771673974634075 - }, - "gpu_window_basis": "recorded_loop_wall", - "device_wide_gpu_samples": { - "utilization.gpu [%]": { - "n": 184, - "mean": 17.60326086956522, - "min": 1.0, - "max": 25.0 - }, - "utilization.memory [%]": { - "n": 184, - "mean": 2.3206521739130435, - "min": 1.0, - "max": 8.0 - }, - "power.draw [W]": { - "n": 184, - "mean": 76.3308152173913, - "min": 58.61, - "max": 78.19 - }, - "power.limit [W]": { - "n": 184, - "mean": 360.0, - "min": 360.0, - "max": 360.0 - }, - "clocks.current.sm [MHz]": { - "n": 184, - "mean": 2896.4239130434785, - "min": 2647.0, - "max": 2910.0 - }, - "memory.used [MiB]": { - "n": 184, - "mean": 6313.483695652174, - "min": 5994.0, - "max": 6395.0 - } - } - }, - "combined-profile04": { - "loop": { - "active_loop_ended_wall": 1792130851.711445, - "active_loop_started_wall": 1792130775.9220383, - "active_loop_wall_seconds": 75.78353441797663, - "actual_render_generations_per_wall_second": 2.9689826652717812, - "capture_implementation": "SkillFactory.tasks.manager_based.contact_cycle_sim.packed_recording_v042.ScopedPackedSimCycleRecorder", - "control_calls": 900, - "cprofile_enabled": true, - "jacobian_qualification": { - "all_bitwise_equal": true, - "applied": true, - "epsilon_rad": 0.0005, - "ik_parameters_changed": false, - "max_abs": 0.0, - "qualification": "sampled same-device same-dtype original-vs-batched math; not all-input proof", - "reason": "exact_samples", - "samples": 33 - }, - "mode": "combined", - "physics_samples": 4500, - "physics_ticks_per_wall_second": 59.379653305435625, - "render_generations": 225, - "scope": "Actual env.step loop incl gates/recording/UI. Startup and final viewing excluded. cProfile adds overhead. Render generations are submissions, not display-present GPU timings.", - "sensor_epochs": { - "foot_contact": { - "fetches": 4501, - "invalidations": 4501, - "requests": 21606 - }, - "mount_wrench": { - "fetches": 4501, - "invalidations": 4501, - "requests": 9903 - } - }, - "simulation_seconds_per_wall_second": 0.11875930661087125 - }, - "gpu_window_basis": "recorded_loop_wall", - "device_wide_gpu_samples": { - "utilization.gpu [%]": { - "n": 152, - "mean": 19.723684210526315, - "min": 1.0, - "max": 28.0 - }, - "utilization.memory [%]": { - "n": 152, - "mean": 3.0921052631578947, - "min": 1.0, - "max": 8.0 - }, - "power.draw [W]": { - "n": 152, - "mean": 77.5408552631579, - "min": 58.7, - "max": 79.91 - }, - "power.limit [W]": { - "n": 152, - "mean": 360.0, - "min": 360.0, - "max": 360.0 - }, - "clocks.current.sm [MHz]": { - "n": 152, - "mean": 2894.2302631578946, - "min": 2640.0, - "max": 2910.0 - }, - "memory.used [MiB]": { - "n": 152, - "mean": 6427.3223684210525, - "min": 6108.0, - "max": 6506.0 - } - } - }, - "display-S1-05": { - "loop": { - "active_loop_ended_wall": 1792133436.1219404, - "active_loop_started_wall": 1792132671.2588954, - "active_loop_wall_seconds": 764.8630335039925, - "actual_render_generations_per_wall_second": 35.30043787880234, - "capture_implementation": "SkillFactory.tasks.manager_based.contact_cycle_sim.packed_recording_v042.ScopedPackedSimCycleRecorder", - "control_calls": 5400, - "cprofile_enabled": false, - "jacobian_qualification": { - "all_bitwise_equal": true, - "applied": true, - "epsilon_rad": 0.0005, - "ik_parameters_changed": false, - "max_abs": 0.0, - "qualification": "sampled same-device same-dtype original-vs-batched math; not all-input proof", - "reason": "exact_samples", - "samples": 33 - }, - "mode": "combined_display", - "physics_samples": 27000, - "physics_ticks_per_wall_second": 35.30043787880234, - "presentation": { - "additional_renders": 25650, - "adds_physics": false, - "interpolation": false, - "last_verified_tick": 27000, - "original_render_interval": 20, - "policy": "one current-state render per verified physical tick; no frame cap", - "presentation_vs_throughput_tradeoff": true - }, - "render_generations": 27000, - "scope": "Actual env.step loop incl gates/recording/UI. Startup and final viewing excluded. cProfile adds overhead. Render generations are submissions, not display-present GPU timings.", - "sensor_epochs": { - "foot_contact": { - "fetches": 27001, - "invalidations": 27001, - "requests": 129606 - }, - "mount_wrench": { - "fetches": 27001, - "invalidations": 27001, - "requests": 59403 - } - }, - "simulation_seconds_per_wall_second": 0.07060087575760468 - }, - "gpu_window_basis": "recorded_loop_wall", - "device_wide_gpu_samples": { - "utilization.gpu [%]": { - "n": 1528, - "mean": 39.73560209424084, - "min": 1.0, - "max": 49.0 - }, - "utilization.memory [%]": { - "n": 1528, - "mean": 20.138089005235603, - "min": 1.0, - "max": 30.0 - }, - "power.draw [W]": { - "n": 1528, - "mean": 133.430222513089, - "min": 61.58, - "max": 137.97 - }, - "power.limit [W]": { - "n": 1528, - "mean": 360.0, - "min": 360.0, - "max": 360.0 - }, - "clocks.current.sm [MHz]": { - "n": 1528, - "mean": 2887.8219895287957, - "min": 2707.0, - "max": 2902.0 - }, - "memory.used [MiB]": { - "n": 1528, - "mean": 6308.526832460733, - "min": 6271.0, - "max": 6360.0 - } - } - }, - "limits": "Whole-device GPU samples incl baseline desktop. Like-profiled single-cycle baseline02/combined04 supports algorithm speed comparison; disabled-profiler fullS1 display05 includes120s30HzCPUrecording and early concurrent CPUtests, not a controlled pure-algorithm comparison. Render generations are SDK submissions, not independent display-present timestamps. Actual window overlay at capturedtick2519 reads33.98FPS.", - "like_profiled_speed_ratio": 1.4982349991592754, - "trace_sha256": { - "baseline-profile02": "2ce511b4c82b6555db30a99bb70dd0231b43ed06ebf7657d57f93c7b1a950e94", - "sensor-profile03": "2ce511b4c82b6555db30a99bb70dd0231b43ed06ebf7657d57f93c7b1a950e94", - "combined-profile04": "2ce511b4c82b6555db30a99bb70dd0231b43ed06ebf7657d57f93c7b1a950e94", - "display-S1-05": "d0934245e50f3d7e174b24c109f167236c4693a023d1da01bbadfd71e41b4dba" - } -} diff --git a/performance_v042/read-only-hot-path-review.md b/performance_v042/read-only-hot-path-review.md deleted file mode 100644 index 0f5cb7b..0000000 --- a/performance_v042/read-only-hot-path-review.md +++ /dev/null @@ -1,88 +0,0 @@ -# Read-only hot-path review - -## Review -- **Correct:** Every physics tick completes latch updates, safety checks and synchronous evidence capture before rendering or another physics step (`source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle_sim/evaluation_env.py:447–469`). Preserve this ordering. -- **Correct:** RuntimeHooks retains pre-step admission, counters, unique wrench ownership and reset/write guards (`evaluation_env.py:114–201`). -- **Fixed:** None; read-only review. -- **No issues found.** -- **Merge verdict: OK with notes** for the profiling approach—not approval of an optimized implementation or a performance claim. - -Inspected the requested original source seams, observer/binding integration, and relevant CPU tests. No commands, tests, GPU operations or edits were performed. No `performance-profile.json` was available when checked; no measured hot-function ranking is claimed. - -Below, task-module paths are relative to `source/SkillFactory/SkillFactory/tasks/manager_based/`. - -## Why a single leg can look slow - -The implementation contains substantial **serial CPU/GPU handshaking around small tensor workloads**. Training throughput across many environments and single-environment GUI frame rate measure different things; aggregate training throughput does not establish single-leg interactive performance. - -The environment requests rendering every 20 physics ticks. At 500 Hz simulation time, that is **25 render requests per simulated second**, not necessarily 25 per wall second. Slow execution of those intervening physics/check/recording ticks also slows GUI updates without the renderer itself being the dominant cost. - -These are code-supported explanations, **not a measured attribution of the reported 2–3 FPS**. Current evidence does not establish GPU utilization, rendering cost, or an achievable speedup. Maximizing useful execution speed also does not require—or guarantee—100% RTX5080 utilization for this small serial workload. - -## Evidenced optimization opportunities - -| Location | Code evidence | Advice | -|---|---|---| -| `contact_cycle/recording.py:109–139`; `contact_cycle_sim/recording.py:14–26` | Snapshot builds many tensor fields and independently executes `detach().cpu().clone()` for each. Simulation extras repeat this pattern. Some metadata is already CPU-resident. | **First candidate:** pack GPU snapshot fields by exact dtype/device, copy each packed group synchronously once, then reconstruct the original CPU fields. Keep CPU metadata separate. | -| `contact_cycle_sim/evaluation_mdp.py:119–168` | Safety retrieves failure flags to Python and converts numerous individual GPU predicates to Python booleans. It also recreates limit tensors each call. | Subsequently batch boolean predicate results into one synchronous CPU transfer. Preserve each predicate’s arithmetic, thresholds, cause ordering and overlapping causes. Cache immutable limit tensors per state instance. | -| `contact_cycle_sim/evaluation_env.py:325–332`; `evaluation_mdp.py:25–26, 86–104` | Each event converts two reference vectors to CPU tuples; protocol-command construction reads GPU weight as a Python float. Reference/port-reference helpers repeatedly reconstruct commands and device tensors. | Secondary candidate only. Reuse read-only results within a precisely bounded snapshot/reference epoch; never cache merely by global tick. | -| `contact_cycle/recording.py:122`; `contact_cycle/mdp.py:261–275` | Snapshot calls both `failed()` and `failure_flags()`; `failed()` recomputes the flags. | Compute flags once within that snapshot and derive `would_fail = flags.any(-1)`. Do not remove the separate safety gate. | -| `contact_cycle_sim/recording.py:22–23`; `contact_cycle_sim/mdp.py:106–113` | Position and velocity cost helpers each compute both components through `pose_cost`. | Reuse that read-only result inside the snapshot, retaining the original arithmetic and outputs. | -| `contact_cycle_sim/functional_flow_recording_v2.py:175–198` | Every frame receives full finite, bounds, composition and identity checks; additional nominal CPU copying occurs during composition validation. | Retain every check. Consider instance-local immutable nominal CPU data only after equivalence qualification. | -| `contact_cycle_sim/skill_gui_v041.py:105–137` | GUI updates run each control call, including GPU scalar reads for tick/contact. Other displayed physical values already come from CPU evidence. | Lower-priority opportunity: read matching tick/contact evidence from the same completed frame where available. Do not change render cadence or evidence frequency. | - -### Introspection: no established per-tick culprit - -`RuntimeHooks.isaac()` enumerates methods during installation; guard setup and `functools.wraps` are not repeated discovery operations on every tick (`evaluation_env.py:69–120, 161–201`). - -There is **no explicit per-tick `inspect.signature`, `inspect.stack` or source inspection in the requested application hot paths**. Installed Isaac code contains introspection elsewhere, but its existence does not establish active-loop cost. Do not remove provenance checks, bypass wrappers, or globally cache/patch introspection without a profile identifying the actual caller. - -## Lowest-risk first implementation - -Implement a **new bound packed recorder**, leaving the original recorder and frozen physical/controller sources untouched. - -1. Construct the same snapshot values using the same GPU expressions. -2. Flatten/group GPU tensors by **exact dtype and device**. Never cast counters, booleans or integer phase fields into floating-point storage. -3. Perform synchronous device-to-host copies before the evidence callback returns. -4. Reconstruct the same keys, shapes, dtypes, values and independent snapshot ownership. -5. Run all existing frame checks and window/endpoint audits before another physics step. - -Do **not** defer copies to a later control, buffer unchecked ticks, or use unfinished asynchronous transfers. Keep initial snapshots, offending samples, next-reference evidence and seam fingerprints. - -This first version should optimize **transfer packaging**, not simultaneously rewrite safety predicates, command caching and GUI behavior. Smaller scope makes exact-equivalence failures easier to localize. Packing adds its own concatenation/allocation work; improvement remains unmeasured. - -The observer currently accepts `mode="packed"` but does not itself select an implementation (`contact_cycle_sim/performance_v042.py:13–18`); environment/recorder construction remains explicit in `scripts/evaluate_cycle_functional_flow.py:219–231`. A mode label alone is not evidence that packing occurred. - -Any new implementation must join authenticated source/import inventories before PREP. Existing integration points are: -- `source/SkillFactory/SkillFactory/legs/contact_cycle_sim/skill_binding_v4.py:8–17, 25–56` -- `scripts/skill_launch_v4.py:19–40` - -## Required qualification before acceptance - -**Parent-run tests only, after the active run ends:** - -- Differential original/packed snapshots: identical keys, dtype, shape and values; include noncontiguous tensors, CPU metadata, booleans, integers, empty fields and nonfinite values. -- Snapshot ownership: mutating source tensors or later snapshots must not alter earlier evidence. -- Failure injection at physics substep 2: retain the offending frame, report all original causes in order, and execute no third step or post-failure render. -- Transfer/reconstruction exceptions must fail closed before another physics step. -- Preserve exact window decisions at ticks 1499/1999/2999; endpoint evidence, admission, carry/RNG identity and exactly one refresh at seams. -- Compare original/optimized complete traces and gate results; disclose any tolerance rather than calling unequal results exact. -- Negative provenance tests: changed implementation, mode/config or unbound imports must reject before physics. Retain original GPU admission and SHA-bound shutdown ownership. -- GUI/headless regression and early-close/final-hold checks: no added physics, changed render interval or altered cleanup semantics. - -Existing suites to extend/rerun include: -`test_contact_cycle_sim_evaluation_runtime.py`, -`test_contact_cycle_functional_flow_runtime_v2.py`, -`test_contact_cycle_skill_v4.py`, -`test_contact_cycle_gui_v041.py`, and -`test_contact_cycle_gui_shutdown_v041.py`. - -Benchmark matched protocols with profiling enabled on both sides for diagnosis, then disabled for final wall-throughput reporting. `LoopProfile` correctly separates active-loop timing from startup/final viewing and labels render generations as submissions—not displayed frames (`contact_cycle_sim/performance_v042.py:40–67`). - -## Residual risks - -- Dominant cost remains unknown until baseline profiling completes; physics, rendering, CPU recording or synchronization may dominate. -- Packed copies can reduce transfer fan-out yet lose time to packing/allocation. -- CPU equivalence tests cannot establish native CUDA/PhysX trace equality. -- Command caching is particularly sensitive to endpoint/next-reference clocks and live pair-command changes; defer it initially. -- No recommendation changes the floating-root fixture, physical parameters, limits, controller math, 500 Hz trace, gates, render settings, GPU ownership or protected historical artifacts. \ No newline at end of file diff --git a/performance_v042/refresh_delivery_evidence.py b/performance_v042/refresh_delivery_evidence.py deleted file mode 100644 index d24df53..0000000 --- a/performance_v042/refresh_delivery_evidence.py +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/python3.12 -import pathlib,json,hashlib,shutil -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={x['package']:x for x in json.loads((P/'evidence-inventory.json').read_text())} -def copy(src,dst): - dst.parent.mkdir(parents=True,exist_ok=True);shutil.copy2(src,dst);I[str(dst.relative_to(P))]={'original':str(src),'package':str(dst.relative_to(P)),'sha256':sha(src),'bytes':src.stat().st_size} -for src in A.iterdir(): - if src.is_file() and src.suffix in {'.json','.md','.log','.xml','.py','.txt'}:copy(src,P/'evidence/v042/parent'/src.name) -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) -shutil.copy2(D/'docs/contact_cycle_sim_performance_v042_result.md',P/'RESULTS.md') -(P/'evidence-inventory.json').write_text(json.dumps(list(I.values()),indent=2)+'\n') -# Remove only this generated package's test/bytecode caches, never user/shared -# caches or any source/evidence. First preseal cache assertion failure is retained. -shutil.rmtree(P/'.pytest_cache',ignore_errors=True) -caches=list(P.rglob('__pycache__')) -if caches: - receipt={'preseal_observation':'First refresh asserted because generated bytecode cache remained after CPU verification. No runtime source mismatch; no archive had been sealed.', - 'removed_only_package_generated_dirs':[str(p.relative_to(P)) for p in caches]} - (A/'delivery-cache-cleanup.json').write_text(json.dumps(receipt,indent=2)+'\n') - for p in caches: - assert not p.is_symlink();shutil.rmtree(p) -assert not list(P.rglob('__pycache__')) -a=json.loads((A/'runs/display-S1-05/campaign/approval.json').read_text())['sources'];assert all(sha(P/n)==h for n,h in a.items()) -if (A/'delivery-cache-cleanup.json').exists(): - copy(A/'delivery-cache-cleanup.json',P/'evidence/v042/parent/delivery-cache-cleanup.json') -(P/'evidence-inventory.json').write_text(json.dumps(list(I.values()),indent=2)+'\n') -assert all(sha(P/x['package'])==x['sha256'] for x in I.values()) -print('evidence inventory verified',len(I),'authority41 unchanged') diff --git a/performance_v042/run_trial.py b/performance_v042/run_trial.py deleted file mode 100644 index e77704a..0000000 --- a/performance_v042/run_trial.py +++ /dev/null @@ -1,60 +0,0 @@ -#!/usr/bin/env python3 -"""New finite public-API run + read-only GPU/X11 observer. No device tuning.""" -import argparse,hashlib,importlib.util,json,os,pathlib,signal,subprocess,sys,time,traceback -A=pathlib.Path(__file__).resolve().parent;ROOT=A.parent;P=pathlib.Path(json.loads((A/'staging.json').read_text())['root']) -def read(p): - try:return json.loads(p.read_text()) - except FileNotFoundError:return {} -def main(): - ap=argparse.ArgumentParser();ap.add_argument('--name',required=True);ap.add_argument('--sequence');ap.add_argument('--cycles',type=int,default=1);ap.add_argument('--headless',action='store_true');ap.add_argument('--video-seconds',type=int,default=0);args=ap.parse_args();assert 0<=args.video_seconds<=240 - scope=read(A/'scope.json');cases=list((A/'runs').glob('*/campaign/campaign-result.json'));used=sum(len(read(p)['rows']) for p in cases);reserved=sum(read(p)['reserved_physics_calls'] for p in cases);assert used+2<=scope['limits']['kit_launches'];assert reserved+(27250 if args.sequence else args.cycles*4500+250)<=scope['limits']['physics_calls'] - O=A/'runs'/args.name;O.mkdir(parents=True);E=O/'observer';E.mkdir();cli=P/'scripts/go2_fl_skill.py';reg=O/'session/registration.json';out=O/'campaign' - env=os.environ.copy();env.update(PYTHONPATH='',PYTHONDONTWRITEBYTECODE='1',DISPLAY=':1',XAUTHORITY='/run/user/1000/gdm/Xauthority',XDG_RUNTIME_DIR='/run/user/1000') - commands=[['/usr/bin/python3.12',str(cli),'authorize','--registration',str(reg)],['/usr/bin/python3.12',str(cli),'run','--registration',str(reg),'--output',str(out),'--controller','analytic']] - commands[1]+=(['--sequence',args.sequence] if args.sequence else ['--command','x_bias-16mm','--cycles',str(args.cycles)]) - if not args.headless:commands[1].append('--gui') - helper=pathlib.Path('/home/cen/sf-runs/simskill-gui-v041-authority-01/desktop_trial.py');spec=importlib.util.spec_from_file_location('external_x11',helper);x=importlib.util.module_from_spec(spec);spec.loader.exec_module(x);x.P=P - r={'commands':commands,'began_wall':time.time(),'prior_kit_launches':used,'scope_limit':scope['limits'],'source_observer_sha256':hashlib.sha256(pathlib.Path(__file__).read_bytes()).hexdigest()};closed=False;child=None;gpu=None;video=None;w=None;view=None;probed=False;shot=False - try: - with (E/'authorize.log').open('w') as f:subprocess.run(commands[0],cwd=P,env=env,stdout=f,stderr=subprocess.STDOUT,check=True) - gpu=subprocess.Popen(['nvidia-smi','--id=0','--query-gpu=timestamp,utilization.gpu,utilization.memory,memory.used,power.draw,power.limit,clocks.current.sm,clocks.current.memory,pstate,temperature.gpu','--format=csv','-lms','500'],stdout=(E/'gpu.csv').open('w'),stderr=(E/'gpu.stderr.log').open('w')) - child=subprocess.Popen(commands[1],cwd=P,env=env,stdout=(E/'public-run.log').open('w'),stderr=subprocess.STDOUT) - deadline=time.monotonic()+1400 - while child.poll() is None and time.monotonic()=500 and args.video_seconds and video is None: - vcmd=[str(x.FF),'-hide_banner','-y','-f','x11grab','-framerate','30','-video_size',f"{w['width']//2*2}x{w['height']//2*2}",'-i',f"{env['DISPLAY']}+{w['x']},{w['y']}",'-an','-c:v','libx264','-preset','ultrafast','-crf','24','-pix_fmt','yuv420p','-t',str(args.video_seconds),str(E/'live-kit-window.mp4')] - video=subprocess.Popen(vcmd,stdout=(E/'screen-video.log').open('w'),stderr=subprocess.STDOUT);r['video_command']=vcmd;r['video_started_wall']=time.time();r['video_start_gui']=g;r['video_scope']='Owned live X11 window;30Hz capture sampling NOT a claim of render or display FPS; observer overhead included in active loop measurement' - if w is not None and g.get('last_tick',0)>2500 and not shot: - x.screenshot(w,E/'actual-moving-window.png');r['moving_capture']={'window':w,'gui':g,'wall':time.time()};shot=True - if w is not None and status.get('state')=='viewing_final' and not closed: - if view is None:view=time.monotonic();r['final_counts_before']=read(out/'run/physics-counts.json') - elif time.monotonic()-view>=2: - x.screenshot(w,E/'actual-final-window.png');r['final_counts_after']=read(out/'run/physics-counts.json');x.wm_close(w);closed=True;r['wm_delete_wall']=time.time() - time.sleep(.2) - if child.poll() is None: - if w is not None and not closed:x.wm_close(w);closed=True - raise TimeoutError('Observer wall deadline; no physical retry') - r['waited_exit']=child.wait();r['window_absent_after_wait']=True if args.headless else x.window() is None;r['campaign_success']=read(out/'campaign-result.json').get('success');r['worker_success']=read(out/'run/worker-result.json').get('success') - except BaseException: - r['observer_error']=traceback.format_exc() - if child is not None and child.poll() is None: - if w is not None and not closed:x.wm_close(w) - try:r['waited_exit']=child.wait(timeout=150) - except subprocess.TimeoutExpired:r['cleanup_wait_timeout']=True - finally: - if video is not None: - if video.poll() is None:video.send_signal(signal.SIGINT) - try:r['video_waited_exit']=video.wait(timeout=30) - except subprocess.TimeoutExpired:video.terminate();r['video_waited_exit']=video.wait(timeout=10) - if gpu is not None: - gpu.terminate();r['gpu_observer_exit']=gpu.wait(timeout=10) - r['ended_wall']=time.time();(E/'result.json').write_text(json.dumps(r,indent=2)+'\n') - print(json.dumps(r,indent=2)) -if __name__=='__main__':main() diff --git a/performance_v042/seal_delivery.py b/performance_v042/seal_delivery.py deleted file mode 100644 index b34744f..0000000 --- a/performance_v042/seal_delivery.py +++ /dev/null @@ -1,31 +0,0 @@ -#!/usr/bin/python3.12 -"""Seal and independently read back every archive payload; no native/GPU run.""" -import pathlib,json,hashlib,tarfile,xml.etree.ElementTree as ET -A=pathlib.Path(__file__).resolve().parent;P=pathlib.Path(json.loads((A/'assembly.json').read_text())['package']);archive=P.with_suffix('.tar.gz') -# with_suffix would truncate the dotted version; use the whole directory name. -archive=P.parent/(P.name+'.tar.gz');assert not archive.exists();assert not (P/'SHA256SUMS').exists() -sha=lambda p:hashlib.sha256(p.read_bytes()).hexdigest() -auth=json.loads((A/'runs/display-S1-05/campaign/approval.json').read_text())['sources'];assert len(auth)==41 and all(sha(P/n)==h for n,h in auth.items()) -xml=ET.parse(A/'delivery-cpu-final.xml');s=next(xml.iter('testsuite'));assert int(s.attrib['failures'])==0 and int(s.attrib['errors'])==0 and int(s.attrib['skipped'])==6 and int(s.attrib['tests'])==1563 -validation=json.loads((A/'delivery-validation-final.json').read_text());assert validation['execution_authorized'] is False and validation['new_physics_calls']==0 and validation['sources']==auth -assert validation['frozen']['snapshot_files_verified']==134 and validation['frozen']['candidate_sha256']=='c088bb3aecaca751867118858626fd508f7a3983303802d7524353f80802cf99' -files=sorted(p for p in P.rglob('*') if p.is_file());assert not any(p.is_symlink() for p in P.rglob('*')) -manifest={str(p.relative_to(P)):sha(p) for p in files} -(P/'SHA256SUMS').write_text(''.join(h+' '+n+'\n' for n,h in manifest.items())) -manifest['SHA256SUMS']=sha(P/'SHA256SUMS') -with tarfile.open(archive,'w:gz',compresslevel=6) as t:t.add(P,arcname=P.name) -readback={} -with tarfile.open(archive,'r:gz') as t: - for m in t: - path=pathlib.PurePosixPath(m.name) - assert not path.is_absolute() and '..' not in path.parts and path.parts[0]==P.name - assert m.isdir() or m.isfile(),m.name - if m.isfile(): - name=str(path.relative_to(P.name));assert name not in readback - h=hashlib.sha256();f=t.extractfile(m) - while chunk:=f.read(1024*1024):h.update(chunk) - readback[name]=h.hexdigest() -assert readback==manifest,'Archive payload differs from sealed package' -h=sha(archive);side=pathlib.Path(str(archive)+'.sha256');side.write_text(h+' '+archive.name+'\n') -r={'version':'0.4.2','accepted_skill':False,'package':str(P),'archive':str(archive),'archive_bytes':archive.stat().st_size,'archive_sha256':h,'checksum_file':str(side),'payload_files_including_manifest':len(manifest),'sha256sums_entries':len(manifest)-1,'authority_inputs_match_native_staging':41,'all_manifest_files_match':True,'every_archive_payload_readback_verified':True,'no_illegal_members':True,'native_run_at_delivery_path':False,'native_qualification_scope':'analyticS1GUI/headless27000ticks each; source-identical copied artifact, not fullmatrix/u256/nativefaultinjection','CPU_package':{'passed':1557,'skipped':6,'failed':0},'validation_receipt':str(A/'delivery-validation-final.json')} -(A/'package-verification.json').write_text(json.dumps(r,indent=2)+'\n');print(json.dumps(r,indent=2)) diff --git a/performance_v042/sensor-epoch-code-review.md b/performance_v042/sensor-epoch-code-review.md deleted file mode 100644 index 4abfb48..0000000 --- a/performance_v042/sensor-epoch-code-review.md +++ /dev/null @@ -1,21 +0,0 @@ -## Review - -Paths below use `T = source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle_sim/`. - -- **Correct — epoch freshness:** `T/sensor_epoch_v042.py:26–48` caches only successful getters, returns the same live object, and invalidates before and after every delegated update/reset—including zero-dt calls and exceptions. -- **Correct — installation/reset safety:** installation replaces scene dictionary entries without modifying original sensor methods (`sensor_epoch_v042.py:51–66`). Constructor-installed source reset guards remain effective (`T/evaluation_env.py:316–326`). Integration installs after construction and before the initial reset (`scripts/evaluate_cycle_functional_flow.py:223–248`). -- **Correct — fail-before-next-step:** each physics step is followed by scene update, latch/state updates, safety and synchronous evidence; failures return before rendering or another step (`T/evaluation_env.py:457–471`). The proxy introduces no deferred work. -- **Correct — SDK premise:** inspected installed `SensorBase._update_outdated_buffers` and PhysX `ContactSensor._update_buffers_impl`: repeated getters invoke native fetches even when downstream kernels skip false-mask entries. Those kernels preserve already-captured values when masked out. -- **Correct — implementation selection/provenance:** `sensor_epoch` selects the original recorder (`T/performance_v042.py:34–44`). Both new modules are preloaded, source-bound and included in authority inputs (`scripts/evaluate_cycle_functional_flow.py:58–60`, `scripts/skill_launch_v4.py:17–29`, `source/SkillFactory/SkillFactory/legs/contact_cycle_sim/skill_binding_v4.py:8–16,44–49`). -- **Fixed:** None; read-only review. - -No issues found. - -**Merge verdict: OK with notes** for the first bounded `sensor_epoch` qualification run—not final performance or native-equivalence acceptance. - -### Validation and residual risks - -- Inspected `tests/test_contact_cycle_performance_v042.py`; supplied `performance_v042/cpu-second.log` and XML report **44 passed**. No tests, commands, Kit/GPU operations or edits were performed during this review. -- Native trace/gate equivalence, constructor/reset behavior under Kit, and speedup remain unqualified until the optimized run. -- This is not a general transparent sensor replacement: attribute writes are not forwarded, and previously captured source references bypass the proxy. Current inspected consumers do not introduce conflicting sensor mutations. In particular, `LoadedState.sensor` retains the original mount sensor (`tasks/manager_based/loaded_leg/mdp.py:18,70–72`); epoch counters therefore describe wrapper traffic, not all sensor reads. -- Frozen-file hashes and stopped-process/protected-artifact claims were not independently recomputed. \ No newline at end of file diff --git a/performance_v042/sensor03-postexit.json b/performance_v042/sensor03-postexit.json deleted file mode 100644 index 336e3a9..0000000 --- a/performance_v042/sensor03-postexit.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "campaign_original_success": true, - "owned_identities_checked": 11, - "owned_alive": [], - "finite_bound_files_checked": 467, - "binding_file_mismatches": [], - "protected_file_mismatches": [], - "gpu_clients": { - "compute": [], - "graphics": [ - 2420, - 2618, - 3268, - 4486, - 574096, - 602685, - 696142 - ] - }, - "gpu_review": { - "uuid": "GPU-7d882fc3-f771-6d29-4e58-f0fa2a18a3a5", - "compute_pids": [], - "approved_desktop_graphics_pids": [ - 2420, - 2618, - 3268, - 4486, - 574096, - 602685, - 696142 - ], - "task_graphics_pids": [], - "clean": true, - "scope": "owned-compute-and-graphics.plus-pinned-desktop-graphics-only" - }, - "static_check_not_same_cfg_proof": true, - "boottime": 358046.608404712, - "passed": true -} diff --git a/performance_v042/sync_staging.py b/performance_v042/sync_staging.py deleted file mode 100644 index e064e4a..0000000 --- a/performance_v042/sync_staging.py +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/python3.12 -"""Sync only with all prior campaign observers terminal; preserve approved bytes.""" -import pathlib,json,hashlib,shutil -A=pathlib.Path(__file__).resolve().parent;D=A.parent;P=pathlib.Path(json.loads((A/'staging.json').read_text())['root']) -for root in (A/'runs').iterdir(): - assert (root/'campaign/campaign-result.json').exists() and (root/'observer/result.json').exists(),str(root) - approval=json.loads((root/'campaign/approval.json').read_text()) - snapshot=A/'approved-sources'/root.name - for n,h in approval['sources'].items(): - dest=snapshot/n - if dest.exists():assert hashlib.sha256(dest.read_bytes()).hexdigest()==h;continue - candidates=[P/n,A/'failed-baseline01-approved-source'/n,A/'baseline02-approved-source'/n] - source=next((p for p in candidates if p.exists() and hashlib.sha256(p.read_bytes()).hexdigest()==h),None) - assert source is not None,(root,n) - dest.parent.mkdir(parents=True,exist_ok=True);shutil.copy2(source,dest) - # Older sources already archived in named preserved paths may not match latest staging. -files=json.loads((A/'staging.json').read_text())['source_files'] -files+=['source/SkillFactory/SkillFactory/tasks/manager_based/contact_cycle_sim/'+name+'.py' for name in ('sensor_epoch_v042','packed_recording_v042','readonly_scope_v042','batched_kinematics_v042','live_cadence_v042')] -files+=['performance_v042/presentation_amendment.md'] -for n in dict.fromkeys(files): - (P/n).parent.mkdir(parents=True,exist_ok=True);shutil.copy2(D/n,P/n) -print('synced',len(set(files)),'bound source inputs') diff --git a/pyproject.toml b/pyproject.toml index a0797f7..4a5850b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -193,6 +193,9 @@ ignore-words-list = "haa,slq,collapsable,buss,reacher,thirdparty,segway" [tool.pytest.ini_options] +# Do not collect archived runs, staging copies or sealed delivery fixtures. +testpaths = ["tests"] + markers = [ "isaacsim_ci: mark test to run in isaacsim ci", ] diff --git a/scripts/test_cpu.py b/scripts/test_cpu.py new file mode 100644 index 0000000..823fec9 --- /dev/null +++ b/scripts/test_cpu.py @@ -0,0 +1,40 @@ +#!/usr/bin/env python3 +"""Run retained CPU regressions without top-level Kit registration or GPU access. + +This namespace mapping is test-only, never a runtime binding or physical gate. +Use the documented CPU interpreter; arguments are passed to pytest. +""" + +import importlib.util +import os +from pathlib import Path +import sys + + +def main(): + root = Path(__file__).resolve().parents[1] + os.chdir(root) + os.environ['CUDA_VISIBLE_DEVICES'] = '' + os.environ['PYTEST_DISABLE_PLUGIN_AUTOLOAD'] = '1' + os.environ['PYTHONDONTWRITEBYTECODE'] = '1' + sys.dont_write_bytecode = True + # Do not inherit opt-ins that turn otherwise skipped wrappers into Kit runs. + for name in ('SIM_RESIDUAL_RUNTIME_TESTS', 'SIM_RESIDUAL_LEARNING_API_TESTS', + 'SKILLFACTORY_FD_PROBE'): + os.environ.pop(name, None) + + package = root / 'source/SkillFactory/SkillFactory' + spec = importlib.util.spec_from_file_location( + 'SkillFactory', package / '__init__.py', + submodule_search_locations=[str(package)]) + sys.modules['SkillFactory'] = importlib.util.module_from_spec(spec) + sys.path.insert(0, str(root / 'scripts')) + + import pytest + + targets = sys.argv[1:] or [str(root / 'tests')] + return pytest.main(['-q', '-p', 'no:cacheprovider', *targets]) + + +if __name__ == '__main__': + raise SystemExit(main()) diff --git a/tests/test_anchor_contract.py b/tests/test_anchor_contract.py deleted file mode 100644 index 8591c03..0000000 --- a/tests/test_anchor_contract.py +++ /dev/null @@ -1,87 +0,0 @@ -"""Contract tests; opt into fresh Kit integration runs with ANCHOR_RUNTIME_TESTS=1.""" - -import importlib.util -import json -import os -import runpy -import subprocess -import sys -from pathlib import Path - -import pytest - -ROOT = Path(__file__).parents[1] - - -def test_metadata_schema(tmp_path): - spec = importlib.util.spec_from_file_location("extract_schema", ROOT / "scripts/assets/extract_go2_leg.py") - extractor = importlib.util.module_from_spec(spec) - spec.loader.exec_module(extractor) - manifest = extractor.extract(extractor.DEFAULT_SOURCE, tmp_path / "asset") - assert manifest["schema_version"] == 1 - assert manifest["interface"]["policy_shape"] == ["B", 19] - assert manifest["interface"]["action_shape"] == ["B", 3] - assert manifest["interface"]["quaternion_order"] == "xyzw" - assert manifest["control"]["physics_dt"] == 0.002 - assert manifest["control"]["decimation"] == 5 - assert [j["limits"]["effort"] for j in manifest["joints"]] == [23.7, 23.7, 45.43] - assert [j["limits"]["velocity"] for j in manifest["joints"]] == [30.1, 30.1, 15.7] - assert all(len(v["origin"]["xyz"]) == 3 for v in manifest["links"].values() if v is not None) - - -def test_task_registration_preserves_template(): - import gymnasium as gym - import SkillFactory.tasks # noqa: F401 - - ids = ["Template-Skillfactory-v0", "SkillFactory-SingleLegAnchor-Go2-v0"] - for task in ids: - spec = gym.spec(task) - assert spec.entry_point == "isaaclab.envs:ManagerBasedRLEnv" - assert spec.kwargs["env_cfg_entry_point"].startswith("SkillFactory.") - generic = gym.spec("SkillFactory-LegSkill-v0") - assert generic.entry_point == "SkillFactory.tasks.manager_based.leg_skill.leg_env:LegSkillEnv" - - -def test_packaging_discovers_task_subpackages(monkeypatch): - import setuptools - - captured = {} - monkeypatch.setattr(setuptools, "setup", lambda **kwargs: captured.update(kwargs)) - monkeypatch.chdir(ROOT / "source/SkillFactory") - runpy.run_path(str(ROOT / "source/SkillFactory/setup.py")) - prefix = "SkillFactory.tasks.manager_based.single_leg_anchor" - assert prefix in captured["packages"] - assert prefix + ".mdp" in captured["packages"] - assert "SkillFactory.assets" in captured["packages"] - assert "SkillFactory.legs" in captured["packages"] - assert "SkillFactory.tasks.manager_based.leg_skill" in captured["packages"] - assert captured["package_data"]["SkillFactory.legs"] == ["resources/*.usda"] - assert (ROOT / "source/SkillFactory/SkillFactory/legs/resources/ground.usda").is_file() - - -@pytest.mark.skipif(os.environ.get("ANCHOR_RUNTIME_TESTS") != "1", reason="Opt-in Kit/CUDA integration") -@pytest.mark.parametrize("num_envs", [1, 16, 64]) -def test_cuda_contract(num_envs, tmp_path): - env = dict(os.environ) - env["PYTHONPATH"] = str(ROOT / "source/SkillFactory") + os.pathsep + env.get("PYTHONPATH", "") - with (tmp_path / "runtime.log").open("w") as log: - result = subprocess.run( - [ - sys.executable, - str(ROOT / "scripts/verify_anchor.py"), - "--suite", - "contract", - "--num_envs", - str(num_envs), - "--output", - str(tmp_path / "report"), - "--headless", - ], - cwd=ROOT, - env=env, - stdout=log, - stderr=subprocess.STDOUT, - ) - assert result.returncode == 0, (tmp_path / "runtime.log").read_text()[-4000:] - report = json.loads((tmp_path / "report/result.json").read_text()) - assert report["passed"] and report["contract"]["policy_shape"] == [num_envs, 19] diff --git a/tests/test_contact_cycle_diagnostic.py b/tests/test_contact_cycle_diagnostic.py deleted file mode 100644 index 69f3f9f..0000000 --- a/tests/test_contact_cycle_diagnostic.py +++ /dev/null @@ -1,60 +0,0 @@ -"""Diagnostic scope validation; never starts Kit or robot optimization.""" - -import copy -import json -from pathlib import Path - -import pytest -from SkillFactory.legs.contact_cycle.training import load_training_config, make_manifest, require_authorization - -ROOT = Path(__file__).resolve().parents[1] -CONFIG = ROOT/'configs/contact_cycle/training_diagnostic_v1.json' - - -def test_diagnostic_scope_gates_and_algorithm_are_not_relaxed(): - pilot = load_training_config(CONFIG, ROOT) - full = load_training_config(ROOT/'configs/contact_cycle/training_v1.json', ROOT) - proposal = json.loads((ROOT/pilot['proposal']).read_text()) - original = json.loads((ROOT/full['proposal']).read_text()) - assert proposal['gates'] == original['gates'] - assert pilot['algorithm'] == full['algorithm'] - assert pilot['task_config'] == full['task_config'] - assert pilot['seeds'] == [91101] - assert pilot['max_total_transitions'] == 512*128*32 == 2097152 - assert pilot['max_total_wall_s'] == 1800 - assert pilot['max_artifact_bytes'] == 1024**3 - manifest = make_manifest(ROOT, CONFIG) - assert 'diagnostic candidate' in manifest['selection'] - assert manifest['accepted_skill'] is False - with pytest.raises(PermissionError): - require_authorization(None, manifest) - - -@pytest.mark.parametrize('key,value', [ - ('seeds', [91101, 91102, 91103]), ('seeds', [95101]), ('updates_per_seed', 1024), - ('num_envs', 256), ('horizon', 64), ('max_total_wall_s', 1801), - ('max_artifact_bytes', 1073741825), ('max_total_transitions', 2097153), - ('validation_interval', 128), ('validation_seed', 95101), -]) -def test_pilot_rejects_scope_expansion_even_with_matching_proposal(tmp_path, key, value): - cfg = copy.deepcopy(json.loads(CONFIG.read_text())) - proposal = json.loads((ROOT/cfg['proposal']).read_text()) - cfg[key] = value - if key in proposal['proposed_training']: - proposal['proposed_training'][key] = value - proposal_path = tmp_path/'proposal.json' - proposal_path.write_text(json.dumps(proposal)) - cfg['proposal'] = str(proposal_path) - path = tmp_path/'config.json' - path.write_text(json.dumps(cfg)) - with pytest.raises(ValueError): - load_training_config(path, ROOT) - - -def test_full_study_does_not_silently_become_a_pilot(tmp_path): - cfg = json.loads(CONFIG.read_text()) - cfg['format'] = 'skillfactory.contact-cycle-training.v1' - path = tmp_path/'bad_full.json' - path.write_text(json.dumps(cfg)) - with pytest.raises(ValueError): - load_training_config(path, ROOT) diff --git a/tests/test_contact_cycle_learning.py b/tests/test_contact_cycle_learning.py deleted file mode 100644 index 7982623..0000000 --- a/tests/test_contact_cycle_learning.py +++ /dev/null @@ -1,264 +0,0 @@ -"""CPU/synthetic learner tests only; none performs robot training or holdout evaluation.""" - -import copy -import json -from pathlib import Path - -import pytest -import torch -from SkillFactory.legs.contact_cycle.config import load_config -from SkillFactory.legs.contact_cycle.curriculum import EpisodeSampler, assert_sample_domain, curriculum_stage -from SkillFactory.legs.contact_cycle.ppo import ( - CycleActorCritic, - bootstrap_values, - collect_rollout, - features, - ppo_step, - restore_checkpoint, - save_checkpoint, - selection_score, -) -from SkillFactory.legs.contact_cycle.training import ( - BudgetExceeded, - BudgetLedger, - digest, - load_training_config, - require_authorization, - save_trace_subset, -) - -ROOT = Path(__file__).resolve().parents[1] -TASK = ROOT/"configs/contact_cycle/go2_fl_v1.json" -TRAINING = ROOT/"configs/contact_cycle/training_v1.json" - - -@pytest.mark.parametrize("update,stage", [(1, 0), (512, 0), (513, 1), (1024, 1), (1025, 2), (2048, 2)]) -def test_stage_boundaries(update, stage): - assert curriculum_stage(update) == stage - - -def test_sampler_no_holdout_and_reset_order_independence(): - cfg = load_config(TASK) - with pytest.raises(ValueError, match="Independent"): - EpisodeSampler(cfg, 4, 1, "holdout") - a, b = EpisodeSampler(cfg, 4, 17, update=1500), EpisodeSampler(cfg, 4, 17, update=1500) - first = a.sample(torch.tensor([0, 2])) - second = b.sample(torch.tensor([2, 0])) - for key in first: - torch.testing.assert_close(first[key], second[key].flip(0)) - a.sample(torch.tensor([1])) - resumed = EpisodeSampler(cfg, 4, 17) - resumed.load_state_dict(a.state_dict()) - x, y = a.sample(torch.tensor([0])), resumed.sample(torch.tensor([0])) - for key in x: - torch.testing.assert_close(x[key], y[key]) - assert b.episodes.tolist() == [1, 0, 1, 0] - assert a.sample(torch.tensor([], dtype=torch.long))["commands"].shape == (0, 4, 6) - with pytest.raises(ValueError): - a.sample(torch.tensor([0, 0])) - - -def test_curriculum_distribution_budgets_exclusions_and_regression(): - cfg = load_config(TASK) - for update in (1, 600, 1500): - sample = EpisodeSampler(cfg, 512, 91101, update=update).sample(torch.arange(512)) - assert_sample_domain(cfg, sample) - if update == 1: - assert not sample["commands"].any() - assert 0.15 < sample["stand"].float().mean() < 0.35 - if update == 600: - assert not sample["commands"][..., 3:].any() - if update == 1500: - assert set(sample["scenario"].tolist()) == {0, 1, 2, 3} - assert set(sample["stage"].tolist()) == {0, 1, 2} - assert sample["commands"][..., 3:].abs().max() > 0 - for fault in ("commands", "points", "delays"): - bad = copy.deepcopy(sample) - bad[fault][0] = 100 - with pytest.raises(ValueError): - assert_sample_domain(cfg, bad) - - -def test_validation_distribution_independent_of_training_update(): - cfg = load_config(TASK) - a = EpisodeSampler(cfg, 8, 93101, "validation", update=1).sample(torch.arange(8)) - b = EpisodeSampler(cfg, 8, 93101, "validation", update=1500).sample(torch.arange(8)) - for key in a: - torch.testing.assert_close(a[key], b[key]) - assert not a["stand"].any() - - -@pytest.mark.parametrize("bad", [torch.zeros(2, 45), torch.zeros(2, 32, dtype=torch.float64), - torch.full((2, 32), float("nan")), {"privileged": torch.zeros(2, 32)}]) -def test_feature_contract_rejects_other_interfaces(bad): - with pytest.raises(ValueError): - features(bad) - - -class ValueModel: - def value(self, x): - return x[:, 0].clone() - - -@pytest.mark.parametrize("dtype", [torch.int32, torch.int64]) -def test_timeout_bootstraps_terminal_not_reset_and_failure_zero(dtype): - x = torch.ones(3, 32) - terminal = torch.zeros(2, 32) - terminal[:, 0] = torch.tensor([30., 20.]) - terminated, truncated = torch.tensor([True, False, False]), torch.tensor([True, True, True]) - info = {"terminal_ids": torch.tensor([2, 1], dtype=dtype), "terminal_observation": {"policy": terminal}} - v = bootstrap_values(ValueModel(), x, terminated, truncated, info) - torch.testing.assert_close(v, torch.tensor([0., 20., 30.])) - with pytest.raises(RuntimeError): - bootstrap_values(ValueModel(), x, terminated, truncated, {}) - - -class FakeEnv: - num_envs, device, step_dt = 2, "cpu", 0.01 - - def step(self, action): - assert action.shape == (2, 3) and (action.abs() <= 1).all() - # Both episodes timeout; deliberately distinct reset/terminal states. - return ({"policy": torch.zeros(2, 32), "privileged": torch.full((2, 71), float("nan"))}, - torch.ones(2)*0.01, torch.zeros(2, dtype=torch.bool), torch.ones(2, dtype=torch.bool), - {"terminal_ids": torch.tensor([0, 1]), "terminal_observation": {"policy": torch.ones(2, 32)}}) - - -def test_synthetic_ppo_and_atomic_restore(tmp_path): - torch.set_num_threads(1) - torch.manual_seed(4) - model = CycleActorCritic(hidden=16) - cfg = {**json.loads(TRAINING.read_text())["algorithm"], "horizon": 4, "minibatch_size": 4} - optimizer = torch.optim.Adam(model.parameters(), lr=cfg["learning_rate"]) - data, x, failures, timeouts = collect_rollout(FakeEnv(), model, torch.zeros(2, 32), cfg) - assert x.shape == (2, 32) and failures == 0 and timeouts == 8 - assert data["done"].all() and torch.isfinite(data["features"]).all() - result = ppo_step(model, optimizer, data, cfg) - assert result["sampling_log_prob_error"] <= 2e-4 - sampler = EpisodeSampler(load_config(TASK), 2, 11) - sampler.sample(torch.arange(2)) - path = tmp_path/"model.pt" - save_checkpoint(path, model, optimizer, {"test": "synthetic"}, 1, sampler, None, {}) - expected = model.act(x, deterministic=True)[0].detach().clone() - with torch.no_grad(): - model.actor[-1].bias.add_(1) - restore_checkpoint(path, model, optimizer, {"test": "synthetic"}, sampler) - torch.testing.assert_close(model.act(x, deterministic=True)[0], expected) - with pytest.raises(ValueError, match="mismatch"): - restore_checkpoint(path, model, optimizer, {"test": "different"}, sampler) - with pytest.raises(RuntimeError, match="budget"): - save_checkpoint(tmp_path/"too_big.pt", model, optimizer, {}, 1, sampler, None, {}, max_bytes=1) - assert not (tmp_path/"too_big.pt").exists() - - -def test_selection_failure_cannot_profit_from_missing_metrics(): - good = {"success": True, "swing_rms_m": 0.025, "stance_load_mae_weight_fraction": 0.25, "stance_slip_m": 0.03} - assert selection_score([good]) == 3 - assert selection_score([{"success": False}]) == 16 - assert selection_score([good, {"success": False}]) == 9.5 - with pytest.raises(ValueError): - selection_score([]) - with pytest.raises(ValueError): - selection_score([{**good, "swing_rms_m": float("nan")}]) - - -def test_configuration_and_explicit_authorization(tmp_path): - cfg = load_training_config(TRAINING, ROOT) - manifest = {"training": cfg} - with pytest.raises(PermissionError): - require_authorization(None, manifest) - grant = {"format": "skillfactory.contact-cycle-authorization.v1", "approved": True, - "manifest_sha256": digest(manifest), "operator": "synthetic_test_only", - "authorization_reference": "unit-test fixture, not robot training approval"} - path = tmp_path/"grant.json" - path.write_text(json.dumps(grant)) - require_authorization(path, manifest) - with pytest.raises(PermissionError): - require_authorization(path, {"training": {}}) - bad = copy.deepcopy(cfg) - bad["horizon"] = True - path.write_text(json.dumps(bad)) - with pytest.raises(ValueError): - load_training_config(path, ROOT) - - -def small_manifest(): - return {"training": {"seeds": [1, 2, 3], "num_envs": 2, "horizon": 4, "updates_per_seed": 2, - "max_total_transitions": 16, "max_total_wall_s": 100, "max_artifact_bytes": 100000}} - - -def test_global_budget_crash_charge_resume_and_lock(tmp_path): - now = [100.] - manifest = small_manifest() - with BudgetLedger(tmp_path, manifest, lambda: now[0], boot_now=lambda: now[0], boot_id="test-boot") as ledger: - ledger.reserve_rollout(1, 1) - with pytest.raises(ValueError): - ledger.reserve_rollout(1, 1) - with pytest.raises(BlockingIOError), BudgetLedger( - tmp_path, manifest, lambda: now[0], boot_now=lambda: now[0], boot_id="test-boot"): - pass - with BudgetLedger(tmp_path, manifest, lambda: now[0], boot_now=lambda: now[0], boot_id="test-boot") as resumed: - resumed.reconcile_checkpoint(1, 0) # interrupted rollout lost, no refund - resumed.reserve_rollout(1, 1) - resumed.commit_update(1, 1) - assert resumed.data["reserved_transitions"] == 16 - with pytest.raises(BudgetExceeded, match="transition"): - resumed.reserve_rollout(2, 1) - now[0] = 201 - with pytest.raises(BudgetExceeded, match="wall"): - resumed.guard() - - -def test_validation_rejects_missing_or_partial_disturbance_delivery(): - from SkillFactory.legs.contact_cycle.mechanics import delivered_events - - events = load_config(TASK)["events"] - scenario = torch.tensor([0, 1]) - mask = scenario[:, None] == torch.tensor([e["scenario"] for e in events]) - zero = torch.zeros_like(mask, dtype=torch.float32) - assert delivered_events(events, scenario, mask, mask, zero).tolist() == [True, False] - areas = torch.tensor([e["duration_s"] - e["ramp_s"] for e in events]) - assert delivered_events(events, scenario, mask, mask, mask*areas).all() - assert delivered_events(events, scenario, mask, torch.zeros_like(mask), mask*areas).tolist() == [True, False] - - -def test_engine_int32_reset_ids_and_invalid_float(): - from SkillFactory.legs.contact_cycle.mechanics import canonical_ids - - ids = canonical_ids(torch.tensor([0, 2], dtype=torch.int32), 4) - assert ids.dtype == torch.int64 and ids.tolist() == [0, 2] - sampler = EpisodeSampler(load_config(TASK), 4, 1) - sampler.sample(torch.tensor([0, 2], dtype=torch.int32)) - assert sampler.episodes.tolist() == [1, 0, 1, 0] - with pytest.raises(ValueError): - canonical_ids(torch.tensor([0., 2.]), 4) - - -def test_trace_storage_is_bounded_and_budget_failure_leaves_no_file(tmp_path): - trace = {"foot": torch.arange(100*128*3, dtype=torch.float32).reshape(100, 128, 3)} - sizes = [] - path = tmp_path/"subset.pt" - size = save_trace_subset(path, trace, [1], [2]*128, sizes.append) - assert size == path.stat().st_size == sizes[0] and size < 8192 - saved = torch.load(path, weights_only=True)["1"]["foot"] - assert saved.untyped_storage().nbytes() == saved.numel()*saved.element_size() == 24 - torch.testing.assert_close(saved, trace["foot"][:2, 1:2]) - - def refuse(size): - raise BudgetExceeded(f"synthetic capacity less than {size}") - - with pytest.raises(BudgetExceeded): - save_trace_subset(tmp_path/"insufficient.pt", trace, [1], [2]*128, refuse) - assert not (tmp_path/"insufficient.pt").exists() - assert list(tmp_path.iterdir()) == [path] - - -def test_checkpoint_commit_crash_window_and_disk_guard(tmp_path): - with BudgetLedger(tmp_path, small_manifest(), lambda: 100.) as ledger: - ledger.reserve_rollout(1, 1) - ledger.reconcile_checkpoint(1, 1) # optimizer/checkpoint completed before commit - assert ledger.data["updates"]["1"] == 1 and ledger.data["pending"] is None - with pytest.raises(ValueError): - ledger.commit_update(1, 2) - with pytest.raises(BudgetExceeded, match="artifact"): - ledger.guard(reserve_bytes=100001) diff --git a/tests/test_contact_cycle_metrics.py b/tests/test_contact_cycle_metrics.py deleted file mode 100644 index 399ff29..0000000 --- a/tests/test_contact_cycle_metrics.py +++ /dev/null @@ -1,69 +0,0 @@ -"""Synthetic negative coverage for report logic; not physical validation.""" - -import json -from pathlib import Path - -import pytest -import torch -from SkillFactory.legs.contact_cycle.metrics import summarize - - -@pytest.fixture -def fixture_trace(): - # Deliberately idealized input to test gate branches, not a dynamic simulator. - count = 600 - phase = torch.arange(6).repeat_interleave(100)[:, None] - progress = torch.linspace(0, 1, 100).repeat(6)[:, None] - time = (torch.arange(count)*0.02)[:, None] - force = torch.zeros(count, 1, 3) - force[:, :, 2] = torch.where((phase == 0) | (phase >= 4), 50., 0.) - trace = { - "phase": phase, "progress": progress, "time": time, "scenario": torch.zeros(count, 1), - "weight": torch.full((count, 1), 50.), "normal": force, - "friction": torch.zeros_like(force), "foot": torch.zeros_like(force), "target": torch.zeros_like(force), - "gap": torch.full((count, 1), 0.05), "desired_force": force[..., 2], - "joint_excess": torch.zeros(count, 1), "limit_ratio": torch.zeros(count, 1), - "slip_speed": torch.zeros(count, 1), "height_error": torch.zeros(count, 1), - "external": torch.zeros(count, 1, 1, 6), "guide": torch.zeros(count, 1, 1, 6), - "auxiliary": torch.zeros(count, 1, 1, 6), "would_fail": torch.zeros(count, 1).bool(), - "tilt": torch.zeros(count, 1), - } - path = Path(__file__).resolve().parents[1]/"configs/contact_cycle/acceptance_v1.json" - thresholds = json.loads(path.read_text())["gates"] - return trace, thresholds - - -def report(fixture): - trace, thresholds = fixture - return summarize(trace, 0.02, thresholds, ["baseline"])[0] - - -def test_complete_fixture_passes_logic_only(fixture_trace): - assert report(fixture_trace)["success"] - - -@pytest.mark.parametrize("fault,reason", [ - ("tilt", "tilt"), ("lift", "lift_deadline"), ("terminate", "task_termination"), - ("hover", "stance_contact"), ("drag", "slip"), ("nan", "missing_phase_or_nonfinite"), - ("missing", "missing_phase_or_nonfinite"), ("impact", "impact"), -]) -def test_negative_metrics_cannot_pass(fixture_trace, fault, reason): - t, _ = fixture_trace - if fault == "tilt": - t["tilt"][300] = 0.7 - elif fault == "lift": - t["gap"][290:300] = 0 - elif fault == "terminate": - t["would_fail"][100] = True - elif fault == "hover": - t["normal"][500:] = 0 - elif fault == "drag": - t["slip_speed"][500:] = 0.1 - elif fault == "nan": - t["normal"][400] = float("nan") - elif fault == "missing": - t["phase"][300:400] = 4 - elif fault == "impact": - t["normal"][405, 0, 2] = 200 - row = report(fixture_trace) - assert not row["success"] and reason in row["failure_reasons"] diff --git a/tests/test_contact_cycle_physics.py b/tests/test_contact_cycle_physics.py deleted file mode 100644 index 46c2a8f..0000000 --- a/tests/test_contact_cycle_physics.py +++ /dev/null @@ -1,34 +0,0 @@ -"""Opt-in true PhysX integration; skips are NOT evidence of physical success.""" - -import json -import os -import subprocess -import sys -from pathlib import Path - -import pytest - -ROOT = Path(__file__).resolve().parents[1] -pytestmark = pytest.mark.skipif(os.environ.get("CYCLE_RUNTIME_TESTS") != "1", reason="requires supervised Isaac PhysX") - - -@pytest.mark.parametrize("script", [ - "verify_wrench_physics.py", "verify_contact_cycle.py", "verify_cycle_learning_runtime.py", -]) -def test_real_physics_contract(script, tmp_path): - env = os.environ.copy() - env.pop("CONDA_PREFIX", None) - env.pop("VIRTUAL_ENV", None) - env["PYTHONPATH"] = str(ROOT/"source/SkillFactory") - lab = env.get("ISAACLAB_LAUNCHER", "/home/cen/IsaacLab/isaaclab.sh") - process = subprocess.run([ - sys.executable, str(ROOT/"scripts/supervise_sim.py"), - "--log", str(tmp_path/"kit.log"), "--report", str(tmp_path/"process.json"), "--timeout", "240", "--", - lab, "-p", str(ROOT/"scripts"/script), "--output", str(tmp_path/"trial"), "--headless", - ], cwd=ROOT, env=env, capture_output=True, text=True, timeout=270) - assert process.returncode == 0, process.stdout[-3000:] + process.stderr[-3000:] - result = json.loads((tmp_path/"trial/result.json").read_text()) - supervision = json.loads((tmp_path/"process.json").read_text()) - assert result["passed"] and not result["accepted_skill"] - assert supervision["passed"] and supervision["cleanup"]["clean"] - assert not supervision["critical_log_lines"] diff --git a/tests/test_go2_leg_extraction.py b/tests/test_go2_leg_extraction.py deleted file mode 100644 index 7dbe81a..0000000 --- a/tests/test_go2_leg_extraction.py +++ /dev/null @@ -1,71 +0,0 @@ -"""Pure XML tests: no Kit, Isaac Lab, network or GPU required.""" - -import importlib.util -import shutil -import xml.etree.ElementTree as ET -from pathlib import Path - -import pytest - -SPEC = importlib.util.spec_from_file_location( - "extract_leg", Path(__file__).parents[1] / "scripts/assets/extract_go2_leg.py" -) -extractor = importlib.util.module_from_spec(SPEC) -SPEC.loader.exec_module(extractor) - - -def test_repeatable_and_real_subtree(tmp_path): - a, b = tmp_path / "a", tmp_path / "b" - manifest = extractor.extract(extractor.DEFAULT_SOURCE, a) - extractor.extract(extractor.DEFAULT_SOURCE, b) - assert (a / "go2_fl.urdf").read_bytes() == (b / "go2_fl.urdf").read_bytes() - assert (a / "manifest.json").read_bytes() == (b / "manifest.json").read_bytes() - robot = ET.parse(a / "go2_fl.urdf").getroot() - assert manifest["joint_order"] == list(extractor.JOINTS) - assert len([j for j in robot.findall("joint") if j.get("type") == "revolute"]) == 3 - assert {link.get("name") for link in robot.findall("link")} == { - "anchor_base", - "FL_hip", - "FL_thigh", - "FL_calf", - "FL_foot", - "FL_hip_rotor", - "FL_thigh_rotor", - "FL_calf_rotor", - "FL_calflower", - "FL_calflower1", - } - assert robot.find("joint[@name='FL_foot_joint']").get("dont_collapse") == "true" - assert robot.find("joint[@name='FL_hip_joint']/origin").get("xyz") == "0 0 0" - assert robot.find("link[@name='anchor_base']/collision") is None - for mesh in robot.findall(".//mesh"): - assert (a / mesh.get("filename")).is_file() - assert manifest["skill"]["valid"] is False - assert (a / "LICENSE").is_file() - assert manifest["missing_inertial_fixed_links"] == ["FL_calflower", "FL_calflower1"] - center = extractor.foot_center(robot) - assert abs(center[2] + manifest["anchor"]["default_height"] - 0.022 - 0.01) < 1e-12 - original = ET.parse(extractor.DEFAULT_SOURCE / "urdf/go2_description.urdf").getroot() - old = extractor.foot_center(original) - assert all( - abs(new + shift - old_value) < 1e-10 - for new, shift, old_value in zip(center, manifest["anchor"]["original_mount_translation"], old) - ) - - -def test_missing_reference_fails(tmp_path): - source = tmp_path / "unitree/robots/go2_description" - shutil.copytree(extractor.DEFAULT_SOURCE, source) - (source / "dae/hip.dae").unlink() - with pytest.raises(FileNotFoundError): - extractor.extract(source, tmp_path / "out") - - -def test_invalid_inertia_fails(tmp_path): - source = tmp_path / "unitree/robots/go2_description" - shutil.copytree(extractor.DEFAULT_SOURCE, source) - tree = ET.parse(source / "urdf/go2_description.urdf") - tree.find("link[@name='FL_thigh']/inertial/inertia").set("ixy", "100") - tree.write(source / "urdf/go2_description.urdf") - with pytest.raises(ValueError, match="Invalid inertia"): - extractor.extract(source, tmp_path / "out") diff --git a/tests/test_leg_assets.py b/tests/test_leg_assets.py deleted file mode 100644 index a95bb2b..0000000 --- a/tests/test_leg_assets.py +++ /dev/null @@ -1,214 +0,0 @@ -"""Declarative extraction tests, including non-Go2 names and arbitrary axes.""" - -import dataclasses -import json -import math -import xml.etree.ElementTree as ET -from pathlib import Path - -import pytest -from SkillFactory.legs import JointSpec, LegSpec -from SkillFactory.legs.spec import load_bundle -from SkillFactory.legs.urdf import extract_leg, forward, multiply, pose - -ROOT = Path(__file__).parents[1] - - -def fixture_spec(tmp_path, n=2, box=False): - robot = ET.Element("robot", name="fixture") - for name in ["mount", *(f"segment{i}" for i in range(n)), "toe"]: - link = ET.SubElement(robot, "link", name=name) - link.append( - ET.fromstring('') - ) - if name == "toe": - link.append( - ET.fromstring( - '' - + ('' if box else '') - + "" - ) - ) - for index in range(n): - joint = ET.SubElement(robot, "joint", name=f"pivot{index}", type="revolute") - ET.SubElement(joint, "parent", link="mount" if index == 0 else f"segment{index - 1}") - ET.SubElement(joint, "child", link=f"segment{index}") - ET.SubElement( - joint, - "origin", - xyz="0.2 0.1 -0.3" if index == 0 else "0.1 0 -0.15", - rpy="0.1 0.2 0.3" if index == 0 else "0 0 0", - ) - ET.SubElement(joint, "axis", xyz="0.2 0.7 -0.3") - ET.SubElement(joint, "limit", lower="-1", upper="1", effort="10", velocity="5") - joint = ET.SubElement(robot, "joint", name="toe_mount", type="fixed") - ET.SubElement(joint, "parent", link=f"segment{n - 1}") - ET.SubElement(joint, "child", link="toe") - ET.SubElement(joint, "origin", xyz="0 0 -0.1", rpy="0 0 0") - ET.ElementTree(robot).write(tmp_path / "robot.urdf") - (tmp_path / "LICENSE").write_text("Fixture license\n") - return LegSpec( - 1, - "fixture", - tmp_path, - "robot.urdf", - "fixture", - "LICENSE", - "test", - "pivot0", - (), - tuple(JointSpec(f"pivot{i}", 0.0, 0.1, 20.0, 0.5) for i in range(n)), - "toe", - ) - - -@pytest.mark.parametrize("preset", ["go2_fl", "go1_fl"]) -def test_real_legs_deterministic_and_complete(tmp_path, preset): - spec = LegSpec.load(ROOT / f"configs/legs/{preset}.json") - first = extract_leg(spec, tmp_path / "one") - second = extract_leg(spec, tmp_path / "two") - assert first == second - assert (tmp_path / "one/leg.urdf").read_bytes() == (tmp_path / "two/leg.urdf").read_bytes() - assert first["joint_order"] == [item.name for item in spec.joints] - assert spec.foot_body in first["links"] and "FL_hip_rotor" in first["links"] - assert all(name.startswith("FL_") for name in first["links"]) - assert first["skill"]["trained"] is False - assert load_bundle(tmp_path / "one")["source"]["sha256"] == first["source"]["sha256"] - - -@pytest.mark.parametrize("n", [1, 2, 4]) -def test_arbitrary_names_axes_and_mount_frame(tmp_path, n): - spec = fixture_spec(tmp_path, n) - bundle = extract_leg(spec, tmp_path / "out") - q = {joint.name: 0.3 for joint in spec.joints} - links, _ = forward(bundle["tree"], q) - expected = pose([0.2, 0.1, -0.3], [0.1, 0.2, 0.3]) - original = ET.parse(tmp_path / "robot.urdf").getroot() - from SkillFactory.legs.urdf import origin, rotation, vector - - for joint in original.findall("joint"): - expected = multiply(expected, pose(**origin(joint))) if joint.get("name") != "pivot0" else expected - if joint.get("type") == "revolute": - axis = vector(joint.find("axis").get("xyz")) - norm = math.sqrt(sum(v * v for v in axis)) - expected = multiply(expected, rotation([v / norm for v in axis], 0.3)) - actual = multiply(pose([0.2, 0.1, -0.3], [0.1, 0.2, 0.3]), links["toe"]) - assert max(abs(a - b) for row_a, row_b in zip(actual, expected) for a, b in zip(row_a, row_b)) < 1e-10 - assert len(bundle["joints"]) == n - - -def test_box_foot_and_declared_actuator_order(tmp_path): - spec = fixture_spec(tmp_path, 2, box=True) - spec = dataclasses.replace(spec, joints=tuple(reversed(spec.joints))) - bundle = extract_leg(spec, tmp_path / "out") - assert bundle["foot"]["type"] == "box" - assert bundle["joint_order"] == ["pivot1", "pivot0"] - assert bundle["tree"][0]["name"] == "pivot0" - - -def test_invalid_uncontrolled_and_stale_inputs(tmp_path): - spec = fixture_spec(tmp_path) - with pytest.raises(ValueError, match="moving joints"): - extract_leg(dataclasses.replace(spec, joints=spec.joints[:1]), tmp_path / "bad") - with pytest.raises(ValueError): - JointSpec("a", 0.0, 0.0, 20.0, 0.5) - with pytest.raises(ValueError): - dataclasses.replace(spec, decimation=0) - extract_leg(spec, tmp_path / "out") - with (tmp_path / "out/leg.urdf").open("a") as stream: - stream.write("") - with pytest.raises(ValueError, match="hash mismatch"): - load_bundle(tmp_path / "out") - - -def test_missing_license_and_unsafe_resource(tmp_path): - spec = fixture_spec(tmp_path) - with pytest.raises(FileNotFoundError): - extract_leg(dataclasses.replace(spec, license_file="missing"), tmp_path / "bad") - robot = ET.parse(tmp_path / "robot.urdf") - visual = ET.SubElement(robot.getroot().find("link[@name='toe']"), "visual") - ET.SubElement(ET.SubElement(visual, "geometry"), "mesh", filename="../../outside.stl") - robot.write(tmp_path / "robot.urdf") - with pytest.raises(ValueError, match="escapes"): - extract_leg(spec, tmp_path / "bad") - - -def test_output_cannot_overwrite_sources_or_escape_through_symlink(tmp_path): - spec = fixture_spec(tmp_path) - before = (tmp_path / "robot.urdf").read_bytes() - with pytest.raises(ValueError, match="source root"): - extract_leg(spec, tmp_path) - assert (tmp_path / "robot.urdf").read_bytes() == before - output = tmp_path / "out" - output.mkdir() - (output / "leg.urdf").symlink_to(tmp_path / "robot.urdf") - with pytest.raises(ValueError, match="symlink"): - extract_leg(spec, output) - assert (tmp_path / "robot.urdf").read_bytes() == before - - -def test_nested_output_does_not_overwrite_an_existing_source_leg(tmp_path): - source = tmp_path / "nested" - source.mkdir() - spec = fixture_spec(source) - (source / "robot.urdf").rename(source / "leg.urdf") - spec = dataclasses.replace(spec, source_root=tmp_path, urdf="nested/leg.urdf", license_file="nested/LICENSE") - before = (source / "leg.urdf").read_bytes() - with pytest.raises(ValueError, match="overwrite source file"): - extract_leg(spec, source) - assert (source / "leg.urdf").read_bytes() == before - - -@pytest.mark.parametrize("change", ["missing_parent", "missing_limit", "missing_geometry"]) -def test_malformed_urdf_fails_with_actionable_error(tmp_path, change): - spec = fixture_spec(tmp_path) - tree = ET.parse(tmp_path / "robot.urdf") - root = tree.getroot() - if change == "missing_geometry": - item = root.find("link[@name='toe']/collision") - item.remove(item.find("geometry")) - else: - item = root.find("joint[@name='pivot0']") - item.remove(item.find("parent" if change == "missing_parent" else "limit")) - tree.write(tmp_path / "robot.urdf") - with pytest.raises(ValueError, match="Missing"): - extract_leg(spec, tmp_path / "out") - - -@pytest.mark.parametrize("invalid", ["scale", "mapping", "layer", "support"]) -def test_stale_or_invalid_conversion_rejected_before_kit(tmp_path, invalid): - from SkillFactory.legs.urdf import digest - - bundle = extract_leg(fixture_spec(tmp_path), tmp_path / "out") - directory = tmp_path / "out" - (directory / "leg.usda").write_text("#usda 1.0\\n") - conversion = { - "usd_path": "leg.usda", - "manifest_sha256": digest(directory / "manifest.json"), - "used_layers": ["leg.usda"], - "fixed_to_world": True, - "body_paths": {name: "/Geometry/" + name for name in (*bundle["links"], bundle["anchor_body"])}, - "joint_paths": {name: "/Joints/" + name for name in bundle["joint_order"]}, - } - if invalid == "scale": - bundle["length_scale_m"] = 0 - (directory / "manifest.json").write_text(json.dumps(bundle)) - conversion["manifest_sha256"] = digest(directory / "manifest.json") - elif invalid == "mapping": - conversion["body_paths"]["toe"] = "/Geometry/" + bundle["anchor_body"] - elif invalid == "layer": - conversion["used_layers"] = [] - else: - conversion["fixed_to_world"] = False - (directory / "conversion.json").write_text(json.dumps(conversion)) - with pytest.raises(ValueError): - load_bundle(directory, require_usd=True) - - -def test_unknown_spec_fields_rejected(tmp_path): - data = LegSpec.load(ROOT / "configs/legs/go2_fl.json").to_dict() - data["typo"] = True - path = tmp_path / "spec.json" - path.write_text(json.dumps(data)) - with pytest.raises(TypeError): - LegSpec.load(path) diff --git a/tests/test_leg_policy.py b/tests/test_leg_policy.py deleted file mode 100644 index 0eea9e9..0000000 --- a/tests/test_leg_policy.py +++ /dev/null @@ -1,183 +0,0 @@ -"""Masking, variable DoF, equivalent token permutations, FK, and PPO semantics.""" - -import copy - -import pytest -import torch -from SkillFactory.legs.policy import LegActorCritic, compute_gae, load_policy, ppo_update, save_policy -from SkillFactory.legs.tokens import FEATURE_SCHEMA, LegKinematics, pad_joint_observations, static_tokens -from SkillFactory.legs.urdf import extract_leg, forward -from test_leg_assets import fixture_spec - - -def batch(b=3, j=6, e=1): - result = { - name: torch.randn(b, j if name.startswith("joint") else e, len(FEATURE_SCHEMA[name])) - for name in ("joint_description", "joint_observation", "effector_description", "effector_observation") - } - result.update( - joint_mask=torch.tensor([[True, True, False, False, False, False]]).expand(b, -1).clone(), - effector_mask=torch.ones(b, e, dtype=torch.bool), - context=torch.randn(b, len(FEATURE_SCHEMA["context"])), - goal=torch.randn(b, 3), - ) - return result - - -def test_padding_and_missing_feet_do_not_affect_active_policy(): - torch.manual_seed(3) - model = LegActorCritic() - original = batch() - action, logp, value = model.act(original, deterministic=True) - changed = copy.deepcopy(original) - changed["joint_description"][:, 2:] = torch.nan - changed["joint_observation"][:, 2:] = torch.nan - other, other_log, other_value = model.act(changed, deterministic=True) - assert torch.equal(action, other) and torch.equal(logp, other_log) and torch.equal(value, other_value) - assert (action[:, 2:] == 0).all() - original["effector_mask"][:] = False - original["effector_description"][:] = torch.nan - original["effector_observation"][:] = torch.nan - assert all(torch.isfinite(t).all() for t in model.act(original)) - - -def test_permutation_equivariance_and_no_inactive_gradients(): - torch.manual_seed(42) - model = LegActorCritic() - original = batch() - original["joint_description"].requires_grad_() - original["joint_observation"].requires_grad_() - permutation = torch.tensor([3, 1, 5, 0, 4, 2]) - shuffled = {k: v[:, permutation] if k.startswith("joint") else v for k, v in original.items()} - a, _, v = model.act(original, deterministic=True) - b, _, w = model.act(shuffled, deterministic=True) - torch.testing.assert_close(b, a[:, permutation], atol=1e-6, rtol=1e-6) - torch.testing.assert_close(v, w, atol=1e-6, rtol=1e-6) - (a.sum() + v.sum()).backward() - assert original["joint_description"].grad[:, 2:].abs().max() == 0 - assert original["joint_observation"].grad[:, 2:].abs().max() == 0 - assert original["joint_observation"].grad[:, :2].abs().sum() > 0 - distribution, _ = model.distribution_value(original) - _, entropy, _ = model.evaluate(original, a) - torch.testing.assert_close(entropy, distribution.entropy()[:, :2].sum(dim=-1)) - - -@pytest.mark.parametrize("n", [1, 2, 4]) -def test_actual_fk_and_shared_network_across_declared_dof(tmp_path, n): - spec = fixture_spec(tmp_path, n) - bundle = extract_leg(spec, tmp_path / "asset") - static = static_tokens(bundle, 6) - q = torch.linspace(-0.2, 0.3, n, dtype=torch.float32)[None, :].expand(3, -1) - fk = LegKinematics(bundle) - actual = fk.foot_position(q)[0] - expected, _ = forward(bundle["tree"], dict(zip(bundle["joint_order"], q[0].tolist()))) - torch.testing.assert_close(actual, torch.tensor([expected["toe"][i][3] for i in range(3)]), atol=1e-6, rtol=1e-6) - tokens = {k: v.expand(3, *v.shape[1:]) for k, v in static.items()} - tokens.update( - joint_observation=pad_joint_observations(q, q * 0, q * 0, bundle, 6), - effector_observation=torch.zeros(3, 1, 11), - context=torch.zeros(3, len(FEATURE_SCHEMA["context"])), - goal=torch.zeros(3, 3), - ) - model = LegActorCritic() - action, _, _ = model.act(tokens) - assert action.shape == (3, 6) and (action[:, n:] == 0).all() - assert static["joint_mask"].sum() == n - with pytest.raises(ValueError): - static_tokens(bundle, n - 1) - - -def test_inertia_and_com_are_in_anchor_nominal_frame(tmp_path): - import xml.etree.ElementTree as ET - - spec = fixture_spec(tmp_path, 1) - tree = ET.parse(tmp_path / "robot.urdf") - item = tree.getroot().find("link[@name='segment0']/inertial") - ET.SubElement(item, "origin", xyz="0.01 0 0", rpy="0 0 1.5707963267948966") - item.find("inertia").set("iyy", "0.002") - item.find("inertia").set("izz", "0.003") - tree.write(tmp_path / "robot.urdf") - bundle = extract_leg(spec, tmp_path / "asset") - description = static_tokens(bundle, 3)["joint_description"][0, 0] - scale = bundle["known_mass_scale_kg"] * bundle["length_scale_m"] ** 2 - torch.testing.assert_close( - description[[15, 18, 20]] * scale, torch.tensor([0.002, 0.001, 0.003]), atol=1e-7, rtol=1e-6 - ) - torch.testing.assert_close( - description[21:24] * bundle["length_scale_m"], torch.tensor([0.01, 0.0, 0.0]), atol=1e-7, rtol=1e-6 - ) - - -def test_checkpoint_reload_is_exact(tmp_path): - model = LegActorCritic().eval() - observation = batch() - save_policy(model, tmp_path / "policy.pt", {"test": True}) - loaded = load_policy(tmp_path / "policy.pt").eval() - assert all(torch.equal(a, b) for a, b in zip(model.act(observation, True), loaded.act(observation, True))) - - -def test_gae_bootstraps_timeout_not_reset_state(): - rewards = torch.tensor([[1.0, 1.0], [1.0, 1.0]]) - values = torch.zeros_like(rewards) - # terminal first env bootstrap=0, timeout second env terminal critic=10 - next_values = torch.tensor([[0.0, 0.0], [0.0, 10.0]]) - done = torch.tensor([[False, False], [True, True]]) - advantage, returns = compute_gae(rewards, values, next_values, done, gamma=0.9, lam=1.0) - torch.testing.assert_close(returns, torch.tensor([[1.9, 10.0], [1.0, 10.0]])) - assert torch.equal(returns, advantage) - - -def test_ppo_mixed_masks_updates_actor_without_rollout_gradients(): - torch.manual_seed(1) - model = LegActorCritic(hidden=16, latent=8) - observation = batch(b=4) - observation["joint_mask"][2:, 2] = True - action, logp, value = model.act(observation) - data = { - "observation": {key: item[None].repeat(3, *([1] * item.ndim)) for key, item in observation.items()}, - "actions": action[None].expand(3, -1, -1), - "log_prob": logp[None].expand(3, -1), - "values": value[None].expand(3, -1), - "rewards": torch.randn(3, 4), - "next_values": value[None].expand(3, -1), - "done": torch.zeros(3, 4, dtype=torch.bool), - } - before = model.mean[-1].weight.detach().clone() - stats = ppo_update(model, torch.optim.Adam(model.parameters(), lr=1e-3), data, epochs=2, minibatch=5) - assert not torch.equal(before, model.mean[-1].weight) - assert all(torch.isfinite(torch.tensor(v)) for v in stats.values()) - advantage, _ = compute_gae(data["rewards"], data["values"], data["next_values"], data["done"]) - assert not advantage.requires_grad - with pytest.raises(ValueError, match="positive"): - ppo_update(model, torch.optim.Adam(model.parameters()), data, epochs=0) - data["log_prob"] = torch.full((3, 4), torch.nan) - frozen = {key: item.clone() for key, item in model.state_dict().items()} - with pytest.raises(ValueError, match="finite"): - ppo_update(model, torch.optim.Adam(model.parameters()), data) - assert all(torch.equal(model.state_dict()[key], item) for key, item in frozen.items()) - - -@pytest.mark.parametrize("empty", [True, False]) -def test_gae_rejects_empty_or_nonfinite_inputs(empty): - reward = torch.zeros(0 if empty else 1, 2) - if not empty: - reward[0, 0] = torch.nan - with pytest.raises(ValueError): - compute_gae(reward, reward, reward, torch.zeros_like(reward, dtype=torch.bool)) - - -def test_float32_contract_ignores_global_default_dtype(tmp_path): - spec = fixture_spec(tmp_path, 2) - bundle = extract_leg(spec, tmp_path / "asset") - old = torch.get_default_dtype() - try: - torch.set_default_dtype(torch.float64) - static = static_tokens(bundle, 4) - q = torch.zeros(2, 2, dtype=torch.float32) - assert static["joint_description"].dtype == torch.float32 - assert static["effector_description"].dtype == torch.float32 - assert LegKinematics(bundle).foot_position(q).dtype == torch.float32 - assert pad_joint_observations(q, q, q, bundle, 4).dtype == torch.float32 - assert all(p.dtype == torch.float32 for p in LegActorCritic().parameters()) - finally: - torch.set_default_dtype(old) diff --git a/tests/test_loaded_leg.py b/tests/test_loaded_leg.py deleted file mode 100644 index 82adc2f..0000000 --- a/tests/test_loaded_leg.py +++ /dev/null @@ -1,204 +0,0 @@ -"""Pure configuration/mechanics oracles; these are NOT physical standing evidence.""" - -import copy -import json -import subprocess -import sys -import xml.etree.ElementTree as ET -from pathlib import Path - -import pytest -import torch -from SkillFactory.legs.support import ( - disturbance_wrench, - load_config, - load_support_asset, - negative_control_collapsed, - passive_wrench, - payload_urdf, - relative_point_velocity, - sha256, - shift_wrench, -) - -ROOT = Path(__file__).resolve().parents[1] -CONFIG = ROOT / "configs/standing/go2_fl_support_v0.json" - - -@pytest.mark.parametrize("message,passed", [("normal completion", True), ("[Error] backend rejected a setting", False)]) -def test_supervisor_rejects_critical_log_even_with_zero_child_exit(tmp_path, message, passed): - report = tmp_path / "process.json" - result = subprocess.run( - [ - sys.executable, - str(ROOT / "scripts/supervise_sim.py"), - "--log", - str(tmp_path / "worker.log"), - "--report", - str(report), - "--", - sys.executable, - "-c", - f"print({message!r})", - ], - capture_output=True, - text=True, - ) - data = json.loads(report.read_text()) - assert data["returncode"] == 0 and data["cleanup"]["clean"] - assert data["passed"] is passed and (result.returncode == 0) is passed - assert bool(data["critical_log_lines"]) is not passed - - -def test_support_config(): - cfg = load_config(CONFIG) - assert cfg["payload_mass_kg"] == 3 - for key in ("guide_stiffness", "guide_damping", "guide_wrench_limit"): - assert cfg[key][2] == 0 - - -@pytest.mark.parametrize( - "key,value", - [ - ("payload_mass_kg", 0), - ("payload_mass_kg", True), - ("payload_mass_kg", float("nan")), - ("guide_stiffness", [1, 1, 1, 1, 1, 1]), - ("guide_damping", [1, 1, 1, 1, 1, 1]), - ("guide_wrench_limit", [1, 1, 1, 1, 1, 1]), - ("guide_stiffness", [-1, 0, 0, 0, 0, 0]), - ("payload_size_m", [0.1, 0.1]), - ("payload_size_m", [0, 0.1, 0.1]), - ("disturbance_amplitude", [5, 5, 10, 1, 1, 0]), - ("contact_fraction_min", 1.01), - ("episode_seconds", 5), - ("seed", 1.5), - ("unknown", 42), - ], -) -def test_bad_config_rejected(tmp_path, key, value): - data = json.loads(CONFIG.read_text()) - data[key] = value - p = tmp_path / "config.json" - p.write_text(json.dumps(data)) - with pytest.raises(ValueError): - load_config(p) - - -def test_derived_payload_is_separate_and_preserves_original_mechanics(tmp_path): - # Synthetic URDF fixture, independently specified root and child. - source = tmp_path / "source.urdf" - source.write_text( - '' - '' - '' - '' - ) - before = source.read_bytes() - cfg = load_config(CONFIG) - tree = ET.fromstring(payload_urdf(source, cfg)) - assert source.read_bytes() == before - sensor = tree.find("joint[@name='mount_ft_joint']") - assert sensor.get("type") == "fixed" and sensor.get("dont_collapse") == "true" - assert sensor.find("parent").get("link") == "virtual_payload" - assert sensor.find("child").get("link") == "anchor_base" - children = {j.find("child").get("link") for j in tree.findall("joint")} - assert {link.get("name") for link in tree.findall("link")} - children == {"virtual_payload"} - assert tree.find("link[@name='anchor_base']/inertial/mass").get("value") == "0.05" - inertia = tree.find("link[@name='virtual_payload']/inertial/inertia") - assert float(inertia.get("ixx")) == pytest.approx(3 * (0.18**2 + 0.08**2) / 12) - - def structure(node): - return node.tag, node.attrib, tuple(structure(child) for child in node) - - assert structure(tree.find("joint[@name='actuator']")) == structure( - ET.fromstring(before).find("joint[@name='actuator']") - ) - - -def test_bushing_passivity_and_no_vertical_hanging(): - cfg = load_config(CONFIG) - k, d, limit = [torch.tensor(cfg[x]) for x in ("guide_stiffness", "guide_damping", "guide_wrench_limit")] - torch.manual_seed(7) - velocity = torch.randn(64, 6) - damping = passive_wrench(torch.zeros_like(velocity), velocity, k, d, limit) - assert ((damping * velocity).sum(-1) <= 0).all() - displacement = torch.randn(64, 6) - restoring = passive_wrench(displacement, torch.zeros_like(displacement), k, d, limit) - assert ((restoring * displacement).sum(-1) <= 0).all() - assert torch.equal(restoring[:, 2], torch.zeros(64)) - assert (restoring.abs() <= limit).all() - - -@pytest.mark.parametrize( - "time,amplitude", [(0, 0), (3, 0), (3.25, 0.5), (4, 1), (5.75, 0.5), (6, 0), (7, 0), (9, 1), (12, 0)] -) -def test_all_thirteen_signed_disturbance_cases(time, amplitude): - amps = torch.tensor([5.0, 5.0, 10.0, 1.0, 1.0, 1.0]) - result = disturbance_wrench(torch.full((13,), float(time)), torch.arange(13), amps) - expected = torch.zeros(13, 6) - for axis in range(6): - expected[1 + 2 * axis, axis] = amplitude * amps[axis] - expected[2 + 2 * axis, axis] = -amplitude * amps[axis] - torch.testing.assert_close(result, expected, rtol=0, atol=0) - - -def test_rotating_frame_relative_velocity_and_wrench_origin(): - r = torch.tensor([[1.0, 0, 0]]) - omega = torch.tensor([[0.0, 0, 2.0]]) - v_root = torch.tensor([[3.0, 0, 0]]) - # A point rigidly attached to a rotating root has zero relative velocity. - v_point = v_root + torch.cross(omega, r, dim=-1) - torch.testing.assert_close(relative_point_velocity(v_point, v_root, omega, r), torch.zeros(1, 3)) - force, torque = shift_wrench(torch.tensor([[0.0, 5, 0]]), torch.zeros(1, 3), r) - torch.testing.assert_close(torque, torch.tensor([[0.0, 0, 5]])) - torch.testing.assert_close(force, torch.tensor([[0.0, 5, 0]])) - - -@pytest.mark.parametrize( - "drops,torques,expected", - [ - ([0.2, 0.3], [0, 0], True), - ([0.0, 0.3], [0, 0], False), - ([0.09, 0.3], [0, 0], False), - ([0.2, 0.3], [0.1, 0], False), - ([], [], False), - ], -) -def test_negative_control_requires_downward_collapse_of_all_envs(drops, torques, expected): - rows = [ - {"max_base_drop_m": drop, "max_normalized_torque": torque, "max_height_error_m": 0.5} - for drop, torque in zip(drops, torques) - ] - assert negative_control_collapsed(rows) is expected - - -def test_support_identity_and_path_integrity(tmp_path): - cfg = copy.deepcopy(load_config(CONFIG)) - source = tmp_path / "source" - source.mkdir() - (source / "manifest.json").write_text("source identity") - cfg["source_bundle"] = str(source) - asset = tmp_path / "support" - asset.mkdir() - (asset / "a.usda").write_text("fixture, not an actual USD") - manifest = { - "contract": "go2-fl-loaded-stand-v0", - "fixed_to_world": False, - "mount_joint": "mount_ft_joint", - "usd_path": "a.usda", - "source_manifest_sha256": sha256(source / "manifest.json"), - "files": {"a.usda": sha256(asset / "a.usda")}, - **{k: cfg[k] for k in ("payload_mass_kg", "payload_size_m", "payload_com_m", "sensor_carrier_mass_kg")}, - } - path = asset / "support.json" - path.write_text(json.dumps(manifest)) - assert load_support_asset(asset, cfg)["fixed_to_world"] is False - cfg["payload_mass_kg"] = 4 - with pytest.raises(ValueError, match="config mismatch"): - load_support_asset(asset, cfg) - cfg["payload_mass_kg"] = 3 - manifest["files"] = {"../source/manifest.json": sha256(source / "manifest.json")} - path.write_text(json.dumps(manifest)) - with pytest.raises(ValueError, match="integrity"): - load_support_asset(asset, cfg) diff --git a/tests/test_offline_leg.py b/tests/test_offline_leg.py deleted file mode 100644 index 4d4c2a2..0000000 --- a/tests/test_offline_leg.py +++ /dev/null @@ -1,190 +0,0 @@ -"""No Kit required: offline updates, exact resume, padding and immutable inference.""" - -import copy -import importlib.util -import json -from pathlib import Path -from types import SimpleNamespace - -import pytest -import torch -from SkillFactory.legs.frozen_policy import Actor, FrozenPolicy -from SkillFactory.legs.offline import IQL, atomic_save, canonical_hash, features, sha256 - -ROOT = Path(__file__).resolve().parents[1] - - -def training_config(): - return json.loads((ROOT / "configs/training/go2_fl_offline_v1.json").read_text())["training"] - - -def test_iql_exact_resume_and_finite_update(tmp_path): - torch.set_num_threads(1) - torch.manual_seed(7) - cfg = training_config() - learner = IQL(cfg, torch.zeros(15), torch.ones(15)) - data = { - "state": torch.randn(64, 15), - "next_state": torch.randn(64, 15), - "action": torch.randn(64, 3).tanh(), - "reward": torch.rand(64), - "terminated": torch.zeros(64, dtype=torch.bool), - } - before = copy.deepcopy(learner.actor.state_dict()) - for _ in range(3): - learner.update(data) - atomic_save(learner.state_dict(), tmp_path / "checkpoint.pt") - ids = torch.randint(64, (32,)) - learner.update({k: v[ids] for k, v in data.items()}) - after = learner.state_dict() - restored = IQL(cfg, torch.zeros(15), torch.ones(15)) - restored.load_state_dict(torch.load(tmp_path / "checkpoint.pt", weights_only=True)) - restored_ids = torch.randint(64, (32,)) - assert torch.equal(ids, restored_ids) - restored.update({k: v[restored_ids] for k, v in data.items()}) - for name, values in after["models"].items(): - assert all(torch.equal(value, restored.state_dict()["models"][name][key]) for key, value in values.items()) - assert any(not torch.equal(value, learner.actor.state_dict()[key]) for key, value in before.items()) - data["reward"][0] = float("nan") - with pytest.raises(RuntimeError, match="Non-finite"): - learner.update(data) - - -def make_package(tmp_path): - torch.manual_seed(1) - shapes = { - "joint_description": (1, 8, 25), - "joint_observation": (1, 8, 3), - "joint_mask": (1, 8), - "effector_description": (1, 1, 16), - "effector_observation": (1, 1, 11), - "effector_mask": (1, 1), - "context": (1, 10), - "goal": (1, 3), - } - tokens = { - key: torch.zeros(shape, dtype=torch.bool if "mask" in key else torch.float32) for key, shape in shapes.items() - } - tokens["joint_mask"][:, :3] = True - tokens["effector_mask"][:] = True - binding = { - "part_id": "go2_fl", - "manifest_sha256": "a" * 64, - "context": tokens["context"][0].tolist(), - "static_tokens": { - k: tokens[k][0].tolist() - for k in ("joint_description", "joint_mask", "effector_description", "effector_mask") - }, - } - (tmp_path / "binding.json").write_text(json.dumps(binding)) - torch.save(Actor().state_dict(), tmp_path / "actor.pt") - for name in ("config.json", "README.md", "frozen_policy.py"): - (tmp_path / name).write_text("test") - manifest = { - "format": "skillfactory.skillbundle.v1", - "interface": "go2-fl-reach-leg-token-v1", - "hidden": 128, - "version": "test", - "files": {p.name: sha256(p) for p in tmp_path.iterdir()}, - } - (tmp_path / "manifest.json").write_text(json.dumps(manifest)) - return tokens, binding - - -def test_frozen_inference_and_fail_closed(tmp_path): - tokens, binding = make_package(tmp_path) - policy = FrozenPolicy(tmp_path, part_id="go2_fl", manifest_sha256=binding["manifest_sha256"]) - state = copy.deepcopy(policy._actor.state_dict()) - result = policy.act(tokens) - assert result.shape == (1, 8) and not result.requires_grad - assert features(tokens).shape == (1, 15) - tokens["joint_observation"][:, 3:] = float("nan") - tokens["joint_description"][:, 3:] = float("nan") - assert torch.equal(result, policy.act(tokens)) - assert all(torch.equal(value, policy._actor.state_dict()[key]) for key, value in state.items()) - tokens["goal"][0, 0] = float("inf") - with pytest.raises(ValueError, match="Non-finite"): - policy.act(tokens) - with pytest.raises(ValueError, match="hardware"): - FrozenPolicy(tmp_path, part_id="go1_fl", manifest_sha256=binding["manifest_sha256"]) - with (tmp_path / "actor.pt").open("ab") as stream: - stream.write(b"x") - with pytest.raises(ValueError, match="integrity"): - FrozenPolicy(tmp_path, part_id="go2_fl", manifest_sha256=binding["manifest_sha256"]) - - -def test_release_rejects_same_actor_different_tested_package(tmp_path, monkeypatch): - monkeypatch.syspath_prepend(str(ROOT / "scripts")) - from stage2_acceptance import independent_load_passed - - candidate = tmp_path / "candidate" - candidate.mkdir() - make_package(candidate) - tested_digest = sha256(candidate / "manifest.json") - # Same weights, changed inference payload/binding metadata: old evidence is stale. - (candidate / "README.md").write_text("changed payload") - manifest = json.loads((candidate / "manifest.json").read_text()) - manifest["files"]["README.md"] = sha256(candidate / "README.md") - (candidate / "manifest.json").write_text(json.dumps(manifest)) - report = { - "passed": True, - "status": "completed", - "isolated": True, - "package_only": True, - "parameters_and_buffers_unchanged": True, - "requires_grad": False, - "training_or_simulator_imports": False, - "actor_sha256": sha256(candidate / "actor.pt"), - "manifest_sha256": tested_digest, - } - assert independent_load_passed(report, candidate, tested_digest) - assert not independent_load_passed(report, candidate, sha256(candidate / "manifest.json")) - - -def test_hash_is_order_independent_and_nan_rejected(): - assert canonical_hash({"a": 1, "b": 2}) == canonical_hash({"b": 2, "a": 1}) - with pytest.raises(ValueError): - canonical_hash({"bad": float("nan")}) - - -def test_stability_samples_memory_at_end(tmp_path, monkeypatch): - monkeypatch.syspath_prepend(str(ROOT / "scripts")) - spec = importlib.util.spec_from_file_location("stage2_sim", ROOT / "scripts/stage2_sim.py") - module = importlib.util.module_from_spec(spec) - spec.loader.exec_module(module) - tokens, _ = make_package(tmp_path) - weights = tmp_path / "checkpoint.pt" - torch.save({"learner": {"models": {"actor": Actor().state_dict()}}}, weights) - env = SimpleNamespace( - device="cpu", - num_envs=1, - step_dt=0.01, - reset=lambda **kwargs: None, - step=lambda action: ( - None, - torch.zeros(1), - torch.zeros(1, dtype=torch.bool), - torch.zeros(1, dtype=torch.bool), - None, - ), - ) - adapter = SimpleNamespace(snapshot=lambda: tokens) - monkeypatch.setattr(module, "goals", lambda *a, **kw: None) - audit = { - "max_normalized_torque": 0, - "max_normalized_velocity": 0, - "joint_limit_excess_rad": 0, - "anchor_pose_error": 0, - "invalid_states": 0, - "physical_samples": 0, - } - monkeypatch.setattr(module, "Audit", lambda *a: SimpleNamespace(report=lambda: audit)) - memory = iter([(1000, 2000), (1000, 2000), (800, 2000)]) - monkeypatch.setattr(torch.cuda, "synchronize", lambda: None) - monkeypatch.setattr(torch.cuda, "mem_get_info", lambda: next(memory)) - cfg = json.loads((ROOT / "configs/training/go2_fl_offline_v1.json").read_text()) - cfg["test"]["stability_seconds"] = 0.1 - args = SimpleNamespace(package=None, weights=weights, mode="stability") - report = module.evaluate(env, adapter, cfg, args) - assert report["device_used_before"] == 1000 and report["device_used_max"] == 1200 - assert report["memory_growth_fraction"] == 0.2 and not report["passed"] diff --git a/tests/test_stage2_release.py b/tests/test_stage2_release.py deleted file mode 100644 index 03805a7..0000000 --- a/tests/test_stage2_release.py +++ /dev/null @@ -1,423 +0,0 @@ -"""Fail-closed publication, full boundary strata, and report lifecycle regressions (no Kit).""" - -import itertools -import json -import subprocess -import sys -from pathlib import Path -from types import SimpleNamespace - -import pytest -import torch -from SkillFactory.legs.offline import canonical_hash, sha256 -from test_offline_leg import make_package - -ROOT = Path(__file__).resolve().parents[1] - - -@pytest.fixture(autouse=True) -def scripts(monkeypatch): - monkeypatch.syspath_prepend(str(ROOT / "scripts")) - - -def put(path, value): - path.parent.mkdir(parents=True, exist_ok=True) - path.write_text(json.dumps(value)) - - -def load_report(package): - return { - "passed": True, - "status": "completed", - "isolated": True, - "package_only": True, - "parameters_and_buffers_unchanged": True, - "requires_grad": False, - "training_or_simulator_imports": False, - "actor_sha256": sha256(package / "actor.pt"), - "manifest_sha256": sha256(package / "manifest.json"), - } - - -@pytest.fixture -def run_fixture(tmp_path, request): - from export_leg_bundle import manifest - from stage2_boundary import apply_boundary, boundary_coverage - - cfg = json.loads((ROOT / "configs/training/go2_fl_offline_v1_attempt2.json").read_text()) - cfg.update(num_envs=26, episode_steps=2) - cfg["collection"]["shards"] = 1 - cfg["training"]["updates"] = 10 - cfg["selection"].update(candidate_updates=[10], batches=1) - cfg["test"].update(batches=1, boundary_batches=1, stability_seconds=1, stability_envs=2) - run, candidate = tmp_path / "run", tmp_path / "candidate" - candidate.mkdir() - _, binding = make_package(candidate) - binding["spec"] = {"physics_dt": 0.002, "decimation": 5} - put(candidate / "binding.json", binding) - (run / "data").mkdir(parents=True) - (run / "data/shard.pt").write_bytes(b"unit-test-only-data") - digest = canonical_hash(cfg) - index = { - "complete": True, - "config_sha256": digest, - "transitions": 52, - "shards": [{"path": "shard.pt", "sha256": sha256(run / "data/shard.pt"), "transitions": 52}], - } - put(run / "data/dataset.json", index) - identity = {"config_sha256": digest, "dataset_sha256": sha256(run / "data/dataset.json")} - put( - run / "train/result.json", - {"passed": True, "training_complete": True, "status": "completed", "updates": 10, "identity": identity}, - ) - (run / "train/step_000010.pt").write_bytes(b"unit-test-only-checkpoint") - weights_hash = sha256(run / "train/step_000010.pt") - put( - candidate / "selection.json", - { - "selected_update": 10, - "checkpoint_sha256": weights_hash, - "actor_sha256": sha256(candidate / "actor.pt"), - "config_sha256": digest, - "training_identity": identity, - }, - ) - version = getattr(request, "param", None) - if version: - put( - candidate / "release.json", - {"format": "skillfactory.release.v1", "version": version, "training_config_sha256": digest}, - ) - manifest(candidate, cfg, "candidate") - put(run / "resume_exact.json", {"passed": True, "full_learner_optimizer_rng_exact": True}) - for name in ("pytest.log", "ruff.log"): - (run / name).write_text("unit-test fixture: passed\n") - put( - run / "engineering_checks.json", - { - "passed": True, - "git_diff_check": True, - "review_blockers_remaining": 0, - "pytest_log_sha256": sha256(run / "pytest.log"), - "ruff_log_sha256": sha256(run / "ruff.log"), - }, - ) - put( - run / "validation_000010/result.json", - { - "passed": True, - "status": "completed", - "gates": {"mean": True}, - "config_sha256": digest, - "weight_sha256": weights_hash, - "policy": {"episodes": 26, "mean_error_m": 0.002}, - }, - ) - (run / "validation_000010.log").write_text("passed\n") - base = { - "passed": True, - "status": "completed", - "weight_sha256": sha256(candidate / "actor.pt"), - "package_manifest_sha256": sha256(candidate / "manifest.json"), - "config_sha256": digest, - "max_normalized_torque": 0.5, - "max_normalized_velocity": 0.5, - "joint_limit_excess_rad": 0, - "anchor_pose_error": 0, - "invalid_states": 0, - "physical_samples": 500, - } - for mode in ("test", "boundary", "stability"): - row = dict(base) - if mode == "stability": - row.update( - control_steps=100, - environment_control_steps=200, - seconds_per_env=1, - num_envs=2, - memory_growth_fraction=0, - ) - else: - for name, error in (("policy", 0.002), ("zero", 0.05)): - row[name] = { - "episodes": 26, - "mean_error_m": error, - "p95_error_m": error, - "success_fraction": float(error <= 0.015), - "episode_mean_errors_m": [error] * 26, - "episode_peak_errors_m": [error] * 26, - } - row.update( - baseline_error_reduction=0.96, seed=cfg["test"]["boundary_seed" if mode == "boundary" else "seed"] - ) - if mode == "boundary": - row["boundary_actions"] = apply_boundary(torch.zeros(26, 3)).tolist() - row["boundary_coverage"] = boundary_coverage(row["boundary_actions"]) - put(run / mode / "result.json", row) - (run / f"{mode}.log").write_text("passed\n") - put(run / "standalone.json", load_report(candidate)) - return SimpleNamespace( - run=run, candidate=candidate, output=tmp_path / "published", python=Path(sys.executable) - ), cfg - - -@pytest.mark.parametrize("name", ["engineering_checks", "resume_exact"]) -@pytest.mark.parametrize("damage", ["false", "missing", "malformed"]) -def test_failed_or_missing_mandatory_gate_never_publishes(run_fixture, name, damage): - from export_leg_bundle import finalize - from stage2_acceptance import evaluate_acceptance - - args, cfg = run_fixture - assert evaluate_acceptance(args.run, args.candidate, cfg)["passed"] - path = args.run / f"{name}.json" - if damage == "missing": - path.unlink() - elif damage == "malformed": - path.write_text("{") - else: - report = json.loads(path.read_text()) - report["passed"] = False - put(path, report) - checks = evaluate_acceptance(args.run, args.candidate, cfg)["checks"] - assert not checks["engineering" if name == "engineering_checks" else "resumable"] - with pytest.raises((ValueError, FileNotFoundError)): - finalize(args, cfg) - assert not args.output.exists() - assert not list(args.output.parent.glob(".published*")) - - -def test_float32_window_roundoff_does_not_fail_valid_evidence(run_fixture): - from stage2_acceptance import goal_metrics_passed - - args, cfg = run_fixture - row = json.loads((args.run / "test/result.json").read_text()) - row["zero"]["episode_mean_errors_m"][0] += 1e-8 - assert goal_metrics_passed(row, cfg, "test") - row["zero"]["episode_mean_errors_m"][0] += 1e-3 - assert not goal_metrics_passed(row, cfg, "test") - - -def test_both_false_cannot_publish(run_fixture): - from export_leg_bundle import finalize - - args, cfg = run_fixture - for name in ("engineering_checks", "resume_exact"): - row = json.loads((args.run / f"{name}.json").read_text()) - row["passed"] = False - put(args.run / f"{name}.json", row) - with pytest.raises(ValueError, match="engineering, resumable"): - finalize(args, cfg) - assert not args.output.exists() - - -@pytest.mark.parametrize("damage", ["coverage", "hash", "stale_load", "missing_log", "short_stability"]) -def test_other_gates_shared_by_publication_and_verification(run_fixture, damage): - from export_leg_bundle import finalize - from stage2_acceptance import evaluate_acceptance - - args, cfg = run_fixture - if damage in ("coverage", "hash"): - p = args.run / "boundary/result.json" - row = json.loads(p.read_text()) - row.pop("boundary_actions" if damage == "coverage" else "package_manifest_sha256") - put(p, row) - elif damage == "stale_load": - row = load_report(args.candidate) - row.update(passed=False, status="running") - put(args.run / "standalone.json", row) - elif damage == "missing_log": - (args.run / "test.log").unlink() - else: - p = args.run / "stability/result.json" - row = json.loads(p.read_text()) - row["physical_samples"] = 499 - put(p, row) - assert not evaluate_acceptance(args.run, args.candidate, cfg)["passed"] - with pytest.raises(ValueError, match="Acceptance failed"): - finalize(args, cfg) - assert not args.output.exists() - - -def test_same_weights_different_manifest_cannot_publish(run_fixture): - from export_leg_bundle import finalize, manifest - from stage2_acceptance import evaluate_acceptance - - args, cfg = run_fixture - actor_hash = sha256(args.candidate / "actor.pt") - (args.candidate / "README.md").write_text("different package payload") - manifest(args.candidate, cfg, "candidate") - checks = evaluate_acceptance(args.run, args.candidate, cfg)["checks"] - assert sha256(args.candidate / "actor.pt") == actor_hash - assert not checks["test"] and not checks["independent_candidate_load"] - with pytest.raises(ValueError, match="Acceptance failed"): - finalize(args, cfg) - assert not args.output.exists() - - -@pytest.mark.parametrize("run_fixture", [None, "1.0.1"], indirect=True) -def test_publish_is_atomic_and_uses_final_staged_manifest(run_fixture, monkeypatch): - import verify_frozen_leg - from export_leg_bundle import finalize - from stage2_acceptance import evaluate_release - - args, cfg = run_fixture - seen = [] - - def verify(staged, python, output): - assert not args.output.exists() - assert staged != args.candidate and staged.parent.parent == args.output.parent - result = load_report(staged) - assert result["manifest_sha256"] != sha256(args.candidate / "manifest.json") - put(output, result) - seen.append(result) - return result - - monkeypatch.setattr(verify_frozen_leg, "verify_package", verify) - finalize(args, cfg) - assert len(seen) == 1 and json.loads((args.output / "manifest.json").read_text())["status"] == "accepted" - assert evaluate_release(args.run, args.output, cfg, seen[0])["passed"] - assert cfg["release_version"] == "1.0.0" - assert ( - json.loads((args.output / "manifest.json").read_text())["version"] - == json.loads((args.candidate / "manifest.json").read_text())["version"] - ) - before = sha256(args.output / "manifest.json") - with pytest.raises(ValueError, match="Immutable"): - finalize(args, cfg) - assert sha256(args.output / "manifest.json") == before - assert not list(args.output.parent.glob(".published*")) - row = json.loads((args.run / "engineering_checks.json").read_text()) - row["passed"] = False - put(args.run / "engineering_checks.json", row) - assert not evaluate_release(args.run, args.output, cfg, seen[0])["passed"] - - -@pytest.mark.parametrize("damage", ["config_hash", "format", "invalid_version", "finalize_version"]) -def test_release_metadata_cannot_bypass_training_identity(run_fixture, damage): - from export_leg_bundle import finalize - from stage2_acceptance import package_version - - args, cfg = run_fixture - metadata = {"format": "skillfactory.release.v1", "version": "1.0.1", "training_config_sha256": canonical_hash(cfg)} - if damage == "config_hash": - metadata["training_config_sha256"] = "wrong" - elif damage == "format": - metadata["format"] = "unsupported" - elif damage == "invalid_version": - metadata["version"] = "../1.0.1" - if damage == "finalize_version": - args.release_version = "1.0.1" # Cannot relabel a tested 1.0.0 candidate. - with pytest.raises(ValueError, match="cannot change"): - finalize(args, cfg) - else: - put(args.candidate / "release.json", metadata) - with pytest.raises(ValueError, match="Release"): - package_version(args.candidate, cfg) - assert not args.output.exists() - - -@pytest.mark.parametrize("failure", ["load", "copy", "negative_load"]) -def test_failed_staging_leaves_no_accepted_destination(run_fixture, monkeypatch, failure): - import export_leg_bundle - import verify_frozen_leg - - args, cfg = run_fixture - - def fail(*a, **kw): - assert not args.output.exists() - if failure == "negative_load": - return dict(load_report(a[0]), passed=False) - raise RuntimeError("injected failure") - - monkeypatch.setattr( - export_leg_bundle.shutil if failure == "copy" else verify_frozen_leg, - "copytree" if failure == "copy" else "verify_package", - fail, - ) - with pytest.raises((RuntimeError, ValueError), match="injected failure|independent_release_load"): - export_leg_bundle.finalize(args, cfg) - assert not args.output.exists() and not list(args.output.parent.glob(".published*")) - - -@pytest.mark.parametrize("size", [26, 52, 256]) -@pytest.mark.parametrize("seed", [0, 1, 41000]) -def test_boundary_covers_every_axis_and_sign_in_actual_goals(size, seed): - from stage2_boundary import boundary_coverage - from stage2_sim import goals - - term = SimpleNamespace(goal_q=torch.zeros(size, 3), _command=torch.zeros(size, 3)) - env = SimpleNamespace(num_envs=size, device="cpu", command_manager=SimpleNamespace(get_term=lambda _: term)) - adapter = SimpleNamespace(nominal=torch.zeros(3), scale=0.25, fk=SimpleNamespace(foot_position=lambda q: q.clone())) - actions = goals(env, adapter, seed, boundary=True) - repeated = goals(env, adapter, seed, boundary=True) - assert torch.equal(actions, repeated) and torch.equal(term.goal_q, actions * 0.25) - # Independent oracle: every nonzero axis/sign signature must appear. - signatures = {tuple(int(v / 0.75) if abs(v) == 0.75 else 0 for v in row) for row in actions.tolist()} - expected = set(itertools.product((-1, 0, 1), repeat=3)) - {(0, 0, 0)} - assert signatures == expected - coverage = boundary_coverage(actions.tolist()) - assert (coverage["faces"], coverage["edges"], coverage["corners"]) == (6, 12, 8) - assert coverage["complete"] and sum(coverage["strata_counts"].values()) == size - assert max(coverage["strata_counts"].values()) - min(coverage["strata_counts"].values()) <= 1 - - -def test_small_boundary_batch_cannot_silently_undercover(): - from stage2_boundary import apply_boundary - - with pytest.raises(ValueError, match="26"): - apply_boundary(torch.zeros(25, 3)) - - -@pytest.mark.parametrize("failure", ["copy", "python", "child", "malformed", "negative", "interrupt"]) -def test_independent_failure_replaces_old_success_atomically(tmp_path, monkeypatch, failure): - import verify_frozen_leg as verifier - - package = tmp_path / "package" - package.mkdir() - (package / "actor.pt").write_bytes(b"weight") - (package / "manifest.json").write_text("{}") - output = tmp_path / "report.json" - put(output, {"passed": True, "status": "completed", "actor_sha256": "stale"}) - - def fail(*a, **kw): - initial = json.loads(output.read_text()) - assert initial["passed"] is False and initial["status"] == "running" - if failure in ("copy", "python"): - raise FileNotFoundError("injected") - if failure == "child": - raise subprocess.CalledProcessError(7, ["child"], output="out", stderr="bad weights") - if failure == "interrupt": - raise KeyboardInterrupt() - return SimpleNamespace(stdout="not JSON" if failure == "malformed" else '{"passed":false}', stderr="failure") - - monkeypatch.setattr( - verifier.shutil if failure == "copy" else verifier.subprocess, "copytree" if failure == "copy" else "run", fail - ) - with pytest.raises((ValueError, FileNotFoundError, subprocess.CalledProcessError, KeyboardInterrupt)): - verifier.verify_package(package, Path(sys.executable), output) - report = json.loads(output.read_text()) - assert report["passed"] is False and report["status"] == "failed" and "error" in report - assert "actor_sha256" not in report and report["run_id"] - if failure == "child": - assert report["returncode"] == 7 and report["stderr"] == "bad weights" - assert not [p for p in tmp_path.iterdir() if p.name not in ("package", "report.json")] - - -def test_independent_success_and_package_change_detection(tmp_path, monkeypatch): - import verify_frozen_leg as verifier - - package = tmp_path / "package" - package.mkdir() - (package / "actor.pt").write_bytes(b"weight") - (package / "manifest.json").write_text("{}") - output = tmp_path / "report.json" - report = load_report(package) - monkeypatch.setattr( - verifier.subprocess, "run", lambda *a, **kw: SimpleNamespace(stdout=json.dumps(report), stderr="") - ) - result = verifier.verify_package(package, Path(sys.executable), output) - assert result["passed"] and json.loads(output.read_text())["status"] == "completed" - (package / "actor.pt").write_bytes(b"different weight") - with pytest.raises(ValueError, match="changed"): - verifier.verify_package(package, Path(sys.executable), output) - assert json.loads(output.read_text())["passed"] is False diff --git a/tests/test_standing_acceptance.py b/tests/test_standing_acceptance.py deleted file mode 100644 index 0e6966b..0000000 --- a/tests/test_standing_acceptance.py +++ /dev/null @@ -1,276 +0,0 @@ -"""Pure regressions: frozen standing ABI and independent protocol reducer.""" - -import json -import sys -from pathlib import Path - -import pytest -import torch - -sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "scripts")) -from SkillFactory.legs.frozen_standing import CORE, SHAPES, Actor, FrozenStanding, file_hash -from SkillFactory.legs.standing_ppo import canonical_hash -from SkillFactory.legs.support import disturbance_wrench -from standing_protocol import WIDTHS, calibration_errors, inputs_for, load_at, reduce_trace - - -@pytest.fixture -def package(tmp_path): - task = tmp_path / "task.json" - task.write_text("{}") - binding = { - "task_sha256": file_hash(task), - "support_sha256": "a" * 64, - "height_m": 0.33, - "nominal": [0.0, 0.8, -1.5], - "action_scale_rad": 0.5, - "soft_limits": [[-0.8, 0.8], [-1.0, 3.0], [-2.6, -0.9]], - } - for name in CORE - {"task.json", "actor.pt", "binding.json"}: - (tmp_path / name).write_text("fixture") - (tmp_path / "binding.json").write_text(json.dumps(binding)) - torch.save(Actor().state_dict(), tmp_path / "actor.pt") - manifest = { - "format": "skillfactory.standing-bundle.v1", - "contract": "go2-fl-loaded-stand-v0", - "version": "1.0.0", - "hidden": 128, - "files": {p.name: file_hash(p) for p in tmp_path.iterdir()}, - } - (tmp_path / "manifest.json").write_text(json.dumps(manifest)) - return tmp_path, { - "manifest_sha256": file_hash(tmp_path / "manifest.json"), - "task_sha256": binding["task_sha256"], - "support_sha256": binding["support_sha256"], - } - - -def observation(batch=3): - obs = {k: torch.zeros(batch, *shape) for k, shape in SHAPES.items()} - obs["goal"][:] = 0.33 - obs["base_state"][:, 6] = 1 - return obs - - -def test_frozen_abi_stateless_and_rejects_bad_contract(package): - path, kwargs = package - p = FrozenStanding(path, **kwargs) - obs = observation() - before = {k: v.clone() for k, v in obs.items()} - a = p.act(obs) - assert a.shape == (3, 3) and not a.requires_grad and torch.equal(a, p.act(obs)) - assert all(torch.equal(v, before[k]) for k, v in obs.items()) - for key in kwargs: - with pytest.raises(ValueError): - FrozenStanding(path, **{**kwargs, key: "0" * 64}) - for key in obs: - bad = {k: v.clone() for k, v in obs.items()} - bad[key].flatten()[0] = torch.nan - with pytest.raises(ValueError): - p.act(bad) - for key, value in ( - ("goal", torch.zeros(3, 2)), - ("goal", torch.zeros(3, 1, dtype=torch.float64)), - ("goal", torch.zeros(3, 1, device="meta")), - ): - with pytest.raises(ValueError): - p.act({**obs, key: value}) - with pytest.raises(ValueError): - p.act(observation(0)) - (path / "actor.pt").write_bytes(b"corrupted") - with pytest.raises(ValueError, match="integrity"): - FrozenStanding(path, **kwargs) - - -def test_required_manifest_entries_cannot_be_deleted(package): - path, kwargs = package - m = json.loads((path / "manifest.json").read_text()) - del m["files"]["actor.pt"] - (path / "manifest.json").write_text(json.dumps(m)) - with pytest.raises(ValueError, match="Missing"): - FrozenStanding(path, **{**kwargs, "manifest_sha256": file_hash(path / "manifest.json")}) - - -def test_protocol_fixed_coverage_and_original_load_equivalence(): - full = inputs_for("full") - for time in (0.0, 3.2, 4.0, 5.75, 10.0, 13.99): - t = torch.full((13,), time) - actual = load_at( - t, - torch.tensor(full["basis"]), - torch.ones(13), - torch.zeros(13), - torch.tensor([5.0, 5.0, 10.0, 1.0, 1.0, 1.0]), - ) - expected = disturbance_wrench(t, torch.arange(13), torch.tensor([5.0, 5.0, 10.0, 1.0, 1.0, 1.0])) - torch.testing.assert_close(actual, expected, atol=0, rtol=0) - h = inputs_for("holdout") - assert h == inputs_for("holdout") and h["seed"] == 83000 - assert len(set(map(tuple, h["basis"]))) == 13 - e = torch.tensor(inputs_for("exploratory")["basis"]) - assert (e.abs().sum(-1) == 2).all() and len(e.unique(dim=0)) == 60 - - -def test_calibration_cannot_average_away_or_cancel_a_bad_cycle(): - expected = torch.zeros(21000, 1, 6) - measured = expected.clone() - measured[999:1499, :, 2] = -10 - measured[7999:8499, :, 2] = 10 - error, counts = calibration_errors(measured, expected, 42.0) - assert counts == [500] * 9 - assert error[0, 0, 2] == 10 and error[3, 0, 2] == 10 - assert error.max() > 1.5 - - -def test_release_guards_reject_stale_success_and_missing_memory(tmp_path): - from standing_acceptance import check_process, memory_gate, read_json - - log = tmp_path / "bad.log" - log.write_text("[Error] backend exploded\n") - result = {"passed": True, "status": "completed"} - process = { - "passed": True, - "status": "completed", - "returncode": 0, - "cleanup": {"clean": True, "remaining": []}, - "critical_log_lines": ["[Error] backend exploded"], - } - with pytest.raises(ValueError, match="process"): - check_process(result, process, log, True) - with pytest.raises(ValueError, match="memory"): - memory_gate([]) - values = [{"sim_seconds": i, "bytes": 1000 if i < 110 else 1100} for i in range(1, 121)] - assert memory_gate(values) > 0.05 - bad = tmp_path / "invalid.json" - bad.write_text('{"passed": true, "value": NaN}') - with pytest.raises(ValueError, match="Nonfinite"): - read_json(bad) - - -def test_atomic_publication_never_overwrites_existing_directory(tmp_path): - from publish_standing import rename_no_replace - - source, target = tmp_path / "stage", tmp_path / "version" - source.mkdir() - target.mkdir() - (target / "sentinel").write_text("keep") - with pytest.raises(OSError): - rename_no_replace(source, target) - assert source.exists() and (target / "sentinel").read_text() == "keep" - - -def test_failed_gate_leaves_no_release_or_lock(tmp_path, monkeypatch): - import publish_standing as publish - - def reject(*args): - raise ValueError("No physics evidence") - - monkeypatch.setattr(publish, "audit", reject) - with pytest.raises(ValueError, match="physics"): - publish.publish(tmp_path / "missing", tmp_path / "releases", Path(sys.executable)) - releases = tmp_path / "releases" - assert not (releases / publish.NAME).exists() - assert not list(releases.glob(".*.publish.lock")) - assert not json.loads((releases / f"{publish.NAME}.acceptance.json").read_text())["passed"] - - -@pytest.mark.parametrize("fail_at", [1, 2, 3, 4]) -def test_load_and_postcommit_failures_never_leave_accepted_paths(tmp_path, monkeypatch, fail_at): - import publish_standing as publish - - run = tmp_path / "run" - package = run / "candidate" - package.mkdir(parents=True) - (package / "actor.pt").write_bytes(b"fixture") - files = {"actor.pt": file_hash(package / "actor.pt")} - (package / "manifest.json").write_text(json.dumps({"files": files})) - evidence = { - "passed": True, - "stage": "eligible_for_frozen_publication", - "candidate_manifest_sha256": file_hash(package / "manifest.json"), - "core_files": files, - "artifacts": {}, - "trials": {}, - "training": {}, - "holdout_improvement_fraction": 1.0, - } - for name in ("publication_gate", "independent_candidate", "candidate_lock"): - (run / f"{name}.json").write_text("{}") - log = run / "checks.log" - log.write_text("fixture") - (run / "engineering.json").write_text( - json.dumps(dict.fromkeys(("pytest_log", "ruff_log", "review_report"), str(log))) - ) - for name in ("full", "holdout", "hold", "stability", "exploratory"): - (run / name).mkdir() - (run / name / "result.json").write_text("{}") - (run / f"{name}_process.json").write_text("{}") - monkeypatch.setattr(publish, "audit", lambda *args: evidence) - - calls = 0 - - def check(directory, *args): - nonlocal calls - calls += 1 - if calls == fail_at: - raise ValueError("Injected publication failure") - return {"passed": True, "manifest_sha256": file_hash(directory / "manifest.json")} - - writer = publish.write_json - - def write(path, value): - if fail_at == 4 and path.name.endswith(".acceptance.json") and value.get("passed"): - raise ValueError("Injected publication failure") - writer(path, value) - - monkeypatch.setattr(publish, "verify", check) - monkeypatch.setattr(publish, "write_json", write) - releases = tmp_path / "releases" - with pytest.raises(ValueError, match="Injected"): - publish.publish(run, releases, Path(sys.executable)) - assert not (releases / publish.NAME).exists() - assert not (releases / f"{publish.NAME}.tar.gz").exists() - assert not list(releases.glob(".*.stage-*")) and not list(releases.glob(".*.publish.lock")) - report = json.loads((releases / f"{publish.NAME}.acceptance.json").read_text()) - assert not report["passed"] - if fail_at > 1: - assert Path(report["quarantine"]).is_dir() - assert (Path(report["quarantine"]) / publish.NAME / "actor.pt").read_bytes() == b"fixture" - if fail_at == 4: - assert (Path(report["quarantine"]) / f"{publish.NAME}.tar.gz").is_file() - - -def test_version_race_cannot_overwrite_winner_report(tmp_path, monkeypatch): - import publish_standing as publish - - releases = tmp_path / "releases" - original_open = publish.os.open - winner = b'{"passed":true,"owner":"other invocation"}\n' - - def race_open(path, *args): - descriptor = original_open(path, *args) - (releases / publish.NAME).mkdir() - (releases / f"{publish.NAME}.acceptance.json").write_bytes(winner) - return descriptor - - monkeypatch.setattr(publish.os, "open", race_open) - with pytest.raises(ValueError, match="Immutable"): - publish.publish(tmp_path / "unused", releases, Path(sys.executable)) - assert (releases / f"{publish.NAME}.acceptance.json").read_bytes() == winner - assert (releases / publish.NAME).is_dir() - assert not list(releases.glob(".*.publish.lock")) - - -def test_trace_reducer_rejects_missing_and_forged_protocol(): - cfg = json.loads(Path("configs/standing/go2_fl_support_v0.json").read_text()) - i = inputs_for("full") - meta = {"inputs": i, "input_hash": canonical_hash(i)} - with pytest.raises(ValueError, match="trace"): - reduce_trace({}, meta, cfg) - data = {k: torch.zeros(7000, 13, width) for k, width in WIDTHS.items()} - meta["input_hash"] = "0" * 64 - with pytest.raises(ValueError, match="Protocol"): - reduce_trace(data, meta, cfg) - data["base"][0, 0, 0] = torch.nan - with pytest.raises(ValueError, match="trace"): - reduce_trace(data, meta, cfg) diff --git a/tests/test_standing_deviation.py b/tests/test_standing_deviation.py deleted file mode 100644 index cc4ce6f..0000000 --- a/tests/test_standing_deviation.py +++ /dev/null @@ -1,161 +0,0 @@ -"""The explicit operator waiver can never become a general relaxed threshold.""" - -import copy -import json -import sys -from pathlib import Path - -import pytest - -sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "scripts")) -from standing_deviation import apply_drift_waiver, load_waiver, sha256 - - -@pytest.fixture -def case(tmp_path): - candidate = tmp_path / "candidate" - candidate.mkdir() - (candidate / "manifest.json").write_text("{}") - (candidate / "actor.pt").write_bytes(b"fixture") - (candidate / "binding.json").write_text(json.dumps({"checkpoint_sha256": "b" * 64})) - names = [ - "stability/result.json", - "stability/metadata.json", - "stability/physics_trace.pt", - "stability/memory.json", - "stability_process.json", - "stability.log", - ] - for name in names: - path = tmp_path / name - path.parent.mkdir(exist_ok=True) - path.write_text("recorded evidence") - rows = [{"max_foot_drift_m": 0.004} for _ in range(26)] - rows[6]["max_foot_drift_m"], rows[19]["max_foot_drift_m"] = 0.030620924223339147, 0.03078258298377699 - waiver = { - "format": "skillfactory.standing-deviation.v1", - "authorization": "explicit_user_instruction", - "operator_statement": "Accept this recorded deviation only", - "approved": True, - "scope": "exact_candidate_and_trial_only", - "waived_gate": "stability.foot_drift", - "original_limit_m": 0.03, - "duration_s": 120.0, - "num_envs": 26, - "physical_samples": 60000, - "candidate_manifest_sha256": sha256(candidate / "manifest.json"), - "actor_sha256": sha256(candidate / "actor.pt"), - "checkpoint_sha256": "b" * 64, - "evidence_sha256": {p: sha256(tmp_path / p) for p in names}, - "observed_failures": [{"environment": i, "max_foot_drift_m": rows[i]["max_foot_drift_m"]} for i in (6, 19)], - } - path = tmp_path / "waiver.json" - path.write_text(json.dumps(waiver)) - gates = {"foot_drift": False, "height": True, "finite": True, "memory": True} - cfg = {"foot_drift_limit_m": 0.03} - meta = {"inputs": {"mode": "stability", "duration_s": 120.0, "count": 26}} - return tmp_path, candidate, path, waiver, gates, rows, cfg, meta - - -def test_explicit_exact_waiver_preserves_raw_failure(case): - root, candidate, path, original, gates, rows, cfg, meta = case - before = copy.deepcopy((gates, rows, cfg)) - waiver = load_waiver(path, sha256(path), root, candidate) - receipt = apply_drift_waiver(waiver, gates, rows, cfg, meta) - assert receipt["accepted_by_operator_waiver"] and receipt["raw_gate_passed"] is False - assert (gates, rows, cfg) == before and gates["foot_drift"] is False - assert load_waiver(None, None, root, candidate) is None - with pytest.raises(ValueError, match="pinned"): - load_waiver(path, None, root, candidate) - with pytest.raises(ValueError, match="pinned"): - load_waiver(path, "0" * 64, root, candidate) - - -@pytest.mark.parametrize( - "key,value", - [ - ("approved", False), - ("approved", 1), - ("waived_gate", "stability.limits"), - ("scope", "all_future_trials"), - ("original_limit_m", 0.031), - ("num_envs", 13), - ("candidate_manifest_sha256", "0" * 64), - ("actor_sha256", "0" * 64), - ("checkpoint_sha256", "0" * 64), - ], -) -def test_wrong_waiver_scope_or_binding_rejected_even_with_explicit_hash(case, key, value): - root, candidate, path, waiver, *_ = case - waiver[key] = value - path.write_text(json.dumps(waiver)) - with pytest.raises(ValueError): - load_waiver(path, sha256(path), root, candidate) - - -def test_parsed_authorization_is_from_the_single_pinned_read(case, monkeypatch): - root, candidate, path, waiver, *_ = case - original = path.read_bytes() - pin = sha256(path) - replaced = {**waiver, "approved": False} - read_bytes = Path.read_bytes - - def replace_after_read(file): - content = read_bytes(file) - if file == path: - path.write_text(json.dumps(replaced)) - return content - - monkeypatch.setattr(Path, "read_bytes", replace_after_read) - try: - consumed = load_waiver(path, pin, root, candidate) - finally: - path.write_bytes(original) - assert consumed == waiver and consumed["approved"] is True - assert read_bytes(path) == original - - -def test_replacement_and_restore_during_copy_cannot_package_unpinned_waiver(case, monkeypatch): - import publish_standing as publish - - root, _, path, waiver, *_ = case - original = path.read_bytes() - pin = sha256(path) - destination = root / "staged_waiver.json" - copy_file = publish.shutil.copyfile - - def substituted(source, target): - try: - path.write_text(json.dumps({**waiver, "approved": False})) - return copy_file(source, target) - finally: - path.write_bytes(original) - - monkeypatch.setattr(publish.shutil, "copyfile", substituted) - with pytest.raises(ValueError, match="Staged waiver"): - publish.copy_pinned_waiver(path, destination, pin) - assert sha256(path) == pin and sha256(destination) != pin - - -def test_changed_physical_evidence_rejected(case): - root, candidate, path, *_ = case - (root / "stability/physics_trace.pt").write_bytes(b"changed") - with pytest.raises(ValueError, match="evidence changed"): - load_waiver(path, sha256(path), root, candidate) - - -@pytest.mark.parametrize("mutation", ["extra_gate", "larger_drift", "additional_environment", "threshold", "duration"]) -def test_waiver_does_not_cover_any_extra_failure(case, mutation): - _, _, _, waiver, gates, rows, cfg, meta = case - if mutation == "extra_gate": - gates["memory"] = False - elif mutation == "larger_drift": - rows[19]["max_foot_drift_m"] = 0.0309 - elif mutation == "additional_environment": - rows[0]["max_foot_drift_m"] = 0.0301 - elif mutation == "threshold": - cfg["foot_drift_limit_m"] = 0.031 - else: - meta["inputs"]["duration_s"] = 119.0 - with pytest.raises(ValueError): - apply_drift_waiver(waiver, gates, rows, cfg, meta) diff --git a/tests/test_standing_force_visualizer.py b/tests/test_standing_force_visualizer.py deleted file mode 100644 index 8012bb3..0000000 --- a/tests/test_standing_force_visualizer.py +++ /dev/null @@ -1,117 +0,0 @@ -"""No-Kit geometry and read-only applied-force visualization regressions.""" - -import sys -from pathlib import Path -from types import SimpleNamespace - -import pytest -import torch - -sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "scripts")) -import standing_force_visualizer as viz - - -def rotated_z(q): - z = torch.zeros_like(q[:, :3]) - z[:, 2] = 1 - t = 2 * torch.cross(q[:, :3], z, dim=-1) - return z + q[:, 3:] * t + torch.cross(q[:, :3], t, dim=-1) - - -@pytest.mark.parametrize("dtype", [torch.float32, torch.float64]) -def test_arrow_world_tail_tip_and_xyzw_all_directions(dtype): - force = torch.tensor( - [ - [5, 0, 0], - [-5, 0, 0], - [0, 5, 0], - [0, -5, 0], - [0, 0, 10], - [0, 0, -10], - [2, -3, 4], - [0.001, -0.002, -10], - [1e-5, 0, 0], - ], - dtype=dtype, - ) - origin = torch.arange(len(force) * 3, dtype=dtype).reshape(-1, 3) / 10 - before = origin.clone(), force.clone() - g = viz.arrow_geometry(origin, force, 0.03) - n = len(force) - direction = force / force.norm(dim=-1, keepdim=True) - assert g["translations"].shape == (2 * n, 3) - assert torch.allclose(rotated_z(g["orientations"][:n]), direction, atol=2e-7) - assert torch.allclose(g["orientations"].norm(dim=-1), torch.ones(2 * n, dtype=dtype)) - assert torch.allclose(g["translations"][:n] - direction * g["scales"][:n, 2:] / 2, origin, atol=1e-6) - assert torch.allclose(g["translations"][n:] + direction * g["scales"][n:, 2:] / 2, origin + 0.03 * force, atol=1e-6) - assert g["marker_indices"].tolist() == [0] * n + [1] * n - assert torch.equal(origin, before[0]) and torch.equal(force, before[1]) - - -def test_zero_force_and_zero_batch_have_no_visible_geometry(): - for count in (0, 5): - g = viz.arrow_geometry(torch.zeros(count, 3), torch.zeros(count, 3)) - assert g["translations"].shape == (0, 3) - assert g["orientations"].shape == (0, 4) - assert all(torch.isfinite(v).all() for v in g.values()) - - -@pytest.mark.parametrize("scale", [0, -0.01, float("nan"), float("inf")]) -def test_bad_scale_rejected_before_kit_import(scale): - with pytest.raises(ValueError, match="scale"): - viz.DisturbanceForceArrows(scale) - with pytest.raises(ValueError, match="scale"): - viz.arrow_geometry(torch.zeros(1, 3), torch.ones(1, 3), scale) - - -@pytest.mark.parametrize( - "force", [torch.ones(1, 6), torch.ones(2, 3), torch.full((1, 3), float("nan")), torch.ones(1, 3).long()] -) -def test_bad_force_rejected(force): - with pytest.raises(ValueError): - viz.arrow_geometry(torch.zeros(1, 3), force) - - -def test_applied_disturbance_only_and_visibility_lifecycle(monkeypatch): - class Markers: - def __init__(self): - self.visible = True - self.frames = [] - - def set_visibility(self, value): - self.visible = value - - def visualize(self, **kwargs): - self.frames.append(kwargs) - - markers = Markers() - monkeypatch.setattr(viz, "_make_markers", lambda: markers) - arrows = viz.DisturbanceForceArrows() - assert not markers.visible - position = torch.tensor([[12.0, -3.0, 0.4], [-8.0, 4.0, 0.5]]) - # First environment is pure torque: must not be interpreted as a force. - wrench = torch.tensor([[0.0, 0.0, 0.0, 1.0, 2.0, 3.0], [0.0, 0.0, -10.0, 0.0, 0.0, 0.0]]) - state = SimpleNamespace( - root=lambda: (position,), - last_disturbance=wrench, - last_guide=torch.ones(2, 6) * 500, - mount_wrench=lambda: (_ for _ in ()).throw(AssertionError("Not sensor data")), - ) - before = position.clone(), wrench.clone(), state.last_guide.clone(), torch.get_rng_state().clone() - arrows.update(state) - assert markers.visible and len(markers.frames) == 1 - g = markers.frames[0] - assert len(g["translations"]) == 2 # one shaft + one head, not two arrows - assert torch.allclose( - g["translations"][1] + rotated_z(g["orientations"])[1] * g["scales"][1, 2] / 2, - position[1] + torch.tensor([0.0, 0.0, -0.3]), - ) - assert all(torch.equal(a, b) for a, b in zip(before, (position, wrench, state.last_guide, torch.get_rng_state()))) - wrench.zero_() - arrows.update(state) - assert not markers.visible and len(markers.frames) == 1 # no stale arrow - wrench[0, 0] = 5 - arrows.update(state) - assert markers.visible and len(markers.frames) == 2 - arrows.close() - assert not markers.visible diff --git a/tests/test_standing_ppo.py b/tests/test_standing_ppo.py deleted file mode 100644 index a604034..0000000 --- a/tests/test_standing_ppo.py +++ /dev/null @@ -1,164 +0,0 @@ -"""Pure PPO/interface tests; these fixtures are not physical standing acceptance.""" - -import copy -import json -from pathlib import Path - -import pytest -import torch -from SkillFactory.legs.standing_ppo import ( - SHAPES, - StandingActorCritic, - bootstrap_values, - canonical_hash, - features, - load_training_config, - ppo_step, - restore_checkpoint, - save_checkpoint, - selection_height_error, -) - -ROOT = Path(__file__).resolve().parents[1] -CONFIG = ROOT / "configs/training/go2_fl_loaded_stand_ppo_v1.json" - - -def observations(n=13): - result = {k: torch.zeros(n, *shape) for k, shape in SHAPES.items()} - result["joint_state"][:, :, 0] = torch.tensor([0.0, 0.8, -1.5]) - result["goal"][:] = 0.3346 - result["base_state"][:, 2] = 0.3346 - result["base_state"][:, 6] = 1 # xyzw - result["mount_wrench"][:, 2] = -29.43 - result["foot_state"][:, 8] = 52.86 - return result - - -def test_features_include_six_axis_sensor_without_input_mutation(): - obs = observations() - old = {k: v.clone() for k, v in obs.items()} - x = features(obs) - assert x.shape == (13, 45) and (x[:, 11] == 0).all() - assert torch.equal(x[:, 22:28], obs["mount_wrench"]) - assert all(torch.equal(v, old[k]) for k, v in obs.items()) - model = StandingActorCritic(hidden=32) - assert (model.scale > 0).all() - with torch.no_grad(): - a, latent, logp, value = model.act(x) - assert a.shape == (13, 3) and a.abs().max() <= 1 and torch.equal(a, latent.tanh()) - torch.testing.assert_close(model.evaluate(x, latent)[0], logp) - assert value.shape == (13,) - assert torch.equal(model.act(x, True)[0], model.act(x, True)[0]) - - -@pytest.mark.parametrize("mutation", ["missing", "dtype", "shape", "nan", "empty"]) -def test_feature_contract_rejects(mutation): - obs = observations(0 if mutation == "empty" else 2) - if mutation == "missing": - obs.pop("mount_wrench") - if mutation == "dtype": - obs["mount_wrench"] = obs["mount_wrench"].double() - if mutation == "shape": - obs["mount_wrench"] = obs["mount_wrench"][:, :3] - if mutation == "nan": - obs["mount_wrench"][0, 0] = torch.nan - with pytest.raises(ValueError): - features(obs) - - -def test_selection_is_independent_of_post_failure_autoreset_trajectory(): - failed = torch.tensor([False, True, True]) - a = selection_height_error(torch.tensor([0.01, 0.02, 1.0]), failed) - b = selection_height_error(torch.tensor([0.01, 9.0, 0.0]), failed) - assert torch.equal(a, b) - torch.testing.assert_close(a, torch.tensor([0.01, 0.1, 0.1])) - - -def test_timeout_bootstrap_uses_terminal_sensor_not_reset_and_termination_wins(): - class ValueFromSensor: - def value(self, x): - return x[:, 22].clone() - - reset = observations(3) - reset["mount_wrench"][:, 0] = torch.tensor([1.0, 2.0, 3.0]) - terminal = observations(2) - terminal["mount_wrench"][:, 0] = torch.tensor([30.0, 99.0]) - info = {"terminal_ids": torch.tensor([1, 2], dtype=torch.int32), "terminal_observation": terminal} - value = bootstrap_values( - ValueFromSensor(), features(reset), torch.tensor([False, False, True]), torch.tensor([False, True, True]), info - ) - assert value.tolist() == [1.0, 30.0, 0.0] - with pytest.raises(RuntimeError, match="pre-reset"): - bootstrap_values( - ValueFromSensor(), - features(reset), - torch.zeros(3, dtype=torch.bool), - torch.ones(3, dtype=torch.bool), - {"terminal_ids": None}, - ) - - -def rollout(model): - x = torch.randn(4, 13, 45) - with torch.no_grad(): - _, z, logp, value = model.act(x.flatten(0, 1)) - return { - "features": x, - "latent": z.reshape(4, 13, 3), - "log_prob": logp.reshape(4, 13), - "value": value.reshape(4, 13), - "next_value": torch.zeros(4, 13), - "reward": torch.randn(4, 13), - "done": torch.zeros(4, 13, dtype=torch.bool), - } - - -def test_optimizer_and_rng_exact_restore_for_same_next_batch(tmp_path): - torch.set_num_threads(1) - torch.manual_seed(123) - cfg = load_training_config(CONFIG) - cfg.update(minibatch_size=26, epochs=2, target_kl=1.0) - model = StandingActorCritic(hidden=32) - optimizer = torch.optim.Adam(model.parameters(), lr=cfg["learning_rate"], eps=1e-5) - ppo_step(model, optimizer, rollout(model), cfg) - data = rollout(model) - identity = {"config": canonical_hash(cfg)} - path = tmp_path / "checkpoint.pt" - save_checkpoint(path, model, optimizer, identity, 1, 3.0, None) - before = copy.deepcopy(model.state_dict()) - a = ppo_step(model, optimizer, data, cfg) - result_a, opt_a = copy.deepcopy(model.state_dict()), copy.deepcopy(optimizer.state_dict()) - restored = restore_checkpoint(path, model, optimizer, identity) - assert restored["update"] == 1 and restored["accepted_skill"] is False - assert all(torch.equal(model.state_dict()[k], v) for k, v in before.items()) - b = ppo_step(model, optimizer, data, cfg) - assert a == b and any(not torch.equal(v, before[k]) for k, v in result_a.items()) - assert all(torch.equal(model.state_dict()[k], v) for k, v in result_a.items()) - for key, values in opt_a["state"].items(): - for name, value in values.items(): - assert torch.equal(optimizer.state_dict()["state"][key][name], value) - with pytest.raises(ValueError, match="identity"): - restore_checkpoint(path, model, optimizer, {"config": "wrong"}) - - -@pytest.mark.parametrize( - "key,value", - [ - ("seed", 82000), - ("gamma", 2.0), - ("epochs", 0), - ("initial_std", 1.0), - ("train_amplitude_scale", [0.0, 1.0]), - ("train_time_shift_s", [-1.0, 0.0]), - ("num_envs", 12), - ("learning_rate", float("nan")), - ("horizon", True), - ], -) -def test_training_config_rejects_invalid(tmp_path, key, value): - cfg = load_training_config(CONFIG) - cfg[key] = value - path = tmp_path / "cfg.json" - path.write_text(json.dumps(cfg)) - with pytest.raises(ValueError): - load_training_config(path) diff --git a/tests/test_train_leg_skill.py b/tests/test_train_leg_skill.py deleted file mode 100644 index b706c0f..0000000 --- a/tests/test_train_leg_skill.py +++ /dev/null @@ -1,56 +0,0 @@ -"""Trainer CLI forwards visualization to workers without importing Kit.""" - -import importlib.util -import sys -from pathlib import Path - -import pytest - -ROOT = Path(__file__).resolve().parents[1] - - -@pytest.fixture -def trainer(monkeypatch): - monkeypatch.syspath_prepend(str(ROOT / "scripts")) - spec = importlib.util.spec_from_file_location("train_leg_skill", ROOT / "scripts/train_leg_skill.py") - module = importlib.util.module_from_spec(spec) - spec.loader.exec_module(module) - return module - - -@pytest.mark.parametrize("viz_args", [[], ["--viz", "kit"], ["--viz", "none"], ["--visualizer", "kit"]]) -def test_worker_visualization_forwarding(trainer, tmp_path, viz_args): - bundles = [tmp_path / "go2_fl", tmp_path / "go1_fl"] - args = trainer.parse_args( - [ - "--bundles", - *map(str, bundles), - "--num_envs", - "1", - "--horizon", - "32", - "--updates", - "1", - *viz_args, - ] - ) - for index, bundle in enumerate(args.bundles): - directory = tmp_path / "update_0000" / bundle.name - command = trainer.worker_command(args, bundle, tmp_path / "sampling_policy.pt", directory, args.seed + index) - assert command[0] == sys.executable - assert Path(command[1]).name == "leg_worker.py" - assert command[command.index("--bundle") + 1] == str(bundle.resolve()) - assert command[command.index("--output") + 1] == str(directory.resolve()) - assert command[command.index("--seed") + 1] == str(args.seed + index) - assert command[command.index("--device") + 1] == args.device - assert command[command.index("--mode") + 1] == "rollout" - if viz_args: - assert command[-2:] == ["--viz", viz_args[-1]] - else: - assert "--viz" not in command - - -def test_invalid_visualization_rejected(trainer): - with pytest.raises(SystemExit) as error: - trainer.parse_args(["--bundles", "asset", "--viz", "invalid"]) - assert error.value.code == 2