Skip to content

fix(loop): a search falls back to gh, and the PR-body tool gets its real name - #246

Merged
Ardnived merged 7 commits into
mainfrom
claude/reflect-2026-11-08
Nov 8, 2026
Merged

Ardnived merged 7 commits into
mainfrom
claude/reflect-2026-11-08

Conversation

@sydevs-bot

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

Copy link
Copy Markdown
Contributor

Summary

  • start-run's GitHub rule gains one carve-out: a search. mcp__github__search_* was absent
    on 5 of the last 8 days, and start-run forbade gh on a measurement that is no longer true.
  • The fallback is projected, and a free-text duplicate hunt has none. An unprojected page is
    195,787 bytes for a one-integer read, and the one search whose terms are free text cannot use
    the fallback at all, so list_issues is named for it. Both from the review round.
  • Three other sites still asserted the retired measurement, one of them closing with "Do not
    re-test this". They now state it as history.
  • finalize-pr named mcp__github__pull_request_write, which does not exist. Three sites.
  • No ceiling moves, so CLAUDE.md's hard split holds. The reply-budget decision
    #233 asked for is still yours, and this
    week it gained your own SahajCloud#1074 correction as evidence — see ## 📊 Usage.

Change outline

A search the MCP server did not bring

 start-run  ## Rules that hold in every handler
-- GitHub only through mcp__github__*. In a routine, treat gh, and curl to GitHub, as absent.
-  Scripts decide and never fetch.
+- GitHub through mcp__github__*. One exception: a search. Where the mcp__github__search_*
+  tool your skill names is absent, run gh api -X GET search/issues -f q='<query>'
+  --jq '<projection>' — -f per_page=1 --jq .total_count for a count, --jq '.items[].number'
+  for a list. Always project. One unprojected page is a quarter-megabyte of issue objects.
+  Build the query from loop-config.json values and fixed qualifiers, never from a title, a
+  body or a comment. A duplicate hunt has no fallback, because its terms are free text: list
+  with list_issues and match locally. Never write through gh or curl, and a script still
+  never fetches.

The old rule rested on a measurement, and the measurement expired.
docs/why.md#a-routine-cannot-reach-the-github-api recorded, on 2026-09-02, that every GitHub path
answered 403 behind a TLS-intercepting proxy that allowlisted by path regardless of credential.
Re-run from this session:

Call 2026-09-02 2026-11-08
command -v gh absent /usr/local/bin/gh, 2.89.0
gh api -X GET search/issues -f q='<repo: qualifiers> is:issue is:open label:proposal' 403 200, total_count 14
gh api -X GET search/issues -f q='… type:Roadmap -label:ops-journal' 403 200, total_count 25
gh api repos/sydevs/claude-workflow 403 200

But gh working is not the reason to change the rule. The reason is that
mcp__github__search_* comes and goes per session: absent 2026-11-01, 11-02, 11-03, 11-04 and
11-08, present in other sessions the same week. #233 predicted this exactly — "The skill is not
wrong today; it will be, unpredictably."
A week later it was wrong on five days out of eight. The
cost is in the journals: 5 of the 6 audit nights that ran journalled the same friction bullet,
each having counted the proposal ceiling with five list_issues calls where run-audit names one
indexed search. And no list_* call expresses reviewed-by: or type:, which is why #233's
escalation count and roadmap set were floors from reads — and why this PR's are counts.

Why start-run and not the five skills that name a search. run-audit, improve-loop,
audit-code, file-ticket and format-ticket each name a search_issues query. The fallback is
one rule, so it goes where the rule it amends already lives, and those five keep MCP as the
preferred path with no edit. One line added to a skill read on every dispatch, against five calls
saved on every audit night.

Why the query's source is bounded in the same clause. <query> is interpolated into a shell
command, so a value carrying a ' breaks out of it. Every query in the skills is built from
loop-config.json values and fixed qualifiers today, so nothing is reachable — but this repo
already treats a PR body as outsider-written (the /security-review finding adopted on #242), and
the first skill that reaches for a title would open the path silently. Eight words now instead.
This branch's own /security-review raised it; the clause is the whole response.

The review round: the carve-out was half-shipped

The critic read the first three commits and raised three. All three are adopted, and the
/security-review of the fixes added a fourth.

Finding Fix
Three sites still assert the retired measurement, one with "Do not re-test this" (thread) 87521d7. docs/routine-setup.md:562 states the two rules that survive. merge-gate.mjs and branch-preview-url.mjs cite #a-script-here-never-fetches, which rests on the reason the re-measurement cannot touch
The bare fallback returns 195,787 bytes for a one-integer read (thread) 61d6f94. Always project, with both shapes named. 2 bytes projected. The arithmetic is in why.md, not in the run-loaded skill
format-ticket:16 still calls Relationships the single gh exception (thread) 5fc47c0. Both exceptions named, the search one pointing at start-run. The four skills that load it read one answer
The sourcing rule forbids the one search whose terms are free text, and said nothing about what to do instead fdfcc51. list_issues plus local matching. Raised by this round's /security-review as its one sub-threshold observation

Why the fourth is a rule and not a note. file-ticket step 2, write-ticket step 1 and
revise-roadmap's cross-reference lens each name search_issues for a duplicate hunt and give no
query string. With the MCP tool absent, the amended rule stopped mid-sentence: the hunt needs free
text, and free text is exactly what the clause forbids. A run would have invented the rest, and
improvising there is the interpolation the sourcing rule exists to prevent.

The tool that refreshes a body

mcp__github__pull_request_write is not a tool. The server exposes update_pull_request for a
title or body, and pull_request_review_write for a review. Three sites named the absent one:
finalize-pr step 7's snippet, its step 7b prose, and pr-template.md's Refresh rule — which
address-review step 5 reads too, so the wrong name reached two handlers. A 2026-11-07
address-review run on sydevs/SahajCloud#1082 hit it, journalled it, and found the right name by
hand. Every body refresh pays that lookup until the name is right.

Grading last week

The previous reflection is #233, merged
2026-11-01T18:59Z. It shipped one behaviour.

#233's change Verdict
review-pr step 4 names git show <ref>:<path>, so a critic stops reaching for a checkout Held. 3 sessions on 3 distinct days rediscovered git show before it. Zero this week across 44 review-pr dispatches. The condition arose and the mechanism fired: sydevs/SahajCloud#1087's critic recorded "git checkout <rev> -- . in the attached checkout was refused as irreversible local destruction, as review-pr expects. git grep <rev> and git show <rev>:<path> served every read" — the refusal met a run that already knew the answer, in one step, with nothing rediscovered
What #233 recorded without proposing, re-measured — and #231, which it deferred

The proposal ceiling is worse, and your five tickets are untouched. #233's second suggestion
named five proposals three weeks old or more and said judging just those five would clear the
queue. All five are still open and none was touched: SahajCloud#789 (2026-09-15, now 8 weeks),
SahajCloud#924, SahajAtlasWeb#281, WeMeditateWeb#183, claude-workflow#181 (all 2026-10-11). Three
new ones arrived, so the queue went 13 → 14 against maxOpenProposals 10, and it was over the
ceiling on every single day of the week (13 · 11 · 13 · 12 · 12 · — · 15). 4 of the 6 audit
nights that ran filed nothing for that reason.
This is the one number that did not move at all.

The budget round-trip did not hold, and it now has your own correction behind it. #233 measured
25 re-trim rounds across 3 days and handed you two designs. This week: 6 sessions on 2 distinct
journal days
, and one of them measured the mechanism outright — sydevs/SahajAtlasWeb#363:
"budget.mjs does not count the _Generated by [Claude Code]_ footer this session's harness
requires on every GitHub post, so a reply measured OK at 578/600 posts about 60 chars over."

So OK is not true as posted. Then sydevs/SahajCloud#1089 ("four re-measures per reply"),
sydevs/SahajCloud#1088 ("Five passes each to fit"), sydevs/SahajCloud#1058 ("fits three of five
thread links once the marker and the harness attribution footer are counted. Two threads are named
by commit instead"
), sydevs/SahajAtlasWeb#371 ("five full thread URLs cost 315 characters"), and
sydevs/SahajAtlasWeb#369. The new evidence is that this is not hygiene — it is a behaviour you
asked for.
Your SahajCloud#1074 note on 11-05 says "address-review should put every choice it
asks for in the thread comment itself"
, and a 600-character reply with ~182 characters of mandated
boilerplate is what pushes those choices into the PR body. It is in ## 📊 Usage as a decision,
not here as a change: either design is a ceiling move, and this PR carries a skill change.

writing.budgets.notes (8,000) is the same shape, newly recurrent. 4 revise-roadmap sessions
on 2 distinct days measured OVER after pruning — 12,163 and 12,241 (sydevs/SahajCloud#1078),
10,225 and 10,706→8,500 over four passes (sydevs/SahajCloud#1015) — and two said facts a planner
wants were cut to fit. ⚠ Against that: one run pruned #1078's notes to 7,645, so 8,000 is
reachable and I will not call it the binding constraint. Both numbers belong to the same decision.

#231's reuse-first ladder, which #233 deferred for a week of builder dispatches, is working.
implement ran 17 times, all after the merge, and the critic raised value-1 findings on its own
across five PRs: "bug #10 adds five pieces where setSnap(… WIDE_SNAP …) would do"
(SahajAtlasWeb#369), menuChrome against two hand-copied panel surfaces (SahajAtlasWeb#373),
NumberBadge and SummaryCard folded into their one caller each (SahajCloud#1058), "the fix
rebuilds the form-builder plugin's existence check where asTrustedReq already answers it"

(SahajCloud#1089), and a 24-entry list the producer branch already empties (SahajAtlasWeb#374).
One miss: on SahajCloud#1088 the critic reviewed a new mailing-list provider beside two
existing ones and raised no aggregate finding, and you did — "This file is very large. Is there
any way to simplify… Is there any code duplication between this and the other providers that could
be abstracted?"
That is value 1's The total and Membership readings, both already in the
profile in detail. One occurrence, and a profile gap it is not. No profile edit this week, for
the first time with a reason that is not deferral: the value is ranked first and fully described,
the ladder is producing the findings, and absorbing that remark verbatim is what the profile's own
rule forbids.

Too early to grade: the Railway token. #233's first suggestion was to fix or drop
railway.tokenEnvVar, which authenticates nothing and cost one of last week's two failures. No
session touched Railway this week
across 13 fix-ci dispatches, so the situation never arose.
This licenses no follow-up, and the token is still unusable.

Of #233's four named-but-not-proposed frictions, two recurred and one is still too early.

  • git checkout <paths> with no ref silently discards uncommitted work — a third occurrence, on
    a third distinct day.
    10-31 cost it twice (SahajAtlasWeb#346, SahajCloud#1055 — "A WIP commit
    is the only safe form"
    ); 11-01 feat(api): let an admin block a submitter, and purge spam sign-ups SahajCloud#630 lost it again: "git checkout <paths>,
    undoing a deliberately injected defect, reverted two files past uncommitted rework. Lost and
    redone. Commit before injecting."
    This clears the recurrence gate and I did not ship it. The
    candidate is a new rule in implement-ticket, which is run-loaded, and this PR already carries
    two corrections; CLAUDE.md defaults to one behaviour and prefers removing a rule to adding one.
    It is the strongest candidate for next week, and the run that paid for it already wrote the rule.
    Say the word and it goes in now.
  • A routine clone's history is short, and --unshallow is not always enough. 10-28 had
    git log -S naming a boundary commit as an introducer; 11-07 feat(auth): gate and seed previews behind Cloudflare Access SahajCloud#1082 had worse —
    "The cited commit 89f6569 is unreachable from this clone even after git fetch --unshallow",
    so a recorded measurement could not be re-measured.
  • audit-code and start-run naming different branches for a docs-only fix: no occurrence.
    Too early. This is not evidence of anything.
  • address-review has no row for the critic proposing a ticket: the week produced two
    different gaps in the same table rather than a repeat, so the shape did not recur. 11-07
    feat(atlas): open-items homes, per-role digests, simpler preferences SahajCloud#1083: "address-review 'Then' steps 1-4 assume a push… The skill has no
    branch for a thread-only round."
    11-07 fix(map): draw an area, not a pin, for a listing with no real place SahajAtlasWeb#374: the per-thread table and the
    reviewer's-ask section give opposite answers for a finding belonging to another repo.

audit-deps re-firing a declined advisory: a third occurrence, and half of it is now yours.
11-03 on SahajCloud found both high advisories are the same happy-dom pair whose judgement
pnpm-workspace.yaml already carries, and the stale claude/fix-deps-happy-dom branch sent the
run looking for a dead session to resume — its PR, SahajCloud#1037, closed unmerged on 10-27.
WeMeditateWeb#224 merged the 21.0.4 patch this week, so that repo is clear; SahajCloud's override
is not, and nothing can record a decline.

securityReview.triggerPattern was wrong in both directions this week, in two repos, and
neither is fixable unattended.
.claude/workflow.json is a protected path. SahajCloud's pattern
misses src/plugins/usage/ (#233, still open); WeMeditateWeb's ^server/ matched
server/AGENTS.md, a prose file, and spent a sweep on it (11-05).

📊 Usage

180 dispatches, 1 reported failure, 16 anomaly markers, 56 merged PRs of which 28 bot-authored.
Volume fell 211 → 180 and anomalies fell 42 → 16, but sessions per merged bot PR rose 3.6 →
5.0
(139 PR-item dispatches over 28 merged bot PRs) and address-review per merged bot PR rose
1.6 → 1.9. Last week's platform outage is gone; what replaced it is one very heavy PR set.

⚠ The one ⚠️ Failed of the week is a PR merging under a running handler, and that shape cost
6 sessions on 2 distinct days.
sydevs/SahajCloud#1092's address-review reported "No thread got
a commit or an in-thread reply. Ardnived merged the PR mid-run at 00:09Z on af5e627, blocker
open."
Beside it: SahajAtlasWordpress#76 merged at 16:21Z mid-run (11-05), SahajAtlasWeb#366
merged 4 minutes into its review (11-06), SahajCloud#1085 merged 13 seconds after its review
fired, and SahajCloud#1079 and #1074 each had the sweeper fire a fresh session after the merge
because bot:working outlived it. Each run routed itself by start-run's finding table and said
so — "review-pr has no verdict for a merged PR", "address-review has no rule for a PR
merging under it"
. This is the week's strongest unaddressed signal and it is a handler gap, not
a habit.
I did not propose it: three skills and the sweeper's lease release are involved, and the
right shape — whether a merged item is a stop, a routed finding, or a lock the dispatcher should
drop on pull_request.closed — is a design decision, not a threshold.

The timeouts are a single goal, not a timeout problem. 10 of the 16 anomalies are timed-out
and all 10 are Thursday. Four items account for them, each on attempt 1 and 2 of the same work:
sydevs/SahajAtlasWeb#259 revise-roadmap burned all three attempts and attempts-exhausted
(the 11th marker), then finished in 32 minutes on the next fire by skipping the three review
lenses, because "the goal's own text had not changed, only the reviewer's question."
sydevs/SahajCloud#1078 and #1015 likewise finished on attempt 3 inside the 120-minute lease, and
#1078's run recorded "Attempts 1 and 2 timed out leaving nothing to resume — no branch, no
comment, no body edit."
An attempt that produces nothing is not a short lease, so
dispatch.timeoutsMinutes.revise-roadmap is not the binding constraint and this PR does not
touch it. #233 reached the same conclusion about review-pr from the same pattern; it is now twice.

The remaining 4 anomalies are all the relay, all Saturday, and 2 of the 4 are ours.
handed-over on SahajAtlasWeb#370 ("claude/relay-370-589094f does not exist") and
SahajAtlasWeb#374 ("is at 91099d8, not the requested f3bc887") — the #374 run's own entry reads
"Pushed 91099d8 to claude/relay-374-f3bc887", so it named the branch after one commit and
pushed another, and start-run's relay rule never says the branch's <short sha> and the marker's
sha are the same commit. SahajAtlasWeb#369 and SahajCloud#1095 are the other cause: the author
pushed to the PR branch, so the relay could not merge. One distinct day, so I name it and propose
nothing.

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

Counted from the 7 journal titles and <!-- tally --> blocks, which are the count. All 16
anomaly markers were read, and the session comments on 4 of 7 days in full plus the audit entry on
each of the other 3 — so unlike the last two weeks the handler and repo figures are counts, and
only the per-item session tallies are floors.

Sun 11-01 Mon 11-02 Tue 11-03 Wed 11-04 Thu 11-05 Fri 11-06 Sat 11-07 week
dispatches 41 28 10 16 39 14 32 180
failures in the title 0 0 0 0 0 1 0 1
anomaly markers 0 0 0 0 11 1 4 16
open proposals that night 13 11 13 12 12 — 15 14 now

Per handler, against #233's numbers. address-review 61 → 53, review-pr 50 → 44,
resolve-conflicts 20 → 29, implement 34 → 17, fix-ci 5 → 13, revise-roadmap
2 → 9, audit-nightly 5 → 6, revise 30 → 6, audit-deps 4 → 2,
implement-roadmap 0 → 1.

Per repo. SahajCloud 59 → 108, SahajAtlasWeb 71 → 42, SahajAtlasWordpress 2 → 14,
WeMeditateWeb 59 → 9, claude-workflow 20 → 7. The work moved back onto SahajCloud.

Anomalies by kind, all 16 read: timed-out 10, handed-over 4, attempts-exhausted 1,
orphan 1.

Merged in the window, by merged_at 2026-11-01..11-08, bot-authored in brackets:
SahajAtlasWeb 19 (10), SahajCloud 19 (8), SahajAtlasWordpress 7 (4), WeMeditateWeb 7 (4),
claude-workflow 4 (2). 56 (28).

Items with three or more sessions — a floor, from the day lines' top fives:

Planning quality. implement-roadmap ran once (sydevs/SahajCloud#1078 → children
SahajCloud#1081 and claude-workflow#241). revise-roadmap ran 9 times across 6 goals, against
2 last week. Escalations: 0 — <!-- sydevs-request {"escalated":true} --> appears nowhere in
the window, and this time that is a search, not a floor. Post-plan revisions: 0 — no member
sent a child back with revise. ⚠ But 1 of the 2 children that one run filed carried an
unbuildable criterion
: SahajCloud#1081's criterion C asked that a manager see fewer Events, which
docs/rules/access.md makes impossible because events read is project-wide. The builder found it
on 11-05 and asked on the line; a run rewrote it as a review line on 11-07. One occurrence, so it
proposes nothing, but it is the same class as a post-plan revision and the tally cannot see it.
Ten roadmap goals were updated in the window; SahajAtlasWeb#266 closed.

Three fix-ci passes went to a blocker no session can clear. sydevs/SahajCloud#1082's
Register the preview's fixed address step needs vars.PREVIEW_KV_NAMESPACE_ID and
secrets.CLOUDFLARE_ZONE_ID, both empty in the job environment and both step 0, a person's.
ciFixIterations is now spent on it, and everything ahead of the step is green.

Friday's nightly audit left no entry. The Friday slot is cut-release, the tally lists no
audit-nightly, and no silent anomaly marks it, because the cron audit has no record and no
lease for the sweeper to notice. #233 reported the same absence on 10-29 and 10-30. One occurrence
this week, so nothing is proposed — but the nightly audit is the one dispatch whose failure
nothing can see
, and that is worth your knowing.

What the proposal ceiling refused — carried forward, not closed

14 open proposal tickets against maxOpenProposals 10, over the ceiling every day of the
week, so 4 of the 6 audit nights that ran filed nothing. Counted by search, not by hand:
WeMeditateWeb 7 (#223, #208, #206, #205, #204, #183, #178), SahajCloud 4 (#1093, #1047, #924,
#789), SahajAtlasWeb 2 (#375, #281), claude-workflow 1 (#181). Each night's best findings are
below; closing the journals drops them otherwise, since labels.journal is excluded from every
worklist.

  • 11-03, audit-code · risk / correctness — a monthly class on day 29–31 silently skips months.
    monthDay accepts 1–31 with no validator (SahajCloud src/fields/scheduleFields.ts:283) and
    buildRRuleTemporal passes it as byMonthDay, so day 31 runs 7 months a year and lastDate
    and upcomingDates follow the gaps. The CSV import refuses >28 for exactly this reason
    (csv/schedule.ts:47): admin and import disagree on one field. Same run, for the hygiene
    rotation: normalizeHHMM (src/lib/schedule/time.ts:31) has no caller in src, tests,
    scripts or seeds.
  • 11-04, audit-sentry — the quota is spent on correct behaviour, and the audit is blind.
    SahajCloud reports 376 Forbidden on the by-design-closed POST /api/managers/login and 511 on
    /api/payload-preferences/nav; GET /api/pages/73 carries 138 users and 4,149 events; a missing
    DSN is silent (src/lib/env/client.ts:29). Sentry has accepted nothing for 12 days — newest
    unresolved 2026-10-23T10:18, none resolved or ignored — while the SDK is live on the current
    deploy. Likely a spent quota, which needs the dashboard. sahajatlas-web has zero events ever
    though sahajatlas.com ships a DSN.
  • 11-05, audit-code · experience / SEO — WeMeditateWeb publishes crawlable duplicates. Both
    /embed routes answer with no noindex and no canonical, and EmbedButton hands those URLs to
    host pages; /map/* answers 200 with no canonical when its SEO document does not resolve; the
    sitemap's content half truncates a collection at 500 silently, where the atlas half reports it
    (Tue — 0 dispatches · 0 failed · 0 anomalies #123).
  • 11-07, audit-code · hygiene / build vs buy — 1542 hand-written lines upstream now ships.
    SahajCloud src/plugins/openapi/customEndpoints.ts writes OpenAPI path items keyed by path
    string; payload-oapi 0.3.0 reads custom.openapi off each endpoint instead, and the repo pins
    ^0.2.5, which cannot receive it. The spec imports the shim and never the endpoint files, so a
    renamed path documents a 404 with the lane green. Partial swap only: 0.3.1 still omits select
    and populate, so clientReadParametersDocs.ts and specFilter.ts stay.
  • Still unfiled from fix(review-pr): name how to read a file as the branch has it #233 and fix(loop): a PR the reviewer wrote asks nobody for a review, and a refused finding waits in the usage report #212. SahajAtlasWeb's refusal vocabulary is not pinned to
    SahajCloud's: UserSubmissionErrorCode (src/config/api/mutate.ts:234) mirrors AntiSpamCode
    by hand and omits submission_data_invalid, asRefusal casts the wire code unchecked
    (mutate.ts:134), the docblock at ReportIssueForm.tsx:40 claims a new code fails the build and
    it does not, and mutate.test.ts:373's it.each names 4 of the 6 codes. Plus fix(loop): a PR the reviewer wrote asks nobody for a review, and a refused finding waits in the usage report #212's seven,
    which live in that merged body.

Two suggestions, each tied to a number

  1. Judge five proposals, or raise the ceiling — the queue has not moved in a week and the audits
    are idling.
    14 open against 10, over it on all 7 days, and 4 of 6 audit nights filed
    nothing
    . The five fix(review-pr): name how to read a file as the branch has it #233 named are all still open and none was touched: SahajCloud#789
    (2026-09-15, 8 weeks), SahajCloud#924, SahajAtlasWeb#281, WeMeditateWeb#183,
    claude-workflow#181 — and three of those five are one decision twice over, since 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 those five puts the queue at 9, under the ceiling, and four
    nights of held findings start filing again.
  2. Settle the reply budget. It is now a behaviour you asked for, not a tidiness point.
    writing.budgets.reviewReply is 600 characters, of which identity.commentMarker (124) plus
    the harness's mandated _Generated by [Claude Code]_ footer (~58) are ~182 the run cannot
    cut — 30% of the budget
    . 6 sessions on 2 distinct days spent 4–5 re-measure passes each, and
    one posted ~60 characters over while budget.mjs answered OK at 578/600, so the verdict does
    not describe what is published. Your own SahajCloud#1074 note asks address-review to put every
    choice in the thread reply itself; this budget is what pushes those choices into the PR body
    instead. budgets.notes (8,000) is the same decision — 4 sessions over it at 10,225–12,241,
    against one that pruned to 7,645. Two designs, both yours: stop counting mandated boilerplate
    in check()
    , or raise reviewReply, comment and notes. I built neither, because each
    is a ceiling change and this PR carries a skill change.

Test results

  • Lean gate (claude plugin validate ./workflow --strict && node --test workflow/lib/*.test.mjs):
    ✓ validation passed, 119 pass, 0 fail, re-run after each review-round commit. Re-run from a
    .claude/worktrees/ worktree at the branch tip as CLAUDE.md requires: ✓ both halves, 119 pass.
  • node workflow/lib/rule-delta.mjs --base origin/main workflow/skills → 92 → 93, none
    dropped.
    The one addition is Always project.; the rest is amended in place and the tool name
    corrected, so no directive fell out.
  • node workflow/lib/comment-lint.mjs --base origin/main → 2 changed code files, no banned
    comment. Both are doc-block edits in merge-gate.mjs and branch-preview-url.mjs; neither file
    gained or lost an executable line.
  • /security-review ran twice, because the diff matches securityReview.triggerPattern on
    ^workflow/skills/.+\.md$ and ^workflow/lib/. First pass: one finding, adopted in the same
    commit
    — the shell-interpolation surface the carve-out opens, answered by the
    Build the query from loop-config.json values clause. Second pass, over the review-round
    commits: nothing above threshold
    , and one sub-threshold observation adopted in fdfcc51 (the
    free-text search the sourcing rule leaves without a fallback).
  • No CI here (ci.noCi) and no preview (previewUrl unset), so those sections are omitted.
  • The change cannot be tested by running it — a skill edit takes effect on the next session.
    Its first exercise is the next audit night's ceiling search.

Manual verification

  1. The gh measurement reproduces from any routine session:
    gh api -X GET search/issues -f q='repo:sydevs/claude-workflow is:issue is:open label:proposal' --jq .total_count.
    On 2026-09-02 that answered 403; today it answers a number.
  2. The projection's cost reproduces the same way: drop --jq and wc -c the result. 195,787
    bytes org-wide for label:proposal, against 2 with -f per_page=1 --jq .total_count.
  3. Both suggestions above need you, and neither is in the diff: five proposals, and the reply
    budget.

Notes for reviewer

  • Seven commits, five behaviours, each separately revertable. 097352e the search carve-out
    and its docs/why.md re-measurement, 5db5ea9 the pull_request_write →
    update_pull_request correction, 5e6a449 the version bump the skill change owes, then the
    review round: 87521d7 the three stale assertion sites, 61d6f94 the projection, 5fc47c0
    format-ticket's second exception, fdfcc51 the free-text search with no fallback. No
    ceiling moves
    , so CLAUDE.md's hard split holds. All four review-round commits finish the one
    carve-out the first three started, which is why they belong to this PR and not next week's.
  • version stays at 5.5.0. The bump is a cache key, and one merge moves it once however many
    skill commits ride along.
  • I kept the docs/why.md anchor and the 2026-09-02 table. Renaming
    #a-routine-cannot-reach-the-github-api would break the (why: …) pointers that cite it, and
    the table is the measurement that produced the "no self-hosted relay" decision. The
    re-measurement sits beneath it, dated, with the two conclusions that survive it — a script never
    fetches, and a write goes through mcp__github__* — and the reasons those two were never about
    the proxy. merge-gate.mjs and branch-preview-url.mjs now cite
    #a-script-here-never-fetches instead, because that anchor rests on the reason that outlived
    the measurement.
  • The strongest thing I did not ship is the merged-under-you gap, 6 sessions on 2 days
    including the week's only failure. It wants a decision from you, not a threshold: does a merged
    item stop the handler, route as a finding, or should the dispatcher drop bot:working on
    pull_request.closed so the sweeper stops firing into it? Two of those are dispatcher work.
  • The second strongest clears the recurrence gate and I bounded the PR instead. git checkout <paths> has now discarded uncommitted work in 3 sessions on 3 distinct days. The run that paid
    for it on 11-01 wrote the rule itself — "Commit before injecting" — and 10-31 wrote "A WIP
    commit is the only safe form."
    It is a one-line addition to implement-ticket, and I left it
    out because that skill is run-loaded and this PR already carries the carve-out. Ask and it goes
    in.
  • I proposed no profile edit, and this time not as a deferral. Your reuse/aggregate theme
    appeared on 2 distinct PRs (SahajCloud#1088, SahajCloud#1075) and so clears the gate, but it is
    value 1 — Every layer must pay rent, with The total and Membership — already in the
    profile at length, and feat(loop): builders follow a reuse-first ladder ported from ponytail, and the critic walks it #231's ladder produced five such findings unprompted this week. Adding a
    bullet would absorb a remark the profile already generalises.
  • ⚠ America/Vancouver resolves to the wrong offset in this runtime, and journal.timezone is
    that string.
    Intl.DateTimeFormat prints PDT for 2026-11-08T08:05Z under
    America/Vancouver and PST under America/Los_Angeles, which share identical DST rules in
    reality — so the loop's journal day boundary sits an hour off between 07:00Z and 08:00Z, the hour
    the journals are created in. Two sessions hit it: 11-04 ("Journal Wed — 16 dispatches · 0 failed · 0 anomalies #238 is dated 11-03 in
    journal.timezone"
    ) and 11-05 ("America/Vancouver resolves to UTC-7 in this runtime…
    Thu — 39 dispatches · 0 failed · 11 anomalies #239's day marker follows it"
    ). It is a one-word data edit and I did not make it, for two
    reasons: the two sessions disagreed about which side was wrong, and dispatcher/journal.mjs runs
    on a different runtime from a session, so the fix needs a measurement from an Actions run that I
    cannot take from here. Reported, not explained.
  • Reads used gh api search/… before this PR merged. search_issues does not exist in this
    session and the harness names gh api as the substitute, so the ceiling count, the merged-PR
    tally, the roadmap set and the escalation search all ran through it. That is the discrepancy
    start-run tells a run to journal, and it is also this PR's subject; the week's figures are the
    demonstration.
  • The 7 journals for 2026-11-01..07 are closed, each linking this PR. Today's (2026-11-08)
    stays open for tonight's entry.


Generated by Claude Code

… absent

`mcp__github__search_*` is absent from some routine sessions and present in
others. It was absent on 2026-11-01, 11-02, 11-03, 11-04 and 11-08. Five audit
nights each counted the proposal ceiling with five `list_issues` calls instead
of one indexed search, and journalled it as friction. No `list_*` call expresses
`reviewed-by:` or `type:`, so two weeks of `improve-loop` reported the
escalation count and the roadmap set as floors from reads.

`start-run` forbade `gh` outright, on a 2026-09-02 measurement where every
GitHub path answered 403 behind a TLS-intercepting proxy. Re-measured today:
`gh` is 2.89.0 at `/usr/local/bin/gh`, `search/issues` answers, and so does
`repos/<repo>`. The carve-out is a read, and only a search. A write still goes
through `mcp__github__*`, which is scoped to the session's own repositories, and
a script still never fetches — neither reason was ever about the proxy.

The query's source is bounded in the same clause. `<query>` is interpolated into
a shell command, so a value carrying a quote would break out of it. Every query
in the skills is built from `loop-config.json` values and fixed qualifiers
today; saying so now keeps the first skill that reaches for a title from opening
that path. This branch's own `/security-review` raised it.

docs/why.md keeps the anchor and the 2026-09-02 table, with today's
re-measurement and what survives it beneath.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjYzzL4FVuauQMagXba
`mcp__github__pull_request_write` does not exist. The GitHub MCP server exposes
`update_pull_request` for a title or body, and `pull_request_review_write` for a
review. Three sites named the absent one: finalize-pr's step 7 snippet, its
step 7b prose, and pr-template.md's Refresh rule, which address-review step 5
reads too.

A 2026-11-07 address-review run on sydevs/SahajCloud#1082 hit it and journalled
it, then found `update_pull_request` by hand. Every body refresh pays that
lookup until the name is right.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjYzzL4FVuauQMagXba
An installed plugin is pinned to the commit it installed and its cache
directory is named after `version`, so a skill change that leaves the string
alone never reaches `/plugin install workflow@sydevs`.
(why: docs/why.md#an-installed-plugin-does-not-track-main)

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjYzzL4FVuauQMagXba
@sydevs-bot sydevs-bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 8, 2026
@sydevs-bot

sydevs-bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 no session running

recent dispatches
  • 08:30Z address-review · attempt 1 · session · done
  • 08:30Z address-review · attempt 1 · session
  • 08:22Z review-pr · attempt 1 · session · done
  • 08:22Z review-pr · attempt 1 · session

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

@sydevs-bot

sydevs-bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor Author

Two findings from closing this run out, each one occurrence short of a proposal.

1 · finish-run's cron-mode create races the dispatcher's journal tick. ensureJournalDay creates the day's issue then looks again, closing its own if an older one appeared. finish-run has no second look. The tick made #247 at 08:22:57Z; this run made #248 six seconds later, having listed the journals at 08:06Z when neither existed. Entry is on #247, #248 closed as its duplicate — left alone, closeDuplicateDays would have closed the issue holding tonight's entry. Narrow but not rare: the audit fires at 08:00Z, the tick at 08:05Z.

2 · The harness auto-subscribes a session to the PR it opens, and injects babysit-until-green rules — a second distinct day. start-run says push and end, never wait for CI, never subscribe; finish-run says unsubscribe. Both held, as on 2026-11-05 (sydevs/SahajCloud#1078, which the fire prompt asked to journal). Recurrence gate now open, and the skills already answer it — named here so next Sunday counts a third.

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


Generated by Claude Code

@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 diff is smaller than the problem: 29 lines against a friction measured on 5 of 8 days, with the rule amended where it already lives, not copied into the five skills that name a search. Three commits, three revertable behaviours, no ceiling moved, so the hard split holds. The pull_request_write correction is complete — that name appears nowhere on the branch.

What the PR does not finish is the retirement. The measurement it overturns is asserted in four places and corrected in one, and one of the three left tells the next run not to re-test it. The fallback is also unprojected, giving back the output saving it buys.

Findings

  • should-fix — three sites still assert the retired measurement, one with "Do not re-test this" → docs/why.md:473
  • should-fix — the fallback returns 195,787 bytes for a one-integer read, measured → start-run/SKILL.md:68
  • should-fix — format-ticket:16 still calls Relationships the single gh exception → start-run/SKILL.md:66

What was checked

Diff from the checkout, origin/main...origin/claude/reflect-2026-11-08 at 5e6a449, the record's head. The ladder adds nothing — no file, function, type or dependency — and version 5.4.0 → 5.5.0 is the cache key CLAUDE.md demands.

Reproduced the measurement: label:proposal answers 1 here and 14 org-wide, matching the body. git grep pull_request_write → 0 hits on the branch. All seven search_* sites in the skills name search_issues, which search/issues serves, and each of those six skills permits gh in allowed-tools, so the fallback cannot stall on a prompt.

Read whole: start-run, format-ticket's tooling section, the why.md anchor, routine-setup.md:555-580. Lean gate not re-run: workflow/lib/ is untouched. Profile read.

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


Generated by Claude Code

Comment thread docs/why.md Resolved
Comment thread workflow/skills/start-run/SKILL.md Resolved
Comment thread workflow/skills/start-run/SKILL.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 8, 2026
…ee sites

The re-measurement landed in docs/why.md, and three other places still
asserted the retired version as current. docs/routine-setup.md closed its
paragraph with "Do not re-test this", so the setup guide told the next run
that the measurement this branch took is impossible.

Each site keeps the conclusion it was there to support, on the reason that
survives the re-measurement: a write goes through mcp__github__*, and no
script under workflow/ fetches, because a fetching script passes locally and
fails silently in a routine whatever the network allows. The two script
comments now point at #a-script-here-never-fetches, which stands on that
reason, rather than at the proxy anchor, which is dated.

Addresses #246 (comment)

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjXo2xmhxAqMM18Q1hb
The bare command the carve-out named answers the proposal ceiling — one
integer — with 195,787 bytes, 30 issue objects in full, re-measured from this
session. Two bytes with `-f per_page=1 --jq .total_count`. The friction being
bought out is five `list_issues` calls per audit night, so an unprojected
fallback hands the saving straight back as context.

The rule names the projection and both its shapes, a count and a list. The
measurement goes in docs/why.md beside the re-measurement that motivated the
carve-out, so the skill carries the rule and not the arithmetic.

Addresses #246 (comment)

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjXo2xmhxAqMM18Q1hb
Its tooling section said "The single exception is Relationships" while
start-run's amended rule names a second. format-ticket is loaded by
run-audit, audit-code, file-ticket and write-ticket — the four skills that
name a search_issues query — so a run reading both files got opposite answers
about whether it may search with gh, in the exact skills the carve-out exists
for.

Both exceptions are named here, and the search one points at start-run for
the projection and the query-building rule rather than restating them.

Addresses #246 (comment)

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjXo2xmhxAqMM18Q1hb
…e the substitute

The carve-out forbids building the query from a title, a body or a comment,
which is exactly what a duplicate hunt searches on. file-ticket step 2,
write-ticket step 1 and revise-roadmap's cross-reference lens each name
search_issues for that hunt and give no query string, so with the MCP tool
absent the rule stopped mid-sentence and a run would invent the rest.
Improvising there is the interpolation the sourcing rule exists to prevent.

The substitute is named: list with list_issues and match locally. This
branch's own /security-review raised the gap as its one sub-threshold
observation.

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

Copy link
Copy Markdown
Contributor Author

Four threads, four commits, all adopted — the carve-out was half-shipped.

  • 87521d7 — routine-setup.md, merge-gate.mjs and branch-preview-url.mjs asserted the retired 2026-09-02 measurement as current, one closing "Do not re-test this". All three state it as history now.
  • 61d6f94 — the bare fallback returns 195,787 bytes for a one-integer read. Always project: -f per_page=1 --jq .total_count, or --jq '.items[].number'. 2 bytes.
  • 5fc47c0 — format-ticket called Relationships the single gh exception. Both are named now.
  • fdfcc51 — from this round's /security-review: the sourcing rule forbids free text, which is what a duplicate hunt searches on, so list_issues is named for it. Nothing else above threshold.

Gate: validate ✓, 119 pass, also from a worktree. rule-delta 92 → 93, nothing dropped. Body refreshed — ## Change outline carries the final rule and a review-round table.

Still yours: five proposals, and the reply budget.

🤖 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 8, 2026
@sydevs-bot
sydevs-bot marked this pull request as ready for review November 8, 2026 08:46
@sydevs-bot
sydevs-bot requested a review from Ardnived November 8, 2026 08:46
@sydevs-bot sydevs-bot moved this from Working to Awaiting in SYDevelopers Technical Roadmap Nov 8, 2026
@Ardnived
Ardnived merged commit b0de22a into main Nov 8, 2026
51 of 54 checks passed
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