Skip to content

fix(loop): a grounding read goes stale inside one lease - #333

Open
sydevs-bot wants to merge 10 commits into
mainfrom
claude/reflect-2026-11-29
Open

sydevs-bot wants to merge 10 commits into
mainfrom
claude/reflect-2026-11-29

Conversation

@sydevs-bot

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

Copy link
Copy Markdown
Contributor

Summary

  • The lock re-check re-grounds the run. 13 sessions over 4 days held an item that moved under them. The read already returns a fresh body, so only the comparison was missing. feat(map): one control column for find-me, settings and the credits SahajAtlasWeb#482 shipped two wrong writes for want of it.
  • Read the clock, never estimate it. 3 sessions on 3 days guessed elapsed time and were each ~35 minutes pessimistic. One submitted a review early and lost five findings — including the streamliner output last week's reflection named as the remedy for the critic's recall gap.
  • A repo that publishes no preview has no off-host. preview-host.mjs answers a third word. 7 review-pr sessions this week, and 7 the week before, each spent lease time declining to post a finding the rule manufactured.
  • One profile refinement, gated on two PRs with the critic clean on both.
  • No ceiling moves, so CLAUDE.md's hard split holds. The writing.budgets decision is still yours and is now in its third week — see ## 📊 Usage.
  • ⚠ One known gap I did not close, and it is a judgement call: NO_PREVIEW turns the off-host comparison off in the two repos most likely to receive an outside PR. See Notes for reviewer.

Change outline

Four behaviours, one commit each

Commit Files What changes
cb42ec0 + a05afd2 + 19344d3 start-run/SKILL.md, docs/why.md The lock re-check re-grounds too: the body from that read, the branch from a git fetch
c5fbe97 + a05afd2 start-run/SKILL.md, docs/why.md date -u, or a wake event's current-time, before any judgement of elapsed time
bfeaf8d + 4bc728e + 9228d12 preview-host.mjs, preview-host.test.mjs, review-pr/SKILL.md, docs/why.md A third verdict, NO_PREVIEW, exported and tested
4478a3e + 907f0db reviewer-profile.md, review-pr/SKILL.md, docs/why.md One dated refinement, and the review's three prose cuts
d0af255 plugin.json 5.15.0 → 5.16.0

Every row also edits docs/why.md, which carries the evidence each rule rests on.

Why one PR. The first two are one rule family — a fact read at preflight is stale — and they edit adjacent bullets in the same list, so they read as one change to a reviewer and revert independently. improve-loop requires the profile edit to ride this PR and forbids a second. The last three commits are the self-review's own fixes, kept separate so what the review caught is visible rather than folded away.

The two run-loaded clauses

 start-run  ## Rules that hold in every handler
   - **Where the run holds a lock, re-check it with `issue_read method:get` …**
+  - **Re-ground on that read.** A body changed since preflight? Rebuild against it before you write.
+    That read carries no head, so `git fetch` the branch and compare that too.
+    (why: docs/why.md#a-grounding-read-goes-stale-inside-one-lease)
+  - **Read the clock, never estimate it.** Take `date -u`, or a wake event's `current-time`, before
+    any judgement about elapsed time. (why: docs/why.md#read-the-clock-never-estimate-it)

Five lines on the skill every dispatch reads. +71 words in start-run, and ste-lint is flat at 21 violations, 9 hard — the added prose introduces none. The evidence sits behind the two anchors, not here.

The re-grounding clause costs no extra API call, and each half now says which read answers it. The adjacent bullet already reads the whole item before every write and push; get_labels refuses a PR number, so the read returns the body whether a run uses it or not. That read carries no head.sha, though — verified against this PR — so the branch half is a git fetch, which is no API call either. fix-ci's Reads keeps the API head comparison it already owns. Six sessions this week were saved by the body half, having compared it on their own initiative:

sydevs/SahajAtlasWeb#482 is the one that did not compare, and it is the week's only shipped defect: a question thread claiming HoverLabel "opens leftward only" after the author's own 4bd4fd9 had changed that, holding the merge, plus a body refresh that deleted the line describing that commit. Its own run journalled the correction: "Neither is repaired: the lock came off before this surfaced."

Two sessions said in plain terms that the rule was missing — sydevs/SahajAtlasWeb#469: "address-review nowhere says to re-read the head before the gate"; #304's own review: "A grounding read taken while the author still holds the branch can go stale inside one lease."

The third verdict

preview-host.mjs gained hostVerdict(), and the CLI block now only prints:

export function hostVerdict(input, target) {
  if (!text(input?.previewUrl?.pattern) && !text(input?.fixture?.link)) return 'NO_PREVIEW'
  const plan = previewPlan(input)
  return onHost(plan.host, target) || onHost(plan.fixtureHost, target) ? 'ON_HOST' : 'OFF_HOST'
}

Against the real configs: SahajAtlasWeb → NO_PREVIEW, WeMeditateWeb → NO_PREVIEW, SahajCloud → OFF_HOST for a foreign link and ON_HOST for its own. The check still fires where a host is declared.

It reads whether the repo declares a preview, never whether both hosts resolved. A declared-but-unusable pattern (http:, a non-digit PR) also plans two nulls and must stay OFF_HOST, or a broken config would wave past every link it cannot check. hostVerdict's ⚠ owns that, and the test pins it.

Grading last week

#304 made exactly two changes, both to start-run's body-edit rule, and no ceiling or profile change.

Change Verdict
"Send the file's bytes, whatever the size." Did not hold.
"The trailing Claude Code attribution is the server's." Held.

The attribution clause held, and it is boring. No session this week journalled a 200 as corruption, and none spent a second write on that block. #304's own week had eight PRs over three days doing both.

The body clause did not hold, and the rate halved rather than the shape changing. #304 was built against "three bodies shipped stale, four runs used the gh PATCH it bars". This week each half recurred once:

The model behind #304 was wrong. It read the failure as missing authorisation — runs believed no writer existed for a long body — and added permission. Both survivors show the blocker is mechanics: the tool takes a string parameter, so "send the file's bytes" reads as impossible, and a run that gets that far reaches for the one tool that does take a file and is barred. #304's own address-review session said so before it merged: "The 30 KB body could not be piped to the write… the bytes came back through Read --allow_large and were retyped into update_pull_request — the retype the rule exists to avoid. Readback was byte-identical at 31,296 bytes, so the rule held, but on a retype. No MCP write takes a file path."

So I am proposing nothing for it. improve-loop is explicit that a verdict of did not hold licenses a different model or nothing, never the same fix harder — and the different model needs a mechanism the loop does not have, since no MCP write tool takes a file and a script here may not fetch. Saying "pass the file's contents as the parameter" would be the same fix in more words. The honest next step is a tool, not a sentence, and I am not going to spend a skill paragraph pretending otherwise. 22 sessions this week refreshed a body and read it back identical, so the clause works for most of them; it is the ≥10 KB case that still defeats runs, twice in seven days.

One follow-on worth grading, because #304 deferred to it. #304 proposed nothing about the week's 96 never-started sessions, on the grounds that #299 and #300 were the remedy and were waiting on you. Both merged, 11-22 and 11-23. The storm recurred anyway: 116 markers on 11-26 and 11-27. The shape did change, though — #300 reclaims promptly now, and the cost moved from "sessions that never started" to "three attempts spent into a platform outage, then attempts-exhausted". That is the next thing to look at and I have not proposed it, because one storm under the new mechanism is one occurrence.

📊 Usage

313 dispatches, 1 reported failure, 126 anomaly markers, 193 merged PRs of which 26 bot-authored. Volume 611 → 313, halved. Merged bot PRs 102 → 26. The humans shipped most of the week's 193 themselves — SahajAtlasWeb merged 83 PRs and only 7 were the bot's.

Sessions per merged bot PR 4.8 → 10.9, and address-review per merged bot PR 2.2 → 3.7. Read that as the denominator moving, not the machinery degrading: the week's work concentrated on long-lived PRs that did not merge inside it (sydevs/SahajAtlasWeb#466 ≥12 sessions and still open, sydevs/SahajCloud#1243 ≥9 and still open, sydevs/SahajAtlasWeb#318 ≥6).

⚠ 116 of the 126 markers are one failure on two days. From 11-26 16:55Z to 11-27 ~12:51Z nothing started: sessions fired, wrote nothing, timed out. Thursday journalled 3 dispatches against 65 markers. The dispatcher itself went quiet too — journal issue #327's first comment is at 12:51:16Z, carrying a batch for sessions fired between 03:21 and 05:21Z.

The cost was 16 items declared attempts-exhausted: sydevs/SahajAtlasWeb#502, #508, #509, #510, #527, #529, #531, #538, #542, #466, #318, #501, #520 and sydevs/SahajCloud#1285, #1243, #1244, #1261. dispatch.maxAttempts is 3 with no backoff, so every item burned all three into the same outage and was then abandoned. Named as observed — one occurrence of this shape, and the remedy would be a ceiling or a dispatcher change, neither of which may ride this PR.

Friday's audit never ran. cut-release is Friday's slot and audit-nightly appears nowhere in #327's tally; the journal issue was created at 12:51Z, nearly five hours after the 08:00Z cron. The outage above is the likely cause.

audit-deps ran 0 times, against 3 last week — and that is correct. Dependabot opened no PR in the window, so the daily check had nothing to fire on. No finding.

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

Counted from the 7 journal titles and <!-- tally --> blocks, which are the count. Comments read in full for 11-23 through 11-28, and in part for 11-22 (60 of 82, which covers its single reported failure and every session-entry kind).

Sun 11-22 Mon 11-23 Tue 11-24 Wed 11-25 Thu 11-26 Fri 11-27 Sat 11-28 week
dispatches 81 34 46 123 3 18 8 313
failures in the title 1 0 0 0 0 0 0 1
anomaly markers 1 1 1 5 65 53 0 126
open proposals that night — 12 12 14 15 — 14 15 now

Per handler, against #304's numbers. address-review 220 → 97, review-pr 145 → 77, resolve-conflicts 90 → 75, fix-ci 31 → 35, implement 61 → 14, audit-nightly 8 → 7, revise 20 → 4, revise-roadmap 24 → 2, implement-roadmap 9 → 2, audit-deps 3 → 0.

Per repo. SahajAtlasWeb 67 → 116, SahajCloud 191 → 84, WeMeditateWeb 275 → 59, claude-workflow 60 → 42, SahajAtlasWordpress 15 → 12. SahajAtlasWeb and WeMeditateWeb swapped places: last week's 45%-of-the-loop repo is this week's third.

Merged in the window, by merged_at 2026-11-22..11-29, bot-authored in brackets: SahajAtlasWeb 83 (7), SahajCloud 50 (9), WeMeditateWeb 36 (2), claude-workflow 19 (6), SahajAtlasWordpress 5 (2). 193 (26).

Anomalies by kind. timed-out and the attempts-exhausted that follows a third one: 116, all on 11-26 and 11-27 bar one. ci-capped: 6, every one of them sydevs/WeMeditateWeb#321, on five distinct days — the contract check .github/actions/contract-check/check.sh compares a touched file in full rather than by hunk, which #304 measured a week ago and nothing has fixed. board-drag: 3 (sydevs/SahajCloud#1244, sydevs/SahajAtlasWeb#466, #490, each reverted). handed-over: 1. Zero 429, zero paused, zero pending-overdue.

Items with three or more sessions — floors from the day lines' top fives:

Critic recall — 0 of 12, on a 2-PR sample. The reviewer touched 21 bot PRs (104 last week), and reading each one's reviews and review comments is two calls apiece, so this is a sample: sydevs/SahajCloud#1243 and sydevs/SahajCloud#1254, the two most heavily reviewed. Their 12 substantive inline comments (excluding one bare B option pick and one answer inside the bot's own question thread) all sit on files the adversarial review had read, and the critic raised none of them:

Theme Count Already in the profile as
Fold the helper in — "put it inline", "over engineered", "simplify this file" 5 Value 1, the layer reading; the 2026-11-15 file-unit refinement
State the constraint where the editor reads it 4 Nothing — this PR's refinement
Derive it, do not store it (webUrl/appUrl instead of two columns) 1 Value 4, adjacent but about types
Do not hard-code what a configuration now owns 1 Value 1, the total
"Ensure that this is performant and streamlined", by name 1 Value 1

One number sharpens the 5 in row 1: the critic did raise that exact value on sydevs/SahajCloud#1243, on publicChannels.ts — "Does this need its own file? Twelve lines of code with one caller." It then applied it to one file where the reviewer applied it to five. That is a coverage gap, not a value gap, which is where #293's streamliner was supposed to help — and on that very PR the streamliner's findings were thrown away by the clock defect this PR fixes. Next Sunday measures #293 with that defect gone.

Planning quality. implement-roadmap ran 2 times, against 9; revise-roadmap 2, against 24, across 5 roadmap tickets updated in the window. Escalations: 0 — <!-- sydevs-request {"escalated":true} --> appears nowhere a search reaches, and the one non-journal free-text hit is sydevs/WeMeditateWeb#160's own body. Post-plan revisions: 0 — the window's four revise dispatches landed on sydevs/SahajAtlasWeb#473, #491 and #268, none of them an implement-roadmap child. Third week at zero for both, now on a fifth of the roadmap volume.

What the proposal ceiling refused — carried forward, not closed

15 open proposal tickets against maxOpenProposals 10, up from 10. Five of the six audit nights filed no proposal and each named the ceiling. Closing the journals drops the held findings, so they are here:

One finding I filed over the ceiling rather than hold, under run-audit's incidental-finding row: sydevs/SahajAtlasWeb#557. 22 sessions over five days could not launch a browser — @playwright/test is pinned exact at 1.65.1, which wants Chromium 1255, and the image ships 1243. Each burned a build and then derived its own workaround: a symlink, PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH, PLAYWRIGHT_BROWSERS_PATH, a patched copy of the gate script, and one playwright install that pulled ~325 MB. Verified from disk: playwright.config.ts:39 honours the variable and nothing sets it; scripts/check-a11y.mjs:687 calls chromium.launch({ channel: 'chromium' }) with no executablePath at all, so the hatch docs/testing.md offers does not reach the a11y gate. This is a defect 22 runs tripped over, not a candidate an audit went looking for, and run-audit says to file those every time. It is outside SahajAtlasWeb's prAllowlistGlobs, so it could not be a ticketless PR.

Two suggestions, each tied to a number

  1. Judge the five oldest proposals, or raise maxOpenProposals — fifth consecutive week, and the queue has now gone the wrong way. 10 → 15 open, against a ceiling of 10, and five of six audit nights filed nothing. The same five are eleven and seven weeks old and unchanged for a fourth week: 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 10, and the audit nights start filing again. That this suggestion is unchanged for the fifth week is itself the finding, and the ten held findings above are what it costs.

  2. Settle the writing.budgets question — third week of asking, and this week it cost nine sessions their lease time. Measured rounds of cut-and-remeasure: 12 (feat(nav): Back says where it goes; a place with one class opens it SahajAtlasWeb#476), 9 (#483), 8 (#555, SahajCloud#1244), 7 (WeMeditateWeb#337, claude-workflow#322), 6 (claude-workflow#316), 5 (#479) — across Sun, Tue, Wed and Sat. The arithmetic is now exact: of comment's 1,200 characters, identity.commentMarker is 124, the harness footer ~58, a relay marker ~140, and an inline thread permalink 70–90 — so a six-thread PR spends ~900 of 1,200 on things nobody can cut (fix(cleanup): read ownership from creation stamps, not transcripts #324: "Six thread links, the marker and the footer leave about 440 characters of prose"). reviewBody is 2,000 whatever the finding count: #476 had 13 threads and "the Findings list alone took half of it". 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 comment, reviewBody and reviewReply. I built neither: both are ceiling changes and this PR carries skill changes, which CLAUDE.md forbids combining. One more datum for whichever you pick: budget.mjs --fit "cut the 📄 Did heading: DROPPABLE is /^-\s/, so an indented 1. line is uncuttable" (11-25 audit).

Test results

  • Lean gate ✓ from the checkout: claude plugin validate ./workflow --strict passed, node --test workflow/lib/*.test.mjs 195 tests, 195 pass.
  • Lean gate ✓ from a .claude/worktrees/ worktree, as implement-ticket runs it: validate passed, 195/195. (196 → 195 is the folded helper's own test, re-expressed through hostVerdict.)
  • rule-delta.mjs --base origin/main workflow/skills: directives 94 → 94, none disappeared. The added clauses are not Never/Always imperatives, so flat is the correct reading rather than a no-op.
  • ste-lint.py on both changed skills: 21 violations, 9 hard, on main and on this branch alike. The new prose adds none.
  • Both new assertions were watched failing. Removing the NO_PREVIEW branch from hostVerdict reds the verdict takes NO_PREVIEW ahead of the host comparison — 13 of 14 — and restoring it greens 14 of 14. After 9228d12 folded the helper in, flipping that line's && to || reds the same test at 12 of 13, and restoring it greens 13 of 13.

Manual verification

preview-host.mjs --on-host against each repo's real .claude/workflow.json:

Repo Link Answer
SahajAtlasWeb its own /gb/south-east/london/1390 NO_PREVIEW
WeMeditateWeb https://example.invalid/x NO_PREVIEW
SahajCloud https://evil.example/x OFF_HOST
SahajCloud https://pr-1243.cloud-preview.sydevelopers.com/admin/collections/pages ON_HOST

The plan JSON with no --on-host is unchanged.

Notes for reviewer

⚠ The one thing I want your judgement on. NO_PREVIEW is narrower than its name, and the self-review caught it: SahajAtlasWeb and WeMeditateWeb do publish a Cloudflare preview per branch. They simply cannot spell a previewUrl.pattern, because that key models a host built from the PR number and a branch alias is discovered rather than constructed. So this PR turns the off-host comparison off in the two repos an outside PR is most likely to target.

My reading is that it bought nothing there to begin with — with no declared host every link answered OFF_HOST, legitimate ones included, and a check that fires on 100% of inputs carries no information for the reviewer reading it. The rule now also forbids reporting the links as safe. The fix that would actually restore the guard is a host list independent of whether a link can be built (previewUrl.hosts, an origin list), which only an attended run can add because .claude/workflow.json is a protected path. I have recorded that beside the why.md section rather than leaving it for a reader to find. If you would rather keep the noisy check until that lands, revert bfeaf8d, 4bc728e and 9228d12 and the other three behaviours stand alone.

Reviews run and triaged. /simplify's four angles and /code-review at review.selfReview.level (medium) produced 14 findings between them. Six were adopted in a05afd2, 4bc728e and 907f0db, and the first of those was a genuine defect in this branch's own first commit — "a relay marker names the head you fetched" contradicted the marker spec 50 lines below, where sha is the head the session pushed, and dispatcher/decide.mjs compares the two, so a run following my sentence would have skipped relayPlan and landed nothing.

Two findings I rejected, with the evidence:

  • date -u is outside start-run's allowed-tools: Bash(node:*), so the call will prompt and stall the lease. Not confirmed: three sessions this week ran date -u and reported its output (feat(pages): place pages in each service by its configuration SahajCloud#1243, refactor(mocks): name the fake SahajCloud for what it is SahajAtlasWeb#467, #538). allowed-tools on start-run does not gate the handler that invokes it, and the routine's own allowlist does. The broader point — that start-run's frontmatter is narrower than what every handler actually runs — is real, is pre-existing, and is not this PR's to fix.
  • A mistyped config key reads as NO_PREVIEW, which the ⚠ says must stay OFF_HOST. A missing or misspelled key is indistinguishable from absence to any reader, including previewHost, so "declares nothing" is the honest answer. The ⚠ now says which case is which: a pattern that exists and fails stays OFF_HOST.

Security review: the trigger fired on workflow/lib/ and the three skill .md files, and ran twice — inline on the first eight commits, and as a sub-task over the whole branch after 9228d12. No findings either time. preview-host.mjs imports ./config.mjs and ./payload.mjs and nothing else — no fetch, child_process, fs, eval or dynamic import(), which preview-host.test.mjs already asserts. The attacker-controlled input is the ## Preview URL, which reaches only new URL() in a try/catch and is never opened. The config that decides the verdict is read from the default branch, never the branch under review (review-pr/SKILL.md:100-102), so a PR author cannot reach it. The sub-task also checked the fold for a verdict change across 1,800 crossed inputs and found none, which is what !(a || b) ≡ !a && !b predicts.

Docs sync: nothing stale. OFF_HOST and preview-host.mjs are named only in review-pr/SKILL.md and docs/why.md, both updated here; no other skill, AGENTS.md or doc describes the verdicts, the body-write rule or the clock.

Thirteen sessions over four days held an item that moved under them: a push
after nine commits, a ticket that gained a fourth key after three were built, a
record whose head.sha was superseded two minutes before firedAt.

The ones that noticed were saved by the lock re-check, which already returns the
whole item and so already returns a fresh body. Only the comparison was missing.
SahajAtlasWeb#482 did not compare, and shipped a question thread about behaviour
the author had already changed, holding the merge, plus a body refresh that
dropped the line describing that commit.

So the rule costs no extra call: it tells a run to use what it has read.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjZGicuGj67qNTqJbGS
Three sessions on three days guessed elapsed time from their own step durations
and were each about 35 minutes pessimistic. Nothing in any skill said to read it.

SahajCloud#1243 paid most: the review was submitted believing the streamliner
had timed out, it returned three minutes later, and one verified finding plus
four unread ones went with the lock. The reviewer then raised eight comments on
that PR, none of them the critic's — so this defect destroyed the output of
#293's streamliner, which last week's reflection named as the remedy for exactly
that recall gap.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjZGicuGj67qNTqJbGS
SahajAtlasWeb and WeMeditateWeb set previewUrl and fixture to null, so every
preview link either repo posts answered OFF_HOST, which review-pr reads as a
should-fix against the author. Seven review-pr sessions over three days declined
to post that manufactured finding and spent lease time deriving why; seven more
did so the week before, in the other repo. Neither can be fixed repo-side:
.claude/workflow.json is a protected path.

preview-host.mjs answers a third word, NO_PREVIEW, rather than the skill gaining
a skip branch — the decision is mechanical and belongs where the other two
verdicts are decided, and this way it gets a test.

It reads whether the repo DECLARES a preview, never whether both hosts resolved.
A declared-but-unusable pattern (http:, a non-digit PR) also plans two nulls, and
must stay OFF_HOST: nothing can be checked against it either.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjZGicuGj67qNTqJbGS
The profile reviews a user-facing change as product and flags copy quality.
Neither covers a refusal the editor only meets by tripping over it.

Two PRs in one week, the critic clean on both. SahajCloud#1254 added
filterOptions to three config fields and the reviewer answered each with "This
requirement need to be listed in the field description" — on a line the critic
had already commented on, about what the validation costs. SahajCloud#1243 is
the same value from the other end: replace a pair of virtual columns with a
notice that signals where the page is available, then structure that notice like
the Install tab's status.

Written at the level of the value rather than the two incidents, so it reaches a
constraint with no field to describe it.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjZGicuGj67qNTqJbGS
An installed plugin is keyed by version, so a skill change that leaves it alone
is never served to /plugin install workflow@sydevs.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjZGicuGj67qNTqJbGS
The self-review caught it: "a relay marker names the head you fetched" reads as
the author's sha, where the marker spec 50 lines below says `sha` is the full
HEAD the session pushed. dispatcher/decide.mjs compares the two, so a run
following the new sentence would have skipped relayPlan and landed nothing.

The relay bullet already owns those fields, so the rule says nothing about them
and why.md carries the distinction instead. Both bullets tightened to the
register: one instruction each, under 20 words, no present perfect.

The clock rule now names the wake event's `current-time` as well. why.md already
settled which clock to read, under a different anchor, and this one cross-links
it rather than pointing at a second. It also widens to any judgement of elapsed
time: the failure that paid for it was a belief about a subagent, not a lease.

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

Two reviewers found the same gap independently: the three-way chain sat inline
in the isMain block, so the only new behaviour in the script had no test on the
value it produces — the added test asserted the predicate as a proxy. Four peer
scripts (budget, review-scope, new-pieces, test-only) export the decision and
leave main to print, and workflow/lib/*.test.mjs is this repo's only gate.

hostVerdict() now owns the precedence. The test asserts all three words, pins
that a declared-but-unusable pattern still refuses its link, and pins that every
word it can answer is in VERDICTS. Watched failing: removing the NO_PREVIEW
branch reds it, 13/14.

Also: the usage block still promised two words, and declaresPreview's ⚠ did not
say that an absent key and an unusable pattern differ, nor that it reads
fixture.link rather than fixture.path.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjZGicuGj67qNTqJbGS
The self-review's three prose findings, each verified:

- review-pr's NO_PREVIEW sentence said "no finding" twice. One sentence now, and
  it says what the old wording implied but never stated: nothing checked the
  links, so a clean verdict is not a claim that they are safe.
- why.md restated declaresPreview's docblock clause for clause. The docblock
  owns the code's why; why.md keeps the fourteen sessions, which live only here.
- the profile entry's two verbatim quotes cost ~900 characters on every
  review-pr dispatch, ~77 a week. One quote is the evidence; the second is
  paraphrased.

And the finding worth more than the three: NO_PREVIEW is factually narrower than
its name. SahajAtlasWeb and WeMeditateWeb do ship a preview per branch — they
simply cannot spell a {pr} pattern for a discovered slug — so the off-host check
is now inert in the two repos an outside PR is most likely to target. It bought
nothing there before either, since every link answered OFF_HOST, but the gap is
real and the deeper fix is a host list only an attended run can add. Recorded
beside the section rather than left for a reader to find.

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

sydevs-dispatcher Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

🤖 no session running

recent dispatches
  • 08:45Z address-review · attempt 1 · session · done
  • 08:45Z address-review · attempt 1 · session
  • 08:38Z review-pr · attempt 1 · session · done
  • 08:38Z review-pr · attempt 1 · session

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

@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

Four behaviours, each with its own commit and its own recurrence count, and no loop-config.json or ceiling edit, so the hard split holds. Each is the smallest edit its evidence supports, and 907f0db cuts prose rather than adding it. The NO_PREVIEW narrowing is the right shape: finalize-pr/pr-template.md:33 already tells authors in those two repos to post a BRANCH-alias link, so the old rule flagged links the loop itself asked for. Neither finding below is about whether a behaviour belongs.

The ## Change outline understates the diff: its File column names no docs/why.md (+59) or preview-host.test.mjs (+46), and 907f0db is filed under reviewer-profile.md though it also rewrites review-pr/SKILL.md and docs/why.md. That is the table a reviewer reads first.

Findings

  • should-fix — start-run/SKILL.md:58: the clause asks for a head comparison the read it names cannot answer.
  • should-fix — preview-host.mjs:104: Streamline — declaresPreview has one caller; fold it in.

What was checked. preview-host.mjs, its test, both changed skills, the profile and the why.md additions read whole on the branch; .claude/workflow.json from main. The ladder walked 3 new pieces, the streamliner kept 2. All 6 why.md anchors the diff cites resolve to exactly one heading. rule-delta.mjs over both trees: 94 → 94, none disappeared. budget.test.mjs:309 is why NO_PREVIEW must join VERDICTS, and no file outside review-pr/SKILL.md and docs/why.md names a verdict word. Every event handler's allowed-tools carries Bash(*), so the rejected date -u finding is correctly rejected. Profile gate met on two PRs. Not verified: NO_PREVIEW for SahajAtlasWeb and WeMeditateWeb — only claude-workflow is attached here, so the ⚠ judgement call rests on the body's manual table.

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


Generated by Claude Code

Comment thread workflow/skills/start-run/SKILL.md Resolved
Comment thread workflow/lib/preview-host.mjs Resolved
@sydevs-bot sydevs-bot removed the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 29, 2026
@sydevs-dispatcher sydevs-dispatcher Bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 29, 2026
The re-grounding clause said "body or head moved since preflight?" under a
bullet that names `issue_read method:get`. That read answers a PR without a
`head.sha` — verified against #333 itself — so half the clause asked for a
comparison its own named read cannot make. A run following it would either
skip the head or reach for `pull_request_read method:get`, an extra call on
every push, which the why.md anchor's "costs no extra call" denies.

The body half is the half the read carries free. The branch half is a
`git fetch`, which is also no API call, so both halves stay free and each now
says which read answers it. `fix-ci`'s *Reads* keeps the API head comparison
it already owns.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjWN7yZPzatAiiRMgTi
`declaresPreview` had one caller, `hostVerdict`, and the streamliner is right
that a named export for it buys nothing: a reader of `hostVerdict` now sees
the precedence on its first line instead of following a second export to find
it. The two ⚠ paragraphs move above `hostVerdict` unchanged, since they are
what stops a broken config waving past links it cannot check.

The six direct assertions became three through `hostVerdict`, which is the
only caller a skill ever has. Watched failing: flipping the folded `&&` to
`||` reds "the verdict takes NO_PREVIEW ahead of the host comparison" at 12 of
13, and restoring it greens 13. Coverage held — `fixture.path` without a
`link`, and each block declaring on its own, are now pinned through the
verdict rather than through the helper.

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

Copy link
Copy Markdown
Contributor Author

Two critic threads, both adopted. Pushed 9228d12.

  • The head half of the re-grounding clause — 19344d3. issue_read method:get on this PR returns no head.sha, so the clause names a read per half: the body from the lock read, the branch from a git fetch. Still no extra API call.
  • Fold declaresPreview in — 9228d12. One caller, so its first line is now hostVerdict's. Flipping the folded && to || reds the precedence test at 12 of 13.

Nothing rebutted, nothing asked. The review body's other point — the ## Change outline understating the diff — is fixed in the refreshed body: every row names its files now.

Branch was already level with main, so no base merge. Gate 195/195 from the checkout and from a worktree; rule-delta 94 → 94; ste-lint flat at 21/9. Security review re-ran: no findings.

🤖 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 29, 2026
@sydevs-dispatcher
sydevs-dispatcher Bot marked this pull request as ready for review November 29, 2026 08:59
@sydevs-dispatcher
sydevs-dispatcher Bot requested a review from Ardnived November 29, 2026 08:59
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Working to Awaiting in SYDevelopers Technical Roadmap Nov 29, 2026
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.

2 participants