Skip to content

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

Closed

Description

@fdaviddpt

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:

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.

[AI-generated]

Activity

  1. added
    priority:high
    filed-by-loop
    lane-other
    on Sep 25, 2026
  2. added a commit that references this issue on Sep 25, 2026
  3. added a commit that references this issue on Sep 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    filed-by-looplane-otherpriority:high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions