Measured by the ui#6880 fold flight (PR #6976's "Not in this PR" section) and re-confirmed at triage: .claude/hooks/guard-main-checkout.sh:57 and .claude/hooks/guard-main-checkout-bash.sh:544 emit the worktree recipe WITHOUT --no-track as their remediation text — the exact text an agent reads at the moment it is about to run the command. PR #6976 hardens the prescribed recipe in CLAUDE.md/AGENTS.md; the hazard survives in the hooks' copy, which is the higher-leverage one (delivered at the point of action).
Scope when dispatched: align both remediation strings to the hardened form; re-run the hook selftests per the hooks' own change discipline; update any selftest case pinning the old string as part of the same change. Governed surface (.claude/**) ⇒ draft PR, human merge. ⛔ The historical changeset .changeset/6208-worktree-recipe-fetch-base.md quotes the old form as a record of a past change — leave it alone (adjudicated in PR #6976).
Sibling: the objectstack twin card covers that repo's hooks, which carry the same gap plus a second one (based on unfetched local main). Refs: PR #6976 · ui#6880 · objectstack#13052.
Generated by Claude Code
Measured by the ui#6880 fold flight (PR #6976's "Not in this PR" section) and re-confirmed at triage:
.claude/hooks/guard-main-checkout.sh:57and.claude/hooks/guard-main-checkout-bash.sh:544emit the worktree recipe WITHOUT--no-trackas their remediation text — the exact text an agent reads at the moment it is about to run the command. PR #6976 hardens the prescribed recipe inCLAUDE.md/AGENTS.md; the hazard survives in the hooks' copy, which is the higher-leverage one (delivered at the point of action).Scope when dispatched: align both remediation strings to the hardened form; re-run the hook selftests per the hooks' own change discipline; update any selftest case pinning the old string as part of the same change. Governed surface (
.claude/**) ⇒ draft PR, human merge. ⛔ The historical changeset.changeset/6208-worktree-recipe-fetch-base.mdquotes the old form as a record of a past change — leave it alone (adjudicated in PR #6976).Sibling: the objectstack twin card covers that repo's hooks, which carry the same gap plus a second one (based on unfetched local
main). Refs: PR #6976 · ui#6880 · objectstack#13052.Generated by Claude Code