Repository navigation
Description
A review of #1285 after it merged found these seven gaps.
-
The fixture generator,
tools/generate_release_contract_fixtures.py, replaces the US builder's_runtime_versionswith a hand-copied table,US_RUNTIME, and no test compares that table with the builder's package tuple. A contributor can add a package to that tuple intools/build_us_fiscal_refresh_release.py, and every real US build then records a differentruntimewhile--checkand the fixture tests pass. Have the generator replace_package_or_workspace_versionandplatform.python_versioninstead, so the golden takes its keys from the builder, or add a test that compares the two key lists. -
docs/release-contract.mdlists what a real US build writes beyond the golden, and its list names no block that the builder reads from a gate-evidence file. A contributor can change_qrf_tail_register_manifest_block, read that list and expect--checkto fail, yet--checkpasses. Admit a UK local-area release to build folders only once the registry names it #1603 added those blocks to the matching lists indocs/agent-guide.mdand the generator's docstring. The generator also replaces_release_gate_failures, so the golden records a passing calibration gate, and the agent guide's list omits that verdict. Add Admit a UK local-area release to build folders only once the registry names it #1603's clause to the document, and name the replaced gate in the guide. -
Without
--check, the generator runsshutil.rmtreeon whatever directory--outputnames. A contributor who passes--output packages/microcosm-data/tests/fixtureslosesuk_june_2023/andstored_input_inventories.jsonalong with the goldens.tools/generate_staging_contract_fixtures.pydeletes its--outputthe same way, so have both generators refuse a target that holds any file they do not write. -
The generator writes the UK calibration file name itself, while a real assembly takes it from
_assembleintools/assemble_uk_release_dir.py. A contributor who renames the NPZ there and updates the assembler tests that name it leaves the golden with the old name, and--checkandtest_assembled_release_has_the_release_contract_golden_shapepass. Move the name into one assembler constant that_assemble, the generator and the tests read. -
The generator's
_c1_inventorycallsline_for_release_idto writelineintoc1/inventory.json, and C1 indocs/release-contract.mdnames only the two pointer-file functions as its remaining callers. The generator also setsdefaulton both golden records, and C5 says only the switch tool sets it. Name the generator in each sentence. -
In
packages/microcosm-data/tests/engine_free/shared/test_release_contract_keying.py,test_the_same_bytes_pass_under_an_unlisted_id_and_fail_under_a_us_idgives the validator different bytes on each call, because its_retargethelper rewritesbuild_idand every artifact'srevision. Rename ittest_the_same_release_passes_under_an_unlisted_id_and_fails_under_a_us_id, and cut "with nothing else changed" from its docstring. -
The retire list in
docs/release-contract.mdstill says offormat_uk_release_idandapply_uk_release_identity: "On main none has a caller outside its own tests and theuk_runtimere-export". Put the release contract on paper and freeze C1 and C5 as golden fixtures (M0) #1285 deleted the helpers, their tests and the re-export, so update the cell.
🤖 Generated with Claude Code
Activity