any-sync node pins (v0.13) are protocol-incompatible with matou-app's any-sync v0.11.9 client — every IDSS-founded community's app dies at launch with 'coordinator unreachable' (whakatohea-demo) #1813
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#1813
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
Every app built for an IDSS-founded community dies on first launch at the landing page:
Seen 2026-09-23 by Ben on the
whakatohea-demoAndroid build (COA build 1, matou-app v0.6.8, backendhttps://whakatohea-demo.idss.nz). The TCP ports 3001/3003/3005 on the gateway are open from the public internet; Coa's backend probe passed (it only TCP-connects), so the build was released.Root cause — any-sync protocol version skew between the gateway's node images and the app's client library
Reproduced from a laptop with the v0.6.8 backend in production mode (
MATOU_ENV=production MATOU_CONFIG_SERVER_URL=https://whakatohea-demo.idss.nz), with any-sync debug logging:Control: the same binary against coa-shared (
https://coa-infra.matou.nz/ngati-example, coordinatorcoa-infra.matou.nz:3004) →Validating network connectivity... OK.ProtoVersionbackend/go.mod)any-sync/.env: coordinator v0.8.0, node v0.10.1, filenode v0.10.0, consensusnode v0.5.0)internal/clan/anysync.godigests, resolved 2026-09-16) = coordinator v0.13.0, node v0.13.1, filenode v0.13.0, consensusnode v0.13.0any-sync v0.13's
net/secureservice/secureservice.go:defaultCompatibleVersions = []uint32{12, 13, 14}— "Bridge v9 is dropped now that v0.12 has shipped". v0.12.0 accepted{9, 12, 13}; neither accepts the 8 the app sends. So the coordinator rejects the handshake (handshake.ErrIncompatibleVersion), the pool turns it intonet.ErrUnableToConnect, andapp.go'sPing()reports "coordinator unreachable". The tree and file nodes will refuse identically.Digest → tag mapping verified against ghcr.io (
/v2/anyproto/<image>/manifests/<tag>Docker-Content-Digest):488c96b9…= any-sync-coordinator v0.13.0,91ca6c19…= any-sync-node v0.13.1,229f1fc3…= any-sync-filenode v0.13.0,39e747c6…= any-sync-consensusnode v0.13.0.Fix (ruled by agent under ADR 0174 — veto anytime)
Pin the four node images to the versions the fleet is proven against — the ones matou-infrastructure runs for coa-shared and Matou prod: coordinator v0.8.0, node v0.10.1, filenode v0.10.0, consensusnode v0.5.0 (resolve their digests from ghcr.io the way the current pins were, keep the
@sha256discipline). Re-render + re-deploy whakatohea-demo's gateway; a fresh network (the existing v0.13 stores are not worth migrating — nothing has been written to them, the app never connected). Then the releasedwhakatohea-demoAPK/AppImage connect as-is, no rebuild.Why not the other direction: bumping matou-app's any-sync to v0.13 is a fleet-wide protocol break (proto 12/13 = files v2, space header changes, new ACL) — it would need matou-infrastructure, coa-shared, Matou prod and every shipped app to move together. That is a separate, planned upgrade, not a bug fix. Note the two pin sets disagree today for no reason other than resolving
:lateston 2026-09-16; the fleet should pin one set in one place (matou-infrastructure's.envis the source of truth for what the app is tested against).Acceptance
internal/clan/anysync.godigests = the four fleet versions above;TestRenderAnySync_*updated.go run ./cmd/serverfrom matou-app atv0.6.8, env as above) printsValidating network connectivity... OKagainst the community's config server. Or simply: the released whakatohea-demo app reaches its dashboard.anysync-coordinatorprobe is TCP-only and cannot catch this class of skew.Why human: none — two-way door (a pin, revertible), provable by the drive above.
swarm-claim host=matou-dev-server-01 run=31549
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1813 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope
Live proof 2026-09-24 (hand re-supply of whakatohea-demo, 134.199.167.181): the v0.6.8 app backend (any-sync client v0.11.9, proto 8) now prints
Validating network connectivity... OKagainstwhakatohea-demo.idss.nz:3001and proceeds to storage/KERI init; before the switch the same binary gotIncompatibleVersion. Coordinator runsany-sync-coordinator@sha256:43aa39ec…(v0.8.0); networkId and the three peerIds are unchanged, so the v0.13-written store was read fine by the older nodes — no wipe needed.What it took, because the standing re-supply as scripted did NOT land it (filed separately as a follow-up):
20a6777landed at/srv/idss/bin/control-plane(staging + mv, restart).control-plane rerender-gateway gatewaycommitted (06917cb) but re-renders only the gateway's OWN surface (gateway-guest.nix) —machines/gateway/anysync-stack.nixkept all five v0.13 digests. The machine name on a founded community isgateway, not the slug (rerender-gateway whakatohea-demofails on the missing sidecar).anysync-stack.nixbyte-exact with this commit'sRenderAnySync(AnySyncConfig{Apex})(a one-shotcmd/render-anysync), diffed against the box's copy — the four pins plus the #1807 descriptor-id block — committed ascontrol-plane@idss(fa3bfbe).clan machines update gateway --flake git+file:///srv/idss/config --host-key-check none --build-host localhost, run asnix run …clan-core/archive/d098fa2e….tar.gz#clan-cli --(the box has no dev shell —nix develop --command clanfromrehearsal-standing-lib.sherrors "flake does not provide devShells"), withHOME=/root SOPS_AGE_KEY_FILE=/var/lib/sops-nix/key.txt(without it sops cannot decryptgateway-age.key). The switch stopped/started the four podman-anysync units + confapply + descriptor and did NOT restart idss-control-plane.Coa side: build 2 of whakatohea-demo on matou-app v0.7.3 is
ready; the released APK/AppImage connect as-is.communityblock, not theorganization/registry.{id,name}org-config the app reads — every branded app lands on 'Set up … first admin' (ADR 0226 d1/d3) #1825