drives: real Coa readiness — status.json predicate + poller (ready AND linux-appimage), fake-Coa refusal (WKT-DEMO A, plan Task 4) #1832

Closed
opened 2026-09-24 18:15:10 +00:00 by ben · 4 comments
Owner

What

New app/tests/e2e/fixtures/coaReal.ts (plan Task 4 Step 3, verbatim): coaStatusUrl, coaDownloadsUrl, pure coaBuildReady(status) (ready only on state: "ready" with assets["linux-appimage"]), waitForCoaReady(slug, {timeoutMs, intervalMs?, fetchJson?, base?}) (a fetch error is a retry; the ceiling names the last state), refuseFakeCoa(env) (throws on IDSS_COA_URL). Coa's required installers: linux-appimage, windows, android (coa packages/schema/src/installers.ts).

Acceptance

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

depends_on: none. out_of_scope: any POST to Coa (the gateway submits; the drive only reads). needs_human_decision: none.

Plan: docs/superpowers/plans/2026-09-24-wkt-founding-drive.md (commit b8907abc) — the task's 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. Read the plan's header (Global Constraints, Review Focus) before the task.

Discipline: TDD as the plan's steps order it (failing test → red → implement → green → commit); one commit per task with the plan's subject line; STATUS.md dated entry in the same commit; no fake Coa anywhere on wkt-*; existing targets byte-identical when the new env/markers are unset.

## What New `app/tests/e2e/fixtures/coaReal.ts` (plan Task 4 Step 3, verbatim): `coaStatusUrl`, `coaDownloadsUrl`, pure `coaBuildReady(status)` (ready only on `state: "ready"` with `assets["linux-appimage"]`), `waitForCoaReady(slug, {timeoutMs, intervalMs?, fetchJson?, base?})` (a fetch error is a retry; the ceiling names the last state), `refuseFakeCoa(env)` (throws on `IDSS_COA_URL`). Coa's required installers: `linux-appimage`, `windows`, `android` (coa `packages/schema/src/installers.ts`). ## Acceptance - New `coaReal.test.ts` (plan Task 4 Step 1, verbatim) green; eslint clean. depends_on: none. out_of_scope: any POST to Coa (the gateway submits; the drive only reads). needs_human_decision: none. **Plan:** `docs/superpowers/plans/2026-09-24-wkt-founding-drive.md` (commit `b8907abc`) — the task's 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`. Read the plan's header (Global Constraints, Review Focus) before the task. **Discipline:** TDD as the plan's steps order it (failing test → red → implement → green → commit); one commit per task with the plan's subject line; STATUS.md dated entry in the same commit; no fake Coa anywhere on `wkt-*`; existing targets byte-identical when the new env/markers are unset.

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

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

close-report for #1832 — status success

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

envelope
{
  "issue": 1832,
  "status": "success",
  "commits": [
    "301e0063"
  ],
  "changed_files": [
    "STATUS.md",
    "app/tests/e2e/fixtures/coaReal.test.ts",
    "app/tests/e2e/fixtures/coaReal.ts"
  ],
  "tests": [
    {
      "command": "cd app && CI=true pnpm exec vitest run tests/e2e/fixtures/coaReal.test.ts",
      "exit_code": 0
    },
    {
      "command": "cd app && CI=true pnpm exec eslint tests/e2e/fixtures/coaReal.ts tests/e2e/fixtures/coaReal.test.ts",
      "exit_code": 0
    }
  ],
  "criteria": {
    "New coaReal.test.ts (plan Task 4 Step 1, verbatim) green": "app/tests/e2e/fixtures/coaReal.test.ts x6 pass via vitest run (exit 0); the 6 cases cover coaStatusUrl, coaBuildReady ready-only-with-linux-appimage plus building/failed/missing-asset/null, waitForCoaReady poll-to-ready, ceiling-names-last-state, fetch-error-is-retry, refuseFakeCoa",
    "eslint clean": "pnpm exec eslint over coaReal.ts + coaReal.test.ts exit 0; the pinned nix dev-shell `pnpm run lint` (eslint .) also passed as the pre-push TS gate before the commit landed on main"
  },
  "summary": "New app/tests/e2e/fixtures/coaReal.ts (verbatim from plan Task 4): status.json URLs, pure coaBuildReady, waitForCoaReady poller, and refuseFakeCoa, with coaReal.test.ts x6 green and eslint clean.",
  "blockers": []
}
**close-report** for #1832 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1832, "status": "success", "commits": [ "301e0063" ], "changed_files": [ "STATUS.md", "app/tests/e2e/fixtures/coaReal.test.ts", "app/tests/e2e/fixtures/coaReal.ts" ], "tests": [ { "command": "cd app && CI=true pnpm exec vitest run tests/e2e/fixtures/coaReal.test.ts", "exit_code": 0 }, { "command": "cd app && CI=true pnpm exec eslint tests/e2e/fixtures/coaReal.ts tests/e2e/fixtures/coaReal.test.ts", "exit_code": 0 } ], "criteria": { "New coaReal.test.ts (plan Task 4 Step 1, verbatim) green": "app/tests/e2e/fixtures/coaReal.test.ts x6 pass via vitest run (exit 0); the 6 cases cover coaStatusUrl, coaBuildReady ready-only-with-linux-appimage plus building/failed/missing-asset/null, waitForCoaReady poll-to-ready, ceiling-names-last-state, fetch-error-is-retry, refuseFakeCoa", "eslint clean": "pnpm exec eslint over coaReal.ts + coaReal.test.ts exit 0; the pinned nix dev-shell `pnpm run lint` (eslint .) also passed as the pre-push TS gate before the commit landed on main" }, "summary": "New app/tests/e2e/fixtures/coaReal.ts (verbatim from plan Task 4): status.json URLs, pure coaBuildReady, waitForCoaReady poller, and refuseFakeCoa, with coaReal.test.ts x6 green and eslint clean.", "blockers": [] } ``` </details>
ben self-assigned this 2026-09-24 19:14:34 +00:00
Author
Owner

session-claim: the coa session (Ben's ruling 2026-09-24, "start claiming tickets as well") takes this one. Assignee is the claim (docs/agents/issue-tracker.md); ready-for-agent dropped so the swarm skips it. Branch session/issue-1832, PR to follow, merged via the allow-listed merge script.

session-claim: the coa session (Ben's ruling 2026-09-24, "start claiming tickets as well") takes this one. Assignee is the claim (docs/agents/issue-tracker.md); `ready-for-agent` dropped so the swarm skips it. Branch `session/issue-1832`, PR to follow, merged via the allow-listed merge script.
ben removed their assignment 2026-09-24 19:15:49 +00:00
Author
Owner

session-claim withdrawn: the swarm's run had already claimed and landed this as 301e0063 before my claim comment posted — no duplicate work done, branch deleted unpushed.

session-claim withdrawn: the swarm's run had already claimed and landed this as `301e0063` before my claim comment posted — no duplicate work done, branch deleted unpushed.
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#1832
No description provided.