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
Labels
No labels
agent-blocked
agent-working
bug
deferred
enhancement
model-haiku
model-opus
model-sonnet
needs-info
needs-triage
no-triage
priority
product-decision
ready-for-agent
ready-for-human
ready-for-session
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/coa#146
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Symptom
whakatohea-demo(IDSS origin) passed the backend probe, was built and released (ready, build 1), and its app fails at first launch withcoordinator 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'sanysync-coordinatorprobe 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-configshape check.Options (needs a ruling — not urgent while IDSS re-pins)
ProtoVersion) and haveClientConfigSchema/the prober compare it with the pinned matou-app's client version (a constant COA already knows via the coa-buildsMATOU_APP_REFpin). Cheap, catches this exact class, no network handshake in the prober.secureserviceat the app's lib version) run by the prober. Accurate, but drags a Go toolchain into the server image..envas source of truth).Evidence and the version table are on the IDSS ticket.
Triage assessment — confirmed
enhancement+product-decisionRecommendation: 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'sanysync-coordinatorprobe is a baredeps.tcpConnect(host, port)(ok/fail only), andClientConfigSchema.anysync(packages/schema/src/client-config.ts) carries{id, networkId, nodes[{peerId, addresses, types}]}with no version orProtoVersionfield. 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_REFpin". It does not: there is noMATOU_APP_REF(or any matou-app ref/version) anywhere in this repo.server/src/build-dispatcher.tsdispatches only{slug, kit_url, build, config_url, callback_url}; the matou-app version is pinned insidecoa-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.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.ready-for-agentuntil idss#1813 closes and settles the proto model (which version/range the descriptor advertises).ready-for-agentrequires 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-decisionis 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-agentwith a brief.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 gatedready-for-agenton it — that framing no longer holds.What idss#1813 settled:
TestRenderAnySync_*updated, suite green..envas the source of truth for what the app is tested against (stated explicitly in idss#1813's fix).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 aMATOU_APP_REFin 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-agentwith a brief.Second class of skew the probe cannot see (2026-09-24): whakatohea-demo's gateway serves
/api/configin the descriptor shape (community.aid,registrystring), not theorganization/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/configand 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.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/configin 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
/triageon three consecutive runs while carryingenhancement+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-decisionis not in that set. Soproduct-decisionalone 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-humanas the machine-recognised terminal state for this one-way-door residue, keepingproduct-decisionas the qualifier that records which kind of human call this is (a product/scope + cross-system contract decision, perdocs/agents/triage-labels.md"The bar" — one-way doors go toready-for-humanorproduct-decision).docs/adr/0002-two-way-door-doctrine.mdthe routing (as opposed to the option choice) is exactly the kind of revertible-and-provable call an agent may make.## Why human).Machinery follow-up (not actioned here). If the intent is that
product-decisionshould 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 perdocs/agents/issue-tracker.mdmust be filedready-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:
ClientConfigSchemato 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 noMATOU_APP_REFin this repo). A cross-repo contract change with the IDSS gateway.<url>/api/configand 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-agentwith 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.envas the settled source of truth.