rehearsal-9 Task 1: The hand-off card is honest — a service row that is not done never reads RUNNING (FoundingFleetSummary keys on the seam row; serviceFailsAt fake knob; locales; wireframe p1-s12) #1485

Closed
opened 2026-09-15 13:14:25 +00:00 by ben · 2 comments
Owner

Phase 9 (provision on founding) task 1 of 6. Spec: docs/superpowers/specs/2026-09-15-183-phase-9-provision-on-founding-rehearsal-design.md. Plan (read the header, Global Constraints and plan-time inventory first — the Interfaces block below is how tasks learn each other's names): docs/superpowers/plans/2026-09-15-183-phase-9-provision-on-founding-rehearsal.md.

Acceptance = every checkbox step below done, its verification commands green, one commit in the repo's voice. A blocked_by edge on this ticket names the task whose Interfaces it consumes.


Task 1: The hand-off card is honest — a service row that is not done never reads RUNNING

Files:

  • Modify: app/src/components/founding/handOffFleet.ts (add status/detail to FleetService)
  • Modify: app/src/components/founding/FoundingStandup.vue:876-895 (handOffServices copies them)
  • Modify: app/src/components/founding/FoundingFleetSummary.vue:71-130 (badge keyed on the row; not-running face + detail; Open only when running)
  • Modify: app/src/lib/founding.ts:3016 (+ serviceFailsAt knob) and :4671-4692 (rowsFor emits a failed row for it)
  • Modify: app/src/i18n/founding/g10.uipass.en.ts, .nl.ts, .es.ts, .fr.ts (fleet.notRunning)
  • Modify: docs/ux/wireframes/p1-founding/p1-s12-hand-off.html (fleet card with the three service faces + amendment note)
  • Test: app/tests/unit/foundingHandOff.test.ts (extend the #1448 describe)
  • Modify: STATUS.md (header line)

Interfaces:

  • Produces: FleetService.status?: 'done' | 'todo' | 'failed', FleetService.detail?: string; DOM contract on [data-field="service-card"][data-service=<slug>]: [data-field="running-badge"][data-status="running"|"planned"|"not-running"], [data-field="service-detail"] (present only when not running on a live machine), [data-action="open-service"] only when running and url; fake knob FakeFoundingClient.serviceFailsAt: string | null.

  • Consumed by: Task 5 leg 12 (hand-off-card) and the fixture assertHandOffFleet (unchanged — it asserts running).

  • Step 1: Write the failing unit test — append to the P1-S12 Hand-off — the fleet is read from the seam describe in app/tests/unit/foundingHandOff.test.ts (reuse its fleetDraft, mountFleetHandOff):

  it('a service row the seam reports FAILED on a live machine draws NOT RUNNING with its detail and no door (phase 9)', async () => {
    const fake = new FakeFoundingClient();
    fake.serviceFailsAt = 'files';
    const wrapper = await mountFleetHandOff(fake);
    const files = wrapper.get('[data-service="files"]');
    expect(files.get('[data-field="running-badge"]').attributes('data-status')).toBe('not-running');
    expect(files.get('[data-field="service-detail"]').text()).toContain('add it from the control panel');
    expect(files.find('[data-action="open-service"]').exists()).toBe(false);
    // The machine itself is still live, and its other service still runs.
    expect(
      wrapper.get('[data-device="gateway"] [data-field="device-status"]').attributes('data-state'),
    ).toBe('live');
    expect(
      wrapper.get('[data-service="backup-copy"] [data-field="running-badge"]').attributes('data-status'),
    ).toBe('running');
  });
  • Step 2: Run it, expect FAIL — cd app && pnpm exec vitest run tests/unit/foundingHandOff.test.ts → fails: serviceFailsAt is not a property / badge reads running.

  • Step 3: Types + fake knob. In handOffFleet.ts add to FleetService:

  /** The seam row's own state (#1392): only `done` is running; `todo`/`failed` draw NOT RUNNING. Absent = legacy row, treated as done. */
  status?: 'done' | 'todo' | 'failed';
  /** The honest one-liner for a not-running service (why, and that P4 can add it). */
  detail?: string;

In founding.ts beside deviceFailsAt (:3016):

  /** Scripted per-SERVICE failure for the hand-off fleet (phase 9): the slug whose row the seam reports `failed` on an otherwise live machine. */
  serviceFailsAt: string | null = null;

In rowsFor (:4671), after building row and before if (live && host …):

          if (this.serviceFailsAt === p.service) {
            row.status = 'failed';
            row.detail = `the deploy did not hold — add ${row.name} from the control panel`;
            return row;
          }
  • Step 4: Thread the row through handOffServices (FoundingStandup.vue), after if (row.address) s.url = row.address;:
      s.status = row.status;
      if (row.detail) s.detail = row.detail;
  • Step 5: The card. In FoundingFleetSummary.vue script add:
type ServiceFace = 'running' | 'planned' | 'not-running';
function face(d: FleetDevice, s: FleetService): ServiceFace {
  if (d.state !== 'live') return 'planned';
  return (s.status ?? 'done') === 'done' ? 'running' : 'not-running';
}

Replace the pill (:78-84) with:

        <span
          class="oc-fleet-service__pill"
          :class="{
            'oc-fleet-service__pill--planned': face(d, s) === 'planned',
            'oc-fleet-service__pill--off': face(d, s) === 'not-running',
          }"
          data-field="running-badge"
          :data-status="face(d, s)"
          >{{
            t(
              face(d, s) === 'running'
                ? 'founding.fleet.running'
                : face(d, s) === 'planned'
                  ? 'founding.fleet.planned'
                  : 'founding.fleet.notRunning',
            )
          }}</span
        >

After the description span add:

        <span v-if="face(d, s) === 'not-running' && s.detail" class="oc-fleet-service__detail" data-field="service-detail">{{ s.detail }}</span>

Change the Open link's v-if="d.state === 'live' && s.url" to v-if="face(d, s) === 'running' && s.url". Add the --off style beside --planned (same muted treatment; color: var(--oc-status-failed, var(--oc-ink-2))).

  • Step 6: Locales — in all four g10.uipass.*.ts fleet: blocks, after running: add notRunning: — en 'NOT RUNNING', nl 'DRAAIT NIET', es 'NO EN MARCHA', fr 'PAS EN MARCHE'.

  • Step 7: Run the test, expect PASS, then the whole unit suite pnpm --filter app test (the #1448 AC3/AC4 cases must still pass — every badge running when nothing fails) and pnpm --filter app build (vue-tsc).

  • Step 8: Wireframe. In p1-s12-hand-off.html add, under the portal footer block, a fleet-summary block with one gateway card carrying three service cards: files running-badge running + Open; docs-editing not-running + service-detail "the deploy did not hold — add Document editing from the control panel"; a card on a waiting machine planned. Append to the provenance comment: ✎ amendment (2026-09-15, phase 9): the hand-off draws the fleet ACCOUNT (Ben's 2026-09-12 ruling, FoundingFleetSummary) — three service faces: running / planned / not-running (the seam row's own status, #1392; a failed row never reads RUNNING).

  • Step 9: STATUS + commit — prepend a STATUS header line (phase 9 task 1 landed: the hand-off card keys on the row; serviceFailsAt knob; wireframe amended). Commit: founding: phase 9 — the S12 fleet card keys RUNNING on the seam's service row, so a failed founding-time service reads NOT RUNNING with its detail (never a door that leads nowhere).


Phase 9 (provision on founding) task 1 of 6. Spec: `docs/superpowers/specs/2026-09-15-183-phase-9-provision-on-founding-rehearsal-design.md`. Plan (read the header, Global Constraints and plan-time inventory first — the Interfaces block below is how tasks learn each other's names): `docs/superpowers/plans/2026-09-15-183-phase-9-provision-on-founding-rehearsal.md`. Acceptance = every checkbox step below done, its verification commands green, one commit in the repo's voice. A blocked_by edge on this ticket names the task whose Interfaces it consumes. --- ### Task 1: The hand-off card is honest — a service row that is not `done` never reads RUNNING **Files:** - Modify: `app/src/components/founding/handOffFleet.ts` (add `status`/`detail` to `FleetService`) - Modify: `app/src/components/founding/FoundingStandup.vue:876-895` (`handOffServices` copies them) - Modify: `app/src/components/founding/FoundingFleetSummary.vue:71-130` (badge keyed on the row; `not-running` face + detail; Open only when running) - Modify: `app/src/lib/founding.ts:3016` (+ `serviceFailsAt` knob) and `:4671-4692` (`rowsFor` emits a failed row for it) - Modify: `app/src/i18n/founding/g10.uipass.en.ts`, `.nl.ts`, `.es.ts`, `.fr.ts` (`fleet.notRunning`) - Modify: `docs/ux/wireframes/p1-founding/p1-s12-hand-off.html` (fleet card with the three service faces + amendment note) - Test: `app/tests/unit/foundingHandOff.test.ts` (extend the `#1448` describe) - Modify: `STATUS.md` (header line) **Interfaces:** - Produces: `FleetService.status?: 'done' | 'todo' | 'failed'`, `FleetService.detail?: string`; DOM contract on `[data-field="service-card"][data-service=<slug>]`: `[data-field="running-badge"][data-status="running"|"planned"|"not-running"]`, `[data-field="service-detail"]` (present only when not running on a live machine), `[data-action="open-service"]` only when `running` and `url`; fake knob `FakeFoundingClient.serviceFailsAt: string | null`. - Consumed by: Task 5 leg 12 (`hand-off-card`) and the fixture `assertHandOffFleet` (unchanged — it asserts `running`). - [ ] **Step 1: Write the failing unit test** — append to the `P1-S12 Hand-off — the fleet is read from the seam` describe in `app/tests/unit/foundingHandOff.test.ts` (reuse its `fleetDraft`, `mountFleetHandOff`): ```ts it('a service row the seam reports FAILED on a live machine draws NOT RUNNING with its detail and no door (phase 9)', async () => { const fake = new FakeFoundingClient(); fake.serviceFailsAt = 'files'; const wrapper = await mountFleetHandOff(fake); const files = wrapper.get('[data-service="files"]'); expect(files.get('[data-field="running-badge"]').attributes('data-status')).toBe('not-running'); expect(files.get('[data-field="service-detail"]').text()).toContain('add it from the control panel'); expect(files.find('[data-action="open-service"]').exists()).toBe(false); // The machine itself is still live, and its other service still runs. expect( wrapper.get('[data-device="gateway"] [data-field="device-status"]').attributes('data-state'), ).toBe('live'); expect( wrapper.get('[data-service="backup-copy"] [data-field="running-badge"]').attributes('data-status'), ).toBe('running'); }); ``` - [ ] **Step 2: Run it, expect FAIL** — `cd app && pnpm exec vitest run tests/unit/foundingHandOff.test.ts` → fails: `serviceFailsAt` is not a property / badge reads `running`. - [ ] **Step 3: Types + fake knob.** In `handOffFleet.ts` add to `FleetService`: ```ts /** The seam row's own state (#1392): only `done` is running; `todo`/`failed` draw NOT RUNNING. Absent = legacy row, treated as done. */ status?: 'done' | 'todo' | 'failed'; /** The honest one-liner for a not-running service (why, and that P4 can add it). */ detail?: string; ``` In `founding.ts` beside `deviceFailsAt` (`:3016`): ```ts /** Scripted per-SERVICE failure for the hand-off fleet (phase 9): the slug whose row the seam reports `failed` on an otherwise live machine. */ serviceFailsAt: string | null = null; ``` In `rowsFor` (`:4671`), after building `row` and before `if (live && host …)`: ```ts if (this.serviceFailsAt === p.service) { row.status = 'failed'; row.detail = `the deploy did not hold — add ${row.name} from the control panel`; return row; } ``` - [ ] **Step 4: Thread the row through `handOffServices`** (`FoundingStandup.vue`), after `if (row.address) s.url = row.address;`: ```ts s.status = row.status; if (row.detail) s.detail = row.detail; ``` - [ ] **Step 5: The card.** In `FoundingFleetSummary.vue` script add: ```ts type ServiceFace = 'running' | 'planned' | 'not-running'; function face(d: FleetDevice, s: FleetService): ServiceFace { if (d.state !== 'live') return 'planned'; return (s.status ?? 'done') === 'done' ? 'running' : 'not-running'; } ``` Replace the pill (`:78-84`) with: ```html <span class="oc-fleet-service__pill" :class="{ 'oc-fleet-service__pill--planned': face(d, s) === 'planned', 'oc-fleet-service__pill--off': face(d, s) === 'not-running', }" data-field="running-badge" :data-status="face(d, s)" >{{ t( face(d, s) === 'running' ? 'founding.fleet.running' : face(d, s) === 'planned' ? 'founding.fleet.planned' : 'founding.fleet.notRunning', ) }}</span > ``` After the description span add: ```html <span v-if="face(d, s) === 'not-running' && s.detail" class="oc-fleet-service__detail" data-field="service-detail">{{ s.detail }}</span> ``` Change the Open link's `v-if="d.state === 'live' && s.url"` to `v-if="face(d, s) === 'running' && s.url"`. Add the `--off` style beside `--planned` (same muted treatment; `color: var(--oc-status-failed, var(--oc-ink-2))`). - [ ] **Step 6: Locales** — in all four `g10.uipass.*.ts` `fleet:` blocks, after `running:` add `notRunning:` — en `'NOT RUNNING'`, nl `'DRAAIT NIET'`, es `'NO EN MARCHA'`, fr `'PAS EN MARCHE'`. - [ ] **Step 7: Run the test, expect PASS**, then the whole unit suite `pnpm --filter app test` (the `#1448` AC3/AC4 cases must still pass — every badge `running` when nothing fails) and `pnpm --filter app build` (vue-tsc). - [ ] **Step 8: Wireframe.** In `p1-s12-hand-off.html` add, under the portal footer block, a `fleet-summary` block with one gateway card carrying three service cards: files `running-badge running` + Open; docs-editing `not-running` + `service-detail` "the deploy did not hold — add Document editing from the control panel"; a card on a waiting machine `planned`. Append to the provenance comment: `✎ amendment (2026-09-15, phase 9): the hand-off draws the fleet ACCOUNT (Ben's 2026-09-12 ruling, FoundingFleetSummary) — three service faces: running / planned / not-running (the seam row's own status, #1392; a failed row never reads RUNNING).` - [ ] **Step 9: STATUS + commit** — prepend a STATUS header line (phase 9 task 1 landed: the hand-off card keys on the row; `serviceFailsAt` knob; wireframe amended). Commit: `founding: phase 9 — the S12 fleet card keys RUNNING on the seam's service row, so a failed founding-time service reads NOT RUNNING with its detail (never a door that leads nowhere)`. ---

swarm-claim host=bens-mac-04 run=24539
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=bens-mac-04 run=24539 (automated multi-host claim — lowest live claim id works this ticket)

close-report for #1485 — status success

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

envelope
{
  "issue": 1485,
  "status": "success",
  "commits": [
    "62eaa09fe3ed0adcc875c47774dea64033d4e299"
  ],
  "changed_files": [
    "STATUS.md",
    "app/src/components/founding/FoundingFleetSummary.vue",
    "app/src/components/founding/FoundingStandup.vue",
    "app/src/components/founding/handOffFleet.ts",
    "app/src/i18n/founding/g10.uipass.en.ts",
    "app/src/i18n/founding/g10.uipass.es.ts",
    "app/src/i18n/founding/g10.uipass.fr.ts",
    "app/src/i18n/founding/g10.uipass.nl.ts",
    "app/src/lib/founding.ts",
    "app/tests/unit/foundingHandOff.test.ts",
    "docs/ux/wireframes/p1-founding/p1-s12-hand-off.html"
  ],
  "tests": [
    {
      "command": "cd app && CI=true pnpm exec vitest run tests/unit/foundingHandOff.test.ts",
      "exit_code": 0
    },
    {
      "command": "cd app && CI=true pnpm build (vue-tsc -p tsconfig.json)",
      "exit_code": 0
    },
    {
      "command": "cd app && CI=true pnpm exec eslint (changed founding sources)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "A service row the seam reports failed on a live machine draws NOT RUNNING with its detail and no door": "foundingHandOff.test.ts new phase-9 case (FoundingFleetSummary.vue face()/service-detail/open-service v-if); green",
    "The machine and its other service stay live/running when one service fails": "same test asserts device-status=live and backup-copy running-badge=running",
    "Types + fake knob": "handOffFleet.ts FleetService.status/detail; founding.ts FakeFoundingClient.serviceFailsAt + rowsFor emits failed row",
    "Locales fleet.notRunning in all four g10 files": "g10.uipass.{en,nl,es,fr}.ts",
    "Wireframe p1-s12 amended with three service faces + provenance note": "docs/ux/wireframes/p1-founding/p1-s12-hand-off.html",
    "The #1448 AC3/AC4 cases still pass": "full foundingHandOff.test.ts green (12 tests)",
    "STATUS updated": "STATUS.md header line prepended"
  },
  "summary": "The S12 hand-off fleet card keys RUNNING on the seam's per-service row, so a failed founding-time service reads NOT RUNNING with its honest detail and no door.",
  "blockers": []
}
**close-report** for #1485 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1485, "status": "success", "commits": [ "62eaa09fe3ed0adcc875c47774dea64033d4e299" ], "changed_files": [ "STATUS.md", "app/src/components/founding/FoundingFleetSummary.vue", "app/src/components/founding/FoundingStandup.vue", "app/src/components/founding/handOffFleet.ts", "app/src/i18n/founding/g10.uipass.en.ts", "app/src/i18n/founding/g10.uipass.es.ts", "app/src/i18n/founding/g10.uipass.fr.ts", "app/src/i18n/founding/g10.uipass.nl.ts", "app/src/lib/founding.ts", "app/tests/unit/foundingHandOff.test.ts", "docs/ux/wireframes/p1-founding/p1-s12-hand-off.html" ], "tests": [ { "command": "cd app && CI=true pnpm exec vitest run tests/unit/foundingHandOff.test.ts", "exit_code": 0 }, { "command": "cd app && CI=true pnpm build (vue-tsc -p tsconfig.json)", "exit_code": 0 }, { "command": "cd app && CI=true pnpm exec eslint (changed founding sources)", "exit_code": 0 } ], "criteria": { "A service row the seam reports failed on a live machine draws NOT RUNNING with its detail and no door": "foundingHandOff.test.ts new phase-9 case (FoundingFleetSummary.vue face()/service-detail/open-service v-if); green", "The machine and its other service stay live/running when one service fails": "same test asserts device-status=live and backup-copy running-badge=running", "Types + fake knob": "handOffFleet.ts FleetService.status/detail; founding.ts FakeFoundingClient.serviceFailsAt + rowsFor emits failed row", "Locales fleet.notRunning in all four g10 files": "g10.uipass.{en,nl,es,fr}.ts", "Wireframe p1-s12 amended with three service faces + provenance note": "docs/ux/wireframes/p1-founding/p1-s12-hand-off.html", "The #1448 AC3/AC4 cases still pass": "full foundingHandOff.test.ts green (12 tests)", "STATUS updated": "STATUS.md header line prepended" }, "summary": "The S12 hand-off fleet card keys RUNNING on the seam's per-service row, so a failed founding-time service reads NOT RUNNING with its honest detail and no door.", "blockers": [] } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Matou/idss#1485
No description provided.