server: POST /api/validate-backend (plan Task 8) #12

Closed
opened 2026-08-28 15:06:45 +00:00 by ben · 1 comment
Owner

Plan

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

Deliverable

server/src/routes/validate-backend.ts, mounted in app.ts at /api/validate-backend; server/test/validate-backend.test.ts.

Acceptance

  • Body {configServerUrl} → 200 BackendReport (six probes) against the stub.
  • ftp://x → 400 {error} whose message mentions http.
  • pnpm -r typecheck && pnpm -r test exit 0.

depends_on

  • server: backend prober (Task 7)

depends_on (issue refs)

## Plan `docs/superpowers/plans/2026-08-27-coa-phase-0-1.md` **Task 8**. ## Deliverable `server/src/routes/validate-backend.ts`, mounted in `app.ts` at `/api/validate-backend`; `server/test/validate-backend.test.ts`. ## Acceptance - Body `{configServerUrl}` → 200 `BackendReport` (six probes) against the stub. - `ftp://x` → 400 `{error}` whose message mentions http. - `pnpm -r typecheck && pnpm -r test` exit 0. ## depends_on - server: backend prober (Task 7) ## depends_on (issue refs) - #11

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 8); 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 8, cited verbatim as the contract, is the agent brief; I'm not duplicating it.
  • Dependencies: #11 — 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 8); 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 8**, cited verbatim as the contract, *is* the agent brief; I'm not duplicating it. - **Dependencies:** #11 — 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.
ben closed this issue 2026-08-29 05:21:57 +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#12
No description provided.