founding: founded flips true before the stand-up completes — resume skips the credential hand-off (S12 never ran) #484

Closed
opened 2026-08-12 17:53:35 +00:00 by ben · 1 comment
Owner

Filed from Ben's 2026-08-12 manual fresh-install trial (companions: #476 transient-red deploy, #477 recovery dead-end, #483 fleet view).

What happened

The stand-up faulted at the deploy leg (#476) — S12 and the identity hand-off (operator credential/passkey ceremony) were never reached. Yet founding-state.json already carried "founded": true at that point. On relaunch the app therefore treated the community as complete: it skipped the remaining stand-up legs entirely (no credential creation offered) and dropped into the standing-community flow — an operator with no identity on a half-stood community, with degraded downstream surfaces (#483's empty fleet view is plausibly this).

The defect

founded is being set before the arc it names is actually done. Founding's own definition of done includes the hand-off (ADR 0044 family: the ceremony + scrub IS the completion). A fault mid-stand-up must leave the journey resumable AT the faulted leg — resume re-enters the stand-up (idempotent legs, #464 contract), not the standing-community route.

Definition of done

  • founded (or whatever the resume routes on) flips only when the stand-up + hand-off complete; a mid-stand-up fault resumes at the faulted leg with the remaining legs (deploy → hand-off → S12 ceremony) still owed.
  • Given a drive faulted at deploy, When the app relaunches, Then the journey resumes the stand-up and the credential ceremony still happens before any operator-home routing.
  • A journey test pins the resume-at-faulted-leg routing.
Filed from Ben's 2026-08-12 manual fresh-install trial (companions: #476 transient-red deploy, #477 recovery dead-end, #483 fleet view). ## What happened The stand-up faulted at the deploy leg (#476) — S12 and the identity hand-off (operator credential/passkey ceremony) were **never reached**. Yet `founding-state.json` already carried `"founded": true` at that point. On relaunch the app therefore treated the community as complete: it skipped the remaining stand-up legs entirely (no credential creation offered) and dropped into the standing-community flow — an operator with **no identity** on a half-stood community, with degraded downstream surfaces (#483's empty fleet view is plausibly this). ## The defect `founded` is being set before the arc it names is actually done. Founding's own definition of done includes the hand-off (ADR 0044 family: the ceremony + scrub IS the completion). A fault mid-stand-up must leave the journey resumable AT the faulted leg — resume re-enters the stand-up (idempotent legs, #464 contract), not the standing-community route. ## Definition of done - `founded` (or whatever the resume routes on) flips only when the stand-up + hand-off complete; a mid-stand-up fault resumes at the faulted leg with the remaining legs (deploy → hand-off → S12 ceremony) still owed. - Given a drive faulted at deploy, When the app relaunches, Then the journey resumes the stand-up and the credential ceremony still happens before any operator-home routing. - A journey test pins the resume-at-faulted-leg routing.
Author
Owner

close-report for #484 — status success

✅ close-report gates passed — every claim verified against main; closing.

envelope
{
  "issue": 484,
  "status": "success",
  "commits": [
    "a63dd760bbb944bbbd640e11695bd8ae350eced1"
  ],
  "changed_files": [
    "STATUS.md",
    "app/src/bootstrap.ts",
    "app/src/lib/foundingResume.ts",
    "app/tests/unit/foundingResumeRouting.test.ts"
  ],
  "tests": [
    {
      "command": "npx vitest run tests/unit/foundingResumeRouting.test.ts",
      "exit_code": 0
    },
    {
      "command": "npx vitest run --exclude tests/unit/boot.test.ts",
      "exit_code": 0
    },
    {
      "command": "npx vue-tsc -p tsconfig.json --noEmit",
      "exit_code": 0
    }
  ],
  "criteria": {
    "`founded` (or whatever the resume routes on) flips only when the stand-up + hand-off complete; a mid-stand-up fault resumes at the faulted leg with the remaining legs (deploy -> hand-off -> S12 ceremony) still owed": "No Go change needed: the founding-state document (and thus resume()'s `created`-step draft) survives on disk from create-community until the hand-off scrub deletes it (handoff.go:576, ADRs 0044/0050). foundingStandupOwed (app/src/lib/foundingResume.ts) routes on exactly that signal, so 'whatever the resume routes on' clears only when the stand-up + hand-off complete. foundingResumeRouting.test.ts asserts a faulted-at-deploy state still owes the stand-up (no seed, no hand-off, no settled credential).",
    "Given a drive faulted at deploy, When the app relaunches, Then the journey resumes the stand-up and the credential ceremony still happens before any operator-home routing": "resumeFoundingAtBoot(clients.founding, navigator) is wired into bootstrap.ts fire-and-forget; when a stand-up is owed it navigates to the founding journey (which resumes at the faulted leg and lands on Operator home only after complete-hand-off), outranking the seat. foundingResumeRouting.test.ts 'routes into the founding journey (not Operator home) when a stand-up is owed' asserts navigator.last === {to:'founding'}.",
    "A journey test pins the resume-at-faulted-leg routing": "app/tests/unit/foundingResumeRouting.test.ts (6 tests) drives the FakeFoundingClient to a genuine faulted-at-deploy stand-up and pins: owed -> founding; scrubbed / soft-phase / never-founded / helper-unreachable -> rest on the seat."
  },
  "summary": "At boot an in-progress founding stand-up (resumable `created`-step draft) outranks the seat, so a mid-stand-up fault relaunches into the founding journey at its faulted leg instead of an identity-less Operator home.",
  "blockers": []
}
**close-report** for #484 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; closing. <details><summary>envelope</summary> ```json { "issue": 484, "status": "success", "commits": [ "a63dd760bbb944bbbd640e11695bd8ae350eced1" ], "changed_files": [ "STATUS.md", "app/src/bootstrap.ts", "app/src/lib/foundingResume.ts", "app/tests/unit/foundingResumeRouting.test.ts" ], "tests": [ { "command": "npx vitest run tests/unit/foundingResumeRouting.test.ts", "exit_code": 0 }, { "command": "npx vitest run --exclude tests/unit/boot.test.ts", "exit_code": 0 }, { "command": "npx vue-tsc -p tsconfig.json --noEmit", "exit_code": 0 } ], "criteria": { "`founded` (or whatever the resume routes on) flips only when the stand-up + hand-off complete; a mid-stand-up fault resumes at the faulted leg with the remaining legs (deploy -> hand-off -> S12 ceremony) still owed": "No Go change needed: the founding-state document (and thus resume()'s `created`-step draft) survives on disk from create-community until the hand-off scrub deletes it (handoff.go:576, ADRs 0044/0050). foundingStandupOwed (app/src/lib/foundingResume.ts) routes on exactly that signal, so 'whatever the resume routes on' clears only when the stand-up + hand-off complete. foundingResumeRouting.test.ts asserts a faulted-at-deploy state still owes the stand-up (no seed, no hand-off, no settled credential).", "Given a drive faulted at deploy, When the app relaunches, Then the journey resumes the stand-up and the credential ceremony still happens before any operator-home routing": "resumeFoundingAtBoot(clients.founding, navigator) is wired into bootstrap.ts fire-and-forget; when a stand-up is owed it navigates to the founding journey (which resumes at the faulted leg and lands on Operator home only after complete-hand-off), outranking the seat. foundingResumeRouting.test.ts 'routes into the founding journey (not Operator home) when a stand-up is owed' asserts navigator.last === {to:'founding'}.", "A journey test pins the resume-at-faulted-leg routing": "app/tests/unit/foundingResumeRouting.test.ts (6 tests) drives the FakeFoundingClient to a genuine faulted-at-deploy stand-up and pins: owed -> founding; scrubbed / soft-phase / never-founded / helper-unreachable -> rest on the seat." }, "summary": "At boot an in-progress founding stand-up (resumable `created`-step draft) outranks the seat, so a mid-stand-up fault relaunches into the founding journey at its faulted leg instead of an identity-less Operator home.", "blockers": [] } ``` </details>
ben closed this issue 2026-08-12 18:20:28 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#484
No description provided.