Preserve unchanged release submodule inputs

This commit is contained in:
Meta Vens 2026-08-10 21:57:48 +01:00
commit 0ef0c0b8db
4 changed files with 59 additions and 28 deletions

View file

@ -1658,11 +1658,13 @@ partition this cache and never becomes derived build authority.
The source cache is identified by canonical repository identity. It owns one
persistent detached worktree so unchanged tracked files retain stable paths and
timestamps across commits. Before every build it exclusively locks that source,
force-checks out the exact clean commit, cleans the main tree and recursive
submodules, and verifies repository ownership, HEAD, status, and submodule
identity with long-path-aware Git commands. It remains locked until the release
has copied and witnessed every binary. No concurrent packager can mutate source
or graph outputs during that interval.
pre-cleans cached submodules, checks out the exact parent commit, updates only
changed submodule pins without forcing unchanged worktrees, re-cleans the main
tree and recursive submodules, and verifies repository ownership, HEAD, status,
and submodule identity with long-path-aware Git commands. It remains locked
until the release has copied and witnessed every binary. No concurrent packager
can mutate source or graph outputs during that interval. Submodule mtimes and
Cargo fingerprints are cache mechanics, never release identity.
The release witness remains the only packaged-output authority: exact commit,
runtime, target, toolchain, sorted binary roles, lengths, and byte digests.

View file

@ -43,8 +43,11 @@ A copied c006 restart is clean and actual c006 remains untouched. Exact payload
inspection corrected an initial false alarm: the retained grant is unconsumed,
nonterminal, and exactly matches Heartbeat's running schedule/action. The brake
is coherently holding pending authority; there is no orphan repair to perform.
Remove the release source guard's unconditional submodule force-checkout and
measure the next exact package before waking c006. Yggdrasil never builds.
The release source guard now pre-cleans cached submodules, updates only changed
pins without `--force`, then re-cleans and verifies the exact tree. Its twenty
focused tests pass. Commit and package this cut, compare it with the 11m04s
`a4756857` baseline, and require an identical warm replay before waking c006.
Yggdrasil never builds.
## Exact packaged outer-worker retention accepted — 2026-08-10