templates: ready and failed page states; INSTALLERS from @coa/schema (phase-3 plan Task 5) #72

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

Plan

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

Deliverable

templates/src/community-page.ts re-exports INSTALLERS from @coa/schema (local const deleted); state==='ready' && assets → five <a class="btn" href=asset download> + release-notes link; failed → pending buttons + "Build failed — we're on it. Check back soon." (never the internal error text); building/page-ready unchanged. Tests appended (plan text); snapshot updated once and inspected.

Acceptance

  • Phase-2 snapshot byte-identical; new ready snapshot added.
  • ready without assets still renders five pending buttons.
  • pnpm -r typecheck && pnpm -r test green.

depends_on

  • schema (Task 1)

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 5**. ## Deliverable `templates/src/community-page.ts` re-exports `INSTALLERS` from `@coa/schema` (local const deleted); `state==='ready' && assets` → five `<a class="btn" href=asset download>` + release-notes link; `failed` → pending buttons + "Build failed — we're on it. Check back soon." (never the internal error text); `building`/`page-ready` unchanged. Tests appended (plan text); snapshot updated once and inspected. ## Acceptance - Phase-2 snapshot byte-identical; new `ready` snapshot added. - `ready` without assets still renders five pending buttons. - `pnpm -r typecheck && pnpm -r test` green. ## depends_on - schema (Task 1) ## 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. templates ready/failed states; INSTALLERS re-exported from @coa/schema.

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: appended template tests; phase-2 snapshot stays byte-identical, new ready snapshot inspected; 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`. templates ready/failed states; INSTALLERS re-exported from @coa/schema. **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:** appended template tests; phase-2 snapshot stays byte-identical, new `ready` snapshot inspected; `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)

Ruled by agent under the two-way-door doctrine — veto anytime

Decision: plan Task 5 Step 2 says to add .note.failed { color:#b45309; font-weight:600 } to the shared css() block. Doing so would change the <style> block in the page-ready snapshot too, which contradicts the explicit acceptance clause "Phase-2 snapshot byte-identical". I resolved the conflict in favour of the acceptance clause: the failed-note colour is inlined on the <p class="note failed" style="…"> element instead, so css() output (and the page-ready/building snapshot) stays byte-for-byte identical while the failed state keeps its distinct colour and the note failed class.

Why two-way: revertible by a later commit; provable by the snapshot tests (page-ready snapshot unchanged in the diff, new ready snapshot added). Not on the one-way-door list.

Opened PR #97. pnpm -r typecheck && pnpm -r test green.

## Ruled by agent under the two-way-door doctrine — veto anytime **Decision:** plan Task 5 Step 2 says to add `.note.failed { color:#b45309; font-weight:600 }` to the shared `css()` block. Doing so would change the `<style>` block in the **page-ready** snapshot too, which contradicts the explicit acceptance clause *"Phase-2 snapshot byte-identical"*. I resolved the conflict in favour of the acceptance clause: the failed-note colour is inlined on the `<p class="note failed" style="…">` element instead, so `css()` output (and the page-ready/building snapshot) stays byte-for-byte identical while the failed state keeps its distinct colour and the `note failed` class. **Why two-way:** revertible by a later commit; provable by the snapshot tests (page-ready snapshot unchanged in the diff, new `ready` snapshot added). Not on the one-way-door list. Opened PR #97. `pnpm -r typecheck && pnpm -r test` green.

close-report for #72 — status success

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

envelope
{
  "issue": 72,
  "status": "success",
  "commits": [
    "c69a9e8f5fcd9ea9f88b652df396db5d5e5a90c1"
  ],
  "changed_files": [
    "templates/src/community-page.ts",
    "templates/test/community-page.test.ts",
    "templates/test/__snapshots__/community-page.test.ts.snap",
    "STATUS.md"
  ],
  "tests": [
    {
      "command": "pnpm -r typecheck",
      "exit_code": 0
    },
    {
      "command": "pnpm -r test",
      "exit_code": 0
    }
  ],
  "criteria": {
    "templates/src/community-page.ts re-exports INSTALLERS from @coa/schema (local const deleted)": "community-page.ts now imports INSTALLERS from '@coa/schema' and re-exports it; local const removed (commit c69a9e8)",
    "state==='ready' && assets -> five <a class=\"btn\" href=asset download> + release-notes link": "ready branch renders five <a class=\"btn\" href download data-installer> plus a release-notes <p class=\"note\"> link; verified by test 'renders real links and the release when ready' and the new ready snapshot",
    "failed -> pending buttons + 'Build failed — we're on it. Check back soon.' (never the internal error text)": "failed branch keeps five aria-disabled pending buttons and the failed note; test 'keeps pending buttons and says so when failed' asserts 5 pending buttons, 'Build failed', and that 'android failed' (internal error) is absent",
    "building/page-ready unchanged": "Phase-2 page-ready snapshot byte-identical (test 'matches the snapshot for the fixture community' passes unchanged); css() untouched",
    "Phase-2 snapshot byte-identical; new ready snapshot added": "snapshot diff shows only the appended 'renders real links and the release when ready' entry; existing page-ready snapshot unchanged (git diff on community-page.test.ts.snap)",
    "ready without assets still renders five pending buttons": "test 'ready without assets still renders pending (defensive)' asserts 5 aria-disabled buttons for state:'ready' with no assets",
    "pnpm -r typecheck && pnpm -r test green": "both ran exit 0 across all workspace packages"
  },
  "summary": "Community-page template gains ready/failed states and re-exports INSTALLERS from @coa/schema; phase-2 snapshot unchanged, new ready snapshot added.",
  "reason": "Phase-3 plan Task 5 implemented test-first; merged to main via PR #97 after the ci seam went green.",
  "blockers": []
}
**close-report** for #72 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; PR #97 (https://git.matou.nz/Matou/coa/pulls/97) was already merged (a reconcile pass landed it before this close-report ran) and the merge closed this issue via `closes #72`. <details><summary>envelope</summary> ```json { "issue": 72, "status": "success", "commits": [ "c69a9e8f5fcd9ea9f88b652df396db5d5e5a90c1" ], "changed_files": [ "templates/src/community-page.ts", "templates/test/community-page.test.ts", "templates/test/__snapshots__/community-page.test.ts.snap", "STATUS.md" ], "tests": [ { "command": "pnpm -r typecheck", "exit_code": 0 }, { "command": "pnpm -r test", "exit_code": 0 } ], "criteria": { "templates/src/community-page.ts re-exports INSTALLERS from @coa/schema (local const deleted)": "community-page.ts now imports INSTALLERS from '@coa/schema' and re-exports it; local const removed (commit c69a9e8)", "state==='ready' && assets -> five <a class=\"btn\" href=asset download> + release-notes link": "ready branch renders five <a class=\"btn\" href download data-installer> plus a release-notes <p class=\"note\"> link; verified by test 'renders real links and the release when ready' and the new ready snapshot", "failed -> pending buttons + 'Build failed — we're on it. Check back soon.' (never the internal error text)": "failed branch keeps five aria-disabled pending buttons and the failed note; test 'keeps pending buttons and says so when failed' asserts 5 pending buttons, 'Build failed', and that 'android failed' (internal error) is absent", "building/page-ready unchanged": "Phase-2 page-ready snapshot byte-identical (test 'matches the snapshot for the fixture community' passes unchanged); css() untouched", "Phase-2 snapshot byte-identical; new ready snapshot added": "snapshot diff shows only the appended 'renders real links and the release when ready' entry; existing page-ready snapshot unchanged (git diff on community-page.test.ts.snap)", "ready without assets still renders five pending buttons": "test 'ready without assets still renders pending (defensive)' asserts 5 aria-disabled buttons for state:'ready' with no assets", "pnpm -r typecheck && pnpm -r test green": "both ran exit 0 across all workspace packages" }, "summary": "Community-page template gains ready/failed states and re-exports INSTALLERS from @coa/schema; phase-2 snapshot unchanged, new ready snapshot added.", "reason": "Phase-3 plan Task 5 implemented test-first; merged to main via PR #97 after the ci seam went 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#72
No description provided.