Skip to content

Remove a scratch file an audit agent left in the tree - #35

Merged
wshallwshall merged 1 commit into
mainfrom
claude/remove-scratch
Aug 11, 2026
Merged

Remove a scratch file an audit agent left in the tree#35
wshallwshall merged 1 commit into
mainfrom
claude/remove-scratch

Conversation

@wshallwshall

Copy link
Copy Markdown
Owner

Main is red. This fixes it.

scratch_edited.md is a copy of docs/ASVS-ASSESSMENT.md that an audit subagent wrote while probing
whether a checker would catch a planted defect. It was instructed to delete it and did not. My
git add -A in #34 swept it into the commit.

test_internal_links_resolve caught it instantly: the copy sits at the repository root, so its
relative link to standards/OVERVIEW.md#the-files resolves against the wrong directory.

The gate did its job and I did not

Both gate runs on #34 went red and said exactly this. I merged anywaygh pr checks printed
the failures and I read the MERGED line beneath them instead of the two fail lines above it.
Nothing was forced; I just didn't look.

Two things follow, and neither is "be more careful":

  • git add -A after an agent has run in the worktree stages whatever it left behind. The staging
    step has to name paths, or the tree has to be verified clean first.
  • A merge should read the check conclusions, not the merge result. The merge result is the one
    line that comes back green whatever the checks said.

146 tests pass with the file removed.

🤖 Generated with Claude Code

`scratch_edited.md` is a copy of docs/ASVS-ASSESSMENT.md that an audit
subagent wrote while probing whether a checker would catch a planted defect.
It was told to delete it and did not. My `git add -A` in #34 swept it into the
commit, and `test_internal_links_resolve` immediately caught it: the copy sits
at the repository root, so its relative link to `standards/OVERVIEW.md#the-files`
resolves against the wrong directory and points at nothing.

THE GATE DID ITS JOB AND I DID NOT. Both gate runs on #34 went red and said
exactly this, and I merged anyway -- `gh pr checks` printed the failures and I
read the `MERGED` line under them rather than the two `fail` lines above it.
Nothing about the merge was forced; I simply did not look. The checks were
advisory to me at the moment they were least advisory.

Two things follow, and neither is "be more careful". `git add -A` after an
agent has been running in the worktree stages whatever it left behind, so the
staging step has to be specific about paths or the tree has to be verified
clean first. And a merge should read the check conclusions rather than the
merge result, because the merge result is the one line that is green whatever
the checks said.

Main is red until this lands. 146 tests pass with it removed.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@wshallwshall
wshallwshall merged commit 456432d into main Aug 11, 2026
3 checks passed
@wshallwshall
wshallwshall deleted the claude/remove-scratch branch August 11, 2026 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant