founding: resumability-and-logging — resumable stand-up state, refuse-or-migrate, logged steps #67
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.
Blocks
Depends on
Reference
Matou/idss#67
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?
Parent
Feature spec: #11 (founding).
What to build
The cross-cutting durability and honesty of the stand-up stage: it survives closing the app, may take days, and logs everything without ever leaking secrets. All client-side founding state — the draft, the checklist, and the clan seam's opaque Enrollment snapshot — is one versioned JSON document with a single writer (ADR 0050); closing the app mid-stand-up and reopening it resumes the checklist at the same item, so real-world pace (routers, device owners, DNS propagation) never breaks founding. If the state file's schema version doesn't match the app, it refuses-or-migrates — never silently misreads (ADR 0050). Every stand-up step is logged with drill-in: its events and logs are visible (ADR 0027), and secret-bearing frames are never logged on either side of the app↔helper boundary (ADR 0051).
This behaviour spans S7/S7a/S7b/VAR and S9–S12 rather than any single screen. It runs on the
foundingorchestrator (ADR 0052): the same versioned founding-state file the soft-phase draft lives in, extended across the stand-up checklist.Acceptance criteria
Blocked by
Task manifest
Done in
bb73235(onmain).What shipped (stories 33–34):
Enrollmentsnapshot is now the third peer of the founding-state file (State.Enrollment), alongside the soft-phase draft and the stand-up checklist. New durability faceinternal/founding/resume.go:SaveEnrollmentpersists the opaque blob after eachclan.Enrollment.Advance;EnrollmentSnapshotreturns it on restart soclan.Clan.Resumerebuilds the in-flight device install exactly where it left. Closing/reopening the app mid-stand-up resumes at the same item.decodeState), surfaced through every read op —StandupState/EnrollmentSnapshot/Resume— never silently misread.Standup.Eventslog (oneStandupEventper step via a singlelogEventfunnel); Pair, reachability and deploy each emit persisted events. UI:FoundingStandup.vuegains a LOGGED · Open / Download activity trail visible across every stand-up step.clan.Responseself-masks, never persisted). Seam asserts no secret value lands in the file.Evidence:
internal/founding/resume_test.go(resume-checklist, resume-enrollment-snapshot, refuse-schema-mismatch, every-step-events, no-secret-frame) —go test ./internal/founding/green; app vitest 170/170 (incl. new drill-in-log render test).Drive-by: unbreaks a latent build+test bug in #57's deploy face that never ran because the package did not compile — a missed
enroll.NodeID→stringconversion atdeploy.go:209, and the VM-mode deploy test paired below the VM-host floor.enroll-copy's shipped ServerAliveInterval=30/CountMax=10 did not terminate a live stallednix copy, ran the full 90m ceiling — the fix's synthetic proof does not match live behaviour #716enroll-copy's shipped ServerAliveInterval=30/CountMax=10 did not terminate a live stallednix copy, ran the full 90m ceiling — the fix's synthetic proof does not match live behaviour #716