stdioBridge: the boot bridge payloadDir silently clobbers the shell OURCLOUD_PAYLOAD_DIR override (precedence ruling needed, #491 fallout) #496
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#496
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?
The trap (found via drive
20260812T213049Z, the first phase-2 red):app/src/lib/stdioBridge.ts:80—if (launch.payloadDir) env.OURCLOUD_PAYLOAD_DIR = launch.payloadDir;assigns the boot bridge's value OVER the inherited shell env ({ ...nodeProcess.env }spread comes first), even though the constructor comment right above states the intent that "the dev overrides … ride through from the shell's launch environment". Pre-#491 the preload droppedpayloadDir, so the guard never fired and shell overrides worked by accident; post-#491 (ae5fa36) the bridge always carriesresourcesPath/payloadon a non-dev launch, so a shellOURCLOUD_PAYLOAD_DIRis now silently dead. The rehearsal drive hit this (supply-leg scp from a nonexistentresources/payload) and the healer worked around it harness-side (a3b4c61: symlink staging in smoke-private-path.sh) — so nothing is broken TODAY.The open ruling (why this is ready-for-human, one decision): should a shell
OURCLOUD_PAYLOAD_DIRbeat the carried payload?if (launch.payloadDir && !env.OURCLOUD_PAYLOAD_DIR) …): matches the comment's stated intent and the rehearsal runbook's documented knob; risk — a stray env var in an operator's shell silently redirects a packaged install's payload.Either way the loser should be made explicit: fix the comment or fix the precedence, plus a unit test pinning whichever precedence is ruled.
Ben's ruling 2026-08-13: ENV WINS. A shell
OURCLOUD_PAYLOAD_DIRbeats the bridge-carried payloadDir — the constructor comment's stated intent and the rehearsal runbook's documented knob become true again.The fix:
app/src/lib/stdioBridge.ts:80→if (launch.payloadDir && !env.OURCLOUD_PAYLOAD_DIR) env.OURCLOUD_PAYLOAD_DIR = launch.payloadDir;OURCLOUD_PAYLOAD_DIRin an operator's shell redirects a packaged install's payload — dev-shaped variable, rare in the wild.a3b4c61, smoke-private-path.sh) exists only to work around this precedence; once env-wins lands and a drive proves green, that staging can retire.Flipping to ready-for-agent.
swarm-claim host=matou-dev-server-01 run=5512
(automated multi-host claim — lowest live claim id works this ticket)
swarm-claim host=elitebook-distributed-server-03 run=5495
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #496 — status
success⛔ close-report gates REFUSED this close — the following claims did not verify:
df76c60beeis not reachable from origin/main (not landed on main)envelope
close-report for #496 — status
success✅ close-report gates passed — every claim verified against main; closing.
envelope