rehearsal: the journey leg registry — named skips, never silent passes (plan Task 2) #371

Closed
opened 2026-08-09 20:00:17 +00:00 by ben · 1 comment
Owner

Implements Task 2 of docs/superpowers/plans/2026-08-09-183-vps-rehearsal-ratchet.md (spec:
docs/superpowers/specs/2026-08-09-183-vps-rehearsal-ratchet-design.md).
Follow the plan task's steps exactly — it carries the full test and
implementation code.

Build app/tests/e2e/fixtures/legs.ts (types JourneyLeg, LegRecord;
function driveLegs) with the colocated vitest test
app/tests/e2e/fixtures/legs.test.ts, TDD, exactly as written in the plan.
A leg whose carrier isn't built is a NAMED skip (recorded with its reason),
never a silent pass; a red records, aborts via rethrow (retries stay 0), and
hands partial records to onAbort.

Acceptance:

  • Given the plan's two tests, when pnpm --filter app exec vitest run tests/e2e/fixtures/legs.test.ts runs, then both pass
  • Given a skipped leg, when driveLegs runs, then the leg's run is never invoked and the record carries the reason verbatim
  • pnpm --filter app exec tsc --noEmit stays clean

Self-contained: touches only the two new files; no dependency on other
rehearsal tasks.

Implements **Task 2** of `docs/superpowers/plans/2026-08-09-183-vps-rehearsal-ratchet.md` (spec: `docs/superpowers/specs/2026-08-09-183-vps-rehearsal-ratchet-design.md`). Follow the plan task's steps exactly — it carries the full test and implementation code. Build `app/tests/e2e/fixtures/legs.ts` (types `JourneyLeg`, `LegRecord`; function `driveLegs`) with the colocated vitest test `app/tests/e2e/fixtures/legs.test.ts`, TDD, exactly as written in the plan. A leg whose carrier isn't built is a NAMED skip (recorded with its reason), never a silent pass; a red records, aborts via rethrow (retries stay 0), and hands partial records to `onAbort`. Acceptance: - [ ] Given the plan's two tests, when `pnpm --filter app exec vitest run tests/e2e/fixtures/legs.test.ts` runs, then both pass - [ ] Given a skipped leg, when `driveLegs` runs, then the leg's `run` is never invoked and the record carries the reason verbatim - [ ] `pnpm --filter app exec tsc --noEmit` stays clean Self-contained: touches only the two new files; no dependency on other rehearsal tasks.
Author
Owner

Done in 372a3c8 (on origin/main). Added app/tests/e2e/fixtures/legs.ts (types JourneyLeg, LegRecord; driveLegs) and its colocated vitest test legs.test.ts, TDD, verbatim from plan Task 2.

  • pnpm --filter app exec vitest run tests/e2e/fixtures/legs.test.ts → 2 pass (named-skip records without running run; red records + hands partial records to onAbort + rethrows, later legs never run).
  • A skipped leg carries its reason verbatim (carrier unbuilt (#000)), run never invoked. ✓
  • tsc --noEmit: my two files add zero new errors. Two pre-existing errors (AppUpdateSurface in src/bootstrap.ts / tests/unit/appShell.test.ts) predate this slice — confirmed by running tsc on the clean tree without my files — and are out of scope for this self-contained task.

Self-contained: touched only the two new files; no STATUS.md change (engineering fixture, matching sibling T7 #373).

Done in 372a3c8 (on origin/main). Added `app/tests/e2e/fixtures/legs.ts` (types `JourneyLeg`, `LegRecord`; `driveLegs`) and its colocated vitest test `legs.test.ts`, TDD, verbatim from plan Task 2. - `pnpm --filter app exec vitest run tests/e2e/fixtures/legs.test.ts` → 2 pass (named-skip records without running `run`; red records + hands partial records to `onAbort` + rethrows, later legs never run). - A skipped leg carries its reason verbatim (`carrier unbuilt (#000)`), `run` never invoked. ✓ - `tsc --noEmit`: my two files add zero new errors. Two pre-existing errors (`AppUpdateSurface` in `src/bootstrap.ts` / `tests/unit/appShell.test.ts`) predate this slice — confirmed by running tsc on the clean tree without my files — and are out of scope for this self-contained task. Self-contained: touched only the two new files; no STATUS.md change (engineering fixture, matching sibling T7 #373).
ben closed this issue 2026-08-09 20:31:02 +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#371
No description provided.