Commit 40f7214
committed
fix(ci): cover the third way the trusted copy dirties the tree
Round 2 of the review loop found the case the previous commit missed. The
tree-cleanliness fix handled untracked `.review-tooling/` and tracked
`.claude` files the copy modifies or deletes, but not files the trusted copy
lands that are NOT TRACKED at the PR head — every `.claude/**` file added
after that branch was cut. `git diff --name-only` never lists untracked
paths, so the assume-unchanged pass structurally cannot reach them.
This fires on this PR's own merge: `next` tracks none of `.claude/review.yml`
or the two agents, so every already-open PR would get three `??` entries, a
dirty tree, and a review silently downgraded to diff-only extraction. Fixed
by also excluding `/.claude/`, which hides untracked copies while still
reporting tracked modifications — verified in a scratch repo reproducing the
bug, the fix, and that the assume-unchanged pass is still required.
Also from round 2:
- Document that restoring a clean tree re-enables review-cli's
`verifyFindings` pass, dead in CI until now because it is gated on
workspaceShape == 'working-tree'. It resolves cited files from the
workspace, where `.claude` is the pre-PR copy, so findings against
`.claude/**` files a PR adds are dropped as "file not readable at HEAD".
Logged rather than silent, reachable only by reviewer-tuning PRs, and not
to be "fixed" by skipping the swap.
- Correct the `!cancelled()` rationale. It claimed a successor replaces the
👀; none does, because only a `pull_request` run can cancel this one and
such a run has an empty comment_id, so it never reaches that step. The
stale ack is the deliberate trade against a false ❌.
- Fix a wrong claim in triage.guidance: `auto-merge-dependabot` gates on the
job RESULT, not the verdict, and `post` has no non-zero exit path, so
REQUEST_CHANGES does not by itself stop a bump. Reviewers are told to say
so explicitly in the finding instead.
Verified: actionlint clean, zizmor unchanged at 8, review.yml parses.1 parent 3394e01 commit 40f7214
3 files changed
Lines changed: 40 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
170 | | - | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
171 | 175 | | |
172 | 176 | | |
173 | 177 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
544 | 544 | | |
545 | 545 | | |
546 | 546 | | |
| 547 | + | |
547 | 548 | | |
548 | 549 | | |
549 | 550 | | |
550 | 551 | | |
| 552 | + | |
| 553 | + | |
551 | 554 | | |
552 | 555 | | |
553 | 556 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
487 | 487 | | |
488 | 488 | | |
489 | 489 | | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
490 | 501 | | |
491 | 502 | | |
492 | 503 | | |
| |||
515 | 526 | | |
516 | 527 | | |
517 | 528 | | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
518 | 541 | | |
519 | 542 | | |
520 | 543 | | |
| |||
780 | 803 | | |
781 | 804 | | |
782 | 805 | | |
783 | | - | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
784 | 814 | | |
785 | 815 | | |
786 | 816 | | |
| |||
0 commit comments