drives: wkt-app inputs — kept pointer reader, current-AppImage resolver off Coa status.json, streaming download (WKT-DEMO B, plan Task 3) #1839

Closed
opened 2026-09-24 18:26:24 +00:00 by ben · 2 comments
Owner

What

New app/tests/e2e/fixtures/wktApp.ts (plan Task 3 Step 3, verbatim): WKT_APP_LEGS (download, founder-first-run, founder-dashboard-qr, founder-nextcloud-qr, member-first-run, approve-from-app, member-dashboard-qr, member-nextcloud-qr, kept), readKeptPointer (names a missing key), resolveAppImage(status, pointer) (the CURRENT assets['linux-appimage'] of a ready status — never the pointer's stale URL; uses Drive A's coaBuildReady), downloadTo (streams, sha256, Content-Length check, chmod 0755).

Acceptance

  • New wktApp.test.ts (plan Task 3 Step 1, verbatim) green; eslint clean.

depends_on: #1832 (coaReal.ts coaBuildReady).

Plan: docs/superpowers/plans/2026-09-24-wkt-app-drive.md (commit bc1d4ccc) — steps, exact code, tests and commands live there; this ticket is the work order. Spec: docs/superpowers/specs/2026-09-24-wkt-demo-founding-and-app-drives-design.md (Drive B). Read the plan header (Global Constraints, Review Focus) first. Drive A's plan/tickets: docs/superpowers/plans/2026-09-24-wkt-founding-drive.md, #1829–#1836.

Discipline: TDD as the plan orders it; one commit per task with the plan's subject line; STATUS entry in the same commit; nothing here changes any other target; the founder words are read from the kept bundle into memory only — never logged, never copied.

## What New `app/tests/e2e/fixtures/wktApp.ts` (plan Task 3 Step 3, verbatim): `WKT_APP_LEGS` (download, founder-first-run, founder-dashboard-qr, founder-nextcloud-qr, member-first-run, approve-from-app, member-dashboard-qr, member-nextcloud-qr, kept), `readKeptPointer` (names a missing key), `resolveAppImage(status, pointer)` (the CURRENT `assets['linux-appimage']` of a `ready` status — never the pointer's stale URL; uses Drive A's `coaBuildReady`), `downloadTo` (streams, sha256, Content-Length check, chmod 0755). ## Acceptance - New `wktApp.test.ts` (plan Task 3 Step 1, verbatim) green; eslint clean. depends_on: #1832 (`coaReal.ts` `coaBuildReady`). **Plan:** `docs/superpowers/plans/2026-09-24-wkt-app-drive.md` (commit `bc1d4ccc`) — steps, exact code, tests and commands live there; this ticket is the work order. **Spec:** `docs/superpowers/specs/2026-09-24-wkt-demo-founding-and-app-drives-design.md` (Drive B). Read the plan header (Global Constraints, Review Focus) first. Drive A's plan/tickets: `docs/superpowers/plans/2026-09-24-wkt-founding-drive.md`, #1829–#1836. **Discipline:** TDD as the plan orders it; one commit per task with the plan's subject line; STATUS entry in the same commit; nothing here changes any other target; the founder words are read from the kept bundle into memory only — never logged, never copied.

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

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

close-report for #1839 — status success

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

envelope
{
  "issue": 1839,
  "status": "success",
  "commits": [
    "fb37ba41"
  ],
  "changed_files": [
    "app/tests/e2e/fixtures/wktApp.ts",
    "app/tests/e2e/fixtures/wktApp.test.ts",
    "STATUS.md"
  ],
  "tests": [
    {
      "command": "CI=true pnpm exec vitest run tests/e2e/fixtures/wktApp.test.ts",
      "exit_code": 0
    },
    {
      "command": "CI=true pnpm exec eslint tests/e2e/fixtures/wktApp.ts tests/e2e/fixtures/wktApp.test.ts",
      "exit_code": 0
    },
    {
      "command": "CI=true pnpm run lint",
      "exit_code": 0
    }
  ],
  "criteria": {
    "New wktApp.test.ts (plan Task 3 Step 1, verbatim) green": "app/tests/e2e/fixtures/wktApp.test.ts written verbatim from the plan; 3 tests pass via vitest (WKT_APP_LEGS ordering, readKeptPointer missing-key throw, resolveAppImage current-AppImage/refusals)",
    "eslint clean": "eslint on both new files exits 0; repo root `pnpm run lint` (eslint .) exits 0"
  },
  "summary": "Added app/tests/e2e/fixtures/wktApp.ts (WKT_APP_LEGS, readKeptPointer, resolveAppImage off #1832 coaBuildReady, downloadTo) and its verbatim test, both green and lint-clean.",
  "blockers": []
}
**close-report** for #1839 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1839, "status": "success", "commits": [ "fb37ba41" ], "changed_files": [ "app/tests/e2e/fixtures/wktApp.ts", "app/tests/e2e/fixtures/wktApp.test.ts", "STATUS.md" ], "tests": [ { "command": "CI=true pnpm exec vitest run tests/e2e/fixtures/wktApp.test.ts", "exit_code": 0 }, { "command": "CI=true pnpm exec eslint tests/e2e/fixtures/wktApp.ts tests/e2e/fixtures/wktApp.test.ts", "exit_code": 0 }, { "command": "CI=true pnpm run lint", "exit_code": 0 } ], "criteria": { "New wktApp.test.ts (plan Task 3 Step 1, verbatim) green": "app/tests/e2e/fixtures/wktApp.test.ts written verbatim from the plan; 3 tests pass via vitest (WKT_APP_LEGS ordering, readKeptPointer missing-key throw, resolveAppImage current-AppImage/refusals)", "eslint clean": "eslint on both new files exits 0; repo root `pnpm run lint` (eslint .) exits 0" }, "summary": "Added app/tests/e2e/fixtures/wktApp.ts (WKT_APP_LEGS, readKeptPointer, resolveAppImage off #1832 coaBuildReady, downloadTo) and its verbatim test, both green and lint-clean.", "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#1839
No description provided.