rehearsal-9 Task 5: The journey — journey.rented-services.spec.ts (pick-files → place-files → rented prefix → services-row → hand-off-card → sign-in → files-healthy → door → branded-login → oidc-admin → branded-chrome → release)… #1489

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

Phase 9 (provision on founding) task 5 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 5: The journey — journey.rented-services.spec.ts

Files:

  • Create: app/tests/e2e/journey.rented-services.spec.ts
  • Test: app/tests/e2e/fixtures/rentedServices.test.ts (the leg list + the row-verdict logic, offline)
  • Create: app/tests/e2e/fixtures/rentedServices.ts (RENTED_SERVICES_LEGS, servicesRowVerdict)

Interfaces:

  • Consumes: Task 2 (foundingServiceRows, foundingPlacementOf, pickServices, placeOnGateway), Task 3 (signInOperator, assertFilesBrandedLogin, assertFilesOidcAdmin, assertFilesBrandedChrome, assertPublicFilesDoor), Task 4 (expectServiceHealthyAtRest, readServiceDoorAtRest), runRentedPrefix / rentedPrefixCaptured / CEILING (fixtures/rentedPrefix.ts), assertHandOffFleet (fixtures/foundingFleet.ts:368), the rented spec's afterAll release/offboard shape (journey.rented.spec.ts:121-225) and release leg (:358-387), panelAddress, sshDroplet.

  • Produces: export const RENTED_SERVICES_LEGS = ['pick-files','place-files','claim','wizard-rent','create','image-boot','point','deploy','activation','founded','services-row','hand-off-card','sign-in','files-healthy','door','branded-login','oidc-admin','branded-chrome','release'] as const; and export function servicesRowVerdict(rows: FoundingServiceRow[], slug: string, apex: string): { ok: true; address: string } | { ok: false; reason: string }.

  • Step 1: Failing fixture test (rentedServices.test.ts):

import { describe, expect, it } from 'vitest';
import { RENTED_SERVICES_LEGS, servicesRowVerdict } from './rentedServices';

describe('rented-services — the phase-9 leg list and the services-row tooth', () => {
  it('is the spec table: 19 legs, prefix in the middle, release last', () => {
    expect(RENTED_SERVICES_LEGS.length).toBe(19);
    expect(RENTED_SERVICES_LEGS[0]).toBe('pick-files');
    expect(RENTED_SERVICES_LEGS.indexOf('services-row')).toBeGreaterThan(RENTED_SERVICES_LEGS.indexOf('founded'));
    expect(RENTED_SERVICES_LEGS.indexOf('services-row')).toBeLessThan(RENTED_SERVICES_LEGS.indexOf('sign-in'));
    expect(RENTED_SERVICES_LEGS.at(-1)).toBe('release');
  });
  it('a done row with the canonical address passes; todo/failed red with the row detail; a wrong address reds', () => {
    const apex = 'x.idss.nz';
    expect(servicesRowVerdict([{ service: 'files', name: 'Files', status: 'done', address: 'https://files.x.idss.nz' }], 'files', apex)).toEqual({ ok: true, address: 'https://files.x.idss.nz' });
    const failed = servicesRowVerdict([{ service: 'files', name: 'Files', status: 'failed', detail: 'the deploy did not hold — add Files from the control panel' }], 'files', apex);
    expect(failed).toMatchObject({ ok: false });
    expect((failed as { reason: string }).reason).toMatch(/did not hold/);
    expect(servicesRowVerdict([{ service: 'files', name: 'Files', status: 'done', address: 'https://files.x.idss.nz:8443' }], 'files', apex)).toMatchObject({ ok: false });
    expect(servicesRowVerdict([], 'files', apex)).toMatchObject({ ok: false });
  });
});
  • Step 2: Run, expect FAIL.

  • Step 3: rentedServices.ts:

import type { FoundingServiceRow } from './selfhosted';

export const RENTED_SERVICES_LEGS = [ /* as in Interfaces */ ] as const;

/**
 * The phase-9 tooth: a founding NEVER fails over a placed service (#1392 acc. #3),
 * so the seam's own row is the only place a founding-time Nextcloud that did not
 * come up is written down. Only `done` with the canonical portless address passes.
 */
export function servicesRowVerdict(rows: FoundingServiceRow[], slug: string, apex: string) {
  const row = rows.find((r) => r.service === slug);
  if (!row) return { ok: false as const, reason: `no S11 services row for ${slug}; rows=${JSON.stringify(rows)}` };
  if (row.status !== 'done') {
    return { ok: false as const, reason: `the ${slug} row is ${row.status}: ${row.detail ?? '(no detail)'}` };
  }
  if (row.address !== `https://${slug}.${apex}`) {
    return { ok: false as const, reason: `the ${slug} row is done but its address is ${JSON.stringify(row.address)}, expected https://${slug}.${apex}` };
  }
  return { ok: true as const, address: row.address };
}
  • Step 4: Run, expect PASS.

  • Step 5: The spec. Copy journey.rented.spec.ts's header/imports/describe scaffolding (variables live, legRecords, slug, reservedHost, reservedSecret, dropletIP, startedAt, commit, writeLegRecords, readState, brokerBase) and its afterAll VERBATIM minus the rentfail branch; verdict target string 'rented-services'. No rentfail slug, no heartbeat leg. Body:

  test('drives the phase-9 provision-on-founding journey on a rented gateway', async () => {
    startedAt = new Date().toISOString();
    live = await bootToWelcome();
    mkdirSync(join(live.runDir, 'artifacts'), { recursive: true });
    installLegCapture(live.app, live.runDir);

    // ── Leg 1: pick-files — the founding page's stack order to Address (check-only,
    // #1404), then the catalogue with Files picked.
    await test.step('journey: pick-files', () =>
      runRecordedLeg(legRecords, 'pick-files', async () => {
        await welcomeToS1(live);
        await s1ToS2(live);
        await s2WithSlug(live, slug);
        await s3BrandKit(live);
        await s5AddressSubdomain(live, slug);
        reservedHost = foundingAddressHost(await readState());
        await pickServices(live, ['files']);
      }, (r) => writeLegRecords(r)));

    // ── Leg 2: place-files — S4a records size + region (nothing rented until Build
    // it), the bench places Files ON THE GATEWAY (ADR 0243: left on the bench =
    // left out), the placement is read back off the seam, Continue → Confirm.
    await test.step('journey: place-files', () =>
      runRecordedLeg(legRecords, 'place-files', async () => {
        await s4aRent(live);
        const gatewayId = await placeOnGateway(live, 'files');
        expect(foundingPlacementOf(await readState(), 'files'), 'the seam did not record files on the gateway').toBe(gatewayId);
        await live.page.click('[data-status="device-placement"] [data-action="continue"]');
        await expect(live.page.locator('[data-status="founding-confirm"]')).toBeVisible({ timeout: 30_000 });
      }, (r) => writeLegRecords(r)));

    // ── Legs 3–10: the rented prefix, verbatim (claim → … → founded). The prefix
    // enters from Address; we stand on Confirm — so enter with 'address'? NO: the
    // prefix's `claim` leg re-runs s5AddressSubdomain, which needs the Address
    // section. Walk back via the drawing's Identity block (as journey.rented's
    // resetToAddressWithSlug does) is NOT wanted here (it would re-open the
    // catalogue). Instead call the prefix with enterFrom='confirm' — see Step 6.
  • Step 6: One prefix change — a 'confirm' entry. runRentedPrefix's claim leg does s5AddressSubdomain + servicesToAccess (rentedPrefix.ts:335-340), which phase 9 has already done with picks. Add 'confirm' to PrefixEntry (rentedPrefix.ts:233): with enterFrom === 'confirm' the prefix asserts [data-status="founding-confirm"] is visible and the claim leg records only reservedHost = foundingAddressHost(await readState()) + the host assertion (no re-walk); wizard-rent's s4aRent+walkToConfirm are skipped the same way (the caller already placed and continued). Guard both with if (enterFrom !== 'confirm'). Extend prefixNeedsWizardWalk (returns false for 'confirm'). Add a case to fixtures/rentedPrefix.test.ts: prefixNeedsWizardWalk('confirm') === false. journey.rented and journey.device pass 'address'/'welcome' and are untouched — assert in the test that the default is still 'address'.

  • Step 7: The tail (continuing the spec body):

    try {
      const prefix = await runRentedPrefix(live, slug, legRecords, writeLegRecords, 'confirm');
      dropletIP = prefix.dropletIP; reservedHost = prefix.reservedHost; reservedSecret = prefix.reservedSecret;
    } catch (err) {
      const captured = rentedPrefixCaptured(err);
      if (captured) { dropletIP = captured.dropletIP; reservedHost = captured.reservedHost; reservedSecret = captured.reservedSecret; }
      throw err;
    }
    writeFileSync(join(live.runDir, 'artifacts', 'droplet-ip.txt'), dropletIP);

    const portalAddress = ((await live.page.locator('[data-field="portal-address"]').textContent()) ?? '').trim();
    const apex = new URL(portalAddress).hostname;
    const panel = panelAddress(apex);
    const rentOperatorKey = join(live.stateDir, 'rent-operator', 'id_ed25519');

    // ── Leg 11: services-row — THE phase-9 tooth. Read BEFORE sign-in (the state
    // file is scrubbed when the hand-off completes).
    let rowAddress = '';
    await test.step('journey: services-row', () =>
      runRecordedLeg(legRecords, 'services-row', async () => {
        const v = servicesRowVerdict(foundingServiceRows(await readState()), 'files', apex);
        if (!v.ok) throw new Error(`the founding's own S11 row says Files did not stand up — ${v.reason}`);
        rowAddress = v.address;
      }, (r) => writeLegRecords(r)));

    // ── Leg 12: hand-off-card — the honest card (Task 1): RUNNING + Open == the row.
    await test.step('journey: hand-off-card', () =>
      runRecordedLeg(legRecords, 'hand-off-card', async () => {
        const card = live.page.locator('[data-field="service-card"][data-service="files"]');
        await expect(card).toBeVisible({ timeout: 30_000 });
        await expect(card.locator('[data-field="running-badge"]')).toHaveAttribute('data-status', 'running');
        await expect(card.locator('[data-action="open-service"]')).toHaveAttribute('href', rowAddress);
        await live.page.screenshot({ path: join(live.runDir, 'artifacts', 'hand-off-files-card.png') });
      }, (r) => writeLegRecords(r)));

    // ── Leg 13: sign-in — the droplet body (fixtures/nextcloudTail.ts).
    let ceremonyPage: Page | undefined;
    await test.step('journey: sign-in', () =>
      runRecordedLeg(legRecords, 'sign-in', async () => { ceremonyPage = await signInOperator(live, panel); }, (r) => writeLegRecords(r)));
    const dash = ceremonyPage!;

    // ── Leg 14: files-healthy — monitoring on the Services tab + status.php (Task 4).
    let door = '';
    await test.step('journey: files-healthy', () =>
      runRecordedLeg(legRecords, 'files-healthy', () => expectServiceHealthyAtRest(dash, 'files', rowAddress), (r) => writeLegRecords(r)));

    // ── Leg 15: door — the Services-tab Open target, portless files.<apex> (DDR 0165).
    await test.step('journey: door', () =>
      runRecordedLeg(legRecords, 'door', async () => {
        door = await readServiceDoorAtRest(dash, 'files', apex);
        assertPublicFilesDoor(door, apex);
      }, (r) => writeLegRecords(r)));

    // ── Legs 16–18: branded-login → oidc-admin → branded-chrome — the droplet bodies;
    // occ rides the RENT-OPERATOR key (the rented box's door), not ambient root.
    await test.step('journey: branded-login', () =>
      runRecordedLeg(legRecords, 'branded-login', () => assertFilesBrandedLogin(door, live.runDir), (r) => writeLegRecords(r)));
    await test.step('journey: oidc-admin', () =>
      runRecordedLeg(legRecords, 'oidc-admin', () => assertFilesOidcAdmin(ceremonyPage!, door, live.runDir), (r) => writeLegRecords(r)));
    await test.step('journey: branded-chrome', () =>
      runRecordedLeg(legRecords, 'branded-chrome', () =>
        assertFilesBrandedChrome(dash, door, live.runDir, (remote) => sshDroplet(dropletIP, remote, 30_000, rentOperatorKey)),
      (r) => writeLegRecords(r)));

    // ── Leg 19: release — verbatim journey.rented (broker release 204, box gone ≤2 min, released.txt).

Wrap each runRecordedLeg call with test.step('journey: <leg>', …) exactly as the rented spec does; per-leg ceilings via test.setTimeout are NOT used — the fixtures carry their own timeouts (the spec table's ceilings are the fixtures' budgets: signInOperator 5 min window, expectServiceHealthyAtRest 6 min horizon, the prefix's CEILING).

  • Step 8: Verify offline — pnpm --filter app build; pnpm exec vitest run tests/e2e/fixtures/ (incl. rentedPrefix.test.ts); root pnpm lint; grep -c "journey: " app/tests/e2e/journey.rented-services.spec.ts = 11 (the 8 prefix legs live in the fixture); grep -n "journey: " app/tests/e2e/journey.rented.spec.ts unchanged.

  • Step 9: Commit — e2e: phase 9 — journey.rented-services.spec.ts: Files picked and placed on the gateway at the founding page, the seam's S11 row + the hand-off card as the new teeth, then the droplet's Nextcloud proof at rest; runRentedPrefix gains a 'confirm' entry.


Phase 9 (provision on founding) task 5 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 5: The journey — `journey.rented-services.spec.ts` **Files:** - Create: `app/tests/e2e/journey.rented-services.spec.ts` - Test: `app/tests/e2e/fixtures/rentedServices.test.ts` (the leg list + the row-verdict logic, offline) - Create: `app/tests/e2e/fixtures/rentedServices.ts` (`RENTED_SERVICES_LEGS`, `servicesRowVerdict`) **Interfaces:** - Consumes: Task 2 (`foundingServiceRows`, `foundingPlacementOf`, `pickServices`, `placeOnGateway`), Task 3 (`signInOperator`, `assertFilesBrandedLogin`, `assertFilesOidcAdmin`, `assertFilesBrandedChrome`, `assertPublicFilesDoor`), Task 4 (`expectServiceHealthyAtRest`, `readServiceDoorAtRest`), `runRentedPrefix` / `rentedPrefixCaptured` / `CEILING` (`fixtures/rentedPrefix.ts`), `assertHandOffFleet` (`fixtures/foundingFleet.ts:368`), the rented spec's afterAll release/offboard shape (`journey.rented.spec.ts:121-225`) and `release` leg (`:358-387`), `panelAddress`, `sshDroplet`. - Produces: `export const RENTED_SERVICES_LEGS = ['pick-files','place-files','claim','wizard-rent','create','image-boot','point','deploy','activation','founded','services-row','hand-off-card','sign-in','files-healthy','door','branded-login','oidc-admin','branded-chrome','release'] as const;` and `export function servicesRowVerdict(rows: FoundingServiceRow[], slug: string, apex: string): { ok: true; address: string } | { ok: false; reason: string }`. - [ ] **Step 1: Failing fixture test** (`rentedServices.test.ts`): ```ts import { describe, expect, it } from 'vitest'; import { RENTED_SERVICES_LEGS, servicesRowVerdict } from './rentedServices'; describe('rented-services — the phase-9 leg list and the services-row tooth', () => { it('is the spec table: 19 legs, prefix in the middle, release last', () => { expect(RENTED_SERVICES_LEGS.length).toBe(19); expect(RENTED_SERVICES_LEGS[0]).toBe('pick-files'); expect(RENTED_SERVICES_LEGS.indexOf('services-row')).toBeGreaterThan(RENTED_SERVICES_LEGS.indexOf('founded')); expect(RENTED_SERVICES_LEGS.indexOf('services-row')).toBeLessThan(RENTED_SERVICES_LEGS.indexOf('sign-in')); expect(RENTED_SERVICES_LEGS.at(-1)).toBe('release'); }); it('a done row with the canonical address passes; todo/failed red with the row detail; a wrong address reds', () => { const apex = 'x.idss.nz'; expect(servicesRowVerdict([{ service: 'files', name: 'Files', status: 'done', address: 'https://files.x.idss.nz' }], 'files', apex)).toEqual({ ok: true, address: 'https://files.x.idss.nz' }); const failed = servicesRowVerdict([{ service: 'files', name: 'Files', status: 'failed', detail: 'the deploy did not hold — add Files from the control panel' }], 'files', apex); expect(failed).toMatchObject({ ok: false }); expect((failed as { reason: string }).reason).toMatch(/did not hold/); expect(servicesRowVerdict([{ service: 'files', name: 'Files', status: 'done', address: 'https://files.x.idss.nz:8443' }], 'files', apex)).toMatchObject({ ok: false }); expect(servicesRowVerdict([], 'files', apex)).toMatchObject({ ok: false }); }); }); ``` - [ ] **Step 2: Run, expect FAIL.** - [ ] **Step 3: `rentedServices.ts`**: ```ts import type { FoundingServiceRow } from './selfhosted'; export const RENTED_SERVICES_LEGS = [ /* as in Interfaces */ ] as const; /** * The phase-9 tooth: a founding NEVER fails over a placed service (#1392 acc. #3), * so the seam's own row is the only place a founding-time Nextcloud that did not * come up is written down. Only `done` with the canonical portless address passes. */ export function servicesRowVerdict(rows: FoundingServiceRow[], slug: string, apex: string) { const row = rows.find((r) => r.service === slug); if (!row) return { ok: false as const, reason: `no S11 services row for ${slug}; rows=${JSON.stringify(rows)}` }; if (row.status !== 'done') { return { ok: false as const, reason: `the ${slug} row is ${row.status}: ${row.detail ?? '(no detail)'}` }; } if (row.address !== `https://${slug}.${apex}`) { return { ok: false as const, reason: `the ${slug} row is done but its address is ${JSON.stringify(row.address)}, expected https://${slug}.${apex}` }; } return { ok: true as const, address: row.address }; } ``` - [ ] **Step 4: Run, expect PASS.** - [ ] **Step 5: The spec.** Copy `journey.rented.spec.ts`'s header/imports/describe scaffolding (variables `live`, `legRecords`, `slug`, `reservedHost`, `reservedSecret`, `dropletIP`, `startedAt`, `commit`, `writeLegRecords`, `readState`, `brokerBase`) and its afterAll VERBATIM minus the rentfail branch; verdict target string `'rented-services'`. No rentfail slug, no heartbeat leg. Body: ```ts test('drives the phase-9 provision-on-founding journey on a rented gateway', async () => { startedAt = new Date().toISOString(); live = await bootToWelcome(); mkdirSync(join(live.runDir, 'artifacts'), { recursive: true }); installLegCapture(live.app, live.runDir); // ── Leg 1: pick-files — the founding page's stack order to Address (check-only, // #1404), then the catalogue with Files picked. await test.step('journey: pick-files', () => runRecordedLeg(legRecords, 'pick-files', async () => { await welcomeToS1(live); await s1ToS2(live); await s2WithSlug(live, slug); await s3BrandKit(live); await s5AddressSubdomain(live, slug); reservedHost = foundingAddressHost(await readState()); await pickServices(live, ['files']); }, (r) => writeLegRecords(r))); // ── Leg 2: place-files — S4a records size + region (nothing rented until Build // it), the bench places Files ON THE GATEWAY (ADR 0243: left on the bench = // left out), the placement is read back off the seam, Continue → Confirm. await test.step('journey: place-files', () => runRecordedLeg(legRecords, 'place-files', async () => { await s4aRent(live); const gatewayId = await placeOnGateway(live, 'files'); expect(foundingPlacementOf(await readState(), 'files'), 'the seam did not record files on the gateway').toBe(gatewayId); await live.page.click('[data-status="device-placement"] [data-action="continue"]'); await expect(live.page.locator('[data-status="founding-confirm"]')).toBeVisible({ timeout: 30_000 }); }, (r) => writeLegRecords(r))); // ── Legs 3–10: the rented prefix, verbatim (claim → … → founded). The prefix // enters from Address; we stand on Confirm — so enter with 'address'? NO: the // prefix's `claim` leg re-runs s5AddressSubdomain, which needs the Address // section. Walk back via the drawing's Identity block (as journey.rented's // resetToAddressWithSlug does) is NOT wanted here (it would re-open the // catalogue). Instead call the prefix with enterFrom='confirm' — see Step 6. ``` - [ ] **Step 6: One prefix change — a `'confirm'` entry.** `runRentedPrefix`'s `claim` leg does `s5AddressSubdomain` + `servicesToAccess` (`rentedPrefix.ts:335-340`), which phase 9 has already done with picks. Add `'confirm'` to `PrefixEntry` (`rentedPrefix.ts:233`): with `enterFrom === 'confirm'` the prefix asserts `[data-status="founding-confirm"]` is visible and the `claim` leg records only `reservedHost = foundingAddressHost(await readState())` + the host assertion (no re-walk); `wizard-rent`'s `s4aRent`+`walkToConfirm` are skipped the same way (the caller already placed and continued). Guard both with `if (enterFrom !== 'confirm')`. Extend `prefixNeedsWizardWalk` (returns false for `'confirm'`). Add a case to `fixtures/rentedPrefix.test.ts`: `prefixNeedsWizardWalk('confirm') === false`. `journey.rented` and `journey.device` pass `'address'`/`'welcome'` and are untouched — assert in the test that the default is still `'address'`. - [ ] **Step 7: The tail** (continuing the spec body): ```ts try { const prefix = await runRentedPrefix(live, slug, legRecords, writeLegRecords, 'confirm'); dropletIP = prefix.dropletIP; reservedHost = prefix.reservedHost; reservedSecret = prefix.reservedSecret; } catch (err) { const captured = rentedPrefixCaptured(err); if (captured) { dropletIP = captured.dropletIP; reservedHost = captured.reservedHost; reservedSecret = captured.reservedSecret; } throw err; } writeFileSync(join(live.runDir, 'artifacts', 'droplet-ip.txt'), dropletIP); const portalAddress = ((await live.page.locator('[data-field="portal-address"]').textContent()) ?? '').trim(); const apex = new URL(portalAddress).hostname; const panel = panelAddress(apex); const rentOperatorKey = join(live.stateDir, 'rent-operator', 'id_ed25519'); // ── Leg 11: services-row — THE phase-9 tooth. Read BEFORE sign-in (the state // file is scrubbed when the hand-off completes). let rowAddress = ''; await test.step('journey: services-row', () => runRecordedLeg(legRecords, 'services-row', async () => { const v = servicesRowVerdict(foundingServiceRows(await readState()), 'files', apex); if (!v.ok) throw new Error(`the founding's own S11 row says Files did not stand up — ${v.reason}`); rowAddress = v.address; }, (r) => writeLegRecords(r))); // ── Leg 12: hand-off-card — the honest card (Task 1): RUNNING + Open == the row. await test.step('journey: hand-off-card', () => runRecordedLeg(legRecords, 'hand-off-card', async () => { const card = live.page.locator('[data-field="service-card"][data-service="files"]'); await expect(card).toBeVisible({ timeout: 30_000 }); await expect(card.locator('[data-field="running-badge"]')).toHaveAttribute('data-status', 'running'); await expect(card.locator('[data-action="open-service"]')).toHaveAttribute('href', rowAddress); await live.page.screenshot({ path: join(live.runDir, 'artifacts', 'hand-off-files-card.png') }); }, (r) => writeLegRecords(r))); // ── Leg 13: sign-in — the droplet body (fixtures/nextcloudTail.ts). let ceremonyPage: Page | undefined; await test.step('journey: sign-in', () => runRecordedLeg(legRecords, 'sign-in', async () => { ceremonyPage = await signInOperator(live, panel); }, (r) => writeLegRecords(r))); const dash = ceremonyPage!; // ── Leg 14: files-healthy — monitoring on the Services tab + status.php (Task 4). let door = ''; await test.step('journey: files-healthy', () => runRecordedLeg(legRecords, 'files-healthy', () => expectServiceHealthyAtRest(dash, 'files', rowAddress), (r) => writeLegRecords(r))); // ── Leg 15: door — the Services-tab Open target, portless files.<apex> (DDR 0165). await test.step('journey: door', () => runRecordedLeg(legRecords, 'door', async () => { door = await readServiceDoorAtRest(dash, 'files', apex); assertPublicFilesDoor(door, apex); }, (r) => writeLegRecords(r))); // ── Legs 16–18: branded-login → oidc-admin → branded-chrome — the droplet bodies; // occ rides the RENT-OPERATOR key (the rented box's door), not ambient root. await test.step('journey: branded-login', () => runRecordedLeg(legRecords, 'branded-login', () => assertFilesBrandedLogin(door, live.runDir), (r) => writeLegRecords(r))); await test.step('journey: oidc-admin', () => runRecordedLeg(legRecords, 'oidc-admin', () => assertFilesOidcAdmin(ceremonyPage!, door, live.runDir), (r) => writeLegRecords(r))); await test.step('journey: branded-chrome', () => runRecordedLeg(legRecords, 'branded-chrome', () => assertFilesBrandedChrome(dash, door, live.runDir, (remote) => sshDroplet(dropletIP, remote, 30_000, rentOperatorKey)), (r) => writeLegRecords(r))); // ── Leg 19: release — verbatim journey.rented (broker release 204, box gone ≤2 min, released.txt). ``` Wrap each `runRecordedLeg` call with `test.step('journey: <leg>', …)` exactly as the rented spec does; per-leg ceilings via `test.setTimeout` are NOT used — the fixtures carry their own timeouts (the spec table's ceilings are the fixtures' budgets: `signInOperator` 5 min window, `expectServiceHealthyAtRest` 6 min horizon, the prefix's `CEILING`). - [ ] **Step 8: Verify offline** — `pnpm --filter app build`; `pnpm exec vitest run tests/e2e/fixtures/` (incl. `rentedPrefix.test.ts`); root `pnpm lint`; `grep -c "journey: " app/tests/e2e/journey.rented-services.spec.ts` = 11 (the 8 prefix legs live in the fixture); `grep -n "journey: " app/tests/e2e/journey.rented.spec.ts` unchanged. - [ ] **Step 9: Commit** — `e2e: phase 9 — journey.rented-services.spec.ts: Files picked and placed on the gateway at the founding page, the seam's S11 row + the hand-off card as the new teeth, then the droplet's Nextcloud proof at rest; runRentedPrefix gains a 'confirm' entry`. ---

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 #1489 — status success

⛔ close-report gates REFUSED this close — the following claims did not verify:

  • commit 9a91451105 is not a valid commit object (fabricated, or never pushed)
  • changed_files: 'app/tests/e2e/fixtures/rentedPrefix.test.ts' is not in the diff of the claimed commits
  • changed_files: 'app/tests/e2e/fixtures/rentedPrefix.ts' is not in the diff of the claimed commits
  • changed_files: 'app/tests/e2e/fixtures/rentedServices.test.ts' is not in the diff of the claimed commits
  • changed_files: 'app/tests/e2e/fixtures/rentedServices.ts' is not in the diff of the claimed commits
  • changed_files: 'app/tests/e2e/journey.rented-services.spec.ts' is not in the diff of the claimed commits
envelope
{
  "issue": 1489,
  "status": "success",
  "commits": [
    "9a91451105"
  ],
  "changed_files": [
    "app/tests/e2e/fixtures/rentedPrefix.test.ts",
    "app/tests/e2e/fixtures/rentedPrefix.ts",
    "app/tests/e2e/fixtures/rentedServices.test.ts",
    "app/tests/e2e/fixtures/rentedServices.ts",
    "app/tests/e2e/journey.rented-services.spec.ts"
  ],
  "tests": [
    {
      "command": "CI=true pnpm --filter app build",
      "exit_code": 0
    },
    {
      "command": "CI=true pnpm exec vitest run tests/e2e/fixtures/",
      "exit_code": 0
    },
    {
      "command": "CI=true pnpm lint",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Step 1-4: rentedServices.test.ts fails then passes (RENTED_SERVICES_LEGS + servicesRowVerdict)": "app/tests/e2e/fixtures/rentedServices.ts + rentedServices.test.ts; vitest tests/e2e/fixtures/ green (2 tests) — 19 legs, prefix in middle, release last; done+canonical passes, todo/failed/wrong-address/empty red",
    "Step 5+7: the spec copies journey.rented scaffolding + afterAll minus rentfail, verdict target 'rented-services', with the phase-9 body (pick-files, place-files, prefix, services-row, hand-off-card, sign-in, files-healthy, door, branded-login, oidc-admin, branded-chrome, release)": "app/tests/e2e/journey.rented-services.spec.ts (new, 421 lines); computeVerdict(...,'rented-services',...); no rentfail slug, no heartbeat leg",
    "Step 6: runRentedPrefix gains a 'confirm' entry (asserts founding-confirm; claim reads host only; s4aRent + walkToConfirm skipped; prefixNeedsWizardWalk('confirm')===false; default still 'address')": "app/tests/e2e/fixtures/rentedPrefix.ts PrefixEntry adds 'confirm', guarded claim/wizard-rent/create legs, confirm entry assertion; rentedPrefix.test.ts pins prefixNeedsWizardWalk('confirm')===false + enterFrom optional fifth arg; vitest green (6 tests)",
    "Step 8: offline verification green": "build exit 0 (vue-tsc covers tests/); vitest tests/e2e/fixtures/ 450 pass; pnpm lint exit 0; grep -c 'journey: ' journey.rented-services.spec.ts == 11; journey.rented.spec.ts unchanged (not in diff)"
  },
  "summary": "Authored journey.rented-services.spec.ts (the phase-9 provision-on-founding drive) with its RENTED_SERVICES_LEGS/servicesRowVerdict fixture and a new 'confirm' entry on runRentedPrefix, all verified offline.",
  "reason": "",
  "blockers": []
}
**close-report** for #1489 — status `success` :no_entry: **close-report gates REFUSED this close** — the following claims did not verify: - commit 9a91451105 is not a valid commit object (fabricated, or never pushed) - changed_files: 'app/tests/e2e/fixtures/rentedPrefix.test.ts' is not in the diff of the claimed commits - changed_files: 'app/tests/e2e/fixtures/rentedPrefix.ts' is not in the diff of the claimed commits - changed_files: 'app/tests/e2e/fixtures/rentedServices.test.ts' is not in the diff of the claimed commits - changed_files: 'app/tests/e2e/fixtures/rentedServices.ts' is not in the diff of the claimed commits - changed_files: 'app/tests/e2e/journey.rented-services.spec.ts' is not in the diff of the claimed commits <details><summary>envelope</summary> ```json { "issue": 1489, "status": "success", "commits": [ "9a91451105" ], "changed_files": [ "app/tests/e2e/fixtures/rentedPrefix.test.ts", "app/tests/e2e/fixtures/rentedPrefix.ts", "app/tests/e2e/fixtures/rentedServices.test.ts", "app/tests/e2e/fixtures/rentedServices.ts", "app/tests/e2e/journey.rented-services.spec.ts" ], "tests": [ { "command": "CI=true pnpm --filter app build", "exit_code": 0 }, { "command": "CI=true pnpm exec vitest run tests/e2e/fixtures/", "exit_code": 0 }, { "command": "CI=true pnpm lint", "exit_code": 0 } ], "criteria": { "Step 1-4: rentedServices.test.ts fails then passes (RENTED_SERVICES_LEGS + servicesRowVerdict)": "app/tests/e2e/fixtures/rentedServices.ts + rentedServices.test.ts; vitest tests/e2e/fixtures/ green (2 tests) — 19 legs, prefix in middle, release last; done+canonical passes, todo/failed/wrong-address/empty red", "Step 5+7: the spec copies journey.rented scaffolding + afterAll minus rentfail, verdict target 'rented-services', with the phase-9 body (pick-files, place-files, prefix, services-row, hand-off-card, sign-in, files-healthy, door, branded-login, oidc-admin, branded-chrome, release)": "app/tests/e2e/journey.rented-services.spec.ts (new, 421 lines); computeVerdict(...,'rented-services',...); no rentfail slug, no heartbeat leg", "Step 6: runRentedPrefix gains a 'confirm' entry (asserts founding-confirm; claim reads host only; s4aRent + walkToConfirm skipped; prefixNeedsWizardWalk('confirm')===false; default still 'address')": "app/tests/e2e/fixtures/rentedPrefix.ts PrefixEntry adds 'confirm', guarded claim/wizard-rent/create legs, confirm entry assertion; rentedPrefix.test.ts pins prefixNeedsWizardWalk('confirm')===false + enterFrom optional fifth arg; vitest green (6 tests)", "Step 8: offline verification green": "build exit 0 (vue-tsc covers tests/); vitest tests/e2e/fixtures/ 450 pass; pnpm lint exit 0; grep -c 'journey: ' journey.rented-services.spec.ts == 11; journey.rented.spec.ts unchanged (not in diff)" }, "summary": "Authored journey.rented-services.spec.ts (the phase-9 provision-on-founding drive) with its RENTED_SERVICES_LEGS/servicesRowVerdict fixture and a new 'confirm' entry on runRentedPrefix, all verified offline.", "reason": "", "blockers": [] } ``` </details>

close-report for #1489 — status success

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

envelope
{
  "issue": 1489,
  "status": "success",
  "commits": [
    "9a9145115174178b45acdf5288db98fcd98d2a6f"
  ],
  "changed_files": [
    "app/tests/e2e/fixtures/rentedPrefix.test.ts",
    "app/tests/e2e/fixtures/rentedPrefix.ts",
    "app/tests/e2e/fixtures/rentedServices.test.ts",
    "app/tests/e2e/fixtures/rentedServices.ts",
    "app/tests/e2e/journey.rented-services.spec.ts"
  ],
  "tests": [
    {
      "command": "CI=true pnpm --filter app build",
      "exit_code": 0
    },
    {
      "command": "CI=true pnpm exec vitest run tests/e2e/fixtures/",
      "exit_code": 0
    },
    {
      "command": "CI=true pnpm lint",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Step 1-4: rentedServices.test.ts fails then passes (RENTED_SERVICES_LEGS + servicesRowVerdict)": "app/tests/e2e/fixtures/rentedServices.ts + rentedServices.test.ts; vitest tests/e2e/fixtures/ green (2 tests) — 19 legs, prefix in middle, release last; done+canonical passes, todo/failed/wrong-address/empty red",
    "Step 5+7: the spec copies journey.rented scaffolding + afterAll minus rentfail, verdict target 'rented-services', with the phase-9 body (pick-files, place-files, prefix, services-row, hand-off-card, sign-in, files-healthy, door, branded-login, oidc-admin, branded-chrome, release)": "app/tests/e2e/journey.rented-services.spec.ts (new, 421 lines); computeVerdict(...,'rented-services',...); no rentfail slug, no heartbeat leg",
    "Step 6: runRentedPrefix gains a 'confirm' entry (asserts founding-confirm; claim reads host only; s4aRent + walkToConfirm skipped; prefixNeedsWizardWalk('confirm')===false; default still 'address')": "app/tests/e2e/fixtures/rentedPrefix.ts PrefixEntry adds 'confirm', guarded claim/wizard-rent/create legs, confirm entry assertion; rentedPrefix.test.ts pins prefixNeedsWizardWalk('confirm')===false + enterFrom optional fifth arg; vitest green (6 tests)",
    "Step 8: offline verification green": "build exit 0 (vue-tsc covers tests/); vitest tests/e2e/fixtures/ 450 pass; pnpm lint exit 0; grep -c 'journey: ' journey.rented-services.spec.ts == 11; journey.rented.spec.ts unchanged (not in diff)"
  },
  "summary": "Authored journey.rented-services.spec.ts (the phase-9 provision-on-founding drive) with its RENTED_SERVICES_LEGS/servicesRowVerdict fixture and a new 'confirm' entry on runRentedPrefix, all verified offline.",
  "reason": "",
  "blockers": []
}
**close-report** for #1489 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1489, "status": "success", "commits": [ "9a9145115174178b45acdf5288db98fcd98d2a6f" ], "changed_files": [ "app/tests/e2e/fixtures/rentedPrefix.test.ts", "app/tests/e2e/fixtures/rentedPrefix.ts", "app/tests/e2e/fixtures/rentedServices.test.ts", "app/tests/e2e/fixtures/rentedServices.ts", "app/tests/e2e/journey.rented-services.spec.ts" ], "tests": [ { "command": "CI=true pnpm --filter app build", "exit_code": 0 }, { "command": "CI=true pnpm exec vitest run tests/e2e/fixtures/", "exit_code": 0 }, { "command": "CI=true pnpm lint", "exit_code": 0 } ], "criteria": { "Step 1-4: rentedServices.test.ts fails then passes (RENTED_SERVICES_LEGS + servicesRowVerdict)": "app/tests/e2e/fixtures/rentedServices.ts + rentedServices.test.ts; vitest tests/e2e/fixtures/ green (2 tests) — 19 legs, prefix in middle, release last; done+canonical passes, todo/failed/wrong-address/empty red", "Step 5+7: the spec copies journey.rented scaffolding + afterAll minus rentfail, verdict target 'rented-services', with the phase-9 body (pick-files, place-files, prefix, services-row, hand-off-card, sign-in, files-healthy, door, branded-login, oidc-admin, branded-chrome, release)": "app/tests/e2e/journey.rented-services.spec.ts (new, 421 lines); computeVerdict(...,'rented-services',...); no rentfail slug, no heartbeat leg", "Step 6: runRentedPrefix gains a 'confirm' entry (asserts founding-confirm; claim reads host only; s4aRent + walkToConfirm skipped; prefixNeedsWizardWalk('confirm')===false; default still 'address')": "app/tests/e2e/fixtures/rentedPrefix.ts PrefixEntry adds 'confirm', guarded claim/wizard-rent/create legs, confirm entry assertion; rentedPrefix.test.ts pins prefixNeedsWizardWalk('confirm')===false + enterFrom optional fifth arg; vitest green (6 tests)", "Step 8: offline verification green": "build exit 0 (vue-tsc covers tests/); vitest tests/e2e/fixtures/ 450 pass; pnpm lint exit 0; grep -c 'journey: ' journey.rented-services.spec.ts == 11; journey.rented.spec.ts unchanged (not in diff)" }, "summary": "Authored journey.rented-services.spec.ts (the phase-9 provision-on-founding drive) with its RENTED_SERVICES_LEGS/servicesRowVerdict fixture and a new 'confirm' entry on runRentedPrefix, all verified offline.", "reason": "", "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#1489
No description provided.