The descriptor's anysync block omits id (the any-sync network-configuration id) — Coa's ClientConfigSchema refuses the backend probe, every IDSS-originated build is withheld at page-ready, and matou-app's client would start with an empty id #1807
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#1807
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?
Proven (cold manual founding #2 of
whakatohea-demo, 2026-09-24 ~03:00 UTC, gateway134.199.167.181, buildff4a5263)With the logo header worked around by hand (#1806),
POST https://coa.matou.nz/api/submitanswered 200 accepted — and parked:The served descriptor
GET https://whakatohea-demo.idss.nz/api/client-config:—
networkIdandnodespresent (#1681's writer works), noid.Coa
packages/schema/src/client-config.ts:18-24:anysync: z.object({ id: z.string(), networkId: z.string(), nodes: z.array(…) }).optional()— the block is optional, but once presentidis required.server/src/backend-prober.ts:36-44turns the zod issue intomissing/invalid anysync.idand short-circuits the remaining five probes. For an auto-dispatching origin (idss) a failed probe parks the submission and recordsautoBuildRefused(submit.ts, story 24), so no IDSS-originated build can ever auto-dispatch on a gateway with any-sync installed.matou-app reads the same field:
frontend/src/lib/clientConfig.ts:313return config.anysync ?? { id: '', networkId: '', nodes: [] }— the built app would run withid: ''. In any-sync,idis the network configuration id (the Mongo_idof the network document, bumped withepoch), distinct fromnetworkId; the client's nodeconf needs both.The value is on the box, one line above the one the writer reads:
(
config.ymlcarries the same pair undernetwork:;anysync-confapplyloggedid: 6ab4509aea866df71bbe09a3 epoch: 1at boot — note that is a DIFFERENT id from network.yml's: confapply writes the network into Mongo and Mongo mints its own_id; which of the two the client must carry needs checking against any-sync'snodeconf— the coordinator serves the Mongo one to clients viaNetworkConfiguration, so the descriptor should probably read it back from the coordinator/Mongo rather than from network.yml. Verify before choosing.)The writer:
internal/clan/anysync.go~L869-935,systemd.services.anysync-descriptor—yq '.networkId'+ the threepeerIds offcoordinator/network.ymlinto/var/lib/anysync/etc/client-anysync.json({networkId, nodes}), which the control plane folds into the descriptor'sanysyncblock every 30 s (#1681).Fix
anysync-descriptor: emitidalongsidenetworkId— from the coordinator's liveNetworkConfiguration(the id Mongo minted, matching what the coordinator hands any-sync clients) or, if they are proven equal in practice,yq '.id' network.yml. Record which and why in the unit's comment.idthrough untouched;internal/descriptorprobe(the founding tail's outside-in probe, spec #1495 story 10) validates the block the way Coa does —id,networkId,nodes[].peerId/addresses/types— so the tail catches this BEFORE submitting instead of Coa catching it after.cmd/rehearsal-coavalidatesClientConfigwith the same schema Coa uses (import@coa/schemais not available in Go — mirror the required paths) so the drives go red on a missingid. Today the fake accepts anything: the app legs are 45/45 green while the real Coa has never once passed a probe (#1522/#1531).curl https://<apex>/api/client-config | jq .anysync.idnon-empty on a fresh founding, and a real-Coa submit whosebackendReport.okis true.Why this matters
This is the THIRD wire mismatch on the same 200-line path in one evening (#1774 path, #1806 part header, this field), each masked by the fake. Ticket 3 in #1806 and item 3 here are the same lesson: the rehearsal Coa must refuse everything the real Coa refuses.
Relates to: #1806, #1805, #1774, #1681, #1673, #1522, #1531, #1495, ADR 0226, ADR 0062, DDR 0228.
Which id — resolved by reading the coordinator's store (
podman exec anysync-mongo mongosh, dbcoordinatorpercoordinator/config.yml:38, collectionnodeConf):That
_idis what the coordinator serves to any-sync clients as the network configuration id (it matches theid: … epoch: 1lineanysync-confapplyprinted).network.yml'sid: 6ab447f3ab8339c1fe66b6c1is the idany-sync-network createminted before confapply inserted the document — Mongo minted a new_idon insert, so the two differ and the Mongo one is authoritative. Fix item 1 should therefore read the id back from the coordinator (or Mongo), not from network.yml — or make confapply insert with_id= network.yml'sidso the two agree and the file is enough. Either way, the descriptor must carry6ab4509aea866df71bbe09a3on this box.swarm-claim host=matou-dev-server-01 run=31489
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1807 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope
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