Repository navigation
fix(loop): the lock re-check names its method, and the unsubscribe moves to the run's exit - #196
Conversation
`issue_read method:get_labels` refuses a PR number — "Could not resolve to an Issue with the number of N" — while `method:get` returns the same PR's labels. Step 3 and finish-run both already say so; the mid-run re-check, which is where the call is actually made, did not. 23 sessions across the 6 journal days opened in 2026-10-04..17 spent a tool call and a friction line on it, and six of them named this exact line as the gap: "finish-run already says so; start-run's lock re-check does not." 2026-10-04's reflection counted the same friction at 15 sessions across 5 days, third week running, and proposed nothing — on the model that both files already name `method:get`, so there was nothing left to add. Three more weeks say that model was wrong. The rule was in the wrong place, not missing: a run reads step 3 once on arrival and reaches for a label read an hour later, under a bullet that names no method. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_013K9HnMtdzUghZ5bBn8cAmU
The platform subscribes a routine to the PR it just opened and then wakes it, carrying the harness's drive-to-green posture — 8 sessions across 6 days of 2026-10-04..17, every one on a PR the run had already released. All of them refused the posture correctly; what diverged was the cleanup. Two unsubscribed on their own judgement, one did not and recorded that each further wake spends a turn re-reading a lock it no longer owns. The rule said only "never call `subscribe_pr_activity`", which no run was breaking. 2026-10-04's reflection read the whole thing as unfixable here, because no rule can stop the platform subscribing. True, and not the whole lever: a rule can say what to do with the subscription once it exists, and why.md already states that the subscription, not the session, is the part we control. docs/why.md's own account of the backstop was stale while that was true. It named the baton and a worklist re-derived from `assignee:sydevs-bot`, both from the polling loop; `assignment.$comment` has said no assignee carries meaning since v2. The lock is the backstop now, which is what makes the woken session's re-read sufficient — and what makes unsubscribing a cleanup rather than a safety measure. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_013K9HnMtdzUghZ5bBn8cAmU
An installed plugin's cache directory is named after `version` and never revisits the commit it recorded, so the two start-run edits above reach `/plugin install workflow@sydevs` only when this string changes. The routines read `main` fresh on every dispatch and do not need it. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_013K9HnMtdzUghZ5bBn8cAmU
sydevs-bot
left a comment
There was a problem hiding this comment.
🧐 Adversarial review
Three files, 17 added lines: two one-sentence rule edits and the version bump a skill change owes. The diff is no bigger than the problem, each commit is separately revertable, and no ceiling moves. The docs/why.md rewrite is the strongest part — it deletes a backstop that named the baton and assignee:sydevs-bot, neither of which still exists.
The weak part is placement, and it is this PR's own argument turned around. Edit 1 lands where its call is made. Edit 2 does not: it puts the unsubscribe on the wake, so every bot PR still pays the wake turn it was costed to save, while finish-run's ## Stop says "leave nothing that could wake you" and is the moment the run is leaving.
Duplication is answered: get_labels now reads in two run-loaded skills, and 23 sessions proves finish-run alone was not enough.
Findings
should-fix— the unsubscribe fires one wake too late;finish-run's## Stopis the moment (start-run/SKILL.md:58)should-fix— nothing exempts the new call from "Write nothing more" one bullet above (:56)consider— the imperative is unconditional, but an issue-only run has nopullNumber(:59)
What was checked
Read whole: start-run, finish-run, review-pr, reviewer-profile.md, CLAUDE.md, docs/why.md §never-subscribe-to-pr-activity.
Grepped both names repo-wide: finish-run/SKILL.md:64 is the only prior statement of the get_labels claim, and nothing names unsubscribe_pr_activity, so edit 2 instructs the first non-mcp__github__* call the skills ask for. It is in this session's tool roster, so it resolves.
Gate re-run from a worktree on the head: validator ✓; node --test workflow/lib/*.test.mjs 95 pass / 0 fail, rule-delta.mjs --base origin/main workflow/skills 87 → 87, none dropped. Both claims confirmed. No preview links, no CI.
🤖 Written by the sydevs autonomous loop — see what this is
Generated by Claude Code
The woken-later bullet put `unsubscribe_pr_activity` on the wake, so every
bot PR still paid the wake turn the rule was costed to save. `finish-run`'s
`## Stop` already says "Leave nothing that could wake you", and the
subscription is exactly that — unsubscribing there bounds the wakes at zero
instead of one. `docs/why.md`'s account already argued for the exit ("So
unsubscribe on the way out"), so this is the placement the story named.
`start-run`'s bullet goes back to its `main` wording, keeping the released
lock as the backstop for a wake that arrives anyway. One statement of the
rule, at the moment the run is leaving.
Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BxK63h1GNPFXc8XFccsHbg
Two rules read as forbidding it. `start-run`'s deadline bullet ends "Write nothing more", and the unlock section above is headed "the last GitHub write". Nothing marked the new call exempt, which is the judgement divergence this edit exists to remove. One clause settles it: the call drops this session's event delivery, not a label, so it is the one call that follows the unlock. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01BxK63h1GNPFXc8XFccsHbg
The imperative was unconditional, but `unsubscribe_pr_activity` takes a `pullNumber`. A `revise` or `write-ticket` run woken by an issue comment, having opened no PR, had no target — and start-run forbids improvising around a tool it cannot call. The platform subscribes the session at PR-open time, so the run that opened one is exactly the run with something to drop. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01BxK63h1GNPFXc8XFccsHbg
|
All three review findings adopted, one commit each — pushed as
Nothing rebutted or asked. The branch already held On Title and body refreshed: the old title named two 🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
Summary
issue_read method:get,because
get_labelsrefuses a PR number — 23 sessions across the 6 journal days opened in2026-10-04..17 lost a call and a friction line to it, six of them naming this exact line as the
gap.
finish-run's## Stopcarriesit, where the run is already leaving. 8 sessions across 6 days were woken on a PR they had
already released, and two of the last three unsubscribed on their own judgement while one did
not.
start-run's woken-later bullet keeps itsmainwording, and the released lock stays thebackstop.
versionbump askill change always owes; commits 4–6 adopt the adversarial review's three findings, one each.
No ceiling moves, so
CLAUDE.md's hard split holds.docs/why.md's account of the backstoprode commit 2 because it still named the baton and
assignee:sydevs-bot, from the polling loop.audit-nightlyran on 2026-10-11, so this reflection reads2026-10-04..17 and 14 journals are still open. See
## Grading last week.Change outline
A rule stated where the call is not made is a rule a run re-derives
Both edits are one sentence. Neither adds a rule; each conditions one that was already there, in
the place the run is standing when it needs it.
start-run's step 3 saysmethod:get"works for a PR too", andfinish-runsaysget_labelsrefuses one. Neither is where a handler reads a label: that is the mid-run re-check, an hour later,
under a bullet that named no method at all.
2026-10-04's reflection saw 15 sessions across 5 daysand proposed nothing, reasoning that both files already said it. Three weeks later the count is
higher, so the model — it is already written, so there is nothing to add — was wrong. Being
written somewhere is not being written where it is read.
The woken-later bullet was the same shape, and the same test moved it twice. It forbade
subscribe_pr_activity, which no run was calling, and said nothing about the subscription theplatform creates anyway. Runs filled the gap by judgement and diverged. The rule now says what
controlling it means — and it says so in
finish-run's## Stop, which already read "Leavenothing that could wake you". A rule read on the wake is read one wake too late, so
start-run'sbullet goes back to its
mainwording and the exit carries the call.docs/why.mdhad argued forthe exit all along: "So unsubscribe on the way out."
The backstop in
docs/why.mdwas a v1 mechanism#never-subscribe-to-pr-activityexplained why a post-unlock wake is safe by the baton — awoken session re-deriving its worklist from
assignee:sydevs-botand finding nothing. Neitherexists:
assignment.$commenthas said no assignee carries meaning since v2, and the worklist isthe dispatcher's. The released lock is what makes the re-read sufficient, and that is now what the
section says, with the wake count and what the wake actually carries.
What the adversarial review changed
All three findings held, one commit each — and all three were about the same two sentences:
should-fix) — the call sat on the wake, so every bot PR still paid the turn therule was costed to save. It moved to
finish-run's## Stop, which bounds the wakes at zerorather than one.
should-fix) —start-run's "Write nothing more" and the unlock section's"the last GitHub write" read as forbidding the new call, which is the judgement divergence the
edit exists to remove. One clause settles it: the call drops this session's event delivery, not
a label, so it is the one call that follows the unlock.
consider) —unsubscribe_pr_activitytakes apullNumber, and areviserunwoken by an issue comment has none. The imperative now reads "where this run opened a PR".
Grading last week
No reflection ran on 2026-10-11. The Sunday journal
(#177) tallies 32 dispatches with no
audit-nightlymarker, noclaude/reflect-2026-10-11branch or PR exists, and the 2026-10-04..10journals were never closed. Three independent signs of one missed run. So the previous reflection
is #147, merged 2026-10-05, and it is graded
here over the two weeks since.
start-runstep 6 fetches the default branch before trusting its refgit diff origin/main...HEADbefore the fetch. The rule was right and unread, not wrongreview-prdiffsorigin/main...origin/<branch>, neverFETCH_HEADFETCH_HEADafterworktreeSetupdeferred, and an assertion onlynode_modulescould settle refusedwrite-ticketnames thereviewProposalsfire, which carries notrigger.idaddress-reviewrefreshes the body on falsification, and names the mechanismhooks.jsonquotes${CLAUDE_PLUGIN_ROOT}mainand on this branch; no entry reports the four warningsreviewer-profile.mdfolds value 1's four scopes into one ladderChange 3's route, change 5's recurrence, and the profile gate
Change 3 held sideways. Its failure mode was handlers skipping the install and then asserting
what only
node_modulescould settle. No run this fortnight spent a friction line justifying askip. Instead three runs on three days settled the framework claim by fetching the dependency's own
source —
curl registry.npmjs.org/@payloadcms/ui/-/…on SahajCloud#945 andpayload-3.90.2.tgzon#962,
add_repo cloudflare/wrangler-actionplusnpm view [email protected] dist.tarballonSahajAtlasWeb#299. The refusal pushed runs to verify more cheaply rather than to skip, which is
better than the design asked for. All three recorded that nothing says they may, so each re-derived
the permission: "Cheaper than
pnpm install, but undocumented", "nothing in the skills says arun may read a pinned dependency's source, so the next run re-derives whether it may." Observed at
3 sessions / 3 days. Not proposed — a rule granting it is prose on a run-loaded skill for a
permission every run has so far worked out correctly.
Change 5 did not hold, at the same count. Before: 6 sessions / 4 days refused to retype an
8–15k-character body, 2 leaving a false one up. After: 5 sessions / 3 days, 2 leaving a false
one up. SahajCloud#912 twice on 10-15 ("~28k characters… risked corrupting it", "~30k
characters held only in context"), #965 on 10-16 ("Retyping a 12 KB body to fix one clause risks
dropping a
⚠line"), #912 and #968 on 10-17 ("an MCP body read lands in context, not on disk,so a targeted edit of a 30k-character body costs a full retype", "an
edits-style patch wouldmake step 5 cheap").
The model behind the fix was that the rule over-triggered, so narrowing the trigger to
falsification and naming the mechanism would fix it. That was wrong. The constraint is mechanical
and the narrowing does not touch it:
update_pull_requestreplaces the whole body, the body is12–30k characters, and the read lands in context rather than on disk — so every refresh is a full
retype with a real chance of dropping a
⚠line, however rarely it is triggered.So nothing is proposed for it, because every mechanism I can name is the same fix harder. There
is no patch-shaped write available through
mcp__github__*, and a disk round-trip still re-emitsthe body through a tool call. The two levers left are both yours, and both are decisions rather
than corrections:
is stale. This is what runs already do by judgement — it would only stop costing a friction line
each time. The cost is institutionalising a body that disagrees with its head, against
writing.$comment's "bodies are state, and grounding reads them instead of the thread."pr-template.mdforbids shortening the Change outline, and on a PR like#912 that section alone is most of the 30k. Moving the depth to a comment makes every refresh
cheap, and costs the reviewer a click.
One narrower question came with it, from #965:
pr-template.md's Refresh names the Change outline,Summary and Test results as what to re-derive, and that push falsified a Manual verification
clause, which the list does not cover. That one is a correction, and I have left it for you rather
than guessing which way it goes.
The profile gate opened and I did not edit the profile. On four PRs in the window —
SahajCloud#912, #957, #968, #972 — Ardnived's main ask was a shape-level redesign that the
adversarial review had passed clean: replace both endpoints and both
meditationshooks with anative join field (#968), rebuild the collection around a generic job-stage Edit view (#912, 16
threads), rethink how the view ties to a job (#972), the transcript on
meditationsversus its owncollection (#957). That is four PRs, and the week's two biggest session sinks are two of them.
The value is already in the profile, twice: value 1's "read the widest first" with its total
reading — count the bespoke pieces a diff adds against one boundary… ask what a different
approach, an upstream fix or an established library would make unnecessary — and value 2, work
with the platform, never against it, with Payload examples.
review-pr's own lens 1 says "thestrongest finding this review can produce is 'half of this PR should not exist'". Nothing I could
add would say more than those three already do, and the profile is read on every one of the week's
40
review-prdispatches. The gap is application, not content, so a fourth statement of itwould be the opinion-with-a-PR-attached this section exists to refuse. Recorded with its count
instead, for a second week to confirm or kill.
📊 Usage
405 dispatches over two weeks — 176 then 229 — 5 reported failures, 57 anomaly markers, 81
merged bot PRs. Sessions per merged PR fell from 6.8 to 4.2. One PR,
SahajCloud#968, took 17 sessions in two days,
about 13 of them
address-review.The fortnight's arithmetic, per day, per handler, per repo
Counted from the 14 journal titles and
<!-- tally -->blocks, which are the count. Frictionand failure lines are counted only on the days I opened — 10-05 (first page), 10-13, 10-14, 10-15,
10-16, 10-17 — so every friction figure below is a floor.
Thursday 10-15 is 32 of the fortnight's 47 anomalies, and it is one event. 14 dispatches fired
between 21:33Z and 02:30Z all went
timed-outat attempt 1, thenattempts-exhausted; the wavere-fired at 06:56Z and nearly all succeeded. One of them (SahajCloud#939) did its work at
21:34–22:20, then reports waking at06:57, "7h past the00:04deadline". So the sessionswere not slow — they were suspended between finishing and journalling, for about seven hours, and
the sweeper read the missing unlock as a timeout. That reads as usage being the binding constraint
for one evening, and it is the only day in two weeks that looks like it. Nothing in the loop
caused it and nothing in the loop can fix it; the recovery was automatic and correct.
Per handler.
address-review45 → 76,review-pr26 → 40,implement29 → 43,revise18 → 21,resolve-conflicts7 → 16,revise-roadmap31 → 13,fix-ci6 → 9,audit-nightly7 → 6,implement-roadmap0 → 3,audit-deps1 → 2.answeris gone, as #165intended.
Per repo. SahajCloud 59 → 149, SahajAtlasWeb 37 → 52, WeMeditateWeb 29 → 21,
claude-workflow 44 → 5, SahajAtlasWordpress 7 → 1. The loop spent its second week almost entirely
in SahajCloud. ⚠ 10-16's tally attributes 60 of its 61 dispatches to a repo; one is unaccounted,
which is the only arithmetic in these blocks that does not close.
Sessions per merged PR: 6.8 → 4.2 (26 and 55 merged bot PRs, by
merged:date). Against#147's week that is 6.2 → 4.2 on comparable numbers.
address-reviewper merged PR: 1.7 → 1.4.Volume rose 30% and cost per merged PR fell 38%.
Items with three or more sessions — a floor, from the day lines' top-five plus the entries read:
address-reviewaddress-reviewin one dayPlanning quality. One roadmap goal had children active in the window:
SahajCloud#897, whose four children
(#952–#955)
implement-roadmapfiled on 10-14. Zero escalations — no child comment carries<!-- sydevs-request {"escalated":true} -->— and zero post-plan revisions: everyreviseona child was a dispatcher recheck after a blocker merged, not a member sending it back.
What the tally cannot show is that three of the four children needed their body corrected against
a merged sibling's code, because the parent's
## Interfaceswas wrong at filing time. #953:"the stored cue is
{ content, startTimeMs, endTimeMs }…## Interfaceshad{ text, start, end }, which child 4 would have built against." #954 and #955 corrected the same contractindependently. The plan's shape was right and its interface was not, and the recheck pass is what
caught it each time — which is the mechanism working, at the price of three sessions. One goal, so
observed and not proposed; a second goal doing this is an
implement-roadmapfinding.One escalation was considered and refused, on 10-17: "Escalate (write-ticket) sends any decision
to the roadmap parent, which would have put an unticked question on #897 and stalled a pre-approved
last child over a control it does not need to render. Filed #984 instead." One occurrence.
Two suggestions, each tied to a number
sessions in two days because four
go aheadanswers arrived across four separate leases andcomposed into one data-model rewrite — a schema change, two endpoints and two hooks deleted, a
592-line suite. Three consecutive hours each landed one slice and deferred the rest, and the
fourth still ran out: "the 60-minute
address-reviewlease cannot hold a data-model rewriteplus its migration,
generate:types, a 592-line integration suite and the gate." #972 cost 7the same way. Deciding a PR's open threads together, in one pass, is the single biggest lever on
the week's spend — and it is yours, not the loop's.
proposalticketsagainst
ceilings.maxOpenProposalsof 10. Four nightly audits filed no proposal for thatreason (10-13 at 26 open, 10-14 at 20, 10-15 at 19, 10-17 at 14), each recording its best
unfiled finding in the journal instead. They include an anonymous visitor making a WordPress
host spend a 5-second blocking render per crafted route, and a production Sentry issue at 338
events and 3 users. The ceiling is working as designed: it is a queue-depth signal, and the
queue is 2× deep. Clearing ten of those twenty is worth more than any loop change in this PR.
Test results
Re-run from the checkout on
b72dd87, after the review's three findings were adopted:claude plugin validate ./workflow --strictpassed;node --test workflow/lib/*.test.mjs95 pass, 0 fail.node workflow/lib/rule-delta.mjs --base origin/main workflow/skills→ 87 → 87, nonedropped, so no directive fell out of any of the four edits — the rule moved between skills
without being lost.
/security-reviewran, because the diff matchessecurityReview.triggerPattern: nofindings. No
allowed-toolsline changes, and the one call added narrows what can reach afinished session rather than widening it.
ci.noCi), and the diff is four files: three.mdand the pluginversion.Notes for reviewer
start-runandfinish-runareboth read on every dispatch, 25–40 times a day, so the test each had to pass was not "is this
true" but "is this worth its tokens forever". A method name on the bullet that makes the call,
and one call on the step where the run is already leaving, are the smallest things that could
have changed the outcome. Each is separately revertable.
Edit 2 first put the unsubscribe on the wake — which is read one wake too late, so the rule
would have cost the very turn it was costed to save. It now sits in
finish-run's## Stop,beside "Leave nothing that could wake you", which is what
docs/why.mdsaid all along.did not hold at an unchanged count, and both remaining options are decisions about what a PR body
is for. They are laid out in the grading
<details>; neither is built. This refresh is thefailure itself, for the record: a four-line code change rewrote a 17k-character body.
CLAUDE.md's hard split holds. Two ceilings have evidenceand are stated here for a future week rather than smuggled in:
writing.budgets.notesat 8000went
OVERon 6 roadmap intakes across 4 days (worst 13,419 after three prune passes, theremainder "⚠ findings a builder cannot re-derive"), and
writing.budgets.reviewReplyat 600took three trims to fit one architectural options reply at 598.
plain commands across 4 days for naming git inside a chain or a heredoc, every run splitting them
and continuing — second fortnight, and it is not
block-wrong-bash. A routine cannot invoke aplugin skill by name (
Skill(write-ticket)→ "Unknown skill"), 3 sessions / 3 days, eachfollowing the skill's prose instead; a built-in resolves, and
Skill(security-review)ran here./code-reviewis unavailable the same way and one run substituted/simplify's four angles.mcp__github__search_issuesreturned 0 for querieslist_issuesthen answered, on 2 days,which is the duplicate search both
review-prandfile-ticketdepend on.## Summary, per your 2026-10-05 comment andpr-template.md's orderas #189 settled it. The grading and the
usage report keep their full depth in
<details>.improve-loop's carve-outleaves them open only when an unreviewed reflection PR stopped one being opened, and nothing
stopped this one — fix(loop): a routine clone's refs lie, and three skills named a path the dispatcher takes #147 merged. Today's (2026-10-18) stays open for tonight's entry.
🤖 Generated with Claude Code
https://claude.ai/code/session_013K9HnMtdzUghZ5bBn8cAmU
https://claude.ai/code/session_01BxK63h1GNPFXc8XFccsHbg