founding: failJourney swallows the stand-up persistence error (ADR 0126/0127 merge follow-up) #275
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#275
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?
internal/founding/privatepath.go failJourney does
_, _ = o.commitStandup(s): if the store write fails, the fault AND the survived stand-up log are silently lost — the goroutine clears o.live and StandupState serves the last pre-failure state with no fault, so the journey appears to reset unexplained. The pre-merge sync path surfaced this via errors.Join. Suggested: log it or publish a terminal live fault snapshot. Found by the ADR 0126 merge review (669afd1).Triage Notes
What we've established so far:
failJourneyfunction ininternal/founding/privatepath.go, a swallowed-error pattern_, _ = o.commitStandup(s), ano.livefield cleared on failure, and a commit669afd1where "the pre-merge sync path surfaced this viaerrors.Join".internal/founding/privatepath.goexists but its only exported entry point isStandUpPrivate(plus the unexportedstandUpLocalVM/privateVMSpec/vmEventMessagehelpers) — nofailJourneyanywhere in the package or the repo.commitStandup(internal/founding/standup.go:599) is called in 14 places acrossdeploy.go,toolchain.go,handoff.go,manualpath.go,standup.go,seed.go— every call site checks and returns/propagates the error; none discard it with_, _ =.o.livefield exists on the foundingOrchestrator(the only.livehits in the package are on an unrelated test fake ininternal/founding/testing/fakes.go, tracking single-use token redemption).errors.Joinusage exists anywhere ininternal/founding/.docs/adr/tops out at0125-private-path-host-toolchain-is-app-managed.md— no 0126 or 0127, in the working tree or anywhere ingit log --all. Fetched all remotes (fix/sandcastle-secrets-file-mount,research/browser-e2e-tooling,research/desec-lab-delegation,research/pipeline-e2e-forgejo-target,main) — none mention "0126", "0127", or "failJourney", and no commit669afd1exists in this repo's history.needs-info, also referencing an ADR/branch/code path that doesn't exist inMatou/ourcloud) — worth checking whether both reports trace back to the same external source. Not an "already implemented" wontfix (the described machinery doesn't exist here at all) and doesn't match anything in this repo's rejected-request history (no.out-of-scope/entries yet).What we still need from you (@ben):
669afd1actually live? Isinternal/founding/privatepath.go'sfailJourneyfrom a different checkout, a branch that didn't reachorigin, or a different repo entirely?Confirmed independently by the 2026-08-05 fail-loud audit:
internal/founding/privatepath.go:448—failJourney's final act is_, _ = o.commitStandup(s), andcommitStandup(internal/founding/standup.go:667-672) returns the store's save error. If that save fails the fault is lost and the stand-up row stays atStandupDeployingwith no fault set — the founding UI spins indefinitely. The sweep found no other swallow on the failJourney path, so surfacing/retrying that one commit closes it.Triage Notes (update)
What we've established so far:
failJourneyfunction and no_, _ = o.commitStandup(s)swallow anywhere ininternal/foundingonmain.internal/founding/privatepath.go:448andinternal/founding/standup.go:667-672.main.privatepath.gois 283 lines total (no line 448 to point to);commitStandupis defined atstandup.go:603, not 667-672; there is still nofailJourneyfunction and no_, _ =swallow anywhere in the package.What we still need (from whoever ran the confirming audit, or @ben):
mainat current HEAD nor the state either triage pass checked. This repo has an established pattern of ADR-12x work landing this way before merge (see the branch notes on #296 and #311) — if that's what's going on here, say so explicitly so this ticket can be held until that branch lands, the same way #296 flags its dependency inline.needs-infountil someone can point at real, reproducible code.Leaving this
needs-info— the confirming comment doesn't give a location that exists anywhere in this checkout, so there's still nothing an agent (or a human) can act on with confidence.Triage Notes (correction)
What we've established so far:
mainand every remote branch fetched at the time, found nofailJourney, no matching swallow ininternal/founding/privatepath.go, and concluded the report didn't match anything in this repository.origin/private-standup-polish— a long-lived feature branch not reconciled by the prior passes — which carries the private-path live e2e work and the ADR 0126/0127 vm-standup chain this report describes.Orchestrator.failJourney(internal/founding/privatepath.go) logs the fault into the stand-up's event log, then ends with a discarded_, _ = o.commitStandup(s)— if that store write fails, both the fault and the log entry are lost, and the stand-up state falls back to whatever was last successfully committed. This matches the 2026-08-05T23:11:55Z "confirmed independently" comment's description closely (that comment's line numbers were slightly off relative to this branch's current tip, which is likely why the second triage pass couldn't reconcile it againstmain).What needs deciding:
private-standup-polishis an active branch with commits from another contributor as recently as today. Whether an agent should commit a fix directly onto that in-flight branch, or whether this should wait until it merges tomain, is a coordination call — landing an uncoordinated fix on someone else's active branch risks conflicting with work already underway there.Routing to
ready-for-human(previouslyneeds-info) — the underlying bug is now confirmed and reproducible in code; where/how to land the fix needs a call given the branch is actively being developed.Ruled by Ben 2026-08-08 (decision sweep): keep the fault live, and log. When
failJourney'scommitStandupfails, the journey keeps serving the in-memory fault — no silent reset to the last pre-failure state — and the store error is logged alongside it. →ready-for-agent.Fixed in
ec615aa(on origin/main), following Ben's 2026-08-08 ruling — keep the fault live, and log.failJourney(internal/founding/privatepath.go) no longer does_, _ = o.commitStandup(s). On a store-write failure it now:could not save the fault to disk — …), andOrchestrator.liveFault) thatStandupStateserves in the failed store's place — so the journey shows the honest fault instead of silently resetting to the last successfully-saved (pre-failure) state.A re-drive supersedes it:
launchJourneyclearsliveFault, and the fault-retry path (vmRerun) always runslaunchJourneybefore any other resting position.Test-first at the founding seam (internal/founding/privatepath_test.go):
TestPrivateStandup_FailJourneyKeepsFaultLiveWhenStoreWriteFailsinjects afaultSwallowStorethat rejects exactly the fault-carrying save (the #275 scenario) while every pre-fault step-boundary save succeeds, drives the sops-admin bootstrap to fault, then asserts the fault survives, the store error is logged alongside it, and the failing row still renders red. Verified red before the fix (got <nil>), green after; fullinternal/foundingsuite + whole-tree Go gate (build/vet/test/lint) pass.