Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#1270
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
Measured on the #1235 archive drive (2026-09-05/06, eleven reds, each strictly later): a nominal red costs ~65 min wall-clock, of which the drive itself is under half. The hand-off pipeline — healer diagnose (6 min) → file + rule (5–25 min) → swarm claim (2–5 min nominal) → worker build + close-report (11 min median) → re-fire + eval-gate re-key (3–5 min) — is 35–45 min nominal, and its tail is unbounded when the tracker degrades: #1246 waited 80 min and #1247 nearly 3 h on claim churn alone. The healer already holds the richest context of any actor (run dir, logs, tree, the leg's frames) and spends a Claude call producing a diagnosis that the swarm worker then re-derives from ticket text, sometimes with less access (#1247's worker could not read the tree).
Ben asked (2026-09-05) how much the gap between drive runs would shrink if the healer could fix failures directly, and for the pros/cons of a fixer role. This ticket carries the recommendation and the two cheaper wins that precede it.
Part A — healer fast lane (needs Ben's ruling: it changes the healer's trust model)
Do not remove the ticket. Give the healer a fast lane: when its diagnosis is
confident:trueAND the door is two-way (ADR 0174), itDRIVE_EXCLUSIVE=slot);Rule 3 refusals stay as they are — product-behaviour surfaces that are one-way doors, security posture, design contracts (DDR/ADR territory) still get a human or session ruling. Three of the eleven #1235 reds carried a real design choice (front door #1238, co-host route shape #1246, secrets shape #1247) and must NOT go down the fast lane.
Expected saving: the file/rule/claim/worker stages collapse into one build — ~25–35 min per red nominally (~40 % of cycle time) plus immunity to the claim-churn tail.
Cons the ruling must answer (from the assessment):
Part B — easy win 1: claim harness vs tracker latency (two-way, ready-for-agent on ruling)
The tracker cost more time on 2026-09-05/06 than the model did.
.sandcastle/claim-lib.sh:claim_alive_runs=actions/tasks?limit=100capped atCLAIM_ALIVE_MAX_TIME=14 s;CLAIM_NEXT_DEADLINE=26 s; a lost claim DELETEs its own comment, which fails on a slow tracker, so staleswarm-claimcomments linger and starve the next claim (I hand-deleted 12 stale claims on #1247 before a live claim won). Companion: #1245 (reporter re-query by sig after a 503-after-store). Ask: (a) a stale-claim sweeper keyed onrun-swarm-verdicts.logcompletion, (b) the liveness probe must not equate "tracker slow" with "run dead" — back off and retry rather than lose the claim, (c) budgets sized to the tracker's observed p95, not 14 s.Part C — easy win 2: snapshot rail after the founding prefix (two-way, ready-for-agent on ruling)
Every #1235 run pays ~11 min of
founding-prefixbefore the archive legs start (run 12: 651 863 ms of a 1 119 s red). The phase-7 spec's snapshot rail (park / snapshot-rail / transient are still unexercised — see the #1153 arc) would let the archive legs start from a founded snapshot. Ten minutes off every run of this drive, regardless of who fixes what.Suggested order
B and C first (no trust-model change, both two-way → agent); A after Ben rules. If Ben rules A, split B and C out as
ready-for-agentchildren so they are not blocked on A.RULED by Ben 2026-09-06 — Part A APPROVED; B and C SPLIT OUT
Part A — healer fast lane: YES. The healer builds product fixes when its diagnosis is
confident:trueand the door is two-way (ADR 0174).DRIVE_EXCLUSIVE=slot).This ticket now carries Part A alone. The build touches
.sandcastle/heal*.sh/rehearsal-heal-prompt.md/ the executor's healer step — protected paths (#445) — so it is relabelledready-for-session, notready-for-agent.Parts B and C split out as independent children (neither blocked on A):
founding-prefix) → #1280healer fast lane + two easy wins — let a confident two-way healer file, build, gate and close its own fix; fix claim-harness tracker-latency exposure; snapshot rail after founding-prefixto healer fast lane — a confident two-way healer files, builds on the workstation, passes the close-report gate and closes its own fix (RULED by Ben 2026-09-06; B → #1279, C → #1280)Ruled by agent under ADR 0174 — veto anytime
Part A (the healer fast lane) is implemented, tested, landed, and CLOSED. Two rulings I made in the course of it, both two-way doors, flagged for your veto:
1. It landed via the factory, not an in-repo edit. The ticket framed the build as touching
.sandcastle/heal*"protected paths, #445" and labelled itready-for-sessionon that basis. In fact those files (rehearsal-heal-lib.sh,rehearsal-report.sh, the rehearsal-heal-prompt skeleton, the two tests) are vendored fromMatou/dev-factory(ADR 0180 / #571) — an in-repo edit reds thecidrift gate. So I followed the established route (the same one #1245 used forrehearsal-report.sh): landed the change upstream inMatou/dev-factory@cf2efb0, then re-vendored here (onboard.sh vendor→ FACTORY_REF906c770d→cf2efb0,check-harness-drift: OK) and re-rendered the prompt. Two-way: the dev-factory commit and the FACTORY_REF bump are both revertible; provable by the drift check + the offline suites. Blast radius is per-consumer — matou-app only picks it up if/when it bumps its own pin.2. "The fast lane keeps the healer cap" = the EXISTING cap (
HEAL_LINE_CAP, currently 400), not a re-imposed 200. Your ruling and STATUS said "cap 200 (GOTCHAS #115)". But #1144 already raisedHEAL_LINE_CAP200→400 in the live rails (phase-5's real fixes were 113–255 lines and 200 kept reverting correct heals). The fast lane reusesheal_rails' cap verbatim viafast_lane_rails(so "keeps the healer cap" holds by construction), rather than introducing a second, lower 200 cap that would exclude exactly the mid-size mechanical fixes the fast lane exists to accelerate. If you meant a literal 200 for the fast lane specifically, say the word and I'll add a fast-lane-onlyHEAL_LINE_CAP=200.Close-report
What landed (Part A only; B→#1279, C→#1280 untouched): the rehearsal drive healer gains a third disposition,
fast-lane, beside heal-in-lane and file. When a red's fix is confident + two-way but lives in product code (rule 3'sinternal//app/src/path), the healer builds it on the workstation, files the ticket carrying its diagnosis and a proposed ruling, and closes it through the sameclose-report.shgate a swarm worker passes.fast_lane_railslifts only rule 3 (product surface). The cap, the single-commit rule, the self-mod guard, and rule 1 (never weaken a check — the masking-pressure guard you flagged) all still bind. Over-cap / weakened-check / self-mod fall back to today's file path (swarm for a big-but-mechanical fix, a ruling for a weakened check).confident:false→ a session/human ruling; the prompt charter draws that line explicitly.main, so the next drive greens regardless).Commits:
Matou/dev-factory@cf2efb0ee21ed7c504ee4dc2ede5babfeb95c25e— the harness change.Matou/idss@d61c264d— re-vendor (FACTORY_REF bump) + STATUS.md.Proof:
check-harness-drift: OK@cf2efb0(the gate that would have redded an in-repo edit is green).rehearsal-heal-lib-test31,rehearsal-healer-test21,close-report-lib-test16,close-report-test65 — all pass.fast_lane_railscases (rule 3 lifted; cap / rule 1 / 3-file / self-mod still bite) and +2 routing cases (a product-surface fast-lane fix filed-and-closed through the gate; a would-weaken-a-check fast-lane fix refused and fallen back to filing). The healer-test curl shim now drains-d @-so close-report'spost_commentpipe can't SIGPIPE underpipefail.Honest caveat: the runtime behaviour (a real healer session building product code and closing a ticket) can't be exercised offline — it's proven the same way the existing heal/file paths are: deterministic rails + stub-driven routing + the (already-trusted) close-report gate, plus the prompt charter. First real firing should be watched, and confidence calibration is exactly what the P4 retrospective flagged for the next drive.
Closing under ADR 0174.