schema: INSTALLERS, KitSchema, BuildCompleteSchema, Status v2 (phase-3 plan Task 1) #68

Closed
opened 2026-08-31 05:20:09 +00:00 by ben · 3 comments
Owner

Plan

docs/superpowers/plans/2026-08-31-coa-phase-3.md Task 1.

Deliverable

New packages/schema/src/installers.ts (INSTALLERS, INSTALLER_KEYS, InstallerKey, AssetsSchema/Assets), kit.ts (KitSchema/Kit: version:1, slug, build≥1, configUrl, logoFile, brand, onboarding, features, backend, strict), build-complete.ts (BuildCompleteSchema discriminated on outcome: 'success'|'failure'), status.ts v2 (adds optional build, configUrl, tenantError, buildError, releaseUrl, assets), fixtures FIXTURE_KIT, FIXTURE_ASSETS; all re-exported from src/index.ts. Test packages/schema/test/phase3.test.ts (plan text).

Acceptance

  • The plan's phase3.test.ts passes verbatim; pnpm -r typecheck && pnpm -r test green (templates still compiles with its own INSTALLERS until Task 5).
  • Installer keys/labels exactly: mac-x64 "macOS (Intel)", mac-arm64 "macOS (Apple silicon)", linux-appimage "Linux (AppImage)", windows "Windows", android "Android (APK)".

out_of_scope

Any server/templates change.

Phase gate

Feature toggles / nav order in builds are phase 4. Never delete or rewrite anything under communities/ (ADR 0002/0003); phase 3 rewrites only kit.json, status.json, index.html. No test reaches the real network, sends real mail, dispatches a real build or provisions a real tenant.

## Plan `docs/superpowers/plans/2026-08-31-coa-phase-3.md` **Task 1**. ## Deliverable New `packages/schema/src/installers.ts` (`INSTALLERS`, `INSTALLER_KEYS`, `InstallerKey`, `AssetsSchema`/`Assets`), `kit.ts` (`KitSchema`/`Kit`: `version:1, slug, build≥1, configUrl, logoFile, brand, onboarding, features, backend`, strict), `build-complete.ts` (`BuildCompleteSchema` discriminated on `outcome: 'success'|'failure'`), `status.ts` v2 (adds optional `build, configUrl, tenantError, buildError, releaseUrl, assets`), fixtures `FIXTURE_KIT`, `FIXTURE_ASSETS`; all re-exported from `src/index.ts`. Test `packages/schema/test/phase3.test.ts` (plan text). ## Acceptance - The plan's `phase3.test.ts` passes verbatim; `pnpm -r typecheck && pnpm -r test` green (templates still compiles with its own `INSTALLERS` until Task 5). - Installer keys/labels exactly: `mac-x64` "macOS (Intel)", `mac-arm64` "macOS (Apple silicon)", `linux-appimage` "Linux (AppImage)", `windows` "Windows", `android` "Android (APK)". ## out_of_scope Any server/templates change. ## Phase gate Feature toggles / nav order in builds are phase 4. Never delete or rewrite anything under `communities/` (ADR 0002/0003); phase 3 rewrites only `kit.json`, `status.json`, `index.html`. No test reaches the real network, sends real mail, dispatches a real build or provisions a real tenant.

This was generated by AI during triage.

Ruled by agent under ADR 0174 (two-way-door doctrine) — veto anytime

Ruling: ready-for-agent. schema: INSTALLERS, KitSchema, BuildCompleteSchema, Status v2 + fixtures.

Why this is a two-way door: it is revertible by a later commit or label change, and provable by the tests the plan specifies — which never reach the real network, send real mail, dispatch a real build or provision a real tenant. It is not on the one-way-door list: the credential bytes, real GitHub dispatch/release and live coa-shared tenant are already carved out into the human ticket #79 and the session tickets #80/#81; env-gated defaults keep the wired code inert (noop/static, 503/unconfigured) until those land.

What proves it: the plan's packages/schema/test/phase3.test.ts passes verbatim; pnpm -r typecheck && pnpm -r test green.

The ticket body is a complete agent brief (Deliverable / Acceptance / depends_on). The native Forgejo dependency links already mirror the plan's graph, so the swarm ready-list filter holds this ticket until its blockers close.

> *This was generated by AI during triage.* ## Ruled by agent under ADR 0174 (two-way-door doctrine) — veto anytime **Ruling:** `ready-for-agent`. schema: INSTALLERS, KitSchema, BuildCompleteSchema, Status v2 + fixtures. **Why this is a two-way door:** it is revertible by a later commit or label change, and provable by the tests the plan specifies — which never reach the real network, send real mail, dispatch a real build or provision a real tenant. It is not on the one-way-door list: the credential bytes, real GitHub dispatch/release and live coa-shared tenant are already carved out into the human ticket #79 and the session tickets #80/#81; env-gated defaults keep the wired code inert (noop/static, 503/unconfigured) until those land. **What proves it:** the plan's `packages/schema/test/phase3.test.ts` passes verbatim; `pnpm -r typecheck && pnpm -r test` green. The ticket body is a complete agent brief (Deliverable / Acceptance / depends_on). The native Forgejo dependency links already mirror the plan's graph, so the swarm ready-list filter holds this ticket until its blockers close.

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

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

close-report for #68 — status success

✅ close-report gates passed — every claim verified against main; PR #95 (#95) was already merged (a reconcile pass landed it before this close-report ran) and the merge closed this issue via closes #68.

envelope
{
  "issue": 68,
  "status": "success",
  "commits": [
    "272cb2e84af85c25914b87aedb60d3e27fd078e3"
  ],
  "changed_files": [
    "packages/schema/src/installers.ts",
    "packages/schema/src/kit.ts",
    "packages/schema/src/build-complete.ts",
    "packages/schema/src/status.ts",
    "packages/schema/src/index.ts",
    "packages/schema/src/fixtures.ts",
    "packages/schema/test/phase3.test.ts",
    "STATUS.md"
  ],
  "tests": [
    {
      "command": "pnpm --filter @coa/schema test",
      "exit_code": 0
    },
    {
      "command": "pnpm install --frozen-lockfile",
      "exit_code": 0
    },
    {
      "command": "pnpm -r typecheck",
      "exit_code": 0
    },
    {
      "command": "pnpm -r test",
      "exit_code": 0
    }
  ],
  "criteria": {
    "The plan's phase3.test.ts passes verbatim": "packages/schema/test/phase3.test.ts is the plan text verbatim; `pnpm --filter @coa/schema test` → 7 phase3 tests pass (55 total green)",
    "pnpm -r typecheck && pnpm -r test green (templates still compiles with its own INSTALLERS until Task 5)": "pnpm -r typecheck: all 5 projects Done; pnpm -r test: schema/templates/site/server all passed — templates unchanged, keeps its own INSTALLERS",
    "Installer keys/labels exact: mac-x64 macOS (Intel), mac-arm64 macOS (Apple silicon), linux-appimage Linux (AppImage), windows Windows, android Android (APK)": "packages/schema/src/installers.ts INSTALLERS const uses these exact keys/labels; asserted by test/phase3.test.ts INSTALLERS describe block"
  },
  "summary": "Added the phase-3 @coa/schema contract (INSTALLERS, AssetsSchema, KitSchema, BuildCompleteSchema, StatusSchema v2, FIXTURE_KIT/FIXTURE_ASSETS) with the plan's verbatim phase3.test.ts.",
  "reason": "Implements phase-3 plan Task 1 exactly to the stated interfaces; workspace typecheck and tests green.",
  "blockers": []
}
**close-report** for #68 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; PR #95 (https://git.matou.nz/Matou/coa/pulls/95) was already merged (a reconcile pass landed it before this close-report ran) and the merge closed this issue via `closes #68`. <details><summary>envelope</summary> ```json { "issue": 68, "status": "success", "commits": [ "272cb2e84af85c25914b87aedb60d3e27fd078e3" ], "changed_files": [ "packages/schema/src/installers.ts", "packages/schema/src/kit.ts", "packages/schema/src/build-complete.ts", "packages/schema/src/status.ts", "packages/schema/src/index.ts", "packages/schema/src/fixtures.ts", "packages/schema/test/phase3.test.ts", "STATUS.md" ], "tests": [ { "command": "pnpm --filter @coa/schema test", "exit_code": 0 }, { "command": "pnpm install --frozen-lockfile", "exit_code": 0 }, { "command": "pnpm -r typecheck", "exit_code": 0 }, { "command": "pnpm -r test", "exit_code": 0 } ], "criteria": { "The plan's phase3.test.ts passes verbatim": "packages/schema/test/phase3.test.ts is the plan text verbatim; `pnpm --filter @coa/schema test` → 7 phase3 tests pass (55 total green)", "pnpm -r typecheck && pnpm -r test green (templates still compiles with its own INSTALLERS until Task 5)": "pnpm -r typecheck: all 5 projects Done; pnpm -r test: schema/templates/site/server all passed — templates unchanged, keeps its own INSTALLERS", "Installer keys/labels exact: mac-x64 macOS (Intel), mac-arm64 macOS (Apple silicon), linux-appimage Linux (AppImage), windows Windows, android Android (APK)": "packages/schema/src/installers.ts INSTALLERS const uses these exact keys/labels; asserted by test/phase3.test.ts INSTALLERS describe block" }, "summary": "Added the phase-3 @coa/schema contract (INSTALLERS, AssetsSchema, KitSchema, BuildCompleteSchema, StatusSchema v2, FIXTURE_KIT/FIXTURE_ASSETS) with the plan's verbatim phase3.test.ts.", "reason": "Implements phase-3 plan Task 1 exactly to the stated interfaces; workspace typecheck and tests green.", "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/coa#68
No description provided.