server: backend prober against ClientConfig endpoints (plan Task 7) #11

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

Plan

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

Deliverable

server/src/backend-prober.ts + server/test/backend-prober.test.ts (uses tools/stub-config-server.ts).

Interface produced

probeBackend(configServerUrl, deps: AppDeps, {timeoutMs?}) → Promise<BackendReport> with ProbeName = 'config'|'keria-admin'|'keria-boot'|'schema-server'|'witness-oobi'|'anysync-coordinator', ProbeResult = {name, ok, target, detail}, BackendReport = {ok, configServerUrl, probes[]}.

Acceptance (from the plan's five tests)

  • Healthy stub → all six probes ok, in that order.
  • fail: schema → exactly one failing probe (schema-server).
  • fail: anysync → anysync-coordinator fails (TCP).
  • Unreachable config URL → config fails and the other five are ok:false, detail:'skipped'.
  • Non-ClientConfig JSON → config fails with a detail naming the missing path (matches /keri/).
  • HTTP 2xx–4xx count as reachable; 5xx/network errors fail. No real network in tests.

depends_on

  • tools: stub config server (Task 5)
  • server: Hono scaffold (Task 6)

out_of_scope

routes.

depends_on (issue refs)

## Plan `docs/superpowers/plans/2026-08-27-coa-phase-0-1.md` **Task 7**. ## Deliverable `server/src/backend-prober.ts` + `server/test/backend-prober.test.ts` (uses `tools/stub-config-server.ts`). ## Interface produced `probeBackend(configServerUrl, deps: AppDeps, {timeoutMs?}) → Promise<BackendReport>` with `ProbeName = 'config'|'keria-admin'|'keria-boot'|'schema-server'|'witness-oobi'|'anysync-coordinator'`, `ProbeResult = {name, ok, target, detail}`, `BackendReport = {ok, configServerUrl, probes[]}`. ## Acceptance (from the plan's five tests) - Healthy stub → all six probes ok, in that order. - `fail: schema` → exactly one failing probe (`schema-server`). - `fail: anysync` → `anysync-coordinator` fails (TCP). - Unreachable config URL → `config` fails and the other five are `ok:false, detail:'skipped'`. - Non-ClientConfig JSON → `config` fails with a detail naming the missing path (matches `/keri/`). - HTTP 2xx–4xx count as reachable; 5xx/network errors fail. No real network in tests. ## depends_on - tools: stub config server (Task 5) - server: Hono scaffold (Task 6) ## out_of_scope routes. ## depends_on (issue refs) - #9 - #10

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 7); 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 7, cited verbatim as the contract, is the agent brief; I'm not duplicating it.
  • Dependencies: #9, #10 — 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 7); 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 7**, cited verbatim as the contract, *is* the agent brief; I'm not duplicating it. - **Dependencies:** #9, #10 — 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-28 19:51:40 +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#11
No description provided.