site: Backend step with live validation, Review, submit and Done page (plan Task 13) #17

Closed
opened 2026-08-28 15:06:50 +00:00 by ben · 3 comments
Owner

Plan

docs/superpowers/plans/2026-08-27-coa-phase-0-1.md Task 13.

Deliverable

site/src/form/steps/BackendStep.tsx, form/Review.tsx (toSubmission, stepForPath), pages/Done.tsx, route /done; wizard placeholders replaced; tests BackendStep.test.tsx, Review.test.tsx.

Acceptance

  • Two radios: Shared indigenous digital infrastructure (default; needs the "I understand there is a small monthly fee" checkbox) and Self-hosted (config server URL + "Test my backend" button → per-probe ✅/❌ list with aria-label pass/fail, "All checks passed" or "N of M checks failed").
  • Review shows every section; Submit application → 200 navigates to /done?slug=…; 400 shows path: message lines and jumps to the failing step; 422 stores the report and jumps to backend.
  • Components accept an injected api for tests (default api from client.ts).
  • Plan's four tests pass; pnpm --filter @coa/site build green; pnpm -r typecheck && pnpm -r test exit 0.

depends_on

  • site: Onboarding step (Task 12)
  • server: POST /api/submit (Task 9) — for the shapes; tests mock the api.

depends_on (issue refs)

## Plan `docs/superpowers/plans/2026-08-27-coa-phase-0-1.md` **Task 13**. ## Deliverable `site/src/form/steps/BackendStep.tsx`, `form/Review.tsx` (`toSubmission`, `stepForPath`), `pages/Done.tsx`, route `/done`; wizard placeholders replaced; tests `BackendStep.test.tsx`, `Review.test.tsx`. ## Acceptance - Two radios: **Shared indigenous digital infrastructure** (default; needs the "I understand there is a small monthly fee" checkbox) and **Self-hosted** (config server URL + "Test my backend" button → per-probe ✅/❌ list with `aria-label` pass/fail, "All checks passed" or "N of M checks failed"). - Review shows every section; **Submit application** → 200 navigates to `/done?slug=…`; 400 shows `path: message` lines and jumps to the failing step; 422 stores the report and jumps to backend. - Components accept an injected `api` for tests (default `api` from `client.ts`). - Plan's four tests pass; `pnpm --filter @coa/site build` green; `pnpm -r typecheck && pnpm -r test` exit 0. ## depends_on - site: Onboarding step (Task 12) - server: POST /api/submit (Task 9) — for the shapes; tests mock the api. ## depends_on (issue refs) - #16 - #13

This was generated by AI during triage.

Ruled by agent under ADR 0174 — veto anytime.

Ruling: enhancement + ready-for-agent (was needs-triage).

  • Category — enhancement. New phase-1 code (plan Task 13); nothing is broken, so not a bug.
  • Not already implemented. No packages/ / server/ / site/ / tools/ / e2e/ in the tree yet (#7 is the first code ticket); no matching .out-of-scope/ rejection. Redundancy and prior-rejection checks both clear.
  • Fully specified — no grilling needed. The body (Deliverable · Interfaces · Acceptance · out_of_scope) together with plan Task 13, cited verbatim as the contract, is the agent brief; I'm not duplicating it.
  • Dependencies: #16, #13 — registered on the tracker and enforced by the claim gate, so labelling the whole chain ready-for-agent now cannot let a worker start out of order.

Why a two-way door. The outcome is a label, reverted by a later label change, and every acceptance criterion is provable by the plan's own tests (pnpm -r typecheck && pnpm -r test). It touches no credential, emails no community contact, dispatches no build or release, provisions no shared-infra tenant, writes no real communities/ data, widens no security posture, and changes no form contract the spec does not already state — none of this repo's one-way doors.

> *This was generated by AI during triage.* **Ruled by agent under ADR 0174 — veto anytime.** **Ruling:** `enhancement` + `ready-for-agent` (was `needs-triage`). - **Category — enhancement.** New phase-1 code (plan Task 13); nothing is broken, so not a bug. - **Not already implemented.** No `packages/` / `server/` / `site/` / `tools/` / `e2e/` in the tree yet (#7 is the first code ticket); no matching `.out-of-scope/` rejection. Redundancy and prior-rejection checks both clear. - **Fully specified — no grilling needed.** The body (Deliverable · Interfaces · Acceptance · out_of_scope) together with plan **Task 13**, cited verbatim as the contract, *is* the agent brief; I'm not duplicating it. - **Dependencies:** #16, #13 — registered on the tracker and enforced by the claim gate, so labelling the whole chain `ready-for-agent` now cannot let a worker start out of order. **Why a two-way door.** The outcome is a label, reverted by a later label change, and every acceptance criterion is provable by the plan's own tests (`pnpm -r typecheck && pnpm -r test`). It touches no credential, emails no community contact, dispatches no build or release, provisions no shared-infra tenant, writes no real `communities/` data, widens no security posture, and changes no form contract the spec does not already state — none of this repo's one-way doors.

Blocked — CI runner wedged, PR cannot land

The code for Task 13 is complete and verified locally, but it cannot land because the shared CI runner is wedged, so ci.yml's seam never runs and MERGE_AUTHORITY=agent-after-green never gets its green gate.

What is done (PR #51, branch sandcastle/worker/20260829-072150-d137ee, left open so it can merge once CI recovers):

  • site/src/form/steps/BackendStep.tsx — shared (default, fee checkbox) vs self-hosted (config URL + "Test my backend" → per-probe ✅/❌ list with aria-label pass/fail, "All checks passed" / "N of M checks failed").
  • site/src/form/Review.tsx — toSubmission (SubmissionSchema.parse), stepForPath; submit → 200 /done?slug=…, 400 path: message lines + jump to failing step, 422 store report + jump to backend.
  • site/src/pages/Done.tsx + /done route; Wizard.tsx placeholders replaced with BackendStep/Review.
  • Tests BackendStep.test.tsx, Review.test.tsx.

Local verification (all exit 0): pnpm -r typecheck; pnpm -r test (schema 36, server 13, site 15 pass); pnpm --filter @coa/site build green.

The blocker (GOTCHAS 10 — backlog ruled out, runner is wedged):

  • My seam run 29307 (pull_request) has been status: waiting for ~90 min.
  • Run 29159 has been status: running since 07:21Z (~86 min) with zero completions in that window.
  • The waiting queue is growing, not draining (30 → 38 over the observation window), and 13 runs sit ahead of mine.

This is past GOTCHAS 10's "just wait, the queue drains in 10–30 min" case: the single shared runner has made no forward progress and needs an operator restart. Re-registering triggers does not apply (my head has a live waiting run, and .forgejo/workflows/ci.yml is a protected path I must not edit).

To re-arm: restart / unwedge the shared Actions runner so the seam queue drains, confirm PR #51's ci / seam (pull_request) goes green (the harness then auto-merges), then re-add ready-for-agent. No code change is needed — the branch is already green locally.

## Blocked — CI runner wedged, PR cannot land The code for Task 13 is **complete and verified locally**, but it cannot land because the shared CI runner is wedged, so `ci.yml`'s seam never runs and `MERGE_AUTHORITY=agent-after-green` never gets its green gate. **What is done (PR [#51](https://git.matou.nz/Matou/coa/pulls/51), branch `sandcastle/worker/20260829-072150-d137ee`, left open so it can merge once CI recovers):** - `site/src/form/steps/BackendStep.tsx` — shared (default, fee checkbox) vs self-hosted (config URL + "Test my backend" → per-probe ✅/❌ list with `aria-label` pass/fail, "All checks passed" / "N of M checks failed"). - `site/src/form/Review.tsx` — `toSubmission` (`SubmissionSchema.parse`), `stepForPath`; submit → 200 `/done?slug=…`, 400 `path: message` lines + jump to failing step, 422 store report + jump to backend. - `site/src/pages/Done.tsx` + `/done` route; `Wizard.tsx` placeholders replaced with `BackendStep`/`Review`. - Tests `BackendStep.test.tsx`, `Review.test.tsx`. Local verification (all exit 0): `pnpm -r typecheck`; `pnpm -r test` (schema 36, server 13, site 15 pass); `pnpm --filter @coa/site build` green. **The blocker (GOTCHAS 10 — backlog ruled out, runner is wedged):** - My seam run **29307** (`pull_request`) has been `status: waiting` for ~90 min. - Run **29159** has been `status: running` since 07:21Z (~86 min) with **zero** completions in that window. - The `waiting` queue is **growing, not draining** (30 → 38 over the observation window), and 13 runs sit ahead of mine. This is past GOTCHAS 10's "just wait, the queue drains in 10–30 min" case: the single shared runner has made no forward progress and needs an **operator restart**. Re-registering triggers does not apply (my head has a live `waiting` run, and `.forgejo/workflows/ci.yml` is a protected path I must not edit). **To re-arm:** restart / unwedge the shared Actions runner so the seam queue drains, confirm PR #51's `ci / seam (pull_request)` goes green (the harness then auto-merges), then re-add `ready-for-agent`. No code change is needed — the branch is already green locally.
Author
Owner

Ruled by agent under the two-way-door doctrine — veto anytime. The runner queue has drained (0 waiting / 0 running at 14:09Z). PR #52 (agent/issue-17, closes #17, same head 3b5ab43 as #51) has gone unmergeable only because main moved; the interactive session is rebasing it, re-running the seam and merging under agent-after-green; PR #51 will be closed as the duplicate. No code change. Removing agent-blocked.

**Ruled by agent under the two-way-door doctrine — veto anytime.** The runner queue has drained (0 waiting / 0 running at 14:09Z). PR #52 (`agent/issue-17`, `closes #17`, same head `3b5ab43` as #51) has gone unmergeable only because `main` moved; the interactive session is rebasing it, re-running the seam and merging under `agent-after-green`; PR #51 will be closed as the duplicate. No code change. Removing `agent-blocked`.
ben closed this issue 2026-08-29 14:12:12 +00:00
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#17
No description provided.