Research: any-sync and Mātou's config server on the gateway — node types, NixOS packaging, resource floor, secrets/rescue, install-later #1314
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
1 participant
Notifications
Due date
No due date set.
Blocks
Reference
Matou/idss#1314
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?
Parent
Map: The community wallet: matou-app holds and presents IDIP credentials, and the Coa and IDSS setups are paired (#1293)
Question
ADR 0226 (ticket #1295) installs any-sync on the gateway when Coa is chosen — a Coa-built wallet's community spaces live there — and always installs Mātou's config server on the IDIP path. Research, first-hand (
~/Documents/1.projects/matou-infrastructure—docker-compose*.yml,client-external.yml, the any-sync node configs,config-server.py;~/Documents/1.projects/matou-app/backend— what the Go backend does with theanysyncblock at startup and at org-setup step 9/10 (useOrgSetup.ts),DeriveSpaceKeySet,identity/set, spaces API; upstream any-sync repos (anyproto/any-sync, any-sync-node, any-sync-coordinator, any-sync-filenode, any-sync-consensusnode, any-sync-dockercompose); this repo'sinternal/clan/keri.gofor how the KERI units are rendered and the gateway's resource floor (ADR 0184 capacity, DDR 0207 KERIA pins, research2026-08-24-keria-stack-on-nixos.md§6 for the 4 GB floor)):network.yml, node keys, the coordinator's account), how a clientanysyncblock is minted from them (config-server.pyin coa mode reads/etc/anysync/client-external.yml), and what storage they need (S3/MinIO for filenode? local?).buildGoModule(versions, vendor hashes), or an OCI image path (does the gateway run containers at all — checkinternal/clanfor docker/podman — and what ADR 0062's three-part port pattern would make of it).config-server.py's runtime deps, its data dir, the admin-token write path (POST /api/config,POST /admin/tenants), whatPUBLIC_BASE_URL/EXTERNAL_*it needs on a gateway, single-tenant vs tenant mode, and what a1.1bump (ADR 0226 decision 5) touches in it.anysyncblock; the app backend's behaviour when the block appears later).Output:
docs/research/2026-09-08-anysync-and-config-server-on-the-gateway.mdwith a units table (unit → package path → ports → secrets → floor) and the dead ends; every claim cited; no decisions. Blocks the IDSS-first pairing grill (#1296).Claimed 2026-09-08 (map session). Research subagent fired inline; findings land on branch
research/anysync-and-config-server-on-the-gatewayasdocs/research/2026-09-08-anysync-and-config-server-on-the-gateway.md(laptop checkout, unpushed until reviewed).Resolution (research, 2026-09-08)
Findings:
docs/research/2026-09-08-anysync-and-config-server-on-the-gateway.mdon branchresearch/anysync-and-config-server-on-the-gateway(commitc6acd470, laptop checkout, unpushed): units table §7, dead ends §8, every claim cited. No decisions. Facts that matter for ADR 0226 decision 8 and the IDSS-first grill (#1296):consensusclient, so consensus is mandatory for every invite/join). The file node (+ Redis-with-Bloom + S3/MinIO) is needed only for file bytes and degrades loud without it.go-chashclamps replication to member count, so a 1-tree network is library-valid — never run.app.go:266-286, every env); every member's firstidentity/setcreates a private space; profiles, notices, chat, contributions, projects and files are all any-sync object trees. KERI-only surfaces are just sign-in and credentials. → "any-sync when Coa is chosen" is the right ruling; a wallet against a KERI-only backend is not a working app.buildGoModule,CGO_ENABLED=0,-tags nographviz— static 21–47 MB binaries, vendorHashes recorded. One pinch: filenode'sgo 1.26.4directive vs nixpkgs 1.26.3. The stores are the real cost: MongoDB is SSPL/unfree; nixpkgsredislacks the Bloom module the filenode'sBF.*calls need → podman OCI images (the archive port's shape) is the alternative.pyyamloptional, flake8-clean underkeri.go's ignore list →writePython3Binlikekeri-schema; state =/data/org-config.json(+ tenants dir);GET /api/health= the ADR 0112 check; admin token fails closed in prod/coa mode.host:3901;PUBLIC_BASE_URL→ path prefixes; the gateway useskeria.<apex>hostnames) and the six demo witness AIDs are hard-coded → the1.1bump needs per-door URL env + witness AIDs from a file. The server-sideanysyncblock is already optional (the hard requirement is the wallet's).org-config.jsonis first-write-wins. → "Coa later from the catalogue" needs an app-side "spaces bootstrap" that does not exist.handle_pathlayout never compared on the same KERIA version.