Repository navigation
A core built locally above the build key verifies as the key's core - #5216
Conversation
… key's core (card 98c0ae23) build.rs stamps the HEAD a core was built at; `reboot --prebuilt` expected the checkout's build key (CI publishes at key commits). A local build at a docs- or baseline-only commit above the key is the same core (same build inputs) but refused as DEPLOY MISMATCH: #5210 on the M5, 10-19, stamped 29a474d against key 9f97bc7. One owner decides the expectation: prebuilt_artifact::prebuilt_expectation, beside build_key_log_args. It accepts the stamp only when the stamp's own build key IS the checkout's key; a stamp with different build inputs still refuses. checkout_build_key (was continuum.rs::prebuilt_checkout_build_key) moved with it; continuum.rs is 25 lines shorter. Test: a_local_build_above_the_key_is_the_keys_core_but_a_source_change_is_not (CI artifact at the key accepted; local build at a docs-only HEAD accepted; a newer source change refused). Mutation: with the stamp-key branch disabled the test fails; restored, it passes. The continuum-cli-lifecycle tests run in 8.5 s. The 5 prebuilt bin tests: 4 pass; the fifth (prebuilt_reboot_options_are_explicit_and_strict) fails identically on canary on macOS (card de9ae95f), unrelated. Hygiene: lines past 1000 156,825 -> 156,800 and spawn sites 123 -> 122 fell because this code LEFT continuum-core/src for continuum-cli-lifecycle, which canary's hygiene does not audit yet (#5194 adds split-crate auditing; cli-lifecycle should join it). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
|
Codex root scoped source review at a6eb417: PASS on the requested claim. prebuilt_expectation admits a non-key stamp only when resolving that stamp succeeds with the build-key provenance and its key matches the checkout key. A different build-input key retains the checkout expectation, so from_report still rejects that stamp. Both loading and preparation use the extracted owner; the existing local-build/source-change fixture covers the distinction. I have not executed this head locally or verified deployment. The hygiene drop is scope movement, not deletion of the moved logic, as disclosed. Small cleanup in this PR: remove the now-orphaned three-line build-key doc comment above the repository-metadata detector. Also prefer a typed key-resolution outcome over source.starts_with("build key") in this same owner: human diagnostic wording currently participates in the acceptance decision. |
…g (Codex on #5216) checkout_build_key returns KeyResolution { BuildKey | NoKey | Unreadable }; prebuilt_expectation admits a non-key stamp only on KeyResolution::BuildKey whose key matches the checkout's. source() renders the receipt and is never consulted for a decision. The orphaned three-line build-key doc above has_git_checkout is gone. Tests: continuum-cli-lifecycle prebuilt 12/12; the bin's prebuilt tests 4/5, the fifth is the macOS-only failure canary already has (card de9ae95f); source-hygiene 39/39. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
|
Codex delta PASS at 39b9d7f for the two requested changes: prebuilt_expectation now accepts a differing stamp only through KeyResolution::BuildKey with a matching key; source() is receipt-only. NoKey/Unreadable do not establish that equivalence. The orphaned build-key doc was removed from the metadata detector. Inspected both changed files against a6eb417; no local execution or deployment claim. This does not waive the reported fifth bin-prebuilt test failure or exact-head CI. |
… on the merge, canary's engine pin Lines past 1000: 155,781 (cargo test -p source-hygiene on the merged tree). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
|
Codex rebase delta review at 978efd5: source PASS retained. Compared both production files (continuum-cli-lifecycle/src/prebuilt_artifact.rs and continuum-core/src/bin/continuum.rs) against previously reviewed39b9d7ff9: no changes. Verified gitlink and LLAMA_CPP_PIN both29eaf83aab1e146910e9ead7ad51507ee8396820. Fresh CI remains the integration gate; this is not deployment verification or a waiver of the separate macOS staging issue. |
Card 98c0ae23.
build.rsstamps HEAD;reboot --prebuiltexpected the checkout's build key, so a local build at a docs- or baseline-only commit above the key (the same core) was refused as DEPLOY MISMATCH. Hit deploying #5210 on the M5 (stamped 29a474d, key 9f97bc7).prebuilt_artifact::prebuilt_expectation, besidebuild_key_log_args. It accepts the stamp only when the stamp's own build key is the checkout's key; different build inputs still refuse.checkout_build_keymoved with it, andcontinuum.rsis 25 lines shorter.a_local_build_above_the_key_is_the_keys_core_but_a_source_change_is_not. It fails with the fix disabled and passes restored. The crate's tests run in 8.5 s.continuum-core/srcforcontinuum-cli-lifecycle, which canary's hygiene does not yet audit. continuum-base: the floor crate leaves the 687k-line monolith; split crates stay under every gate #5194 adds split-crate auditing, and cli-lifecycle should join it.🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo