pairing T10: founding creates the community's three any-sync spaces at the tail, as the founder, from the words it still holds #1519

Closed
opened 2026-09-16 03:14:21 +00:00 by ben · 5 comments
Owner

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)

  1. matou-app's space creation is imported, not copied. It becomes a nested public Go module inside matou-app, resolved through the existing GitHub mirror github.com/matou-collective/matou-app, so no builder needs credentials. (matou-app's own module is declared github.com/matou-dao/backend, a path that resolves nowhere, and the code sits under internal/ where no other module may import it.)
  2. The founder's twelve words cross the operator app's local helper seam for the spaces step only — held in memory, zeroed after, never logged, never in the founding state file, never off the laptop. A resumed tail that no longer holds them creates nothing and leaves the first-steward fallback to cover 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

  • With any-sync installed and its coordinator answering from outside, the tail creates the community,
    read-only and admin spaces before the Coa submission, as the founder, seeding what org setup seeds
  • Creation runs on the laptop over the public any-sync ports, importing matou-app's space-creation
    package — no second derivation or seeding convention exists in this repo
  • The words reach the Go helper only for this step: in memory, zeroed after, never logged, never
    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)
  • The three IDs are recorded in the config repo beside the app record, and the descriptor writer
    rewrites org-config so the first outside read of the descriptor names them
  • Bounded attempts: if any-sync does not answer from outside in time, founding completes, no spaces are
    created, the descriptor carries anysync without space IDs, and the app record's details say so —
    no stand-up step is red, and the first-steward fallback covers it
  • A resumed tail that no longer holds the words creates nothing and records the same detail
  • Choosing later, and the Coa-first branch, create nothing
  • The founder who later adopts their identity into the app finds the three spaces with their own
    identity as owner and creates nothing (proven against the recorded IDs)

Blocked by

Tracker: Matou/matou-app#530, #1515, #1518

  • matou-app MA1 (the space-creation package)
  • T6 (the tail), T9 (any-sync installed)

Task manifest

task: spaces-at-the-tail
implements_flow: p1-founding
implements_edge: "S11 → S12 (the tail, before the Coa submit)"
seam: internal/founding orchestrator tests (scripted any-sync answer) + a residue assertion
depends_on: [matou-app:community-space-creation-package, pairing:pipeline-tail-probe-and-submit, pairing:anysync-on-the-gateway]
out_of_scope: [the fallback (matou-app), membership invite keys, the app's content surfaces]
needs_human_decision: []
## 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) 1. **matou-app's space creation is imported, not copied.** It becomes a nested **public** Go module inside matou-app, resolved through the existing GitHub mirror `github.com/matou-collective/matou-app`, so no builder needs credentials. (matou-app's own module is declared `github.com/matou-dao/backend`, a path that resolves nowhere, and the code sits under `internal/` where no other module may import it.) 2. **The founder's twelve words cross the operator app's local helper seam for the spaces step only** — held in memory, zeroed after, never logged, never in the founding state file, never off the laptop. A resumed tail that no longer holds them creates nothing and leaves the first-steward fallback to cover 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 - [ ] With any-sync installed and its coordinator answering from outside, the tail creates the community, read-only and admin spaces **before** the Coa submission, as the founder, seeding what org setup seeds - [ ] Creation runs on the laptop over the public any-sync ports, importing matou-app's space-creation package — no second derivation or seeding convention exists in this repo - [ ] The words reach the Go helper only for this step: in memory, zeroed after, never logged, never 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) - [ ] The three IDs are recorded in the config repo beside the app record, and the descriptor writer rewrites org-config so the **first** outside read of the descriptor names them - [ ] Bounded attempts: if any-sync does not answer from outside in time, founding completes, no spaces are created, the descriptor carries `anysync` without space IDs, and the app record's details say so — no stand-up step is red, and the first-steward fallback covers it - [ ] A resumed tail that no longer holds the words creates nothing and records the same detail - [ ] Choosing later, and the Coa-first branch, create nothing - [ ] The founder who later adopts their identity into the app finds the three spaces with their own identity as owner and creates nothing (proven against the recorded IDs) ## Blocked by Tracker: Matou/matou-app#530, #1515, #1518 - matou-app MA1 (the space-creation package) - T6 (the tail), T9 (any-sync installed) ## Task manifest ```yaml task: spaces-at-the-tail implements_flow: p1-founding implements_edge: "S11 → S12 (the tail, before the Coa submit)" seam: internal/founding orchestrator tests (scripted any-sync answer) + a residue assertion depends_on: [matou-app:community-space-creation-package, pairing:pipeline-tail-probe-and-submit, pairing:anysync-on-the-gateway] out_of_scope: [the fallback (matou-app), membership invite keys, the app's content surfaces] needs_human_decision: [] ```

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 its go.mod declares go 1.25.5, and the IDSS fleet is pinned to Go 1.23 (go.mod go 1.23.7; flake.nix pkgs.go_1_23 in default and go-ci, ADR 0040).

Reproduced with the fleet toolchain (the pin enforces GOTOOLCHAIN=local):

go: .../backend/communityspace@v0.0.0-... requires go >= 1.25.5 (running go 1.23.8; GOTOOLCHAIN=local)

Any fleet-module file importing MA1 fails the nix develop .#go-ci pre-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-supplied SpaceCreator — the network client over the coordinator ports — is also unbuilt.)

The seam scaffolding (a SpaceCreator port + 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.SpaceCreator over the T9 coordinator ports — then re-add ready-for-agent here. The whole tail (words-holding in memory + zeroed, bounded any-sync probe, CreateCommunitySpaces as the founder, record to internal/spaces beside the app record, descriptor rewrite via internal/orgconfig, residue assertions) is then straightforwardly buildable at the internal/founding seam.

(No code changed this iteration.)

## 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 its `go.mod` declares **`go 1.25.5`**, and the IDSS fleet is pinned to **Go 1.23** (`go.mod go 1.23.7`; `flake.nix pkgs.go_1_23` in `default` and `go-ci`, ADR 0040). Reproduced with the fleet toolchain (the pin enforces GOTOOLCHAIN=local): ``` go: .../backend/communityspace@v0.0.0-... requires go >= 1.25.5 (running go 1.23.8; GOTOOLCHAIN=local) ``` Any fleet-module file importing MA1 fails the `nix develop .#go-ci` pre-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-supplied `SpaceCreator` — the network client over the coordinator ports — is also unbuilt.) The seam scaffolding (a `SpaceCreator` port + 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.SpaceCreator` over the T9 coordinator ports — then re-add `ready-for-agent` here. The whole tail (words-holding in memory + zeroed, bounded any-sync probe, `CreateCommunitySpaces` as the founder, record to `internal/spaces` beside the app record, descriptor rewrite via `internal/orgconfig`, residue assertions) is then straightforwardly buildable at the `internal/founding` seam. _(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.DeriveSpaceKeySet runs 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):

  1. 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).
  2. Build the network SpaceCreator client (CreateSpaceWithKeys / MakeSpaceShareable / GetSigningKey) over the coordinator address any-sync-on-the-gateway opens, then call communityspace.CreateCommunitySpaces(ctx, creator, mnemonic, ownerAID) from the founding tail (the seam is internal/founding orchestrator tests with a scripted any-sync answer + the words-residue assertion).

Why this was not folded into #1555: the real SpaceCreator is 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. Flipping agent-blocked → needs-triage so triage routes it (it likely wants ready-for-session for the live-coordinator drive).

## 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.DeriveSpaceKeySet` runs 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):** 1. `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). 2. Build the network `SpaceCreator` client (`CreateSpaceWithKeys` / `MakeSpaceShareable` / `GetSigningKey`) over the coordinator address any-sync-on-the-gateway opens, then call `communityspace.CreateCommunitySpaces(ctx, creator, mnemonic, ownerAID)` from the founding tail (the seam is `internal/founding` orchestrator tests with a scripted any-sync answer + the words-residue assertion). **Why this was not folded into #1555:** the real `SpaceCreator` is 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. Flipping `agent-blocked` → `needs-triage` so triage routes it (it likely wants `ready-for-session` for the live-coordinator drive).

This was generated by AI during triage.

Ruled by agent under ADR 0174 — veto anytime

Ruling: ready-for-agent (not ready-for-session).

The prior comment flipped this to needs-triage after #1555 crossed the fleet toolchain (go 1.25.5, commit 63840519), suggesting it "likely wants ready-for-session for the live-coordinator drive." I'm ruling it ready-for-agent instead, because every acceptance criterion here is provable at the ticket's own declared seam — internal/founding orchestrator tests with a scripted any-sync answer + residue assertions — with no live any-sync coordinator required to land the slice:

  • "creates the three spaces before the Coa submission, as the founder" → order-and-args assertion against a fake SpaceCreator recording the call.
  • "if any-sync does not answer from outside in time, founding completes, no spaces created, descriptor carries anysync without space IDs" → scripted non-answer + timeout test. This is the exact shape the existing CoaClient port already ships ("an unwired, unreachable or refusing Coa is never a founding fault").
  • "resumed tail that no longer holds the words creates nothing" / "the later + Coa-first branches create nothing" → orchestrator branch-gating tests.
  • "the founder who adopts their identity later finds the three spaces as owner, creates nothing (proven against the recorded IDs)" → communityspace.DeriveSpaceKeySet runs offline (proven by #1555's reverted probe) against the recorded IDs.
  • The words-residue guarantee → the ADR 0044 scrub-test precedent: assert the founding state file and logs carry no residue.

The homes this builds into all already exist: the internal/founding orchestrator with the CoaClient/DescriptorProbe port + scripted-fake precedent, internal/spaces (Store + FakeStore, RecordDocPath = idss/community-spaces.json), and internal/orgconfig (the descriptor writer). 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 SpaceCreator client — 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 real internal/coaclient HTTP adapter sits behind CoaClient) 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/founding tail, 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 importing communityspace.CreateCommunitySpaces / DeriveSpaceKeySet, with no second derivation or seeding convention in this repo. The three IDs are recorded through internal/spaces and the internal/orgconfig descriptor writer rewrites org-config so the first outside read names them. Every failure/branch degrades gracefully (see ACs).

Key interfaces:

  • A SpaceCreator port in internal/founding, injected exactly like CoaClient/DescriptorProbe (a With… 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's CreateCommunitySpaces needs (the comment names CreateSpaceWithKeys / 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.
  • The words cross the helper seam for this step only: passed in memory, zeroed after use, never logged, never written to the founding state file, never sent off the laptop.
  • Recording: internal/spaces Store (ConfigRepoStore in prod, FakeStore in seam tests; RecordDocPath already fixed).
  • Descriptor rewrite: internal/orgconfig writer — org-config gains the three space IDs under the community's anysync block.

Acceptance criteria: as enumerated in the issue body (all eight boxes). Each is verifiable at the internal/founding orchestrator seam with a scripted any-sync answer + a words-residue assertion (state file + logs), plus offline DeriveSpaceKeySet against the recorded IDs. No live coordinator is needed to satisfy them.

Out of scope:

  • The first-steward fallback (lives in matou-app), membership invite keys, and the app's content surfaces.
  • Standing up a live any-sync coordinator / a live end-to-end drive of the real network client — that is the drive rail's job; here the real client sits behind the injected port and is proven with the scripted fake.
  • Any second key-derivation or seeding convention in this repo (MA1's import is the only sanctioned path, ADR 0226 amendment decision 2).
> *This was generated by AI during triage.* ## Ruled by agent under ADR 0174 — veto anytime **Ruling: `ready-for-agent`** (not `ready-for-session`). The prior comment flipped this to `needs-triage` after #1555 crossed the fleet toolchain (`go 1.25.5`, commit `63840519`), suggesting it "likely wants `ready-for-session` for the live-coordinator drive." I'm ruling it **`ready-for-agent`** instead, because every acceptance criterion here is provable at the ticket's **own declared seam** — `internal/founding` orchestrator tests with a *scripted* any-sync answer + residue assertions — with no live any-sync coordinator required to land the slice: - "creates the three spaces before the Coa submission, as the founder" → order-and-args assertion against a **fake `SpaceCreator`** recording the call. - "if any-sync does not answer from outside in time, founding completes, no spaces created, descriptor carries `anysync` without space IDs" → scripted non-answer + timeout test. This is the **exact shape** the existing `CoaClient` port already ships ("an unwired, unreachable or refusing Coa is never a founding fault"). - "resumed tail that no longer holds the words creates nothing" / "the later + Coa-first branches create nothing" → orchestrator branch-gating tests. - "the founder who adopts their identity later finds the three spaces as owner, creates nothing (proven against the recorded IDs)" → `communityspace.DeriveSpaceKeySet` **runs offline** (proven by #1555's reverted probe) against the recorded IDs. - The words-residue guarantee → the ADR 0044 scrub-test precedent: assert the founding state file and logs carry no residue. The homes this builds into all already exist: the `internal/founding` orchestrator with the `CoaClient`/`DescriptorProbe` port + scripted-fake precedent, `internal/spaces` (`Store` + `FakeStore`, `RecordDocPath = idss/community-spaces.json`), and `internal/orgconfig` (the descriptor `writer`). 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 `SpaceCreator` client — 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 real `internal/coaclient` HTTP adapter sits behind `CoaClient`) 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/founding` tail, 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 importing `communityspace.CreateCommunitySpaces` / `DeriveSpaceKeySet`, with **no second derivation or seeding convention** in this repo. The three IDs are recorded through `internal/spaces` and the `internal/orgconfig` descriptor writer rewrites org-config so the first outside read names them. Every failure/branch degrades gracefully (see ACs). **Key interfaces:** - A `SpaceCreator` port in `internal/founding`, injected exactly like `CoaClient`/`DescriptorProbe` (a `With…` 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's `CreateCommunitySpaces` needs (the comment names `CreateSpaceWithKeys` / `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. - The words cross the helper seam **for this step only**: passed in memory, zeroed after use, never logged, never written to the founding state file, never sent off the laptop. - Recording: `internal/spaces` `Store` (`ConfigRepoStore` in prod, `FakeStore` in seam tests; `RecordDocPath` already fixed). - Descriptor rewrite: `internal/orgconfig` writer — org-config gains the three space IDs under the community's `anysync` block. **Acceptance criteria:** as enumerated in the issue body (all eight boxes). Each is verifiable at the `internal/founding` orchestrator seam with a scripted any-sync answer + a words-residue assertion (state file + logs), plus offline `DeriveSpaceKeySet` against the recorded IDs. No live coordinator is needed to satisfy them. **Out of scope:** - The first-steward **fallback** (lives in matou-app), membership invite keys, and the app's content surfaces. - Standing up a live any-sync coordinator / a live end-to-end drive of the real network client — that is the drive rail's job; here the real client sits behind the injected port and is proven with the scripted fake. - Any second key-derivation or seeding convention in this repo (MA1's import is the only sanctioned path, ADR 0226 amendment decision 2).

swarm-claim host=bens-mac-04 run=25621
(automated multi-host claim — lowest live claim id works this ticket)

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
{
  "issue": 1519,
  "status": "success",
  "commits": [
    "14eb058807d3d882f18a6cbb4b57066eb2824721"
  ],
  "changed_files": [
    "STATUS.md",
    "app/helper/cmd/helper/wiring_prod.go",
    "app/helper/cmd/helper/wiring_test.go",
    "go.mod",
    "go.sum",
    "internal/founding/communityapptail.go",
    "internal/founding/export_test.go",
    "internal/founding/orchestrator.go",
    "internal/founding/spacestail.go",
    "internal/founding/spacestail_seam_test.go"
  ],
  "tests": [
    {
      "command": "nix develop .#go-ci --command go test ./internal/founding/ -run TestSpacesTail -count=1",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci --command go test ./...",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci --command go build ./...",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci --command go vet ./...",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci --command golangci-lint run ./internal/founding/... ./internal/spaces/... ./app/helper/...",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci --command gofmt -l .",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci --command go test -tags dev ./app/helper/...",
      "exit_code": 0
    }
  ],
  "criteria": {
    "With any-sync installed and its coordinator answering from outside, the tail creates the community, read-only and admin spaces before the Coa submission, as the founder, seeding what org setup seeds": "TestSpacesTail_CreatesThreeBeforeCoaAsFounder: the three spaces created in org-setup order via communityspace.CreateCommunitySpaces, ownerAID = the founder account identity, and the record complete BEFORE the Coa submit (orderCoa snapshots the store at Submit); createCommunitySpacesAtTail called before the descriptor probe + Coa in communityapptail.go",
    "Creation runs on the laptop over the public any-sync ports, importing matou-app's space-creation package — no second derivation or seeding convention exists in this repo": "go.mod/go.sum import github.com/matou-collective/matou-app/backend/communityspace; spacestail.go calls communityspace.CreateCommunitySpaces / DeriveKeyFromMnemonic (MA1's convention) — no key derivation reimplemented",
    "The words reach the Go helper only for this step: in memory, zeroed after, never logged, never written to the founding state file, never sent off the laptop (asserted)": "founderWords held as []byte, zeroFounderWords defer on every exit; TestSpacesTail_WordsNeverInStateFileOrLogs asserts FounderWordsHeldForTest false after, and the mnemonic absent from the marshalled state file and the deploy log (ADR 0044 scrub precedent)",
    "The three IDs are recorded in the config repo beside the app record, and the descriptor writer rewrites org-config so the first outside read of the descriptor names them": "spaces.Store (idss/community-spaces.json) recorded via WithSpaceStore; orgconfig.LiveProvider already reads the store and withSpaces names them; wiring_prod.go wires the config-repo space-store",
    "Bounded attempts: if any-sync does not answer from outside in time, founding completes, no spaces are created, the descriptor carries anysync without space IDs, and the app record's details say so — no stand-up step is red, and the first-steward fallback covers it": "TestSpacesTail_AnysyncSilentCreatesNothingStepsGreen: creator scripted to fail (context.DeadlineExceeded) under the bounded spacesBudget context; no record, Coa still submits, log records the any-sync-silent detail, assertStepsGreen passes",
    "A resumed tail that no longer holds the words creates nothing and records the same detail": "TestSpacesTail_NoWordsCreatesNothing: a tail constructed without WithFounderWords (the state file never held them) creates nothing and logs the no-words detail; steps green",
    "Choosing later, and the Coa-first branch, create nothing": "TestSpacesTail_LaterCreatesNothing (AppLater); the tail's top gate returns before the space step for AppLater and the no-App (Coa-first/kanidm) path; TestSpacesTail_AlreadyRecordedCreatesNothing covers first-write-wins",
    "The founder who later adopts their identity into the app finds the three spaces with their own identity as owner and creates nothing (proven against the recorded IDs)": "TestSpacesTail_FounderAdoptsLaterOwnsRecordedProvenOffline: recorded ownerAID == FounderAccountAIDForTest(words), and DeriveSpaceKeySet(words, 1..3) re-derives deterministically offline; already-recorded IDs create nothing (first-write-wins)"
  },
  "summary": "Founding creates the community's three any-sync spaces at the pipeline tail as the founder from the words in memory, through matou-app MA1, records the IDs, and degrades to the first-steward fallback on every failure.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #1519 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1519, "status": "success", "commits": [ "14eb058807d3d882f18a6cbb4b57066eb2824721" ], "changed_files": [ "STATUS.md", "app/helper/cmd/helper/wiring_prod.go", "app/helper/cmd/helper/wiring_test.go", "go.mod", "go.sum", "internal/founding/communityapptail.go", "internal/founding/export_test.go", "internal/founding/orchestrator.go", "internal/founding/spacestail.go", "internal/founding/spacestail_seam_test.go" ], "tests": [ { "command": "nix develop .#go-ci --command go test ./internal/founding/ -run TestSpacesTail -count=1", "exit_code": 0 }, { "command": "nix develop .#go-ci --command go test ./...", "exit_code": 0 }, { "command": "nix develop .#go-ci --command go build ./...", "exit_code": 0 }, { "command": "nix develop .#go-ci --command go vet ./...", "exit_code": 0 }, { "command": "nix develop .#go-ci --command golangci-lint run ./internal/founding/... ./internal/spaces/... ./app/helper/...", "exit_code": 0 }, { "command": "nix develop .#go-ci --command gofmt -l .", "exit_code": 0 }, { "command": "nix develop .#go-ci --command go test -tags dev ./app/helper/...", "exit_code": 0 } ], "criteria": { "With any-sync installed and its coordinator answering from outside, the tail creates the community, read-only and admin spaces before the Coa submission, as the founder, seeding what org setup seeds": "TestSpacesTail_CreatesThreeBeforeCoaAsFounder: the three spaces created in org-setup order via communityspace.CreateCommunitySpaces, ownerAID = the founder account identity, and the record complete BEFORE the Coa submit (orderCoa snapshots the store at Submit); createCommunitySpacesAtTail called before the descriptor probe + Coa in communityapptail.go", "Creation runs on the laptop over the public any-sync ports, importing matou-app's space-creation package — no second derivation or seeding convention exists in this repo": "go.mod/go.sum import github.com/matou-collective/matou-app/backend/communityspace; spacestail.go calls communityspace.CreateCommunitySpaces / DeriveKeyFromMnemonic (MA1's convention) — no key derivation reimplemented", "The words reach the Go helper only for this step: in memory, zeroed after, never logged, never written to the founding state file, never sent off the laptop (asserted)": "founderWords held as []byte, zeroFounderWords defer on every exit; TestSpacesTail_WordsNeverInStateFileOrLogs asserts FounderWordsHeldForTest false after, and the mnemonic absent from the marshalled state file and the deploy log (ADR 0044 scrub precedent)", "The three IDs are recorded in the config repo beside the app record, and the descriptor writer rewrites org-config so the first outside read of the descriptor names them": "spaces.Store (idss/community-spaces.json) recorded via WithSpaceStore; orgconfig.LiveProvider already reads the store and withSpaces names them; wiring_prod.go wires the config-repo space-store", "Bounded attempts: if any-sync does not answer from outside in time, founding completes, no spaces are created, the descriptor carries anysync without space IDs, and the app record's details say so — no stand-up step is red, and the first-steward fallback covers it": "TestSpacesTail_AnysyncSilentCreatesNothingStepsGreen: creator scripted to fail (context.DeadlineExceeded) under the bounded spacesBudget context; no record, Coa still submits, log records the any-sync-silent detail, assertStepsGreen passes", "A resumed tail that no longer holds the words creates nothing and records the same detail": "TestSpacesTail_NoWordsCreatesNothing: a tail constructed without WithFounderWords (the state file never held them) creates nothing and logs the no-words detail; steps green", "Choosing later, and the Coa-first branch, create nothing": "TestSpacesTail_LaterCreatesNothing (AppLater); the tail's top gate returns before the space step for AppLater and the no-App (Coa-first/kanidm) path; TestSpacesTail_AlreadyRecordedCreatesNothing covers first-write-wins", "The founder who later adopts their identity into the app finds the three spaces with their own identity as owner and creates nothing (proven against the recorded IDs)": "TestSpacesTail_FounderAdoptsLaterOwnsRecordedProvenOffline: recorded ownerAID == FounderAccountAIDForTest(words), and DeriveSpaceKeySet(words, 1..3) re-derives deterministically offline; already-recorded IDs create nothing (first-write-wins)" }, "summary": "Founding creates the community's three any-sync spaces at the pipeline tail as the founder from the words in memory, through matou-app MA1, records the IDs, and degrades to the first-steward fallback on every failure.", "reason": "", "blockers": [], "no_code_change": "" } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Matou/idss#1519
No description provided.