tests: 3 more offline suites red on clean main (heal-test, list-ready-tasks-test, session-runner-test) — likely same ambient-env-leak family as #537 #586
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
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#586
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?
Found 2026-08-15 while landing #537 (rehearsal-healer-test + preflight-swarm-test
hermeticity/staleness fixes). The #531 close-report's sweep already flagged
heal-test.shandlist-ready-tasks-test.shas pre-existing reds on cleanmain; this run adds a third in the same family and pins down the likelyshared root cause.
list-ready-tasks-test.sh— failsthe standing drive issue #492 must not be surfaced to the swarm. The fixture/assertion hardcodes#492asthe drive issue, but this host's ambient
REHEARSAL_DRIVE_ISSUE(from.sandcastle/.env, independently re-minted per #493) is a differentnumber today — the same "hardcoded fixture vs ambient env" shape #537
just fixed in
rehearsal-healer-test.sh. Likely fix: pinREHEARSAL_DRIVE_ISSUE=492(or whatever the fixture assumes) explicitlyin the test's invocation env.
session-runner-test.sh— fails, but non-deterministically: one runfailed
a failover must retry the session once, a re-run of the sameunmodified suite failed
exactly one claude session expectedat adifferent case. Looks racy rather than a simple stale assertion — needs
its own diagnosis pass, possibly also ambient-env-sensitive
(
session-runner.shalso defaults/readsREHEARSAL_DRIVE_ISSUE).heal-test.sh— failsa limit without a standby must defer as before. Not yet diagnosed against the "ambient env leak" hypothesis;needs its own look — may be a genuine stale assertion rather than an env
leak.
Both
list-ready-tasks-test.shandsession-runner-test.shreproduce onclean
main(stash-baselined), so this is not caused by #537's diff.Acceptance: all three suites green on clean
main, hermetic to whateverREHEARSAL_DRIVE_ISSUEthe host's.sandcastle/.envcurrently carries.Why human
Nothing —
ready-for-agent; found while landing #537 under ADR 0174, keptout of that ticket's diff to stay scoped.
swarm-claim host=elitebook-distributed-server-03 run=6859
(automated multi-host claim — lowest live claim id works this ticket)
Routing to
ready-for-session— this ticket's whole scope is a protected.sandcastle/change a swarm worker cannot make (ADR 0174 rule 5).Diagnosis confirmed for suite 1:
list-ready-tasks-test.shbuilds a mock feed containing#492and asserts the standing drive issue is excluded (lines 41, 53–54). But it invokeslist-ready-tasks.shwithout pinningREHEARSAL_DRIVE_ISSUEon that first call, so the host's ambientREHEARSAL_DRIVE_ISSUE(from.sandcastle/.env, independently re-minted per #493 — not492today) leaks in and#492surfaces. Line 76 already pins the override (REHEARSAL_DRIVE_ISSUE=999) for the second invocation — the fix is the same shape applied to the first:REHEARSAL_DRIVE_ISSUE=492 bash "$here/../list-ready-tasks.sh". This is exactly the "hardcoded fixture vs ambient env" family #537 fixed inrehearsal-healer-test.sh. Suites 2 (session-runner-test.sh) and 3 (heal-test.sh) still need their own diagnosis passes as the ticket notes.All three suites live under
.sandcastle/tests/, which is inside the fingerprinted protected set (.sandcastle,.forgejo) enforced byprotected-paths-lib.sh(#445): any edit a swarm worker makes there is attributed, rolled back, and fails the run loud. So the fixes cannot land from theready-for-agentswarm queue at all — they need an interactive session's standing.ADR 0174 rule 5 mints exactly this case: "
ready-for-sessionis minted for work that needs an interactive agent session's standing (host credentials, protected.sandcastle/paths per #445, live droplet doors, design-tier runs) but not Ben. Swarm workers skip it exactly as they skipready-for-human."Action taken: swapped
ready-for-agent→ready-for-sessionand released this run's swarm claim. No code changed (a swarm worker editing here would only be rolled back). A session can pick this up and land all three suite fixes directly.— sandcastle run 6855
close-report for #586 — status
success✅ close-report gates passed — every claim verified against main; closing.
envelope