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
release-audit: worktree layout defeats the #721 tracked-handoff guard, letting a repo-shipped .remember/remember.md inject as LAST HANDOFF (unranked, treated as BLOCKING) #747
filed-by-loopFiled by the maintainer loop, not by a human. Sets the author axis in dispatch_rank.lane-otherfits no other lane — kept so an unlabelled issue means untriaged, not 'nothing matched'priority:highBlocks work or has already caused damage
Found by the release-auditor during the v0.33.0..HEAD gate-3 audit (round 1, dispatch token 9780db9b5621b90d), ahead of cutting v0.34.0. Ranked here by the releaser, not by the ranking table's own rows -- treated as blocking pending a maintainer decision on which row it belongs in.
Where
scripts/session-start-hook.sh:1818, used at :1872 -- the #721 refusal of a handoff file the repository's own git index tracks.
The defect
The guard returns "untracked" (i.e. safe to use) whenever REMEMBER_ROOT != PROJECT_DIR. In a linked git worktree, PROJECT_DIR is the worktree path, but REMEMBER_DIR is redirected into the main checkout's .remember/ (#127) -- the same repository, where the file genuinely is tracked. The layout mismatch alone flips the guard's answer.
Evidence (observed, reproduced by the auditor, with a positive control)
Same fixture repo with a committed .remember/remember.md:
from the main checkout, the hook correctly printed [refused -- ... is tracked by this repository's own git index...]
Why this isn't a clean fit for an existing ranking-table row
The auditor considered and rejected forges (the text reaches the model's own session context, not a receipt this loop parses), executes (nothing is run as a program) and misreports (this is an absent guard, not a rendering seam). The releaser is treating it as blocking anyway: the harm class -- attacker-controlled repository content bypassing a purpose-built guard and reaching the assistant's context, demonstrated with an injected instruction -- is the same severity this loop treats forges/containment as having, even though the delivery mechanism differs. A maintainer should confirm whether this earns its own permanent row in the ranking table.
Suggested fix shape
Key the tracked-file check on whether REMEMBER_DIR sits inside the git work tree / common dir of MEMORY_PROJECT_DIR, rather than on REMEMBER_ROOT == PROJECT_DIR. Add a worktree case next to tests/test_handoff_fence_and_tracked_refusal_721.py.
Not already covered
trap.d/721.git-dir-symlink-bypasses-tracked-check.md covers a planted .git, a different bypass, not this layout check.
This is the finding the v0.34.0 tag is currently waiting on. Filed by the release loop from the auditor's own report; not independently re-verified beyond what's quoted above.
filed-by-loopFiled by the maintainer loop, not by a human. Sets the author axis in dispatch_rank.lane-otherfits no other lane — kept so an unlabelled issue means untriaged, not 'nothing matched'priority:highBlocks work or has already caused damage
Activity
fix(#747): anchor the #721 tracked-handoff guard on MEMORY_PROJECT_DI…
fix(#754,#755,#756,#760): one shared guard for every injected memory …