You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix: 60-git-reconcile.sh conflict-abort restore can still destroy a concurrent write before the rebase --quit snapshot window (residual after #966) #969
filed-by-loopFiled by the maintainer loop, not by a human. Sets the author axis in dispatch_rank.lane-storagewhere memory lives — external storage mode, git backup/restore, data files, memory dirpriority:highBlocks work or has already caused damage
Found by: gate 3 release audit (round 2, range v0.42.0..HEAD, HEAD 1556c3b), composition lens over #932/#939/#946/#952/#966.
What's wrong:hooks.d/after_save/60-git-reconcile.sh's _grc_report_conflict (about lines
583-665) still discards another slug's concurrent write, even after #966's pre/post-rebase --quit
hash-snapshot fix. The window #966 closed only covers the time around the git rebase --quit call
itself. The window it left open -- from the start of git rebase --no-autostash through the conflict
firing, up to the pre-quit snapshot -- is not covered: a foreign write landing there is already
present when the "before" hash is taken, compares as unchanged against the "after" hash, and is
discarded by checkout HEAD -- anyway. The hook still logs "aborted, the tree is unchanged".
This is the fifth consecutive destroys-class finding on this hook across two releases
(#932, #939, #946, #952's regression, #966), each fix opening the next window.
Reproduced (observed, macOS, scratch repro, round-2 auditor): a store-local post-checkout hook
injects a foreign write into other/now.md while rebase-merge state exists (a deterministic
stand-in for the real TOCTOU timing). Against HEAD (1556c3b): the foreign write is discarded, log
reads "aborted, the tree is unchanged". Against v0.42.0's copy of the hook: the same foreign write
survives. Confirms this is reachable on the current tree, not only a theoretical residual.
Rank:destroys -- blocking a release unconditionally per the ranking table in skills/manager/phases/findings.md.
Scheduler ruling for this release (recorded for traceability): because this is a further blocking
finding on this same hook in gate 3 round 2, the v0.42.1 release does not dispatch another fix for
this window. Instead the hook is being hard-disabled for v0.42.1 (exits 0 immediately, unconditionally,
with a one-line notice naming this issue) while this issue tracks the real fix, to be hardened later on
its own branch.
What would settle it: a test that injects the foreign write during the rebase itself (not only
during --quit), which the current test suite (test_write_in_the_toctou_window_inside_the_restore_set_survives_the_abort)
does not do.
Filed by the release loop from a gate 3 audit finding, not co-decided with the maintainer in session.
filed-by-loopFiled by the maintainer loop, not by a human. Sets the author axis in dispatch_rank.lane-storagewhere memory lives — external storage mode, git backup/restore, data files, memory dirpriority:highBlocks work or has already caused damage
Activity
fix(#969): hard-disable 60-git-reconcile.sh pending the real TOCTOU f…
trap(#969): log three gate-3 round-3 misreports findings (#971)
fix(#976): stop the reconcile kill switch's two deferred side effects (…
curate: promote 1 rule, decline 10 fragments (5 new issues, 1 stale) (#…
fix(#972,#975,#982): anchor v1 cache substitution, harden reconcile t…
Fix #1041: keep the hard-disabled reconcile hook out of the directory…