prober: the anysync-coordinator probe is TCP-only — a protocol-incompatible coordinator passes and a dead-on-launch build ships (whakatohea-demo, idss#1813) #146

Open
opened 2026-09-24 04:31:16 +00:00 by ben · 4 comments
Owner

Symptom

whakatohea-demo (IDSS origin) passed the backend probe, was built and released (ready, build 1), and its app fails at first launch with coordinator unreachable: unable to connect. The gateway's any-sync nodes run any-sync v0.13 (handshake proto 13, accepts {12,13,14}) while matou-app's client is any-sync v0.11.9 (proto 8). Root cause + fix on the IDSS side: Matou/idss#1813 (Matou/idss#1813).

Gap here

server/src/backend-prober.ts's anysync-coordinator probe is a bare TCP connect (tcpConnect). A coordinator that answers TCP but rejects the any-sync handshake (IncompatibleVersion) passes the probe, so COA releases a build that can never connect. The probe cannot see protocol compatibility, and neither can the /api/client-config shape check.

Options (needs a ruling — not urgent while IDSS re-pins)

  1. Advertise-and-compare: have the backend descriptor carry the any-sync node version (or handshake ProtoVersion) and have ClientConfigSchema/the prober compare it with the pinned matou-app's client version (a constant COA already knows via the coa-builds MATOU_APP_REF pin). Cheap, catches this exact class, no network handshake in the prober.
  2. Real handshake probe: a small Go helper (any-sync secureservice at the app's lib version) run by the prober. Accurate, but drags a Go toolchain into the server image.
  3. Leave the probe as is; rely on fleet pin discipline (matou-infrastructure .env as source of truth).

Evidence and the version table are on the IDSS ticket.

## Symptom `whakatohea-demo` (IDSS origin) passed the backend probe, was built and released (`ready`, build 1), and its app fails at first launch with `coordinator unreachable: unable to connect`. The gateway's any-sync nodes run any-sync **v0.13** (handshake proto 13, accepts {12,13,14}) while matou-app's client is any-sync **v0.11.9** (proto 8). Root cause + fix on the IDSS side: Matou/idss#1813 (https://git.matou.nz/Matou/idss/issues/1813). ## Gap here `server/src/backend-prober.ts`'s `anysync-coordinator` probe is a bare TCP connect (`tcpConnect`). A coordinator that answers TCP but rejects the any-sync handshake (`IncompatibleVersion`) passes the probe, so COA releases a build that can never connect. The probe cannot see protocol compatibility, and neither can the `/api/client-config` shape check. ## Options (needs a ruling — not urgent while IDSS re-pins) 1. **Advertise-and-compare**: have the backend descriptor carry the any-sync node version (or handshake `ProtoVersion`) and have `ClientConfigSchema`/the prober compare it with the pinned matou-app's client version (a constant COA already knows via the coa-builds `MATOU_APP_REF` pin). Cheap, catches this exact class, no network handshake in the prober. 2. **Real handshake probe**: a small Go helper (any-sync `secureservice` at the app's lib version) run by the prober. Accurate, but drags a Go toolchain into the server image. 3. Leave the probe as is; rely on fleet pin discipline (matou-infrastructure `.env` as source of truth). Evidence and the version table are on the IDSS ticket.

This was generated by AI during triage.

Triage assessment — confirmed enhancement + product-decision

Recommendation: leave as-is. The product owner already routed this to product-decision, and I agree — this is a genuine one-way door, not an agent-rulable two-way door. Two codebase findings below sharpen the eventual ruling.

Redundancy check. No protocol/version-compatibility probing exists anywhere. server/src/backend-prober.ts's anysync-coordinator probe is a bare deps.tcpConnect(host, port) (ok/fail only), and ClientConfigSchema.anysync (packages/schema/src/client-config.ts) carries {id, networkId, nodes[{peerId, addresses, types}]} with no version or ProtoVersion field. The gap the issue describes is real and unaddressed. (No .out-of-scope/ KB in this repo; no prior rejection to surface.)

Factual correction to Option 1's premise. Option 1 assumes COA already knows the pinned matou-app client version "via the coa-builds MATOU_APP_REF pin". It does not: there is no MATOU_APP_REF (or any matou-app ref/version) anywhere in this repo. server/src/build-dispatcher.ts dispatches only {slug, kit_url, build, config_url, callback_url}; the matou-app version is pinned inside coa-builds, not COA. So Option 1 needs two new pieces, not one: (a) the descriptor must advertise the coordinator's any-sync version/proto, and (b) COA must acquire the app's client proto version from somewhere it currently doesn't track. That makes Option 1 a cross-repo contract change (COA ↔ IDSS gateway descriptor, plus a new COA-side app-proto pin), not a local tweak.

Why this stays with a human (product-decision) — ADR 0174 / ADR 0002.

  • One-way-door residue: every non-trivial option is a contract or architecture call, not a revertible-and-locally-provable change. Option 1 changes the backend-descriptor contract that mirrors matou-app and requires IDSS to emit a new field (docs/adr/0002 reserves "a change to the [...] contract [...] the spec does not already state" for product-decision). Option 2 widens the server image with a Go toolchain (an infra-posture call). Option 3 accepts a known release-safety gap. Choosing among them fixes a seam the spec does not fix.
  • Open dependency: the root cause is on the IDSS side (idss#1813, still re-pinning) and the author flags "not urgent while IDSS re-pins." Whichever option wins, this cannot go ready-for-agent until idss#1813 closes and settles the proto model (which version/range the descriptor advertises). ready-for-agent requires closed dependencies.

Ruled by agent under ADR 0174 — veto anytime. I am not selecting an option — that is the one-way door. I am ruling the label routing (a two-way door, revertible by a later commit/label change and provable by the labels themselves): enhancement + product-decision is correct and stays. No label change is needed; the issue already carries one category + one state role.

Why human

The option choice is a cross-system contract/infra decision — the backend-descriptor schema shared with matou-app/IDSS (Option 1), a server-image toolchain change (Option 2), or accepting a shipped-dead-build risk (Option 3) — gated on idss#1813. Residue: (1) which option; (2) if Option 1, how the coordinator proto is advertised and where COA sources the app's client proto version. When idss#1813 re-pins, this becomes cheap to move to ready-for-agent with a brief.

> *This was generated by AI during triage.* ## Triage assessment — confirmed `enhancement` + `product-decision` **Recommendation: leave as-is.** The product owner already routed this to `product-decision`, and I agree — this is a genuine one-way door, not an agent-rulable two-way door. Two codebase findings below sharpen the eventual ruling. **Redundancy check.** No protocol/version-compatibility probing exists anywhere. `server/src/backend-prober.ts`'s `anysync-coordinator` probe is a bare `deps.tcpConnect(host, port)` (ok/fail only), and `ClientConfigSchema.anysync` (`packages/schema/src/client-config.ts`) carries `{id, networkId, nodes[{peerId, addresses, types}]}` with **no** version or `ProtoVersion` field. The gap the issue describes is real and unaddressed. (No `.out-of-scope/` KB in this repo; no prior rejection to surface.) **Factual correction to Option 1's premise.** Option 1 assumes COA already knows the pinned matou-app client version "via the coa-builds `MATOU_APP_REF` pin". It does not: there is **no** `MATOU_APP_REF` (or any matou-app ref/version) anywhere in this repo. `server/src/build-dispatcher.ts` dispatches only `{slug, kit_url, build, config_url, callback_url}`; the matou-app version is pinned inside `coa-builds`, not COA. So Option 1 needs **two** new pieces, not one: (a) the descriptor must advertise the coordinator's any-sync version/proto, and (b) COA must acquire the app's client proto version from somewhere it currently doesn't track. That makes Option 1 a cross-repo contract change (COA ↔ IDSS gateway descriptor, plus a new COA-side app-proto pin), not a local tweak. **Why this stays with a human (`product-decision`) — ADR 0174 / ADR 0002.** - **One-way-door residue:** every non-trivial option is a contract or architecture call, not a revertible-and-locally-provable change. Option 1 changes the backend-descriptor contract that mirrors matou-app and requires IDSS to emit a new field (docs/adr/0002 reserves "a change to the [...] contract [...] the spec does not already state" for `product-decision`). Option 2 widens the server image with a Go toolchain (an infra-posture call). Option 3 accepts a known release-safety gap. Choosing among them fixes a seam the spec does not fix. - **Open dependency:** the root cause is on the IDSS side (idss#1813, still re-pinning) and the author flags "not urgent while IDSS re-pins." Whichever option wins, this cannot go `ready-for-agent` until idss#1813 closes and settles the proto model (which version/range the descriptor advertises). `ready-for-agent` requires closed dependencies. **Ruled by agent under ADR 0174 — veto anytime.** I am **not** selecting an option — that is the one-way door. I **am** ruling the label routing (a two-way door, revertible by a later commit/label change and provable by the labels themselves): `enhancement` + `product-decision` is correct and stays. No label change is needed; the issue already carries one category + one state role. ## Why human The option choice is a cross-system contract/infra decision — the backend-descriptor schema shared with matou-app/IDSS (Option 1), a server-image toolchain change (Option 2), or accepting a shipped-dead-build risk (Option 3) — gated on idss#1813. Residue: (1) which option; (2) if Option 1, how the coordinator proto is advertised and where COA sources the app's client proto version. When idss#1813 re-pins, this becomes cheap to move to `ready-for-agent` with a brief.

This was generated by AI during triage.

Triage re-check — the blocking dependency has cleared

Resuming the standing assessment above. One thing changed since it was written (08:39Z): Matou/idss#1813 is now CLOSED (fix merged 05:02Z, commit 20a6777). The prior note described it as "still re-pinning" and gated ready-for-agent on it — that framing no longer holds.

What idss#1813 settled:

  • Root-cause fix landed on the IDSS side: the four any-sync node images are re-pinned to the fleet-proven, proto-8-compatible set (coordinator v0.8.0, node v0.10.1, filenode v0.10.0, consensus v0.5.0) — the same set matou-infrastructure runs for coa-shared/Matou prod, which matou-app's v0.11.9 (proto 8) client is proven against. TestRenderAnySync_* updated, suite green.
  • The proto model is now one pinned set, proto 8, with matou-infrastructure's .env as the source of truth for what the app is tested against (stated explicitly in idss#1813's fix).
  • Remaining on the IDSS side: the live re-render + re-deploy of whakatohea-demo's gateway (a fleet-ops/session step — STATUS.md's "awaits re-supply"). That is IDSS ops, not a blocker on this ticket.

What this means for #146: the earlier precondition ("cannot move until idss#1813 closes and settles the proto model") is met. The prober-hardening decision is no longer blocked or "not urgent while IDSS re-pins" — it is simply awaiting the product owner's option call, which is now ready to be made. The settled proto model actually sharpens Option 1: COA would compare the coordinator's advertised proto against the pinned app-client proto (source of truth = matou-infrastructure .env, not a MATOU_APP_REF in this repo — see the factual correction above).

Ruled by agent under ADR 0174 — veto anytime. Routing is unchanged and stays enhancement + product-decision. I am not selecting an option (the one-way door). The label routing is the two-way door — revertible by a later commit/label change, provable by the labels themselves — and no change is warranted: the ticket still needs a product-owner call and already carries exactly one category + one state role.

Why human

Unchanged, minus the dependency: the residue is purely the product owner's option choice — (1) advertise-and-compare a coordinator proto in the backend descriptor (a cross-repo contract change with the IDSS gateway), (2) a Go handshake helper in the server image (an infra-posture widening), or (3) accept the shipped-dead-build risk under fleet-pin discipline. Each is a contract/architecture/scope call the spec does not state, so it stays with the product owner. It is now ready to decide (no longer gated on idss#1813); once decided, it moves cheaply to ready-for-agent with a brief.

> *This was generated by AI during triage.* ## Triage re-check — the blocking dependency has cleared Resuming the standing assessment above. One thing changed since it was written (08:39Z): **Matou/idss#1813 is now CLOSED** (fix merged 05:02Z, commit `20a6777`). The prior note described it as "still re-pinning" and gated `ready-for-agent` on it — that framing no longer holds. **What idss#1813 settled:** - Root-cause fix landed on the IDSS side: the four any-sync node images are re-pinned to the **fleet-proven, proto-8-compatible** set (coordinator v0.8.0, node v0.10.1, filenode v0.10.0, consensus v0.5.0) — the same set matou-infrastructure runs for coa-shared/Matou prod, which matou-app's v0.11.9 (proto 8) client is proven against. `TestRenderAnySync_*` updated, suite green. - The proto model is now **one pinned set, proto 8**, with **matou-infrastructure's `.env` as the source of truth** for what the app is tested against (stated explicitly in idss#1813's fix). - Remaining on the IDSS side: the live re-render + re-deploy of whakatohea-demo's gateway (a fleet-ops/session step — STATUS.md's "awaits re-supply"). That is IDSS ops, **not** a blocker on this ticket. **What this means for #146:** the earlier precondition ("cannot move until idss#1813 closes and settles the proto model") is **met**. The prober-hardening decision is no longer blocked or "not urgent while IDSS re-pins" — it is simply awaiting the product owner's option call, which is now ready to be made. The settled proto model actually sharpens Option 1: COA would compare the coordinator's advertised proto against the pinned app-client proto (source of truth = matou-infrastructure `.env`, not a `MATOU_APP_REF` in this repo — see the factual correction above). **Ruled by agent under ADR 0174 — veto anytime.** Routing is unchanged and stays `enhancement` + `product-decision`. I am **not** selecting an option (the one-way door). The label routing is the two-way door — revertible by a later commit/label change, provable by the labels themselves — and no change is warranted: the ticket still needs a product-owner call and already carries exactly one category + one state role. ## Why human Unchanged, minus the dependency: the residue is purely the product owner's option choice — (1) advertise-and-compare a coordinator proto in the backend descriptor (a cross-repo contract change with the IDSS gateway), (2) a Go handshake helper in the server image (an infra-posture widening), or (3) accept the shipped-dead-build risk under fleet-pin discipline. Each is a contract/architecture/scope call the spec does not state, so it stays with the product owner. It is now ready to decide (no longer gated on idss#1813); once decided, it moves cheaply to `ready-for-agent` with a brief.
Author
Owner

Second class of skew the probe cannot see (2026-09-24): whakatohea-demo's gateway serves /api/config in the descriptor shape (community.aid, registry string), not the organization/registry.{id,name} org-config matou-app reads, so the released app boots into first-admin setup instead of join (idss#1825, matou-app#610). For IDSS origins the prober could fetch <url>/api/config and require it to parse as an org-config (organization.aid + registry.id) before releasing a build — option 1's advertise-and-compare, extended to the org-config document.

Second class of skew the probe cannot see (2026-09-24): whakatohea-demo's gateway serves `/api/config` in the descriptor shape (`community.aid`, `registry` string), not the `organization`/`registry.{id,name}` org-config matou-app reads, so the released app boots into first-admin setup instead of join (idss#1825, matou-app#610). For IDSS origins the prober could fetch `<url>/api/config` and require it to parse as an org-config (`organization.aid` + `registry.id`) before releasing a build — option 1's advertise-and-compare, extended to the org-config document.

This was generated by AI during triage.

Triage re-check — resolving why this ticket keeps re-surfacing

Resuming the two standing assessments above (08:39Z and 13:39Z). Nothing in the substance has changed my read: the option choice remains a genuine one-way door and I am not selecting an option. Ben's 15:27Z comment adds a second skew class the probe can't see (whakatohea-demo's gateway serving /api/config in the descriptor shape, not the org-config shape matou-app reads — idss#1825 / matou-app#610); it widens the human residue but does not change the routing.

The actual defect: the label routing, not the assessment. This issue has now surfaced to /triage on three consecutive runs while carrying enhancement + product-decision. The reason is mechanical: the triage predicate that decides what still needs a ruling (.sandcastle/preflight-triage.sh) treats these strings as terminal —

ready-for-agent, ready-for-human, ready-for-session, needs-design, needs-info, wontfix, no-triage, agent-blocked, deferred, wayfinder:*

— and product-decision is not in that set. So product-decision alone never marks the issue as handled, and it re-enters the untriaged bucket every run. The prior two runs correctly diagnosed the residue but left it in a state the machine keeps re-picking up.

Ruled by agent under ADR 0174 — veto anytime. Adding ready-for-human as the machine-recognised terminal state for this one-way-door residue, keeping product-decision as the qualifier that records which kind of human call this is (a product/scope + cross-system contract decision, per docs/agents/triage-labels.md "The bar" — one-way doors go to ready-for-human or product-decision).

  • Why this is a two-way door: it is a pure label change, reversible by any later commit or label edit, and provable by the labels themselves. It is not on the one-way-door list (no credentials, security widening, member-facing trust, data destruction, or spend). Per docs/adr/0002-two-way-door-doctrine.md the routing (as opposed to the option choice) is exactly the kind of revertible-and-provable call an agent may make.
  • What I am NOT ruling: the option choice itself stays entirely with the product owner (see ## Why human).

Machinery follow-up (not actioned here). If the intent is that product-decision should be terminal on its own, that is a one-line fix to the exclusion list in .sandcastle/preflight-triage.sh. That file is machinery (.sandcastle/**) and per docs/agents/issue-tracker.md must be filed ready-for-session, not changed from a triage run — flagging it here for a human to decide rather than filing a ticket autonomously.

Why human

Unchanged and now sharpened by Ben's 15:27Z note. The residue is the product owner's option call, none of it revertible-and-locally-provable:

  1. Advertise-and-compare — extend the backend descriptor / ClientConfigSchema to carry the coordinator's any-sync proto version, and (per the 08:39Z factual correction) source the pinned app-client proto from somewhere COA does not currently track (matou-infrastructure .env, since there is no MATOU_APP_REF in this repo). A cross-repo contract change with the IDSS gateway.
  2. Real handshake probe — a Go helper at the app's any-sync lib version in the server image (an infra-posture widening).
  3. Accept the risk under fleet-pin discipline.
  4. Extend Option 1 to the org-config document (Ben's 15:27Z addition) — for IDSS origins, fetch <url>/api/config and require it to parse as an org-config (organization.aid + registry.id) before releasing.

The blocking dependency (idss#1813) is closed, so once an option is chosen this moves cheaply to ready-for-agent with a brief. Proposed default if unattended: Option 1 (+ its org-config extension) — it catches both skew classes, needs no toolchain in the server image, and aligns with matou-infrastructure .env as the settled source of truth.

> *This was generated by AI during triage.* ## Triage re-check — resolving why this ticket keeps re-surfacing Resuming the two standing assessments above (08:39Z and 13:39Z). Nothing in the *substance* has changed my read: the option choice remains a genuine one-way door and I am **not** selecting an option. Ben's 15:27Z comment adds a **second** skew class the probe can't see (whakatohea-demo's gateway serving `/api/config` in the descriptor shape, not the org-config shape matou-app reads — idss#1825 / matou-app#610); it widens the human residue but does not change the routing. **The actual defect: the label routing, not the assessment.** This issue has now surfaced to `/triage` on three consecutive runs while carrying `enhancement` + `product-decision`. The reason is mechanical: the triage predicate that decides what still needs a ruling (`.sandcastle/preflight-triage.sh`) treats these strings as terminal — `ready-for-agent`, `ready-for-human`, `ready-for-session`, `needs-design`, `needs-info`, `wontfix`, `no-triage`, `agent-blocked`, `deferred`, `wayfinder:*` — and `product-decision` is **not** in that set. So `product-decision` alone never marks the issue as handled, and it re-enters the untriaged bucket every run. The prior two runs correctly diagnosed the residue but left it in a state the machine keeps re-picking up. **Ruled by agent under ADR 0174 — veto anytime.** Adding **`ready-for-human`** as the machine-recognised terminal state for this one-way-door residue, keeping `product-decision` as the qualifier that records *which kind* of human call this is (a product/scope + cross-system contract decision, per `docs/agents/triage-labels.md` "The bar" — one-way doors go to `ready-for-human` *or* `product-decision`). - **Why this is a two-way door:** it is a pure label change, reversible by any later commit or label edit, and provable by the labels themselves. It is not on the one-way-door list (no credentials, security widening, member-facing trust, data destruction, or spend). Per `docs/adr/0002-two-way-door-doctrine.md` the routing (as opposed to the option choice) is exactly the kind of revertible-and-provable call an agent may make. - **What I am NOT ruling:** the option choice itself stays entirely with the product owner (see `## Why human`). **Machinery follow-up (not actioned here).** If the intent is that `product-decision` should be terminal on its own, that is a one-line fix to the exclusion list in `.sandcastle/preflight-triage.sh`. That file is machinery (`.sandcastle/**`) and per `docs/agents/issue-tracker.md` must be filed `ready-for-session`, not changed from a triage run — flagging it here for a human to decide rather than filing a ticket autonomously. ## Why human Unchanged and now sharpened by Ben's 15:27Z note. The residue is the product owner's option call, none of it revertible-and-locally-provable: 1. **Advertise-and-compare** — extend the backend descriptor / `ClientConfigSchema` to carry the coordinator's any-sync proto version, and (per the 08:39Z factual correction) source the pinned app-client proto from somewhere COA does not currently track (matou-infrastructure `.env`, since there is no `MATOU_APP_REF` in this repo). A cross-repo contract change with the IDSS gateway. 2. **Real handshake probe** — a Go helper at the app's any-sync lib version in the server image (an infra-posture widening). 3. **Accept the risk** under fleet-pin discipline. 4. **Extend Option 1 to the org-config document** (Ben's 15:27Z addition) — for IDSS origins, fetch `<url>/api/config` and require it to parse as an org-config (`organization.aid` + `registry.id`) before releasing. The blocking dependency (idss#1813) is closed, so once an option is chosen this moves cheaply to `ready-for-agent` with a brief. **Proposed default if unattended:** Option 1 (+ its org-config extension) — it catches both skew classes, needs no toolchain in the server image, and aligns with matou-infrastructure `.env` as the settled source of truth.
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.

Dependencies

No dependencies set.

Reference
Matou/coa#146
No description provided.