Update AGENTS.md git -C trap row after hardening #2

Merged
fragmented merged 1 commit from docs-git-c-trap-fix into mainline 2026-07-27 08:32:18 +00:00
Owner

Commit 69fef62 closed the git -C bypass in the git hooks but left the
AGENTS.md "stale terms and doc traps" table still stating that
git -C <path> <verb> slips past them. That is now false and could
mislead an agent into thinking the guard can be evaded with -C.

Rewrite the row's current-reality cell: the hooks normalize git's
global options (-C, -c, --git-dir, --work-tree), so the -C
form is matched like the bare command. This is the docs-with-behavior
follow-up the hardening commit should have carried.

Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com

Commit 69fef62 closed the git -C bypass in the git hooks but left the AGENTS.md "stale terms and doc traps" table still stating that `git -C <path> <verb>` slips past them. That is now false and could mislead an agent into thinking the guard can be evaded with `-C`. Rewrite the row's current-reality cell: the hooks normalize git's global options (`-C`, `-c`, `--git-dir`, `--work-tree`), so the `-C` form is matched like the bare command. This is the docs-with-behavior follow-up the hardening commit should have carried. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Commit 69fef62 closed the git -C bypass in the git hooks but left the
AGENTS.md "stale terms and doc traps" table still stating that
`git -C <path> <verb>` slips past them. That is now false and could
mislead an agent into thinking the guard can be evaded with `-C`.

Rewrite the row's current-reality cell: the hooks normalize git's
global options (`-C`, `-c`, `--git-dir`, `--work-tree`), so the `-C`
form is matched like the bare command. This is the docs-with-behavior
follow-up the hardening commit should have carried.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
fragmented merged commit eca9de8195 into mainline 2026-07-27 08:32:18 +00:00
fragmented deleted branch docs-git-c-trap-fix 2026-07-27 08:32:19 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
agentic/fragmented-marketplace!2
No description provided.