provision drives: leg frames never capture the dashboard page — pass the dash getter to installLegCapture (archive/nextcloud/brand-reapply) #1244

Closed
opened 2026-09-05 22:20:41 +00:00 by ben · 6 comments
Owner

The gap

Archive drive run 8 (test-results/private-path/20260905T213911Z, elitebook-03) went 7/8 green through browse-catalogue (S2b), tick-archive, plain-deploy, deploy-archive — and there is no frame of any of it. artifacts/legs/<leg>-w1.png is the Electron seat ("E2E Drive is alive") and <leg>-w2.png is the panel's Electron window sitting on the Overview tab, byte-identical for every leg. The page the legs actually act on — the dash page establishAdminDoorSession returns and openGatewayChange/browseCatalogueArchive/selectArchiveOnGateway/waitForDeployActive drive — is never captured.

app/tests/e2e/fixtures/legframe.ts:56-103 already solves exactly this: installLegCapture(app, runDir, dashPage?) takes a lazy dash-page getter and writes <leg>-dash.png at every settle ("a dashboard-era red is readable from the leg frame alone"). provision-archive.live.spec.ts:134 calls installLegCapture(live.app, live.runDir) WITHOUT the getter; provision-nextcloud.live.spec.ts and settings-brand-reapply.live.spec.ts do not install leg capture at all. The verification discipline for #1235 is "verify by leg list AND eyeball S2b (both tiers incl. Mukurtu candidate), S5 archive healthy, the Omeka door" — today only Playwright's test-failed-*.png on a RED leg shows the dashboard, and a green run leaves nothing to eyeball.

What to build (harness only)

  1. provision-archive.live.spec.ts: installLegCapture(live.app, live.runDir, () => dash) where dash is the spec-scoped page variable assigned by establishAdminDoorSession (read lazily — it is undefined until leg 1b, which the capturer already tolerates).
  2. provision-nextcloud.live.spec.ts and settings-brand-reapply.live.spec.ts: install leg capture the same way (setLegCapturer(undefined) in afterAll, as the archive spec does at :82).
  3. Pin offline: the existing legFrameName test grows a case for the -dash suffix if it does not already have one; no live surface needed.

Acceptance

Next #1235 fire: artifacts/legs/browse-catalogue-dash.png shows the S2b Heritage section with the Community archive card in the installable tier and Mukurtu in the candidate tier; archive-healthy-dash.png shows the S5 card. Does NOT block #1235 — an eyeball aid, not a drive defect.

## The gap Archive drive run 8 (`test-results/private-path/20260905T213911Z`, elitebook-03) went 7/8 green through `browse-catalogue` (S2b), `tick-archive`, `plain-deploy`, `deploy-archive` — and there is **no frame of any of it**. `artifacts/legs/<leg>-w1.png` is the Electron seat ("E2E Drive is alive") and `<leg>-w2.png` is the panel's Electron window sitting on the Overview tab, byte-identical for every leg. The page the legs actually act on — the `dash` page `establishAdminDoorSession` returns and `openGatewayChange`/`browseCatalogueArchive`/`selectArchiveOnGateway`/`waitForDeployActive` drive — is never captured. `app/tests/e2e/fixtures/legframe.ts:56-103` already solves exactly this: `installLegCapture(app, runDir, dashPage?)` takes a lazy dash-page getter and writes `<leg>-dash.png` at every settle ("a dashboard-era red is readable from the leg frame alone"). `provision-archive.live.spec.ts:134` calls `installLegCapture(live.app, live.runDir)` WITHOUT the getter; `provision-nextcloud.live.spec.ts` and `settings-brand-reapply.live.spec.ts` do not install leg capture at all. The verification discipline for #1235 is "verify by leg list AND eyeball S2b (both tiers incl. Mukurtu `candidate`), S5 archive healthy, the Omeka door" — today only Playwright's `test-failed-*.png` on a RED leg shows the dashboard, and a green run leaves nothing to eyeball. ## What to build (harness only) 1. `provision-archive.live.spec.ts`: `installLegCapture(live.app, live.runDir, () => dash)` where `dash` is the spec-scoped page variable assigned by `establishAdminDoorSession` (read lazily — it is undefined until leg 1b, which the capturer already tolerates). 2. `provision-nextcloud.live.spec.ts` and `settings-brand-reapply.live.spec.ts`: install leg capture the same way (`setLegCapturer(undefined)` in afterAll, as the archive spec does at `:82`). 3. Pin offline: the existing `legFrameName` test grows a case for the `-dash` suffix if it does not already have one; no live surface needed. ## Acceptance Next #1235 fire: `artifacts/legs/browse-catalogue-dash.png` shows the S2b Heritage section with the Community archive card in the installable tier and Mukurtu in the candidate tier; `archive-healthy-dash.png` shows the S5 card. Does NOT block #1235 — an eyeball aid, not a drive defect.

swarm-claim host=matou-dev-server-01 run=18588
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=18588 (automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=18588
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=18588 (automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=18588
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=18588 (automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=18588
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=18588 (automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=18589
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=18589 (automated multi-host claim — lowest live claim id works this ticket)

close-report for #1244 — status success

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

envelope
{
  "issue": 1244,
  "status": "success",
  "commits": [
    "b5cb2c30"
  ],
  "changed_files": [
    "app/tests/e2e/fixtures/legframe.ts",
    "app/tests/e2e/fixtures/legframe.test.ts",
    "app/tests/e2e/provision-archive.live.spec.ts",
    "app/tests/e2e/provision-nextcloud.live.spec.ts",
    "app/tests/e2e/settings-brand-reapply.live.spec.ts"
  ],
  "tests": [
    {
      "command": "npx vitest run tests/e2e/fixtures/legframe.test.ts",
      "exit_code": 0
    },
    {
      "command": "npx vue-tsc -p tsconfig.json --noEmit",
      "exit_code": 0
    }
  ],
  "criteria": {
    "provision-archive.live.spec.ts calls installLegCapture(live.app, live.runDir, () => dash) with a lazily-read spec-scoped dash getter": "provision-archive.live.spec.ts: dash is now a spec-scoped `let dash: Page | undefined` declared before installLegCapture, passed as () => dash; assignment at ext.page (commit b5cb2c30)",
    "provision-nextcloud.live.spec.ts and settings-brand-reapply.live.spec.ts install leg capture the same way with setLegCapturer(undefined) in afterAll": "both specs now import installLegCapture+setLegCapturer, call installLegCapture(live.app, live.runDir, () => dash), and clear it in afterAll (commit b5cb2c30)",
    "the legFrameName test grows a case for the -dash suffix": "legframe.ts extracts dashFrameName(name) => `${name}-dash.png` (used by appWindowCapturer); legframe.test.ts adds a dashFrameName describe pinning browse-catalogue-dash.png and archive-healthy-dash.png — 3 tests green",
    "Next #1235 fire produces browse-catalogue-dash.png (S2b) and archive-healthy-dash.png (S5)": "wired at the harness: the archive drive's browse-catalogue and archive-healthy runRecordedLeg legs now fire the dash capturer, which writes <leg>-dash.png at each settle; proven offline by naming test + typecheck (the frames themselves need a live #1235 drive)"
  },
  "summary": "The three provision/re-apply drives now hand the dashboard page to installLegCapture so dashboard-era legs leave a <leg>-dash.png eyeball frame instead of the byte-identical Electron shell.",
  "blockers": []
}
**close-report** for #1244 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1244, "status": "success", "commits": [ "b5cb2c30" ], "changed_files": [ "app/tests/e2e/fixtures/legframe.ts", "app/tests/e2e/fixtures/legframe.test.ts", "app/tests/e2e/provision-archive.live.spec.ts", "app/tests/e2e/provision-nextcloud.live.spec.ts", "app/tests/e2e/settings-brand-reapply.live.spec.ts" ], "tests": [ { "command": "npx vitest run tests/e2e/fixtures/legframe.test.ts", "exit_code": 0 }, { "command": "npx vue-tsc -p tsconfig.json --noEmit", "exit_code": 0 } ], "criteria": { "provision-archive.live.spec.ts calls installLegCapture(live.app, live.runDir, () => dash) with a lazily-read spec-scoped dash getter": "provision-archive.live.spec.ts: dash is now a spec-scoped `let dash: Page | undefined` declared before installLegCapture, passed as () => dash; assignment at ext.page (commit b5cb2c30)", "provision-nextcloud.live.spec.ts and settings-brand-reapply.live.spec.ts install leg capture the same way with setLegCapturer(undefined) in afterAll": "both specs now import installLegCapture+setLegCapturer, call installLegCapture(live.app, live.runDir, () => dash), and clear it in afterAll (commit b5cb2c30)", "the legFrameName test grows a case for the -dash suffix": "legframe.ts extracts dashFrameName(name) => `${name}-dash.png` (used by appWindowCapturer); legframe.test.ts adds a dashFrameName describe pinning browse-catalogue-dash.png and archive-healthy-dash.png — 3 tests green", "Next #1235 fire produces browse-catalogue-dash.png (S2b) and archive-healthy-dash.png (S5)": "wired at the harness: the archive drive's browse-catalogue and archive-healthy runRecordedLeg legs now fire the dash capturer, which writes <leg>-dash.png at each settle; proven offline by naming test + typecheck (the frames themselves need a live #1235 drive)" }, "summary": "The three provision/re-apply drives now hand the dashboard page to installLegCapture so dashboard-era legs leave a <leg>-dash.png eyeball frame instead of the byte-identical Electron shell.", "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.

Dependencies

No dependencies set.

Reference
Matou/idss#1244
No description provided.