rehearsal-9 Task 2: founding-state services reader (foundingServiceRows / foundingPlacementOf) + catalogue pick + gateway placement fixtures (pickServices / placeOnGateway; v2-fleet re-pointed) #1486
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
2 participants
Notifications
Due date
No due date set.
Blocks
Reference
Matou/idss#1486
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?
Phase 9 (provision on founding) task 2 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 2: Founding-state services reader + catalogue pick + gateway placement fixtures
Files:
app/tests/e2e/fixtures/selfhosted.ts(foundingServiceRows,foundingPlacementOf)app/tests/e2e/fixtures/selfhosted.test.tsapp/tests/e2e/fixtures/wizard.ts(pickServices,placeOnGateway)app/tests/e2e/journey.v2-fleet.spec.ts:264-287, 328-340(call the shared helpers — same selectors, same assertions)Interfaces:
Produces:
export interface FoundingServiceRow { service: string; name: string; short?: string; address?: string; status: 'done' | 'todo' | 'failed'; detail?: string }export function foundingServiceRows(stateJson: string): FoundingServiceRow[]— readsstandup.deploy.services; throws naming the path when absent.export function foundingPlacementOf(stateJson: string, service: string): string— readsdraft.placement.where[service]; throws when absent.export async function pickServices(live: LaunchedApp, slugs: string[]): Promise<void>— on the catalogue section: waits for the front door CHOSEN (#1474), picks each slug, assertsunpick-service, Continue → Access.export async function placeOnGateway(live: LaunchedApp, slug: string): Promise<string>— on the bench: reads the firstdevice-card'sdata-device(the gateway), drags the pill viaplaceServiceOnMachine, returns the gateway id. Does NOT press Continue.Consumes:
placeServiceOnMachine(page, slug, deviceId)fromfixtures/foundingFleet.ts:289.Step 1: Failing fixture test — append to
selfhosted.test.ts:Step 2: Run, expect FAIL —
cd app && pnpm exec vitest run tests/e2e/fixtures/selfhosted.test.ts.Step 3: Implement in
selfhosted.ts(extendFoundingStateDoc):Step 4: Run, expect PASS.
Step 5: The wizard helpers — in
wizard.tsafterservicesToAccess:(Use a static
import { placeServiceOnMachine } from './foundingFleet';if it creates no import cycle —foundingFleet.tsimports fromwizard.tstoday; check withpnpm --filter app build. If it cycles, keep the dynamic import.)Step 6: Re-point
journey.v2-fleet.spec.ts— legv2-walk(:264-287): replace the inline catalogue block (fromawait expect(live.page.locator('[data-status="service-catalogue"]'))…to theaccessexpect) withawait pickServices(live, ['files', 'docs-editing']);. Legplace-across-machines(:328-340): replace the gatewayId read +placeServiceOnMachine(live.page, 'files', gatewayId)withawait placeOnGateway(live, 'files');keepingplaceServiceOnMachine(live.page, 'docs-editing', deviceId). Same selectors, same assertions.Step 7: Verify —
pnpm --filter app build(vue-tsc coverstests/),pnpm exec vitest run tests/e2e/fixtures/fromapp/, thenpnpm lintat the root.Step 8: Commit —
e2e: phase 9 — foundingServiceRows / foundingPlacementOf read the seam's S11 services rows and the bench placement; pickServices + placeOnGateway lift the v2-fleet catalogue walk into fixtures/wizard.ts.swarm-claim host=matou-dev-server-01 run=24539
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1486 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope