pairing T10: founding creates the community's three any-sync spaces at the tail, as the founder, from the words it still holds #1519
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.
Depends on
You do not have permission to read 1 dependency
Reference
Matou/idss#1519
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
Spec #1495 (community app pairing — the descriptor and config server on the gateway, the S3a wallet choice and S3a-APP, the Coa submission at the pipeline tail, the app card). Program map #1293 (the community wallet). Design contract: ADR 0226 (amended by ADRs 0235, 0236, 0238 and the 2026-09-15 spaces amendment) and DDR 0228 (amended by DDR 0239).
Stories 25 and 27 (the founding half) of the spec. ADR 0226 amendment, 2026-09-15.
Rulings this set carries (Ben, 2026-09-15)
github.com/matou-collective/matou-app, so no builder needs credentials. (matou-app's own module is declaredgithub.com/matou-dao/backend, a path that resolves nowhere, and the code sits underinternal/where no other module may import it.)What to build
On coa-shared the founder's own app creates the community's spaces at org setup. On IDSS the app never
founds — so nobody creates them, and a member who installs the app finds no content layer. Founding
creates them itself, at the tail, as the founder, using the same twelve words the founder's passcode was
derived from and which the laptop still holds (the scrub has not run), through the very package the wallet
uses (matou-app MA1). The three IDs are recorded, and the descriptor names them on its first read from
outside.
Acceptance criteria
read-only and admin spaces before the Coa submission, as the founder, seeding what org setup seeds
package — no second derivation or seeding convention exists in this repo
written to the founding state file, never sent off the laptop (asserted — the state file and the logs
are checked for residue, the ADR 0044 scrub test precedent)
rewrites org-config so the first outside read of the descriptor names them
created, the descriptor carries
anysyncwithout space IDs, and the app record's details say so —no stand-up step is red, and the first-steward fallback covers it
identity as owner and creates nothing (proven against the recorded IDs)
Blocked by
Tracker: Matou/matou-app#530, #1515, #1518
Task manifest
Blocked — agent-blocked (cannot-proceed: dependency incompatible with the pinned environment)
What blocks it: acceptance criterion 2 requires the tail to create the spaces by importing matou-app's space-creation package, with no second derivation in this repo. That package (MA1) is now published and public —
github.com/matou-collective/matou-app/backend/communityspace(CreateCommunitySpaces/DeriveSpaceKeySet) — but itsgo.moddeclaresgo 1.25.5, and the IDSS fleet is pinned to Go 1.23 (go.mod go 1.23.7;flake.nix pkgs.go_1_23indefaultandgo-ci, ADR 0040).Reproduced with the fleet toolchain (the pin enforces GOTOOLCHAIN=local):
Any fleet-module file importing MA1 fails the
nix develop .#go-cipre-push gate. ADR 0226 amendment decision 2 explicitly rejects the TypeScript-re-derivation and bundled-command workarounds, so the in-process import is the only sanctioned path — and it cannot compile under the pin. (Secondary: IDSS has no any-sync SDK client yet, so MA1's caller-suppliedSpaceCreator— the network client over the coordinator ports — is also unbuilt.)The seam scaffolding (a
SpaceCreatorport + scripted-fake orchestrator tests + residue assertion) could be built under Go 1.23, but the slice's central behaviour — spaces actually created on IDSS founding — cannot ship without the import, so shipping only the port would leave criterion 2 unmet and design-verify would bounce it. Not landing speculative scaffolding.What a human must do to re-arm: land the enabling work in #1555 — bump the fleet Go toolchain to ≥1.25.5 (flake.nix/flake.lock/go.mod), add MA1 + the any-sync/libp2p closure, and build the any-sync client implementing
communityspace.SpaceCreatorover the T9 coordinator ports — then re-addready-for-agenthere. The whole tail (words-holding in memory + zeroed, bounded any-sync probe,CreateCommunitySpacesas the founder, record tointernal/spacesbeside the app record, descriptor rewrite viainternal/orgconfig, residue assertions) is then straightforwardly buildable at theinternal/foundingseam.(No code changed this iteration.)
Unblocked — #1555 landed (Ruled by agent under ADR 0174, veto anytime)
The toolchain blocker is resolved: #1555 crossed the fleet Go toolchain 1.23 → 1.25.5 (commit
63840519), so this module can now import matou-app MA1 (github.com/matou-collective/matou-app/backend/communityspace,go 1.25.5). Proven by a reverted probe — MA1 imports into the real fleet module,communityspace.DeriveSpaceKeySetruns offline, and the whole fleet still builds with the any-sync/libp2p closure present (no dependency conflict).What this ticket now owns (steps 2 & 3 of #1555's fix, by design):
go get github.com/matou-collective/matou-app/backend/communityspace@v0.0.0-20260916204102-a6eb69e5fd0d— pull MA1 + the any-sync/libp2p closure into the fleet module atomically with the client that uses it (this ticket's acceptance already says it imports the package).SpaceCreatorclient (CreateSpaceWithKeys/MakeSpaceShareable/GetSigningKey) over the coordinator address any-sync-on-the-gateway opens, then callcommunityspace.CreateCommunitySpaces(ctx, creator, mnemonic, ownerAID)from the founding tail (the seam isinternal/foundingorchestrator tests with a scripted any-sync answer + the words-residue assertion).Why this was not folded into #1555: the real
SpaceCreatoris a network client that can only be proven against a live any-sync coordinator — a drive/executor leg, not an offline two-way-door session — so it belongs here, not in the infra ticket. Flippingagent-blocked→needs-triageso triage routes it (it likely wantsready-for-sessionfor the live-coordinator drive).Ruled by agent under ADR 0174 — veto anytime
Ruling:
ready-for-agent(notready-for-session).The prior comment flipped this to
needs-triageafter #1555 crossed the fleet toolchain (go 1.25.5, commit63840519), suggesting it "likely wantsready-for-sessionfor the live-coordinator drive." I'm ruling itready-for-agentinstead, because every acceptance criterion here is provable at the ticket's own declared seam —internal/foundingorchestrator tests with a scripted any-sync answer + residue assertions — with no live any-sync coordinator required to land the slice:SpaceCreatorrecording the call.anysyncwithout space IDs" → scripted non-answer + timeout test. This is the exact shape the existingCoaClientport already ships ("an unwired, unreachable or refusing Coa is never a founding fault").communityspace.DeriveSpaceKeySetruns offline (proven by #1555's reverted probe) against the recorded IDs.The homes this builds into all already exist: the
internal/foundingorchestrator with theCoaClient/DescriptorProbeport + scripted-fake precedent,internal/spaces(Store+FakeStore,RecordDocPath = idss/community-spaces.json), andinternal/orgconfig(the descriptorwriter). MA1 (github.com/matou-collective/matou-app/backend/communityspace) is public and imports cleanly under the new toolchain.The one nuance the prior comment raised — the real network
SpaceCreatorclient — is in scope to build but its live end-to-end proof is not an AC of this ticket. It is written behind the injected port (like the realinternal/coaclientHTTP adapter sits behindCoaClient) and proven at the seam with a scripted fake; proving the real client against a live coordinator is the drive rail's job (the standing/rehearsal founding drives), not this seam-scoped ticket. An agent must not stand up live infrastructure for this — the scripted seam is the contract.Why this is a two-way door: it is a pure label change, fully revertible with a later commit/relabel, and provable by the seam tests + offline derivation named above. It is not on the one-way-door list (no personal credentials, no security-posture widening, no member-facing trust accept, no data destruction, no non-routine spend). If a swarm worker finds the real network client genuinely un-writable without a live node, re-label to
ready-for-session— Ben's veto is async, never blocking.Agent Brief
Category: enhancement
Summary: At the founding tail, before the Coa submission, create the community's three any-sync spaces (community / read-only / admin) as the founder — through matou-app's imported space-creation package (MA1) — record the three IDs beside the app record, and have the descriptor name them on its first outside read.
Current behavior:
Founding stands up the gateway's any-sync content layer (T9) and proves the descriptor readable (T6), but nothing ever creates the community's spaces on IDSS — on coa-shared the founder's own app does this at org setup; on IDSS the app never founds, so a member who installs the app finds no content layer. The toolchain blocker (Go 1.23 vs MA1's
go 1.25.5) is resolved by #1555; MA1 is public and importable.Desired behavior:
The
internal/foundingtail, after the descriptor is proven and before the Coa submission, uses the founder's twelve words (still held in memory at the tail — the scrub has not run) to create the community, read-only and admin spaces over the public any-sync coordinator ports, seeding what matou-app's org setup seeds — by importingcommunityspace.CreateCommunitySpaces/DeriveSpaceKeySet, with no second derivation or seeding convention in this repo. The three IDs are recorded throughinternal/spacesand theinternal/orgconfigdescriptor writer rewrites org-config so the first outside read names them. Every failure/branch degrades gracefully (see ACs).Key interfaces:
SpaceCreatorport ininternal/founding, injected exactly likeCoaClient/DescriptorProbe(aWith…option; a scripted fake in the package's seam tests, a real any-sync network client — over the T9 coordinator address — in the production build). Its methods wrap what MA1'sCreateCommunitySpacesneeds (the comment namesCreateSpaceWithKeys/MakeSpaceShareable/GetSigningKey).go get github.com/matou-collective/matou-app/backend/communityspace@<pinned>pulls MA1 + the any-sync/libp2p closure into the fleet module, atomically with the client that uses it.internal/spacesStore(ConfigRepoStorein prod,FakeStorein seam tests;RecordDocPathalready fixed).internal/orgconfigwriter — org-config gains the three space IDs under the community'sanysyncblock.Acceptance criteria: as enumerated in the issue body (all eight boxes). Each is verifiable at the
internal/foundingorchestrator seam with a scripted any-sync answer + a words-residue assertion (state file + logs), plus offlineDeriveSpaceKeySetagainst the recorded IDs. No live coordinator is needed to satisfy them.Out of scope:
swarm-claim host=bens-mac-04 run=25621
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1519 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope