Skip to content

fix(start-run): a long body is written, not left stale - #304

Merged
sydevs-bot merged 6 commits into
mainfrom
claude/reflect-2026-11-22
Nov 22, 2026
Merged

sydevs-bot merged 6 commits into
mainfrom
claude/reflect-2026-11-22

Conversation

@sydevs-bot

@sydevs-bot sydevs-bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • A long body is written, not left stale. #255's own rule read as "no writer for a big body". Three runs stopped there and shipped a known-stale PR body; four more broke the rule with gh api -X PATCH.
  • The trailing attribution block is named as the server's, so a run stops spending a second write on it and stops journalling a 200 as corruption. Eight PRs, three days — and this PR's own body, which corrected the clause mid-flight.
  • No ceiling moves, so CLAUDE.md's hard split holds. The notes and comment budgets are still your decision, and both got worse — see ## 📊 Usage.
  • No profile edit. The gate opened, and every theme was already written there — see Why no profile edit.

Change outline

The rule that could not write

 start-run  ## Rules that hold in every handler
 - **Editing a body starts by reading it to disk:** …
   Neither tool takes a patch, so a body retyped from the thread ships stale or corrupted.
+  **Send the file's bytes, whatever the size.** `body` is the whole document, and the readback
+  makes a long one safe. A body left stale because it looked unwritable is the failure this rule
+  exists to stop.
+  **The trailing Claude Code attribution is the server's**, which rewrites or drops what you send
+  there and answers 200. A readback difference confined to that block is not corruption.

Five lines on a skill read on every dispatch. The measurements are behind
docs/why.md#a-body-is-read-to-disk-before-it-is-edited, beside #255's.

Three runs read "neither tool takes a patch" as "neither tool writes a long body" and left a
body they had already found false:

That is the failure #255 was written to stop, arriving through its own wording. Four more runs
took the other exit and wrote with gh api -X PATCH, which start-run bars
(sydevs/WeMeditateWeb#283 and #316, sydevs/SahajAtlasWeb#442, sydevs/SahajCloud#1231) — and that
path rewrites the trailing attribution. On sydevs/SahajCloud#1231 it appended a Claude Code
footer to a ticket body, where the template has none.

There was never a missing writer. body is a string argument carrying the whole document, so
the file's bytes go through at any size, and the readback diff the rule already demands is what
makes that checkable rather than hopeful. Reading to disk exists precisely so a long body never
passes through a retype.

The attribution block the server owns

update_pull_request and issue_write return 200 and silently drop a trailing
_Generated by [Claude Code](https://claude.ai/code)_. Eight PRs on three distinct days, several
re-sending it and losing it again: sydevs/SahajAtlasWeb#442 and #446, sydevs/SahajCloud#1240,
#1245 and #1231, #294, #295, #299 and #302, sydevs/WeMeditateWeb#290.
Everything else round-trips byte for byte — "the rest of the 9.4 KB body matches byte for byte"
(#1245) — so it is that block, not a corrupted write.

The first wording of this clause was wrong, and this PR's own body is what disproved it.
af986d3 said a PR body's 🤖 Generated with footer survives the write, on the strength of two
runs' reports. This body was created carrying exactly that footer plus a session link, and the
readback returned --- and _Generated by [Claude Code](https://claude.ai/code)_ in its place.
The block is replaced, not merely stripped. af957da says that instead, which is the one
statement both shapes share and the one a readback diff needs.

Grading last week

The previous reflection is #255, merged
2026-11-15T17:58Z. It shipped three behaviours.

#255's change Verdict
start-run gains "Editing a body starts by reading it to disk", written back through update_pull_request / issue_write Did not hold. The read half held and is now routine. The write half defeated the goal: 3 bodies left knowingly stale on 1 day (WeMeditateWeb#313, #283, #293), and 4 runs wrote with gh api -X PATCH, which the same rule bars, on 2 days. The model was right — never retype a body — and the mechanism it named was read as having no writer. This PR
budget.mjs --fit answers the marker rule it used to skip Held. The condition arose on every budgeted comment the week wrote and no run reported posting an unmarked one, against two that posted on a bare OK in #246's week. One new defect, one occurrence: --fit "cut one line out of the middle of a multi-line bullet and left its continuation lines orphaned" (sydevs/SahajCloud#1231). Named, not proposed
Profile bullet — the reviewer's unit is the file, not the diff Too early, and overtaken. The reviewer asked for exactly that pass again this week (sydevs/WeMeditateWeb#283, "Look for any opportunities to streamline and simplify this file") and the critic again raised nothing of the sort. But #293's streamliner — which walks every piece, not every added piece — merged 2026-11-21T02:15Z, after both of this week's instances. One day of evidence licenses nothing
What #255 recorded without proposing, re-measured

The reply and notes budgets did not hold, and this week they broke in a new place. #255 asked
for a decision on writing.budgets and built neither half. This week the pressure moved to
notes (8,000) and comment (1,200), and four revise-roadmap/implement-roadmap sessions on
two days spent their lease on it: sydevs/WeMeditateWeb#271 took ten cut-and-measure passes to
reach 7,991 from 13.5k
and reported "budget.mjs --kind notes reports only the total, so each
pass guesses what to cut"
; #160 came in 3,943 over and fitted "only after five cuts and
dropping its SEO and redirect surfaces section"
; #272 at 310 over, and its implement-roadmap
at 8,356 → 7,997. On comment, #300 measured 1,212/1,200 with the
harness's mandated footer
and fit only after cutting two words, and sydevs/WeMeditateWeb#311
had "budget.mjs --kind comment refused four drafts" and shipped five adopted threads "named
by file and line, unlinked"
. Both are ceiling changes and this PR carries a skill change, so
both stay yours. It is in ## 📊 Usage as a decision, third week.

The platform waking a handler for the PR it just opened: fifth occurrence, fifth distinct day,
and still correct every time.
11-15 #255 — "Nothing here called
subscribe_pr_activity; opening the PR subscribed it"
— and 11-18 sydevs/SahajAtlasWeb#429,
"Followed the skills, re-read the lock, stopped." finish-run already ends with the
unsubscribe and the skills have won all five times. Nothing proposed, again.

/security-review ignoring its scope: still live, now once. sydevs/SahajCloud#1232 —
"ignored a scoped range and loaded the whole 2.4 MB branch diff… It also failed outright the
first time, on git log origin/HEAD..., because the shell had left the repo."
One occurrence
this week against six in #255's. Below the gate.

finalize-pr step 3's compound command: a different guard, same shape, five occurrences on two
days.
Not the harness's grep refusal #255 named, but the worktree guard refusing any compound
command that names git — sydevs/SahajCloud#1230 and #1242, #288, #292,
#296, #298. Every run split the command and carried on. The cost is a tool call, not a lease.

The routine clone's node_modules, and what it costs a critic: 5 occurrences, 3 days, and the
rule still held.
sydevs/SahajCloud#1219 "skipped worktreeSetup to stay inside the lease, so
node_modules was absent and parseWebStream's size option could not be read"
; #1202, #1238,
#1246 and sydevs/WeMeditateWeb#316 all dropped or unasserted a candidate finding for the same
reason, and each said so rather than guessing — which is what start-run step 6 asks. One run
(sydevs/WeMeditateWeb#293's address-review) hit the other edge: "the first pnpm test:run
exited vitest: not found… Worth stating that a handler running any gate runs worktreeSetup
first."
Down from 11 occurrences. Named, not shipped — it is a judgement rule on the
second-most-dispatched skill, and review-pr already changed twice this week.

git checkout <paths> with no ref: a fifth occurrence, a fifth distinct day, still unshipped.
11-21 sydevs/WeMeditateWeb#307 — "git checkout <file> to undo a temporary edit that proved a
test fails without its fix also reverted that file's uncommitted real change."
#246 called it the
strongest candidate, #255 called it still unshipped, and it belongs in implement-ticket. This PR
carries a start-run change and the hard split bars pairing it with a ceiling, but nothing bars
pairing it with this. I left it out because implement-ticket is the heaviest-read skill after
start-run and the evidence is one line of prose either way. Say the word and it ships next
week.

📊 Usage

611 dispatches, 1 reported failure, 105 anomaly markers, 180 merged PRs of which 102
bot-authored.
Volume 315 → 611, the heaviest week on record again and nearly double; merged
bot PRs 56 → 102. Sessions per merged bot PR 4.4 → 4.8, and address-review per merged
bot PR 1.8 → 2.2. The machinery scaled past the point where it was the constraint.

⚠ 96 of the 105 anomaly markers are one failure on two days: sessions that never started. Not
sessions that ran out of time — sessions that began hours after they were fired, found the lease
already expired, and wrote nothing:

18 items burned all three attempts and were declared attempts-exhausted. Then, from 22:17Z
on 11-20, everything unblocked and the same work finished in minutes.

dispatch.timeoutsMinutes is untouched for the fourth week, and the runs are why. Four
separate sessions tested the obvious hypothesis and rejected it in their own journal lines:
sydevs/SahajCloud#1234 "submitted the review in 7 minutes, so the ceiling is not the cause";
sydevs/WeMeditateWeb#322 "finished in 11 minutes against the same 45-minute lease, so the cause
is not the lease length"
; sydevs/SahajAtlasWeb#452 "posted the review in 28 minutes… so the
budget is enough — the earlier sessions spent it elsewhere"
; sydevs/WeMeditateWeb#323 "needed
one diff read and five greps, so the budget was not the constraint"
. Raising a lease would have
bought nothing and hidden the cause. Two runs did argue the other way for review-pr
specifically
— #285 "the 45-minute lease looks short for the skill's four
gather steps… finished in 26 minutes only by skipping the two-directory rule-delta export until
last"
, and sydevs/SahajCloud#1232 "the deadline is 45 minutes and this diff spans 24 files
across two contract surfaces"
. Two occurrences, one day, both on the same PR class. Named as
observed.

The cost was a day of the reviewer's answers sitting unread. sydevs/WeMeditateWeb#272 —
"Attempts 1 and 2 both timed out with no body change and no journal entry, so Ardnived's answers
sat unfolded for 12 hours"
; #285 — "the reviewer's C sat unanswered for twelve hours". And a
second-order cost the resume rule cannot reach: nine sessions reported that the attempts before
them "left nothing to resume from" — no branch, no comment, no journal line — so each one
restarted the work.

The loop found this and built both halves itself, and both are waiting on you.
#299 survive the rate limit and get its own
API budget
and #300 reclaim dead sessions
without waiting on the cron
were filed and implemented on 11-21, both reviewed by the critic,
both still draft. They are the remedy for this section, which is why this PR proposes nothing
about it.

GitHub's REST limit was the second binding constraint on 11-20. Six sessions lost 4–10 minutes
each waiting out 403 API rate limit exceeded for user ID 322523691, about 45 minutes in all:
sydevs/SahajCloud#1231 ("GitHub REST core hit 0/5000 at 23:02Z"), #1232, #1238,
sydevs/SahajAtlasWeb#442, #290, sydevs/WeMeditateWeb#234. gh and MCP
failed independently of each other — MCP over GraphQL kept answering while gh 403'd, and once
the reverse. That is exactly what #299 fixes.

The week's arithmetic, per day, per handler, per repo

Counted from the 8 journal titles and <!-- tally --> blocks, which are the count. Comments
were read in full for 11-19, 11-20, 11-21 and 11-15, and in part for 11-18, 11-17 and 11-16, so
the anomaly kinds below cover 96 of the 105 markers; the 9 unopened are 11-16 (1), 11-17 (1)
and 11-18 (7). Per-item session tallies are floors from the day lines' top fives.

Sun 11-15 Mon 11-16 Tue 11-17 Wed 11-18 Thu 11-19 Fri 11-20 Sat 11-21 Sun 11-22 week
dispatches 47 68 84 148 110 150 4 0 611
failures in the title 1 0 0 0 0 0 0 0 1
anomaly markers 0 1 1 7 25 69 2 0 105
open proposals that night — 9 10 11 8 — 10 — 10 now

Per handler, against #255's numbers. address-review 101 → 220, review-pr 56 → 145,
resolve-conflicts 68 → 90, implement 33 → 61, fix-ci 21 → 31, revise-roadmap
17 → 24, revise 9 → 20, implement-roadmap 2 → 9, audit-nightly 7 → 8,
audit-deps 1 → 3.

Per repo. WeMeditateWeb 5 → 275, SahajCloud 245 → 191, SahajAtlasWeb 58 → 67,
claude-workflow 4 → 60, SahajAtlasWordpress 2 → 15. The repo figures sum to 608 of 611;
the missing three are cron audits whose marker names no repo. WeMeditateWeb went from the
quietest repo to 45% of the loop in one week.

Merged in the window, by merged_at 2026-11-15..11-22, bot-authored in brackets: SahajCloud
54 (21), WeMeditateWeb 59 (49), SahajAtlasWeb 37 (25), claude-workflow 21 (4),
SahajAtlasWordpress 9 (3). 180 (102).

Anomalies by kind, over the 96 markers read: timed-out and the attempts-exhausted that
follows a third one account for all but two — 94 across 11-19 and 11-20. The other two are
ci-capped (sydevs/WeMeditateWeb#321, a contract check no session in that repo can clear) and
orphan (#300's draft). Zero board-drag, zero pending-overdue, zero
429 markers
— the rate limiting of 11-20 shows up in session journals, not in a marker kind.

Items with three or more sessions — floors:

Critic recall — 0 of 6, on a 2-PR sample. The reviewer touched 104 PRs in the window, and
reading each one's reviews and review comments is two calls apiece, so this is a sample, not a
census: sydevs/SahajAtlasWeb#442 and sydevs/WeMeditateWeb#283, both heavily reviewed on 11-19 and
11-20. Their 6 substantive inline comments (excluding 3 bare option picks and one request for
a recommendation inside the bot's own question thread) all sit on files the adversarial review had
read, and the critic raised none of them:

What the reviewer wrote Already in the profile as
"What is the purpose of this file? It feels redundant or like a shortcut around doing the actual work" (#442, src/types/zod-shape.ts) Value 1, the layer reading
"Is this file really needed? This seems like a lot of unnecessary abstraction / indirection" (#283, Header/bar.ts) Value 1, the layer reading
"Surely Zod or Typescript already have a built-in mechanism to handle this instead of defining one of our own?" (#442) Value 2, built-in → library → own code
"The name SahajCloudFields seems too specific… shouldn't the name reflect it's actual function?" (#442) The 2026-09-20 naming refinement
"Look for any opportunities to streamline and simplify this file." (#283, MobileMenu.tsx) The 2026-11-15 file-unit refinement
"Reverse this decision. Remove the test and restore the shared variables." (#283) Nothing — see below

Planning quality. implement-roadmap ran 9 times, against 2; revise-roadmap 24,
against 17, across the 21 roadmap tickets updated in the window. Escalations: 0 —
<!-- sydevs-request {"escalated":true} --> appears nowhere, and a free-text search for
"escalated" across the five repos returns three issues, none carrying the marker.
Post-plan revisions: 0 — the window's revise dispatches landed on sydevs/SahajCloud#983,
#1204, #1231 and #1242 and #263 and #288, none of them an
implement-roadmap child. Second week at zero for both.

One roadmap friction, one occurrence: sydevs/WeMeditateWeb#272's implement-roadmap reported
"The dispatcher labelled both children proposal on open, though a planned goal's implement
approves every child."
Named, not proposed.

A repo-level blocker the loop logged 8 times and routed nowhere, which is worth knowing even
though it is not the loop's to fix: WeMeditateWeb's .claude/workflow.json sets previewUrl: null, so preview-host.mjs --on-host answers OFF_HOST for every preview link in that repo
— including the two Cloudflare branch hosts the integration comment itself names. Seven
review-pr sessions on 11-20 (#300, #307, #311, #312, #316, #318, #319) each hit it, each
correctly declined to post a false finding, and each noted that the fix is a protected-path
write no run can make
. One of them adds that previewUrl.pattern carries {pr} only, while
Cloudflare names a preview by branch slug, so no value in that file would fix it either.

Why no profile edit

The gate opened — the same themes on two PRs, two distinct days, and the critic passed clean on
all six. And every one of them is already written in reviewer-profile.md, as the table above
shows: values 1 and 2, the 2026-09-20 naming refinement, and the 2026-11-15 file-unit refinement
recurring the week it shipped. improve-loop is explicit about this case — "Where the profile
already holds that value, the gap is in review-pr's steps: propose a skill change, not more
profile text"
— and that skill change already landed this week:
#293's streamliner, merged 2026-11-21T02:15Z,
walks every piece of a changed file rather than every piece the diff adds. Both of these reviews
predate it. Adding a fifth restatement of value 1 to a profile the review already reads in full
would be the checklist the profile's own rule forbids. Next Sunday measures #293 instead.

One thing is not in the profile, and it is one occurrence so it stays here. On
sydevs/WeMeditateWeb#283 the reviewer asked whether Header/bar.ts was needed, the bot deleted it
and replaced the coupling it bought with a test — and the reviewer reversed that:
"Reverse this decision. Remove the test and restore the shared variables." The bot adopted where
it should have argued, on the reviewer's own most-repeated value. If that recurs, the profile owes
a line saying a question is an invitation to answer, not an instruction to delete.

What the proposal ceiling refused — carried forward, not closed

10 open proposal tickets against maxOpenProposals 10, so two of the six audit nights
filed nothing
and each named the ceiling. Better than #255's week (11 open, 5 of 6 nights
blocked) only because three cleared. Closing the journals drops the held findings, so they are
here:

Two suggestions, each tied to a number

  1. Judge the five oldest proposals, or raise maxOpenProposals — fourth week of asking, and
    they have still not been touched.
    The queue sits at exactly 10 of 10 tonight, and the
    same five are ten weeks and six weeks old: fix(access): the WeMeditate App's hardcoded API key is rejected SahajCloud#789 (2026-09-15),
    docs(components): write do-and-don't guidance for both web libraries SahajCloud#924, feat(build): move the component library from Ladle to Storybook SahajAtlasWeb#281, feat(stories): rebuild the component library in Storybook, drop Ladle WeMeditateWeb#183 and
    feat(loop): the Storybook connector, and the three skills that use it #181 (all 2026-10-11). Three of them are one decision three times 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. Judging the five puts the queue at 5, and the two blocked audit
    nights start filing again. This is the third consecutive week this suggestion is unchanged,
    which is itself the finding.
  2. Settle the notes and comment budgets. Four sessions spent their lease on arithmetic this
    week, and one posted over.
    writing.budgets.notes is 8,000: A live-meditation page counts down to the next session, and any page can show the class directory WeMeditateWeb#271 took
    ten cut-and-measure passes from 13.5k, docs(loop): seven dangling why.md anchors, and a base-merge carve-out #160 came in 3,943 over and dropped a whole
    section of evidence to fit, fix(dispatcher): the owner arms their own PR; the bot never does #272 at 310 over. writing.budgets.comment is 1,200, of which
    identity.commentMarker (124) plus the harness's mandated _Generated by [Claude Code]_
    footer (~58) are ~182 nobody can cut; fix(dispatcher): reclaim dead sessions without waiting on the cron #300 measured 1,212/1,200
    and fit only by cutting two words, and feat(pages): editor-picked discover actions close the home, featured and knowledge pages, with a share row on the rest WeMeditateWeb#311 shipped five adopted threads
    unlinked because "a thread link costs about 90 characters, so seven leave 530 for prose".
    The two designs are still fix(loop): a search falls back to gh, and the PR-body tool gets its real name #246's: stop counting mandated boilerplate in check(), or
    raise notes and comment. I built neither — each is a ceiling change, and this PR
    carries a skill change. One more datum for whichever you pick: budget.mjs --fit "cut one
    line out of the middle of a multi-line bullet and left its continuation lines orphaned"

    (fix(access): lock legacyData and systemMeta to admins SahajCloud#1231), so the fitter is not a safe substitute for a bigger budget.

Test results

  • Lean gate: ✓ claude plugin validate ./workflow --strict and node --test workflow/lib/*.test.mjs — 156 tests, 156 pass, re-run at 3a1eaa0.
  • Also green from a .claude/worktrees/ worktree, as implement-ticket runs it: validate ✓, 156/156.
  • rule-delta.mjs --base origin/main workflow/skills: directives 93 → 93, none disappeared. The two new clauses are not Never/Always imperatives, so flat is the correct reading, not a no-op.
  • .claude-plugin/marketplace.json parses alongside plugin.json at 5.11.2.
  • Security review: reasoned by hand, not fired. The diff matches securityReview.triggerPattern (^workflow/skills/.+\.md$), so the step applies; it is five lines of prose and four docs/why.md paragraphs, and the fourth commit touches docs/why.md alone, outside the pattern. The clauses add no tool, no credential path and no command, and the body being written is one the run read from its own item — the injection constraint lives on the search bullet above, which builds a query, and is untouched. /security-review resolves its own diff as the whole branch (6 sessions on 4 days in fix(loop): a body is read to disk before it is edited, and the fitter checks the marker #255's week, once more this week), so firing it here would have scoped nothing.

Manual verification

  1. Each commit reverts alone. 0624810 is the write clause with its docs/why.md paragraph and the 5.11.0 bump; af986d3 the attribution clause at 5.11.1; af957da the correction at 5.11.2; 3a1eaa0 cuts four lines of docs/why.md for the critic, and moves no version. The gate was run against each.
  2. This PR's own body is the test, and it ran. The body was written to a file and sent whole: 29,754 characters, 345 lines. The readback differs on three things and no more — two sentences this author reworded while typing the call, and the trailing attribution block, replaced by the server. Every other line is byte-identical. That is the first clause proven at 30 KB, and the second clause corrected by measurement rather than by report.
  3. The refresh above went through the same path, read to disk from gh api … --jq .body, edited in the file, written back whole. A reviewer can check it the same way.

Notes for reviewer

  • Two behaviours, a third commit correcting the second, and a fourth answering the critic, because improve-loop allows at most one PR a week. No ceiling moves, so CLAUDE.md's hard split holds. The first three touch the same bullet of the same run-loaded skill, which is why they are one PR. I left af986d3 and its correction as two commits rather than rewriting a pushed branch under the critic.
  • Five lines added to start-run, read 25–40 times a day. I checked the rule is stated nowhere else: pr-template.md's ## Refresh says "Start from the body you read" and finalize-pr step 7 names the tool, and neither says the string takes a whole document. The story went to docs/why.md.
  • Why not also raise dispatch.timeoutsMinutes.review-pr. Two runs argued for it on 11-20 and four argued against it the same day, with elapsed times measured on the same leases. The hard rule asks for evidence that the lease was the binding constraint, and 96 of 105 markers say the constraint was session start. fix(dispatcher): survive the rate limit and get its own API budget #299 and fix(dispatcher): reclaim dead sessions without waiting on the cron #300 are the remedy and are already written. If review-pr keeps running long once those land, the figure is measurable next Sunday against a week where sessions actually started.
  • What I did not do, deliberately: no profile edit (above), no ceiling move (yours), and no fifth re-proposal of git checkout <paths> — it is ready to ship next week on one word.
  • One claim in this PR was wrong when it was written, and the measurement is in the diff. The attribution clause was built from eight runs' reports; the run that shipped it tested it and found the behaviour broader. Worth knowing when you weigh the rest: everything else here is counted or quoted, not inferred.
  • Where this report is a sample rather than a census, said once more because it matters: critic recall rests on 2 PRs of 104, and the anomaly-kind breakdown on 96 markers of 105. The dispatch, failure, anomaly, handler, repo and merged-PR counts are counts.
Detail

Why the "no writer" reading is wrong, checked rather than assumed. The MCP write's body parameter is a plain string with no length bound in its schema, for a PR and for an issue alike. The three runs that declined it were not refused by the tool — none of them called it. Two of them named the risk precisely ("an 18 KB body must be retyped"), which is the risk the file on disk removes: the bytes sent are the file's, not a retype, and the readback diff proves it. #255's own address-review had already run that round trip for real — "readback byte-identical at 31,259 characters" — a week before three runs concluded it was impossible.

Why the attribution clause is worth two lines on a run-loaded skill. Without it the readback diff, which the rule exists to make trustworthy, reports a difference on every single body write. Three runs journalled it as corruption, two spent a second write re-sending the line and lost it again, and one re-sent it under a different form to find out which survives — then this run sent that other form and found it replaced too. Naming the block, rather than one spelling of it, is what lets a run read the rest of the diff as signal.

The 11-20 storm, in one shape. The dispatcher's sweeper re-fires a lease it believes expired. When sessions are not starting, every re-fire expires the same way, so maxAttempts 3 is consumed by a condition no attempt could have changed, and attempts-exhausted then marks the item as beyond the loop's reach. 18 items reached that state in one day. #300 reclaims a dead session without waiting on the cron and #299 gives the dispatcher its own API budget; between them they are the fix, and neither is mine to merge.

The body rule's "Neither tool takes a patch" was read as "neither tool
writes a long body". Three runs in the week to 11-21 stopped there and
shipped a known-stale body on a PR the next run grounds from — the exact
failure #255 wrote the rule to stop: WeMeditateWeb#313 (18 KB), #283
(16 KB) and #293 (16 KB). Four more reached for `gh api -X PATCH`, which
start-run bars and which rewrites the trailing attribution.

There was no missing writer. `body` is a string carrying the whole
document, so the file's bytes go through at any size, and the readback
diff the rule already requires is what makes that checkable.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjXJaBfhW6QXRMwCfFE
update_pull_request and issue_write silently drop a trailing
`_Generated by [Claude Code](https://claude.ai/code)_` line and answer
200. Eight PRs on three distinct days hit it in the week to 11-21, some
re-sending the line and losing it again, and three journalled it as a
corrupted write. The rest of the body round-trips byte for byte, and a
PR body's `🤖 Generated with` footer survives, so naming the one dropped
line is enough to make the readback diff readable.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjXJaBfhW6QXRMwCfFE
@sydevs-bot

sydevs-bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 no session running

recent dispatches
  • 18:31Z resolve-conflicts · attempt 1 · session · done
  • 18:31Z resolve-conflicts · attempt 1 · session
  • 18:26Z resolve-conflicts · attempt 1 · session · done
  • 18:26Z resolve-conflicts · attempt 1 · session
  • 08:28Z address-review · attempt 1 · session · done

Written by the sydevs dispatcher. Sessions never edit this comment.

@sydevs-bot sydevs-bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 22, 2026
@sydevs-bot sydevs-bot moved this from Pending to Working in SYDevelopers Technical Roadmap Nov 22, 2026
The previous commit's clause said a PR body's `🤖 Generated with` footer
survives the write. This PR's own body disproved it: sent through
create_pull_request with that footer and a session link, it came back as
`---` plus `_Generated by [Claude Code](https://claude.ai/code)_`. The
block is replaced, not merely stripped, so the rule now names the
behaviour both shapes share.

The same round trip is the measurement the first commit asked for: 29,754
characters over 345 lines, byte-identical apart from two sentences this
author reworded in flight.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjXJaBfhW6QXRMwCfFE

@sydevs-bot sydevs-bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧐 Adversarial review

The change is the size of the failure it names: two clauses on one start-run bullet, each earned by counted occurrences, with no ceiling moved. The attribution clause is verified rather than reported — af986d3 claimed the 🤖 Generated with form survives, this PR's own create disproved it, and af957da corrected the clause, the body and docs/why.md together. A PR about stale bodies that refreshed its own mid-branch is the rule working.

One finding, and it is prose. docs/why.md:628 closes the new section by restating what line 601 and the clause it is explaining already say. Separately, the security bullet in ## Test results reasons from "two docs/why.md paragraphs" where the diff adds four — the conclusion still holds, the figure does not.

Findings

  • should-fix — docs/why.md:628. The closing paragraph restates line 601 and start-run:79. Only its first sentence is new.

What was checked

  • Diff from the checkout at head af957da: 3 files, +36/−1, three commits. The record names af986d3, one behind, so CI has not reported on it. The body was refreshed at 08:22Z, after my grounding read; this review is of that refresh, whose commit and version claims match the branch.
  • Gate re-run at af957da from a scratch worktree: validate ✓, 156/156 lib tests, rule-delta --base origin/main 93 → 93, none disappeared.
  • new-pieces.mjs: NONE — no streamliner, no ladder piece.
  • Read start-run/SKILL.md and the why.md section whole, with documentation.md and the profile. Grepped workflow/ and docs/: the rule is stated nowhere else, and budget.test.mjs:242 already calls _Generated by [Claude Code]_ the harness footer.
  • No ## Preview block, no fixture, no open question threads. Unchecked: the cross-repo citations behind both clauses, access being scoped to claude-workflow.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

Comment thread docs/why.md Resolved
@sydevs-bot sydevs-bot added bot:working Lock: a cloud session is running on this item. Removed when it ends. and removed bot:working Lock: a cloud session is running on this item. Removed when it ends. labels Nov 22, 2026
The section's closing paragraph said three things the reader had already
been told: that `body` carries the whole document (the start-run clause
this paragraph explains), and that the readback diff makes the round trip
checkable (line 601, and the paragraph directly above it). Only the
refutation was new.

Kept the two sentences that are not written elsewhere — there was never a
missing writer, and reading the file to disk is what removes the retype
the three runs feared. docs/documentation.md gives a fact one home.

Raised by the adversarial review on this PR.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjX3ZJYLD9q7eoaprzL
@sydevs-bot

Copy link
Copy Markdown
Contributor Author

One thread, adopted. docs/why.md:628 — the closing paragraph is cut to the two sentences the section does not already hold. 3a1eaa0.

Body refreshed, read to disk and written back whole. The security bullet said two docs/why.md paragraphs where the diff adds four, which the review body flagged; the commit list and the gate line now name 3a1eaa0. Readback byte-identical at 31,296 bytes, and this time the server appended no attribution block at all.

Gate at 3a1eaa0: validate ✓, 156/156, green from the checkout and from a .claude/worktrees/ worktree. rule-delta --base origin/main 93 → 93. The commit touches docs/why.md alone, outside securityReview.triggerPattern. No merge was needed — the branch is level with main.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

@sydevs-bot sydevs-bot removed the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 22, 2026
@sydevs-bot
sydevs-bot marked this pull request as ready for review November 22, 2026 08:36
@sydevs-bot
sydevs-bot requested a review from Ardnived November 22, 2026 08:36
@sydevs-bot
sydevs-bot enabled auto-merge November 22, 2026 08:36
@sydevs-bot sydevs-bot moved this from Working to Awaiting in SYDevelopers Technical Roadmap Nov 22, 2026
@sydevs-bot
sydevs-bot added this pull request to the merge queue Nov 22, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Nov 22, 2026
@sydevs-bot sydevs-bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 22, 2026
@sydevs-bot sydevs-bot moved this from Awaiting to Working in SYDevelopers Technical Roadmap Nov 22, 2026
One conflict: `workflow/.claude-plugin/plugin.json`. Both sides claimed
`5.11.0` — this branch bumped `5.10.0` to `5.11.0` on its first commit,
and #302 took the same number on main meanwhile.

Kept this branch's `5.11.2`. The requirement is that the merged tip's
version differs from the version an install cached, and `5.11.2` is
strictly above main's `5.11.0` and has never appeared on main, so #302's
change and this one do not share a cache directory. Reverting to
`5.11.0` would have made them share it.

docs/why.md auto-merged with both sides' sections intact: #302's
"A moved contract path silences every guard" and this branch's additions
to "A body is read to disk before it is edited".

Lean gate from this worktree: `claude plugin validate ./workflow
--strict` passed, `node --test workflow/lib/*.test.mjs` 161/161 (156
before, #302 added `contract-paths.test.mjs`). `node --test
dispatcher/test/*.test.mjs` 399/399.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjWSas5xXMtfHHv46Wf
@sydevs-bot

Copy link
Copy Markdown
Contributor Author

Merged main (e36b97f) in at c5cea76. One conflict: workflow/.claude-plugin/plugin.json.

Both sides claimed 5.11.0 — this branch bumped there on its first commit, and #302 took the same number on main meanwhile. I kept this branch's 5.11.2. It is strictly above main's 5.11.0 and has never appeared on main, so #302's tree and this one do not share an install cache directory. Taking main's side would have made them share it.

docs/why.md auto-merged with both sections intact. The net diff against main is unchanged: 3 files, +34 −1.

Gate re-run from the worktree at c5cea76: validate ✓, workflow/lib 161/161 — 156 before, since #302 added contract-paths.test.mjs — and dispatcher/test 399/399.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

@sydevs-bot sydevs-bot added bot:working Lock: a cloud session is running on this item. Removed when it ends. and removed bot:working Lock: a cloud session is running on this item. Removed when it ends. labels Nov 22, 2026
main reached 5.11.1 through #295 while this branch was at 5.11.2, so
`workflow/.claude-plugin/plugin.json` was the one conflicted file and
the version line the one conflicted hunk.

Kept 5.11.2. It is strictly above main's 5.11.1, so merging this PR
still moves the string an installed plugin's cache is keyed by
(docs/why.md#an-installed-plugin-does-not-track-main). Taking main's
5.11.1 would have left this branch's skill change arriving under a
version already published, which is the one thing that keeps a cached
plugin on the old prose.

Nothing else overlapped: this branch touches docs/why.md and
workflow/skills/start-run/SKILL.md, and #295 touches dispatcher/,
loop-config.json and workflow/lib/merge-gate.mjs.

Lean gate green after the merge: `claude plugin validate ./workflow
--strict` passes and `node --test workflow/lib/*.test.mjs` is 161/161,
run from this .claude/worktrees worktree. The dispatcher suite that
owns the merged code is 399/399, and both JSON manifests parse.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjYqS6P2jFN36nkXuEY
@sydevs-bot

Copy link
Copy Markdown
Contributor Author

🧶 Merged main (673b716) in. One conflicted file, one hunk.

workflow/.claude-plugin/plugin.json — kept this branch's 5.11.2 over main's 5.11.1. Both sides bumped: main reached 5.11.1 through #295 while this branch was already at 5.11.2. 5.11.2 is strictly above it, so merging this PR still moves the string an installed plugin's cache is keyed by. Taking main's 5.11.1 would have shipped this skill change under a version already published.

Nothing else overlapped. #295 touches dispatcher/, loop-config.json and workflow/lib/merge-gate.mjs; this branch touches docs/why.md and start-run/SKILL.md.

Gate green after the merge, from the worktree: validate ✓, workflow/lib 161/161 — the body's 156 predates main's five new tests — and dispatcher/ 399/399. Pushed 7598cd0.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

@sydevs-bot sydevs-bot removed the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 22, 2026
@sydevs-bot
sydevs-bot added this pull request to the merge queue Nov 22, 2026
@sydevs-bot sydevs-bot moved this from Working to Pending in SYDevelopers Technical Roadmap Nov 22, 2026
Merged via the queue into main with commit 41fadd8 Nov 22, 2026
15 checks passed
@sydevs-bot
sydevs-bot deleted the claude/reflect-2026-11-22 branch November 22, 2026 18:36
@sydevs-bot sydevs-bot moved this from Pending to Done in SYDevelopers Technical Roadmap Nov 22, 2026
sydevs-bot pushed a commit that referenced this pull request Nov 22, 2026
The merge of main at d0399bb took main's 5.11.2, which #304 had already
set there, so base and head arrived at the same string for the second
time on this branch. This branch still ships `workflow/lib/payload.mjs`,
which an install reads, and the cache directory is named after
`version`, so the `test` check's version step would fail on "Plugin
files changed but version is still 5.11.2" and the change would never
reach an installed plugin.

5.11.3, not 5.12.0: the one shipped change is still the guard on a
handler name.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjXfYGHJxHG2zEUyMkk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants