Repository navigation
fix(review-pr): name how to read a file as the branch has it - #233
Merged
Merged
Conversation
Step 4 told the critic to "Read/Grep the touched files whole" and did not say how. Three sessions on three distinct days reached for a checkout, had it refused as irreversible local destruction, and each independently recovered with `git show <ref>:<path>`: - 2026-10-27 sydevs/SahajAtlasWeb#340 review-pr, which named the gap: "review-pr step 4 says read the touched files whole and does not say how, and a routine clone sits on a detached HEAD" - 2026-10-28 sydevs/WeMeditateWeb#13 revise - 2026-10-31 sydevs/WeMeditateWeb#218 review-pr, which added the reason the refusal costs nothing: "A critic must not touch the branch anyway, so no work was lost" The refusal is harmless and the recovery is one call, so this buys back a refused call and a rediscovery on each of the week's 50 review-pr dispatches, not a lost run. It lands in step 4 because step 3 already names its own git invocation and its own trap ("Never `FETCH_HEAD`"), so the shape is established and the clause needs no new paragraph. Nothing in workflow/skills or docs/why.md mentioned `git show` or `git checkout` before this. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjWJDL68qx8zBJgZjLF
An installed plugin's cache directory is named after `version` and never revisits the commit it recorded, so the skill change above reaches no installed consumer until this string moves. The routines read `main` fresh and do not need it. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjWJDL68qx8zBJgZjLF
Contributor
Author
|
Adversarial review skipped: 2 file(s), 6 changed line(s), under 🤖 sydevs dispatcher |
This was referenced Nov 1, 2026
Ardnived
approved these changes
Nov 1, 2026
This was referenced Nov 8, 2026
This was referenced Nov 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
review-prstep 4 now says how to read a file as the branch has it. It told the critic to"Read/Grep the touched files whole" and named no command, so three sessions on three distinct
days reached for a checkout, had it refused, and each rediscovered
git show <ref>:<path>.versionbump a skill change owes. No ceiling moves, soCLAUDE.md's hard split holds.a two-day platform outage (27 of 42 anomalies), a Railway token that authenticates nothing
(one of the week's two failures), and a proposal queue at 13 against a ceiling of 10. See
## 📊 Usage.Change outline
Reading a branch file without touching the branch
review-pr ## Gather context, in this order 3. The diff — git fetch origin <branch>; git diff origin/main...origin/<branch> # never FETCH_HEAD: preflight's fetch overwrites it 4. The surrounding code — Read/Grep the touched files whole + → read a file as the branch has it: git show origin/<branch>:<path> + # a checkout is refused as local destruction, and a critic must not touch the branchThe clause lands in step 4 rather than a new section because step 3 already names its own git
invocation and its own trap, so the shape is established and the rule costs two lines on a skill
read 50 times this week. Nothing in
workflow/skillsordocs/why.mdmentionedgit showorgit checkoutbefore this, so it duplicates nothing.Not
start-run, though one of the three occurrences was arevisesession.start-runis readon every dispatch, 211 times this week against
review-pr's 50, and the failure is named as a gapin this skill's own instruction. The third data point is recorded below rather than paid for
everywhere; a second non-critic occurrence is what would move it.
Grading last week
The previous reflection is #212, merged
2026-10-27T00:00Z. It shipped two behaviours.
apply.mjsguardsrequestRevieweron the author)handed-overanomalies on 3 distinct days before. Zero this week, across 36 of the 42 anomaly markers read — 31 of the 36 that post-date the merge. The condition arose constantly:Ardnivedauthored at least 16 PRs in the window and marked them ready, including every one of SahajCloud#1048–#1056. This is the mechanism observed not firing, not an absence of occasions## Evidenceopens a day whose tally listsaudit-nightlyaudit-nightly; opening exactly those five found Tuesday's entry carrying the two findings its ceiling refused. Neither day's title reported a failure or an anomaly for that reason, so the old rule would have skipped it — and tonight's close would have dropped both. They are in## 📊 UsageWhat #212 recorded without proposing, re-measured
The body-refresh failure is much smaller, and I cannot credit the fix — there was none. #212
recorded it "did not hold" at 9 sessions across 4 days. This week: 1 session, 1 day —
SahajCloud#1052 on 10-30, "rewriting an 18 KB body by hand to append history risked corrupting
it. Left as is." Nothing changed the mechanism. SahajCloud's dispatches fell 161 → 59 in the same
week, so the honest reading is that the cost tracks that repo's volume, and your two levers from
#196 stand untested.
resolve-conflicts52 → 20, and I cannot attribute it either. #212's first suggestion was thattests/PERF.md's pinned counts caused at least 24 of the 52. No PR I read touched that coupling,and SahajCloud fell 161 → 59 dispatches at the same time. So the number moved the right way for a
reason the arithmetic does not isolate. The coupling is still there.
The profile gap clears the gate for a third week — and #231 already answered it, 16 hours before
this run. Two PRs this week asked for reuse over new structure: WeMeditateWeb#201, where your
option C moved the icon-plus-truncating-label form into the
Buttonatom, and SahajAtlasWeb#318,whose ask a later session recorded as "#318's human ask was to reuse an existing component, so a
molecule would have re-opened it." #231,
merged 2026-10-31T16:34Z, ported ponytail's reuse-first ladder into
implement-ticket,address-reviewandfix-ci, and gavereview-pr's scope lens a ladder walk — attacking thetheme from the builders' side, which its own
docs/why.mdentry names as the cause: "The buildershad no reuse-first rule, so bloat was built first and then reviewed out, one critic pass per PR."
So I edited the profile nothing, for the first time with a reason that is not "the gap is
application". The first PR built after #231 landed, SahajCloud#1058, drew a ladder-shaped critic
finding that was adopted:
requireClientAccesscollapsing five copies of a root-endpoint gate.One occurrence, so it grades nothing — but a profile edit now would be a second answer to a
question that just got a better one. #231 wants a week of builder dispatches before anyone judges
it, and
implementran 34 times this week against 1 after the merge.The pinned-dependency-source wall is converging, as #212 said. 4 sessions across 2 days named
it (Wed SahajCloud#1044, Fri SahajCloud#1052/#1053 and SahajAtlasWeb#346, Sat SahajCloud#1056).
Two paid for
CI=true pnpm installand were right to: Sat SahajCloud#1056 settled whetherpayload.db.updateOne'soptionshonoursatomic: trueonly by reading@payloadcms/drizzle/dist/updateOne.js, since the field is typedRecord<string, unknown>and agreen typecheck proves nothing. Still no rule, still converging.
The Bash-guard refusal of compound commands is in its fourth fortnight. Tue SahajCloud#1038
had three pipelines refused —
finalize-prstep 3's own snippet,git diff --name-only origin/<base>...HEAD | grep -E "$PATTERN"— and Wed SahajCloud#908 hadthree more. 2 distinct days, after #212's 12 refusals on 10-20 alone. It clears the gate and I
still propose nothing, because the two candidate fixes are a skill rewrite I cannot verify from
here (the guard's behaviour is not reproducible in this session) and a new
workflow/libscriptthat would itself be invoked through a pipe. Named for you, not fixed.
One thing #212 flagged as a one-off did not recur in its shape. Tuesday's title reads
1 failedwhile the
audit-depsmarker beneath it carries"failed":2— that is bullets counted againstsessions, not a late comment arriving after the title was written. #212's actual finding, a failure
landing after
titleForran, did not repeat.📊 Usage
211 dispatches, 2 reported failures, 42 anomaly markers, 38 merged bot PRs. Volume rose
189 → 211 and anomalies rose 17 → 42, but sessions per merged bot PR fell 5.3 → 3.6 and
address-reviewper merged PR fell 1.9 → 1.6. The machinery got more efficient while the platformunder it lost two days.
⚠ 27 of the 42 anomalies fall on Thursday and Friday, and they are not a loop defect. Thursday
tallies 0 dispatches against 9 anomalies — every session fired that day produced no comment at
all. Friday managed 15 dispatches against 18 anomalies, and ran only
address-reviewandreview-pr: noimplement, norevise, no audit. The nightly audit did not run on either day,so Thursday's
audit-code/ experience rotation and Friday'scut-releasenever happened.The timeouts are not a timeout problem. 12 of the 21
timed-outmarkers arereview-prattempt 1, and every one posted nothing at all — no review, no journal comment. Attempt 2 of
the same PR, same skill, same work, finished in 9 to 36 minutes against a 45-minute lease
(SahajCloud#1051 11 min, #1052 12 min, #1053 24 min, #1054 36 min, WeMeditateWeb#216 9 min,
SahajAtlasWeb#345 9 min, #346 9 min). A lease that is too short does not produce a silent attempt
and a fast retry; a session that never started does. So
dispatch.timeoutsMinutes.review-prwasnot the binding constraint and this PR does not touch it.
What that outage did cost is
maxAttempts. 10attempts-exhaustedmarkers, andWeMeditateWeb#203 exhausted its three attempts on Wednesday, Thursday and Friday — nine
sessions spent on one PR without a single journal line explaining any of them, which its eventual
Friday run noticed itself: "Five
attempts-exhaustednotices sit on this PR since 10-29, and nojournal entry says why any died." An attempt that produces nothing is indistinguishable, to the
dispatcher, from one that tried and failed.
docs/why.md#an-infrastructure-failure-is-re-run-not-repairedalready draws that distinction for CI. Extending it to a dispatch needs a decision about how to
detect a never-ran attempt, so it is yours — and the proposal ceiling below is why it is not a
ticket.
The week's arithmetic, per day, per handler, per repo
Counted from the 7 journal titles and
<!-- tally -->blocks, which are the count. I read 36of the 42 anomaly markers and the session comments on 5 of 7 days, so every friction figure is a
floor. The 6 unread markers are on Sunday (3), Monday (1), Tuesday (1) and Wednesday (1).
Per handler, against #212's numbers.
address-review52 → 61,review-pr32 → 50,implement19 → 34,revise14 → 30,resolve-conflicts52 → 20,audit-nightly7 → 5,
fix-ci7 → 5,audit-deps1 → 4,revise-roadmap4 → 2,implement-roadmap1 → 0.Per repo. SahajAtlasWeb 9 → 71, SahajCloud 161 → 59, WeMeditateWeb 6 → 59,
claude-workflow 10 → 20, SahajAtlasWordpress 2 → 2. The work moved off SahajCloud almost
entirely.
Anomalies by kind, from the 36 read:
timed-out21 (12 of themreview-prattempt 1, all onThu–Fri),
attempts-exhausted10,orphan2,silent1,board-drag1,awaiting-drift1.Sessions per merged bot PR: 5.3 → 3.6 — 136 dispatches on PR items (
address-review61,review-pr50,resolve-conflicts20,fix-ci5) over 38 merged bot PRs bymerged_atinthe window. Merged in the window, bot-authored in brackets: SahajAtlasWeb 19 (15), SahajCloud 15
(12), WeMeditateWeb 9 (8), claude-workflow 9 (3), SahajAtlasWordpress 0.
Items with three or more sessions — a floor, from the day lines' top fives plus the entries read:
attempts-exhaustedPlanning quality.
implement-roadmapran 0 times (1 last week), so no child was filed by itand zero post-plan revisions were possible.
revise-roadmapran twice — WeMeditateWeb#160 onWed, SahajAtlasWeb#348 on Sat — against 4 last week, and a third never ran (SahajAtlasWeb#266
timed out on Fri, then exhausted its attempts). Zero escalations: no
<!-- sydevs-request {"escalated":true} -->marker appears in the 36 anomaly markers or roughly 75session comments read, against 1 last week. ⚠ That is a floor from reads, not a search — see
Notes for reviewer.
Five roadmap goals had children active: WeMeditateWeb#160, SahajAtlasWeb#348, #266, #259 (children
#345 and #346, both merged), SahajCloud#941 (child #1043 filed Wed).
What the proposal ceiling refused — carried forward, not closed
13 open
proposaltickets againstmaxOpenProposals10, so I filed nothing, and 3 of the 5audit nights that ran filed nothing. Counted by hand across the five repos: SahajCloud 5 (#1057,
#1047, #1043, #924, #789), WeMeditateWeb 6 (#208, #206, #205, #204, #183, #178), SahajAtlasWeb 1
(#281), claude-workflow 1 (#181).
Tuesday's audit held two findings, both proven at a line. They would have died with tonight's close
before #212:
audit-code· risk / test quality and coverage gaps — SahajAtlasWeb's refusalvocabulary is not pinned to SahajCloud's.
UserSubmissionErrorCode(
src/config/api/mutate.ts:234) mirrorsAntiSpamCodeby hand, and the intake also raisessubmission_data_invalid(SahajCloudprepareUserSubmission.ts:81,201), which the union omits.asRefusalcasts the wire code unchecked (mutate.ts:134). The cost is bounded —ReportIssueForm.tsx:444falls back to the generic sentence — but the docblock atReportIssueForm.tsx:40claims a new code fails the build, and it does not. Pin the union to asynced producer list, as
src/loader/literals.test.tspins the loader's copies.mutate.test.ts:373'sit.eachnames 4 of the 6 codes and is not closedagainst the union.
Monday (
audit-contracts), Wednesday (audit-sentry) and Saturday (audit-code· docs vsreality) each recorded holding nothing back: Monday found no drift, Wednesday found no candidate
clearing the bar, and Saturday's two findings were docs-only and went straight to PRs
(SahajAtlasWordpress#72, SahajAtlasWeb#347). #212's seven carried findings are still unfiled and
still blocked by the same ceiling; they live in that merged PR's body, so tonight's close does not
threaten them.
Two suggestions, each tied to a number
RAILWAY_TOKEN— it authenticates nothing, and it produced one of the week'stwo failures. 4 sessions on 2 distinct days spent calls on it. Saturday's
fix-cionSahajCloud#1056 pushed nothing because no deployment log was readable, and reported the only
⚠️ Failedbullet of the day. The token is not under-scoped, it is unusable: a bareme { id }probe answersNot AuthorizedasBearer, andProject-Access-TokenanswersProject Token not found.loop-config.json'srailway.tokenEnvVartherefore names a tokenthat opens no query, and
fix-ci's deploy mode has a step it can never complete. Either issue aworking token or drop the block, so the handler stops paying for it. (A second credential is
half-dead beside it:
SENTRY_CLAUDE_WORKFLOW_TOKENreads a project's issues fine — Wednesday'saudit-sentryran on them — but 403s on the project itself, and thesentry$commentrecordsonly the missing
org:read.)it is the single thing blocking the audits from filing: 3 of 5 nights filed nothing, and
Tuesday's two findings above have now waited a week. Five of the 13 are three weeks old or
more — SahajCloud#789 (2026-09-15, 7 weeks), and SahajCloud#924, SahajAtlasWeb#281,
WeMeditateWeb#183 and claude-workflow#181 (all 2026-10-11). Judging just those five puts the
queue under the ceiling. Three of them are the same decision twice over: ci(dispatch): grant the dispatcher pull-requests: write #281 and
WeMeditateWeb#183 are both "move the component library to Storybook", and feat(loop): the Storybook connector, and the three skills that use it #181 is the connector
that serves both.
Test results
claude plugin validate ./workflow --strict && node --test workflow/lib/*.test.mjs):✓ validation passed, 97 pass, 0 fail. Re-run from a
.claude/worktrees/worktree on thebranch tip
a9ff6cfasCLAUDE.mdrequires: ✓ both halves, 97 pass.node workflow/lib/rule-delta.mjs --base origin/main workflow/skills→ 90 → 90, nonedropped. The change only adds, so no directive fell out.
node workflow/lib/comment-lint.mjs --base origin/main→ 0 changed code files, no banned comment./security-reviewran, because the diff matchessecurityReview.triggerPatternon^workflow/skills/.+\.md$: no findings. The clause moves the critic from a working-tree-mutating command to a read-only one, and step 3 above it already interpolates the same
<branch>placeholder intogit fetchandgit diff, so the trust boundary is unchanged.ci.noCi) and no preview (previewUrlunset), so those sections are omitted.Its first real exercise is the next
review-prdispatch.Manual verification
git checkout <some-ref> -- <some-path>in a routine session and watch it be refused asirreversible local destruction, then
git show <some-ref>:<some-path>succeed.five old proposals.
Notes for reviewer
987019bisthe skill clause,
a9ff6cftheversionbump it owes. No ceiling moves.mcp__github__search_issuesis unavailable in this session, and every query inimprove-loop's## Evidenceis written as one. The harness listed only thelist_*and*_readtools and told me to usegh api search/…instead — whichdocs/why.md#a-routine-cannot-reach-the-github-apimeasured at 403 from a routine, andstart-runforbids outright. I substitutedlist_issueswithlabels:andlist_pull_requestswith
state:all, which cost 10 calls where 2 searches would have done and cannot expressreviewed-by:ortype:at all. That is why the escalation count and the roadmap set above arefloors from reads rather than searches. Other sessions this week did have
search_issues—Wednesday's WeMeditateWeb#124 run hit its token ceiling on one — so this is per-session tool
availability, not a withdrawn tool. The skill is not wrong today; it will be, unpredictably.
timed-outis the week's top anomaly by a factor of two.The hard rule asks for evidence a timeout was the binding constraint, and the evidence says the
opposite: attempt 1 posted nothing and attempt 2 finished in a quarter of the lease. Raising
review-prto 90 would have changed none of the 12.5 sessions across 3 distinct days spent 25 measured re-trim rounds fitting a comment
(SahajCloud#1041 eight, WeMeditateWeb#198 five, SahajAtlasWeb#351 six, SahajCloud#1056 six), and
one named the fix itself: "A
--fitpass likejournalEntry's would have saved them." Imeasured why it would not.
fit()cuts list items from a📄 Didsection and nothing else, sofor
comment,reviewReplyandreviewBodyit finds no heading, drops 0 lines and returns theinput unchanged — I ran
budget.mjs --fit --kind reviewBodyon 2,163 characters and got 2,163back with verdict
OVER. Teaching it to cut arbitrary prose is unsafe, because it cannot tell afinding from a sentence, which is exactly why it only cuts
Did. The other half is arithmetic:identity.commentMarkeris 124 characters and the harness's own footer 58, so 182 characters —30% of
reviewReply's 600 and 15% ofcomment's 1,200 — are mandated boilerplate the runcannot cut. Two designs, both yours: stop counting the mandated marker in
check(), or raise thetwo budgets. I built neither, because one is a ceiling change and this PR carries a skill change.
second:
git checkout -- <file>with no ref silently discarded uncommitted work twice on 10-31(SahajAtlasWeb#346, SahajCloud#1055 — "A WIP commit is the only safe form");
address-reviewhas no row for the critic proposing a ticket, settled by the join rule instead
(claude-workflow#232);
audit-codeandstart-runname different branches for a docs-only fix,chore-<angle-slug>-<scope>againstdocs-<scope>-<slug>(10-31); and a routine clone is shallowat 50 commits, so
git log -Snamed a boundary commit as an introducer untilgit fetch --unshallow(WeMeditateWeb#13, 10-28 — "start-run step 6 sets uporigin/HEAD, notdepth").
audit-depsre-fires a declined advisory weekly, on 2 distinct days now. Ardnived declinedthe only happy-dom remediation on WeMeditateWeb#196 ("We'll wait for an official patch"), and
deps.catchUpDayre-fires it becausedispatcher/deps.mjssees an open alert with a fix andnothing can record a decline. Saturday's run also could not match its own fire to any
depsrule— newest high published ~49 h before
firedAtagainstwindowHours26, on a day that is notcatchUpDay— and the stale branchclaude/fix-deps-happy-domoutlives its closed PR, so a laterrun may read it as a dead session to continue and re-file the rejected bump. Structural, so a
ticket, so blocked by the ceiling.
securityReview.triggerPatternhas a gap the loop cannot close. Wednesday'sSahajCloud#889 rewrote all four client read gates in
src/plugins/usage/and the sweep wasskipped, because the pattern covers
src/plugins/access/only. The file is.claude/workflow.json— a protected path — so no unattended run can fix it. It is a PR notethere and a line here.
open for tonight's entry.
Generated by Claude Code