package: preload drops payloadDir from the boot bridge — packaged founding refuses with 'payload is not carried ("")' despite a complete carried payload #491
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#491
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?
Symptom (live, #471's install proof, 2026-08-12 — second defect of the proof)
Fresh
.debinstall (post-#490 chmod), founding's private path refused at the VM stand-up:Yet the install's payload is complete and readable:
/opt/OurCloud/resources/payload/carries agent, control-plane, dashboard,nixos-guest.qcow2(2.1 GiB, 0644), pinned qemu-img + qemu-system-x86_64, gateway-cache. The empty("")is the tell: the helper resolved with noOURCLOUD_PAYLOAD_DIRat all, not a wrong one.Cause — the preload drops
payloadDirat the IPC hand-offThe chain is wired at every hop except one:
electron-main.tsresolves it (payloadDirPath()→resourcesPath/payload) and includes it in theourcloud:boot-inforeply (line ~237).boot-info.tsdeclarespayloadDir?: stringon the bridge type.production.tspassesbridge.payloadDirintobootPackagedApp.stdioBridge.tsexportslaunch.payloadDirasOURCLOUD_PAYLOAD_DIR(line 80).But
electron-preload.ts— which receives the boot-info overipcRenderer.sendSyncand rebuildswindow.__OURCLOUD__field by field — has a localBootInfointerface withoutpayloadDir, and its object literal copies onlyhelperBin/stateDir/currentVersion/dev/channelSource. Sobridge.payloadDirisundefinedin the renderer, theif (launch.payloadDir)guard skips the export, and the untagged helper (#295:OURCLOUD_PAYLOAD_DIRis the ONLY production resolution) fails loud with the empty path.Why #463's open smoke missed it: the packaged-open proof stops at the operator home; the dropped field only bites at founding's stand-up. The field-by-field literal is the trap — main can grow the bridge and the preload silently narrows it.
Fix
payloadDir?: stringto the preload'sBootInfoand copy it into thewindow.__OURCLOUD__literal (2 lines).package-open.smoke.spec.ts) to assertwindow.__OURCLOUD__.payloadDiris set and ends withresources/payloadwhen the extracted package carries one — sandbox-provable, and it turns the bridge hand-off into a contract the smoke owns. Consider asserting the other bridge fields the same way while there (the same narrowing trap holds for every future field).dev/channelSourcemade it, but any field main sends that the preload does not copy is silently dead — a comment on the literal naming the trap, or a spread of the IPC payload for the data fields, whichever fits the hardening-split direction noted in the preload header.Workaround (live now, evidence on #471)
OURCLOUD_PAYLOAD_DIR=/opt/OurCloud/resources/payload ourcloud—stdioBridgeinherits the parent env (#255), so the launch-env var reaches the helper. The zero-manual-steps criterion on #471 stays unmet until this lands.Acceptance
payloadDir; packaged-open smoke asserts the bridge field from the extracted artifact..deb(scripts/package-app.sh) founds past the VM stand-up gate with zero env overrides (the live re-proof rides #471).close-report for #491 — status
success✅ close-report gates passed — every claim verified against main; closing.
envelope