Spec: founding (P1) — found a community and its first gateway #11

Closed
opened 2026-07-23 04:25:34 +00:00 by ben · 4 comments
Owner

Parent

Wayfinder map: Matou/ourcloud#7 — founding's definition was locked on ticket #9 (2026-07-21); this spec inherits the map's cross-feature constraints (clan substrate behind the clan seam, one enrollment mechanism with full community CA at v1, kanidm/OIDC, Netbird mesh, brandkit theming seam, tiered recovery, stack, cross-cutting UX rulings, seeded-cache supply chain).

Design contract: docs/ux/flows/p1-founding.mermaid + docs/ux/wireframes/p1-founding/ (18 screens). Engineering tree: ADRs 0043–0052 (founding grill, 2026-07-21).

Problem Statement

A community that wants to own its digital services has no way to begin. The person willing to do the work — the operator — is low-skill and low-time (the P1 persona, the design centre): they cannot rent and wire a server, configure DNS and TLS, stand up an identity provider, or manage secrets, and they must not be expected to. Today, going from "our community wants its own cloud" to "a live, branded, recoverable community on hardware the community controls" requires a sysadmin; communities without one are stuck renting their digital life from platforms they don't control.

The operator needs founding to be one guided journey that never strands them: reversible while they're deciding, resumable across days while the real world (routers, device owners, DNS) catches up, honest when something fails, and safe by construction — ending with the community, not the operator's laptop, holding its own keys.

Solution

Founding is a wizard in the operator app, in two phases.

The soft phase is minutes of draft-saved, reversible choices: what will happen (P1-S1), community details with a diacritic-folding slug (S2), the brand kit with a live portal preview (S3), Access — how members reach the community and which gateway hosts it (S4, with rent-in-flow S4a and the self-hosted connection pre-check S4b), the public Address (S5), and Review (S6). Nothing irreversible happens until Review.

The stand-up stage after Review is a durable, resumable checklist that does the real-world work — install, device-end consent, pairing and the spec gate, reachability, name wiring, gateway deploy, seeding, scrub — over one of four access paths: a rented server (broker-provisioned from the gateway image, so its checklist folds install and consent and runs reachability, name wiring, and deploy in place, per the S7 ruling), the operator's own VPS, a machine at the operator's place, or the private path (a local VM, no public address yet).

At hand-off (S12) the portal is live at the real address, the operator's first dashboard login happens through a one-time branded credential-enrolment (passkey), the recovery kit is offered, and the helper scrubs the laptop down to exactly its designed residue: repo replica, operator key, and any exported kit. The gateway is an ordinary enrolled node of its own community from day one, and the community — never the laptop, never Matou — holds its crown jewels.

User Stories

Acceptance criteria are Given/When/Then, sourced from p1-founding.mermaid nodes and edges (including the failure branches) and the ADRs noted.

Soft phase

  1. As an operator, I want to start founding from the welcome surface, so that creating a community begins with one clear action.

    • Given this app installation has no community (ADR 0050), When I open the welcome surface, Then "Found a community" is offered and opens P1-S1.
    • Given a community already exists in this installation, When I open the welcome surface, Then "Found a community" is not offered (one community per installation).
  2. As an operator, I want a plain "what will happen" overview (S1), so that I understand the journey and that nothing is irreversible until Review.

    • Given I am on S1, When I continue, Then the soft phase begins at Community details and every choice from here to Review is draft-saved and reversible.
  3. As an operator, I want to name my community (S2), so that it has an identity from the start.

    • Given I enter a community name containing diacritics, When the slug is derived, Then diacritics fold (ADR 0029) and the resulting slug is shown to me.
  4. As an operator, I want to capture the brand kit — logo, palette, greeting — with a live portal preview (S3), so that I see my community's face before anything exists.

    • Given I am capturing the brand kit, When I change the logo, palette, or greeting, Then the portal preview re-renders live, compiled locally by the bundled helper (theming seam: helper-plus-endpoint preview) with no fleet or network involved.
  5. As an operator, I want to pick Access (S4) — how members reach the community and which gateway hosts it, so that hosting fits my community's situation.

    • Given I am on S4, When I choose, Then exactly four options are offered: rent a VPS gateway in-flow, use a VPS I already have, self-host on a device at my place, or the private path (a local VM on this computer).
  6. As an operator, I want to rent a server in-flow (S4a), so that I can found without owning any infrastructure.

    • Given I pick the rented option, When I pay by Stripe, Then the broker provisions a server from the current gateway image under Matou's provider account (DigitalOcean at v1, ADRs 0047/0048) and the server's IP is auto-filled before I pick the Address.
    • Given payment or provisioning fails, When the broker reports the failure, Then I see a plain-language error with a retry, no server is left half-rented against my payment, and I can return to S4 to choose differently.
  7. As an operator self-hosting at my place, I want a connection pre-check (S4b) before any router work, so that I don't spend an evening on port-forwarding a connection that can never work.

    • Given I pick the self-hosted option, When the pre-check runs, Then CGNAT detection happens before I am asked to touch router configuration.
    • Given the pre-check passes, When I continue, Then I pick the public Address (own domain, or a community subdomain).
    • Given CGNAT is detected, When the pre-check completes, Then public self-hosting is blocked with an explanation and I am returned to S4 to switch Access options (advice never veto does not apply — this is a physical impossibility, stated as such).
  8. As an operator with my own VPS, I want to enter its IP (S4 → S5), so that founding uses the server I already rent.

    • Given I pick "already have a VPS", When I enter its IP, Then I proceed to pick the public Address.
  9. As an operator, I want a private path (S4 → S6), so that I can found a community on just this computer and go public later.

    • Given I pick the private path, When I continue, Then the Address step is skipped and I go straight to Review; the wizard states that going public is a later step.
  10. As an operator, I want to pick the community's public Address (S5), so that members can reach it at a name that belongs to us.

    • Given I choose a community subdomain, When I enter a slug, Then the broker claim-checks availability and reserves <slug>.matou.nz, to be pointed at the gateway IP once it is known (ADR 0049).
    • Given I choose my own existing domain, When the screen renders, Then I am shown the exact DNS records to set — the one registrar visit (ADR 0014) — and told verification happens by polling until they resolve.
    • Given I own no domain and don't want a subdomain, When I look for "buy a domain", Then the screen links out to a registrar ("buy it there, then come back") — there is no in-flow purchase (ADR 0049, deferred).
  11. As an operator, I want Review (S6) to confirm every soft-phase choice, so that I know exactly what "create" will do before anything irreversible happens.

    • Given I am on S6, When it renders, Then community details, brand kit, Access choice, and Address are all shown for confirmation, and creating the community is the explicit action that ends the soft phase.
  12. As an operator, I want my draft saved, so that closing the app mid-soft-phase loses nothing.

    • Given I close the app anywhere in the soft phase, When I reopen it, Then the draft resumes where I left it (the founding draft is a singleton in the versioned founding-state file, ADR 0050).

Stand-up stage — the four paths

  1. As an operator on the rented path, I want the stand-up checklist (S7) to skip what the gateway image already did, so that founding a rented server is short.

    • Given the community is created on a rented server, When S7 opens, Then install, consent, and pairing are marked done (the gateway image booted with the agent pre-installed, and the helper paired it over SSH before the checklist surfaced — ADRs 0043/0048), and the checklist runs reachability, name wiring, and the gateway deploy in place, merging at hand-off (S12) — S10/S11 screens belong to the manual paths only.
    • Given a checklist item fails (reachability, name, or deploy), When the failure surfaces, Then the failed item shows its own retry, and switching the Access option reopens S4.
  2. As an operator on my own VPS (S7a), I want a one-line install command, so that stand-up asks exactly one terminal action of me.

    • Given S7a shows the install command, When I run it on the VPS, Then the agent installs on the stock OS and the flow proceeds to install mode and consent (S8).
  3. As an operator standing up a machine at my place (S7b), I want to choose the install method, so that the path matches my comfort.

    • Given I pick the command-line method, When I run the install command on the device, Then the agent installs on the stock OS and the flow proceeds to S8.
    • Given I pick the desktop-app method (GUI installer), When it starts, Then the flow hands off to device-add-app P3-S2 (Join with a code); on Linux the desktop path also offers full install.
    • Given the hand-off to P3-S2 completes, When the app's agent pairs and probes the device and specs meet the declared minimum, Then the flow rejoins at the spec gate (S9).
  4. As a device owner, I want to consent to an install mode on the device itself (S8), so that nothing wipes or claims my machine without me.

    • Given the agent is installed, When I consent on the device end, Then I choose full install (wipes and replaces the OS at first deploy — consequences stated) or VM mode (keeps the OS, dedicates resources), and only then does the agent probe the device and pair.
  5. As an operator, I want the private path to stand up a local VM (VAR) without device-end consent, so that founding on my own computer is frictionless.

    • Given the private path was chosen, When the community is created, Then a local NixOS VM is stood up on this computer with no device-end consent step (I own both the machine and the app), the VM calls in and pairs, and its specs are probed against the declared minimum.

Pairing, gates, deploy

  1. As an operator, I want the spec gate (S9) to show me the probed hardware, so that I see what the fleet is getting before deploy proceeds.

    • Given pairing succeeds and probed specs meet the declared gateway minimum (2 vCPU · 4 GB RAM · 40 GB disk, ADR 0030), When S9 renders, Then the probed specs are shown — S9 is the first node's approval card (wizard-implicit approval, ADR 0043; no separate approve click exists).
    • Given the gateway is public, When the spec gate passes, Then the reachability test runs next (S10).
    • Given the private path, When the spec gate passes, Then reachability is skipped and the gateway deploy (S11) begins.
  2. As an operator, I want a clear spec-gate failure (S9x), so that an underpowered machine costs minutes, not a broken community.

    • Given probed specs fall below the declared minimum, When S9x renders, Then I get guided troubleshooting — use a stronger machine or switch the Access option — and retrying returns via S4; the enrollment state survives the failure (the enroll seam holds the request retriable — the failure is typed, the code is not spent).
  3. As an operator, I want the reachability test before name wiring (S10), so that DNS is only wired to an IP that provably accepts public visitors.

    • Given the spec gate passed on a public path, When the outside-in reachability probe passes, Then the name is wired — subdomain records pointed by the broker, or my own-domain records verified by DNS polling now the IP is known (ADR 0049) — and the gateway deploy begins.
    • Given the reachability test fails, When the failure surfaces, Then I get guided troubleshooting (ports, firewall, CGNAT) with retry, and switching the Access option reopens S4.
  4. As an operator, I want the gateway deploy (S11) to stand up everything the community needs, so that hand-off means a working community, not a bare server.

    • Given deploy runs, When it completes, Then the control plane (config repo, deploy runner, IdP, web dashboard) is live on the gateway, the brand kit is applied to every surface it binds (portal, IdP login, dashboard), the operator's admin account exists from seeded declarative config, and the whole deploy ran over the established clan connection, fully logged with drill-in (ADR 0027).
  5. As an operator whose VM-mode deploy fails, I want a clean retry, so that a failed attempt leaves no wreckage.

    • Given deploy fails in VM mode, When I retry, Then the VM is deleted and stand-up retries cleanly from Review (S6).
  6. As an operator whose full-install deploy fails, I want honest recovery options, so that I'm never told a rollback exists when it doesn't.

    • Given deploy fails on a full install, When the failure surfaces, Then I am offered resume-the-deploy or reinstall-the-agent / rescue boot, and the wizard states plainly there is no old OS to roll back to; the path returns via S6.

Seeding, identity, hand-off

  1. As an operator, I want the gateway to be an ordinary enrolled node of its own community, so that node #1 has no special identity path to go wrong later.

    • Given founding enrols the first node, When the helper runs enrollment, Then it goes through the app-hosted enroll control-plane face (same package, in-process ledger; carrier per path — LAN listener at my place, SSH relay for VPS/rented, direct drive for the private VM), and seeding hands the connection-request record and issued IdentityGrant into the fleet's ledger (ADR 0043), so the control plane knows its gateway as enrolled node #1.
  2. As a community, we want our crown jewels to live on our fleet — never on the operator's laptop, so that no single personal machine is our quiet single point of failure.

    • Given crown jewels (root CA, SSH CA, config repo, gateway vars) are born on the laptop during founding, When seeding completes, Then secrets are placed as clan vars encrypted to machine keys and recovery material only — operator keys are not recipients (ADR 0044), so replica + operator key can never reconstruct them.
  3. As an operator, I want the config repo handed over to the fleet, so that from day one the control plane — not my laptop — is the authority.

    • Given seeding pushes the founding repo to the bare repo on the gateway (ADR 0045), When authority flips, Then the control-plane API is the only writer from that commit on, and the app re-clones its former repo as the replica — so the replica's provenance is the fleet and staleness measurement starts honest (ADR 0032).
  4. As an operator, I want my first dashboard login to be a passkey enrolment at a branded screen, so that day one already feels like our community and no password ever exists.

    • Given seeding minted a single-use, short-TTL kanidm credential-enrolment token returned over the founding SSH connection only (ADR 0046), When S12 opens the dashboard with it, Then I land on kanidm's branded enrolment screen (brand name + mono logo) and register my passkey.
    • Given the token expired (stand-up took days — a designed-for case), When I use it, Then the app re-mints one through the same mechanism and I retry without losing anything.
  5. As an operator, I want my app's fleet credential separate from my personal login, so that losing one never silently costs the other.

    • Given hand-off completes, When credentials are settled, Then the operator key (mesh identity + SSH key, generated by the helper, registered in seeded config) authenticates the app for Tier-1, the passkey authenticates me to the dashboard, and each is revocable on its own surface without touching the other (ADR 0046).
  6. As an operator, I want the recovery kit offered at hand-off (S12), so that Tier-3 recovery exists from the community's first day.

    • Given seeding is complete, When S12 renders, Then the recovery-kit prompt offers export/print, and after the scrub the kit (with its shared-safekeeping shares) is the only Tier-3 path (ADR 0044).
    • Given I decline the kit, When founding completes anyway, Then the community visibly has no Tier-3 material until the dashboard re-prompt is accepted — an accepted, surfaced risk, never a reason to keep laptop copies. (Kit contents/share mechanics belong to rescue; designating kaitiaki belongs to members.)
  7. As a community, we want the operator's laptop scrubbed after seeding, so that no ambient copy of our root keys exists anywhere.

    • Given seeding placed the crown jewels on the fleet and the kit offer is resolved, When the scrub runs as a real, verifiable stand-up step, Then the laptop holds exactly the designed residue — repo replica, operator key, exported kit if any — and the founding state file is deleted (ADRs 0044/0050).
  8. As a member, I want the portal live at our address the moment founding ends, so that the community has a front door on day one.

    • Given hand-off, When anyone visits the community's address, Then the branded portal is live — brand + service links only (founding stands it up; provisioning keeps its links current).
  9. As an operator, I want hand-off to land me somewhere useful, so that founding flows into running the community.

    • Given S12 completes, When I exit, Then I land on Operator home (shell), and the gateway is visible on the dashboard's fleet surface with name, role, and health (ticket #9 boundary ruling).

Resumability and safety

  1. As an operator, I want the stand-up stage to survive closing the app and to take days if it must, so that real-world pace (routers, device owners, DNS propagation) never breaks founding.

    • Given I close the app mid-stand-up, When I reopen it, Then the checklist resumes at the same item from the single versioned founding-state file (draft + checklist + the clan seam's opaque Enrollment snapshot; single writer — ADR 0050).
    • Given the state file's schema version doesn't match the app, When it loads, Then the app refuses-or-migrates — never silently misreads (ADR 0050).
  2. As an operator, I want every stand-up action logged with drill-in, so that when something fails I (or remote support, later) can see what actually happened.

    • Given any stand-up step runs, When I drill in, Then its events and logs are visible (ADR 0027); secret-bearing frames are never logged on either side of the app↔helper boundary (ADR 0051).

Implementation Decisions

  • Where founding lives. Founding runs once, app-side, by design. The stand-up state machine — sequencing enrol → install → reachability → name wiring → deploy → seed → scrub, holding the checklist, deciding retries — is the founding orchestrator, a Go package in the bundled helper and only there (ADR 0052). The Electron/Vue wizard is thin UI over stdio events; the control plane never runs this package.
  • App ↔ helper contract (ADR 0051): newline-delimited JSON, request/response with ids plus server-pushed event frames (how the checklist renders live); the seam packages' Go types are the schema (TS types generated from the same source); lockstep versioning — the handshake's protocol-version field fails loudly on a mixed install, never negotiates; raw crown-jewel bytes are touched only by the helper process, and secret-bearing frames are never logged.
  • Enrollment (ADR 0043): the helper embeds the enroll control-plane face — the same shared package backed by an in-process ledger, which must be an embeddable, first-class build target. The agent's enrollment client is carrier-agnostic: HTTP to a public endpoint, HTTP over LAN (machine at your place — the install command embeds the app's LAN address beside the code), or relayed over SSH to the agent's local Unix socket (own VPS / rented). Approval is the wizard itself: S9 is the pending card. Seeding performs the state handover (request record + IdentityGrant) into the fleet's ledger. Identity inherits the map's constraints: full community CA at v1, 90-day NodeCert, auto-renew at ⅔ validity over mTLS.
  • Crown jewels (ADR 0044): born on the laptop, seeded as clan vars encrypted to machine keys + recovery material (operator keys not recipients), then scrubbed. The scrub is a verifiable stand-up step owned by founding's checklist.
  • Config repo (ADR 0045): a plain bare git repo on the gateway — no forge in v1. Control-plane API is the only writer; push-then-re-clone handover at seeding; the app's replica pulls one-way over the mesh via SSH, authenticated by the operator key (no new credential).
  • First login (ADR 0046): operator account + operator-group membership in the seeded declarative config; single-use short-TTL kanidm credential-enrolment token travels back only over the founding SSH connection; expired tokens re-mint through the same mechanism. Person credential (passkey) and app credential (operator key) deliberately separate.
  • Broker (ADRs 0047/0049): a Matou-run service — v1 capabilities are gateway rental (Stripe payment, provisioning from the gateway image under Matou's provider account, {IP, root SSH key} back to the app, recurring billing to the community) and community-subdomain issuance (slug claim-check, record CRUD, pointing at the gateway IP once known). It is a fifth codebase in the monorepo (Go, same OpenAPI discipline) deploying to Matou infrastructure, never inside a community fleet. Sovereignty trade-off stated: the hosting contract is with Matou; everything on the box is the community's; own-VPS is the first-class eject route.
  • Provider and image (ADR 0048): DigitalOcean only at v1 behind a Provider interface that keeps a second provider additive. The gateway image is a DO snapshot built by CI per release, version-pinned to the app's release channel, generic and never per-community — all community material arrives at pairing time over SSH.
  • DNS (ADR 0049): broker issues subdomains (mandatory for v1 — it covers the propagation window behind the one-registrar-visit promise); own domains are operator-wired with exact records shown and DNS-poll verification; no registrar API integrations; in-flow purchase deferred with a link-out.
  • Founding state (ADR 0050): one community per app installation; founding draft is a singleton; all client-side founding state (draft, checklist, opaque Enrollment snapshot) is one versioned JSON document, single writer, refuse-or-migrate; deleted by the scrub.
  • Seams driven (all status: confirmed): clan (Enrollment workflow for stand-up, Deploy for the gateway deploy, layered outcome detection), enroll (the state machine and one-way code→identity conversion), brandkit (compile at capture, pre-deploy preview via the local helper). Founding adds no new seam.

Testing Decisions

  • What a good test is here: drive the orchestrator's external behaviour — feed it choices and scripted dependency outcomes, assert the emitted checklist/event states, the terminal state, and the laptop residue. Never assert internal call order, package structure, or the wizard's rendering.
  • THE seam (single, highest — ADR 0052): the founding orchestrator driven headlessly against the fakes the seam docs already prescribe — fake clan.Clan (simulating blocked/resume/remedy), in-memory enroll ledger + fake clock (exercises code expiry and token TTL without waiting), real brandkit (pure — faking it is waste), fake broker client (scripts provision-success, payment failure, subdomain claim), fake DNS resolver (scripts resolving/not-yet). Every acceptance criterion above executes at this seam: four access-path happy paths, S7 item-failure → retry → switch-access, CGNAT pre-check fail, spec-gate fail (code survives), reachability fail, deploy-fail in both install modes, token-expiry re-mint, resume-from-snapshot after app restart, refuse-or-migrate on state-version mismatch, and scrub verification (residue is exactly replica + operator key + kit).
  • Below the seam: exactly one thin stdio round-trip test against the real compiled helper binary — proves the NDJSON framing and handshake (ADR 0051), does not re-test founding logic.
  • Above the seam: nothing automated — the Vue wizard renders states, it does not decide them; the wireframes are its contract and design-verify checks it at the end of the pipeline.
  • Prior art: the fakes' contracts live in the confirmed seam docs (clan, agent-control-plane); the real sides were validated by spike S13 (clan lifecycle, secrets, rollback, self-management) and spike #5 (kanidm/Netbird end-to-end on a real ACME origin). If a fake drifts from reality, the fix lands in the seam doc, not in more founding tests.
  • Non-gating real-lab founding smoke (fake-drift insurance): beside — not inside — the acceptance suite, a scheduled (nightly or pre-release) full-real founding run: the rented path driven against the clan-lab golden-image substrate with a real public hostname via lab-dns, the broker in a test mode. It exists to catch fakes drifting from reality; it is explicitly not an acceptance gate — a red smoke files an issue and never blocks the swarm or a release by itself. Same shape as the owed S13 Q2.2 takeover follow-up: real-world confirmation as a scheduled event, not as the test suite.

Out of Scope

  • In-flow domain purchase — deferred out of v1 (ADR 0049); the Address screen links out.
  • Second hosting provider / multi-provider choice, BYO provider account — DigitalOcean only at v1 (ADR 0048); own-VPS is the eject route.
  • Multi-community per app installation — one community per installation (ADR 0050); two communities = two OS profiles.
  • Service selection — never at founding; services are chosen in provisioning (ADR 0020). The portal ships brand + service links only; provisioning keeps the links current.
  • Recovery-kit contents and share mechanics — rescue owns them; kaitiaki designation — members owns it. Founding owns only the S12 offer/export and the scrub guarantee.
  • Device-add proper (P2/P3) — founding touches it only at the S7b → P3-S2 hand-off; the P3 flow is device-add's contract.
  • A forge on the gateway — rejected for v1 (ADR 0045).
  • The going-public step for a private-path community — S12's "go public later" is a pointer, not a founding capability; it lands with device-add/provisioning work.
  • Welcome / Operator home surfaces themselves — shell owns them; founding only enters from and exits to them.

Further Notes

Seeded human decisions (needs_human_decision — for Ben, not for agents to derive):

  1. Broker operations — pricing, margin, billing terms, terms of service for rented gateways and subdomains (ADR 0047).
  2. Second provider & EU-hosting preference — whether/when Hetzner (or another EU provider) joins the broker's provider set (ADR 0048).
  3. In-flow domain purchase — deferred (ADR 0049); revisit only on operator evidence that the subdomain + link-out is not covering "I have no domain".

Glossary: all terms per CONTEXT.md — founding, soft phase, stand-up stage, gateway, gateway image, agent, install command, enrollment code, pairing, spec gate, install mode, full install, VM mode, reachability test, control plane, repo replica, operator key, recovery kit, broker, scrub, portal, brand kit.

Cross-feature notes for slice-map: founding hands off to shell (welcome in, Operator home out — singleton assumption shared via ADR 0050), to device-add (P3-S2), to provisioning (portal links, service choice), to monitoring (gateway health on the fleet surface), to rescue (kit mechanics) and members (kaitiaki). The broker is a new external system for architecture diagrams 01/02 (done, ADR 0042 same-commit rule) and a fifth codebase for the repo skeleton (ADR 0040 as amended by 0047).

## Parent Wayfinder map: https://git.matou.nz/Matou/ourcloud/issues/7 — founding's definition was locked on ticket #9 (2026-07-21); this spec inherits the map's cross-feature constraints (clan substrate behind the `clan` seam, one enrollment mechanism with full community CA at v1, kanidm/OIDC, Netbird mesh, `brandkit` theming seam, tiered recovery, stack, cross-cutting UX rulings, seeded-cache supply chain). Design contract: `docs/ux/flows/p1-founding.mermaid` + `docs/ux/wireframes/p1-founding/` (18 screens). Engineering tree: ADRs 0043–0052 (founding grill, 2026-07-21). ## Problem Statement A community that wants to own its digital services has no way to begin. The person willing to do the work — the operator — is low-skill and low-time (the P1 persona, the design centre): they cannot rent and wire a server, configure DNS and TLS, stand up an identity provider, or manage secrets, and they must not be expected to. Today, going from "our community wants its own cloud" to "a live, branded, recoverable community on hardware the community controls" requires a sysadmin; communities without one are stuck renting their digital life from platforms they don't control. The operator needs founding to be one guided journey that never strands them: reversible while they're deciding, resumable across days while the real world (routers, device owners, DNS) catches up, honest when something fails, and safe by construction — ending with the community, not the operator's laptop, holding its own keys. ## Solution Founding is a wizard in the operator app, in two phases. The **soft phase** is minutes of draft-saved, reversible choices: what will happen (P1-S1), community details with a diacritic-folding slug (S2), the brand kit with a live portal preview (S3), Access — how members reach the community and which gateway hosts it (S4, with rent-in-flow S4a and the self-hosted connection pre-check S4b), the public Address (S5), and Review (S6). Nothing irreversible happens until Review. The **stand-up stage** after Review is a durable, resumable checklist that does the real-world work — install, device-end consent, pairing and the spec gate, reachability, name wiring, gateway deploy, seeding, scrub — over one of four access paths: a **rented server** (broker-provisioned from the gateway image, so its checklist folds install and consent and runs reachability, name wiring, and deploy in place, per the S7 ruling), the operator's **own VPS**, a **machine at the operator's place**, or the **private path** (a local VM, no public address yet). At hand-off (S12) the portal is live at the real address, the operator's first dashboard login happens through a one-time branded credential-enrolment (passkey), the recovery kit is offered, and the helper scrubs the laptop down to exactly its designed residue: repo replica, operator key, and any exported kit. The gateway is an ordinary enrolled node of its own community from day one, and the community — never the laptop, never Matou — holds its crown jewels. ## User Stories Acceptance criteria are Given/When/Then, sourced from `p1-founding.mermaid` nodes and edges (including the failure branches) and the ADRs noted. ### Soft phase 1. As an operator, I want to start founding from the welcome surface, so that creating a community begins with one clear action. - Given this app installation has no community (ADR 0050), When I open the welcome surface, Then "Found a community" is offered and opens P1-S1. - Given a community already exists in this installation, When I open the welcome surface, Then "Found a community" is not offered (one community per installation). 2. As an operator, I want a plain "what will happen" overview (S1), so that I understand the journey and that nothing is irreversible until Review. - Given I am on S1, When I continue, Then the soft phase begins at Community details and every choice from here to Review is draft-saved and reversible. 3. As an operator, I want to name my community (S2), so that it has an identity from the start. - Given I enter a community name containing diacritics, When the slug is derived, Then diacritics fold (ADR 0029) and the resulting slug is shown to me. 4. As an operator, I want to capture the brand kit — logo, palette, greeting — with a live portal preview (S3), so that I see my community's face before anything exists. - Given I am capturing the brand kit, When I change the logo, palette, or greeting, Then the portal preview re-renders live, compiled locally by the bundled helper (theming seam: helper-plus-endpoint preview) with no fleet or network involved. 5. As an operator, I want to pick Access (S4) — how members reach the community and which gateway hosts it, so that hosting fits my community's situation. - Given I am on S4, When I choose, Then exactly four options are offered: rent a VPS gateway in-flow, use a VPS I already have, self-host on a device at my place, or the private path (a local VM on this computer). 6. As an operator, I want to rent a server in-flow (S4a), so that I can found without owning any infrastructure. - Given I pick the rented option, When I pay by Stripe, Then the broker provisions a server from the current gateway image under Matou's provider account (DigitalOcean at v1, ADRs 0047/0048) and the server's IP is auto-filled before I pick the Address. - Given payment or provisioning fails, When the broker reports the failure, Then I see a plain-language error with a retry, no server is left half-rented against my payment, and I can return to S4 to choose differently. 7. As an operator self-hosting at my place, I want a connection pre-check (S4b) before any router work, so that I don't spend an evening on port-forwarding a connection that can never work. - Given I pick the self-hosted option, When the pre-check runs, Then CGNAT detection happens before I am asked to touch router configuration. - Given the pre-check passes, When I continue, Then I pick the public Address (own domain, or a community subdomain). - Given CGNAT is detected, When the pre-check completes, Then public self-hosting is blocked with an explanation and I am returned to S4 to switch Access options (advice never veto does not apply — this is a physical impossibility, stated as such). 8. As an operator with my own VPS, I want to enter its IP (S4 → S5), so that founding uses the server I already rent. - Given I pick "already have a VPS", When I enter its IP, Then I proceed to pick the public Address. 9. As an operator, I want a private path (S4 → S6), so that I can found a community on just this computer and go public later. - Given I pick the private path, When I continue, Then the Address step is skipped and I go straight to Review; the wizard states that going public is a later step. 10. As an operator, I want to pick the community's public Address (S5), so that members can reach it at a name that belongs to us. - Given I choose a community subdomain, When I enter a slug, Then the broker claim-checks availability and reserves `<slug>.matou.nz`, to be pointed at the gateway IP once it is known (ADR 0049). - Given I choose my own existing domain, When the screen renders, Then I am shown the exact DNS records to set — the one registrar visit (ADR 0014) — and told verification happens by polling until they resolve. - Given I own no domain and don't want a subdomain, When I look for "buy a domain", Then the screen links out to a registrar ("buy it there, then come back") — there is no in-flow purchase (ADR 0049, deferred). 11. As an operator, I want Review (S6) to confirm every soft-phase choice, so that I know exactly what "create" will do before anything irreversible happens. - Given I am on S6, When it renders, Then community details, brand kit, Access choice, and Address are all shown for confirmation, and creating the community is the explicit action that ends the soft phase. 12. As an operator, I want my draft saved, so that closing the app mid-soft-phase loses nothing. - Given I close the app anywhere in the soft phase, When I reopen it, Then the draft resumes where I left it (the founding draft is a singleton in the versioned founding-state file, ADR 0050). ### Stand-up stage — the four paths 13. As an operator on the rented path, I want the stand-up checklist (S7) to skip what the gateway image already did, so that founding a rented server is short. - Given the community is created on a rented server, When S7 opens, Then install, consent, and pairing are marked done (the gateway image booted with the agent pre-installed, and the helper paired it over SSH before the checklist surfaced — ADRs 0043/0048), and the checklist runs reachability, name wiring, and the gateway deploy in place, merging at hand-off (S12) — S10/S11 screens belong to the manual paths only. - Given a checklist item fails (reachability, name, or deploy), When the failure surfaces, Then the failed item shows its own retry, and switching the Access option reopens S4. 14. As an operator on my own VPS (S7a), I want a one-line install command, so that stand-up asks exactly one terminal action of me. - Given S7a shows the install command, When I run it on the VPS, Then the agent installs on the stock OS and the flow proceeds to install mode and consent (S8). 15. As an operator standing up a machine at my place (S7b), I want to choose the install method, so that the path matches my comfort. - Given I pick the command-line method, When I run the install command on the device, Then the agent installs on the stock OS and the flow proceeds to S8. - Given I pick the desktop-app method (GUI installer), When it starts, Then the flow hands off to device-add-app P3-S2 (Join with a code); on Linux the desktop path also offers full install. - Given the hand-off to P3-S2 completes, When the app's agent pairs and probes the device and specs meet the declared minimum, Then the flow rejoins at the spec gate (S9). 16. As a device owner, I want to consent to an install mode on the device itself (S8), so that nothing wipes or claims my machine without me. - Given the agent is installed, When I consent on the device end, Then I choose full install (wipes and replaces the OS at first deploy — consequences stated) or VM mode (keeps the OS, dedicates resources), and only then does the agent probe the device and pair. 17. As an operator, I want the private path to stand up a local VM (VAR) without device-end consent, so that founding on my own computer is frictionless. - Given the private path was chosen, When the community is created, Then a local NixOS VM is stood up on this computer with no device-end consent step (I own both the machine and the app), the VM calls in and pairs, and its specs are probed against the declared minimum. ### Pairing, gates, deploy 18. As an operator, I want the spec gate (S9) to show me the probed hardware, so that I see what the fleet is getting before deploy proceeds. - Given pairing succeeds and probed specs meet the declared gateway minimum (2 vCPU · 4 GB RAM · 40 GB disk, ADR 0030), When S9 renders, Then the probed specs are shown — S9 *is* the first node's approval card (wizard-implicit approval, ADR 0043; no separate approve click exists). - Given the gateway is public, When the spec gate passes, Then the reachability test runs next (S10). - Given the private path, When the spec gate passes, Then reachability is skipped and the gateway deploy (S11) begins. 19. As an operator, I want a clear spec-gate failure (S9x), so that an underpowered machine costs minutes, not a broken community. - Given probed specs fall below the declared minimum, When S9x renders, Then I get guided troubleshooting — use a stronger machine or switch the Access option — and retrying returns via S4; the enrollment state survives the failure (the enroll seam holds the request retriable — the failure is typed, the code is not spent). 20. As an operator, I want the reachability test before name wiring (S10), so that DNS is only wired to an IP that provably accepts public visitors. - Given the spec gate passed on a public path, When the outside-in reachability probe passes, Then the name is wired — subdomain records pointed by the broker, or my own-domain records verified by DNS polling now the IP is known (ADR 0049) — and the gateway deploy begins. - Given the reachability test fails, When the failure surfaces, Then I get guided troubleshooting (ports, firewall, CGNAT) with retry, and switching the Access option reopens S4. 21. As an operator, I want the gateway deploy (S11) to stand up everything the community needs, so that hand-off means a working community, not a bare server. - Given deploy runs, When it completes, Then the control plane (config repo, deploy runner, IdP, web dashboard) is live on the gateway, the brand kit is applied to every surface it binds (portal, IdP login, dashboard), the operator's admin account exists from seeded declarative config, and the whole deploy ran over the established clan connection, fully logged with drill-in (ADR 0027). 22. As an operator whose VM-mode deploy fails, I want a clean retry, so that a failed attempt leaves no wreckage. - Given deploy fails in VM mode, When I retry, Then the VM is deleted and stand-up retries cleanly from Review (S6). 23. As an operator whose full-install deploy fails, I want honest recovery options, so that I'm never told a rollback exists when it doesn't. - Given deploy fails on a full install, When the failure surfaces, Then I am offered resume-the-deploy or reinstall-the-agent / rescue boot, and the wizard states plainly there is no old OS to roll back to; the path returns via S6. ### Seeding, identity, hand-off 24. As an operator, I want the gateway to be an ordinary enrolled node of its own community, so that node #1 has no special identity path to go wrong later. - Given founding enrols the first node, When the helper runs enrollment, Then it goes through the app-hosted `enroll` control-plane face (same package, in-process ledger; carrier per path — LAN listener at my place, SSH relay for VPS/rented, direct drive for the private VM), and seeding hands the connection-request record and issued IdentityGrant into the fleet's ledger (ADR 0043), so the control plane knows its gateway as enrolled node #1. 25. As a community, we want our crown jewels to live on our fleet — never on the operator's laptop, so that no single personal machine is our quiet single point of failure. - Given crown jewels (root CA, SSH CA, config repo, gateway vars) are born on the laptop during founding, When seeding completes, Then secrets are placed as clan vars encrypted to machine keys and recovery material only — operator keys are not recipients (ADR 0044), so replica + operator key can never reconstruct them. 26. As an operator, I want the config repo handed over to the fleet, so that from day one the control plane — not my laptop — is the authority. - Given seeding pushes the founding repo to the bare repo on the gateway (ADR 0045), When authority flips, Then the control-plane API is the only writer from that commit on, and the app re-clones its former repo as the replica — so the replica's provenance is the fleet and staleness measurement starts honest (ADR 0032). 27. As an operator, I want my first dashboard login to be a passkey enrolment at a branded screen, so that day one already feels like *our* community and no password ever exists. - Given seeding minted a single-use, short-TTL kanidm credential-enrolment token returned over the founding SSH connection only (ADR 0046), When S12 opens the dashboard with it, Then I land on kanidm's branded enrolment screen (brand name + mono logo) and register my passkey. - Given the token expired (stand-up took days — a designed-for case), When I use it, Then the app re-mints one through the same mechanism and I retry without losing anything. 28. As an operator, I want my app's fleet credential separate from my personal login, so that losing one never silently costs the other. - Given hand-off completes, When credentials are settled, Then the operator key (mesh identity + SSH key, generated by the helper, registered in seeded config) authenticates the *app* for Tier-1, the passkey authenticates *me* to the dashboard, and each is revocable on its own surface without touching the other (ADR 0046). 29. As an operator, I want the recovery kit offered at hand-off (S12), so that Tier-3 recovery exists from the community's first day. - Given seeding is complete, When S12 renders, Then the recovery-kit prompt offers export/print, and after the scrub the kit (with its shared-safekeeping shares) is the *only* Tier-3 path (ADR 0044). - Given I decline the kit, When founding completes anyway, Then the community visibly has no Tier-3 material until the dashboard re-prompt is accepted — an accepted, surfaced risk, never a reason to keep laptop copies. (Kit contents/share mechanics belong to rescue; designating kaitiaki belongs to members.) 30. As a community, we want the operator's laptop scrubbed after seeding, so that no ambient copy of our root keys exists anywhere. - Given seeding placed the crown jewels on the fleet and the kit offer is resolved, When the scrub runs as a real, verifiable stand-up step, Then the laptop holds exactly the designed residue — repo replica, operator key, exported kit if any — and the founding state file is deleted (ADRs 0044/0050). 31. As a member, I want the portal live at our address the moment founding ends, so that the community has a front door on day one. - Given hand-off, When anyone visits the community's address, Then the branded portal is live — brand + service links only (founding stands it up; provisioning keeps its links current). 32. As an operator, I want hand-off to land me somewhere useful, so that founding flows into running the community. - Given S12 completes, When I exit, Then I land on Operator home (shell), and the gateway is visible on the dashboard's fleet surface with name, role, and health (ticket #9 boundary ruling). ### Resumability and safety 33. As an operator, I want the stand-up stage to survive closing the app and to take days if it must, so that real-world pace (routers, device owners, DNS propagation) never breaks founding. - Given I close the app mid-stand-up, When I reopen it, Then the checklist resumes at the same item from the single versioned founding-state file (draft + checklist + the clan seam's opaque Enrollment snapshot; single writer — ADR 0050). - Given the state file's schema version doesn't match the app, When it loads, Then the app refuses-or-migrates — never silently misreads (ADR 0050). 34. As an operator, I want every stand-up action logged with drill-in, so that when something fails I (or remote support, later) can see what actually happened. - Given any stand-up step runs, When I drill in, Then its events and logs are visible (ADR 0027); secret-bearing frames are never logged on either side of the app↔helper boundary (ADR 0051). ## Implementation Decisions - **Where founding lives.** Founding runs once, app-side, by design. The stand-up state machine — sequencing enrol → install → reachability → name wiring → deploy → seed → scrub, holding the checklist, deciding retries — is the `founding` orchestrator, a Go package in the bundled helper and only there (ADR 0052). The Electron/Vue wizard is thin UI over stdio events; the control plane never runs this package. - **App ↔ helper contract** (ADR 0051): newline-delimited JSON, request/response with ids plus server-pushed event frames (how the checklist renders live); the seam packages' Go types are the schema (TS types generated from the same source); lockstep versioning — the handshake's protocol-version field fails loudly on a mixed install, never negotiates; raw crown-jewel bytes are touched only by the helper process, and secret-bearing frames are never logged. - **Enrollment** (ADR 0043): the helper embeds the `enroll` control-plane face — the same shared package backed by an in-process ledger, which must be an embeddable, first-class build target. The agent's enrollment client is carrier-agnostic: HTTP to a public endpoint, HTTP over LAN (machine at your place — the install command embeds the app's LAN address beside the code), or relayed over SSH to the agent's local Unix socket (own VPS / rented). Approval is the wizard itself: S9 is the pending card. Seeding performs the state handover (request record + IdentityGrant) into the fleet's ledger. Identity inherits the map's constraints: full community CA at v1, 90-day NodeCert, auto-renew at ⅔ validity over mTLS. - **Crown jewels** (ADR 0044): born on the laptop, seeded as clan vars encrypted to machine keys + recovery material (operator keys not recipients), then scrubbed. The scrub is a verifiable stand-up step owned by founding's checklist. - **Config repo** (ADR 0045): a plain bare git repo on the gateway — no forge in v1. Control-plane API is the only writer; push-then-re-clone handover at seeding; the app's replica pulls one-way over the mesh via SSH, authenticated by the operator key (no new credential). - **First login** (ADR 0046): operator account + operator-group membership in the seeded declarative config; single-use short-TTL kanidm credential-enrolment token travels back only over the founding SSH connection; expired tokens re-mint through the same mechanism. Person credential (passkey) and app credential (operator key) deliberately separate. - **Broker** (ADRs 0047/0049): a Matou-run service — v1 capabilities are gateway rental (Stripe payment, provisioning from the gateway image under Matou's provider account, `{IP, root SSH key}` back to the app, recurring billing to the community) and community-subdomain issuance (slug claim-check, record CRUD, pointing at the gateway IP once known). It is a fifth codebase in the monorepo (Go, same OpenAPI discipline) deploying to Matou infrastructure, never inside a community fleet. Sovereignty trade-off stated: the hosting contract is with Matou; everything on the box is the community's; own-VPS is the first-class eject route. - **Provider and image** (ADR 0048): DigitalOcean only at v1 behind a `Provider` interface that keeps a second provider additive. The gateway image is a DO snapshot built by CI per release, version-pinned to the app's release channel, generic and never per-community — all community material arrives at pairing time over SSH. - **DNS** (ADR 0049): broker issues subdomains (mandatory for v1 — it covers the propagation window behind the one-registrar-visit promise); own domains are operator-wired with exact records shown and DNS-poll verification; no registrar API integrations; in-flow purchase deferred with a link-out. - **Founding state** (ADR 0050): one community per app installation; founding draft is a singleton; all client-side founding state (draft, checklist, opaque Enrollment snapshot) is one versioned JSON document, single writer, refuse-or-migrate; deleted by the scrub. - **Seams driven** (all `status: confirmed`): `clan` (Enrollment workflow for stand-up, Deploy for the gateway deploy, layered outcome detection), `enroll` (the state machine and one-way code→identity conversion), `brandkit` (compile at capture, pre-deploy preview via the local helper). Founding adds no new seam. ## Testing Decisions - **What a good test is here:** drive the orchestrator's external behaviour — feed it choices and scripted dependency outcomes, assert the emitted checklist/event states, the terminal state, and the laptop residue. Never assert internal call order, package structure, or the wizard's rendering. - **THE seam (single, highest — ADR 0052):** the `founding` orchestrator driven headlessly against the fakes the seam docs already prescribe — fake `clan.Clan` (simulating blocked/resume/remedy), in-memory `enroll` ledger + fake clock (exercises code expiry and token TTL without waiting), **real** `brandkit` (pure — faking it is waste), fake broker client (scripts provision-success, payment failure, subdomain claim), fake DNS resolver (scripts resolving/not-yet). Every acceptance criterion above executes at this seam: four access-path happy paths, S7 item-failure → retry → switch-access, CGNAT pre-check fail, spec-gate fail (code survives), reachability fail, deploy-fail in both install modes, token-expiry re-mint, resume-from-snapshot after app restart, refuse-or-migrate on state-version mismatch, and scrub verification (residue is exactly replica + operator key + kit). - **Below the seam:** exactly one thin stdio round-trip test against the real compiled helper binary — proves the NDJSON framing and handshake (ADR 0051), does not re-test founding logic. - **Above the seam:** nothing automated — the Vue wizard renders states, it does not decide them; the wireframes are its contract and `design-verify` checks it at the end of the pipeline. - **Prior art:** the fakes' contracts live in the confirmed seam docs (`clan`, `agent-control-plane`); the real sides were validated by spike S13 (clan lifecycle, secrets, rollback, self-management) and spike #5 (kanidm/Netbird end-to-end on a real ACME origin). If a fake drifts from reality, the fix lands in the seam doc, not in more founding tests. - **Non-gating real-lab founding smoke (fake-drift insurance):** beside — not inside — the acceptance suite, a scheduled (nightly or pre-release) full-real founding run: the rented path driven against the clan-lab golden-image substrate with a real public hostname via lab-dns, the broker in a test mode. It exists to catch fakes drifting from reality; it is explicitly **not** an acceptance gate — a red smoke files an issue and never blocks the swarm or a release by itself. Same shape as the owed S13 Q2.2 takeover follow-up: real-world confirmation as a scheduled event, not as the test suite. ## Out of Scope - **In-flow domain purchase** — deferred out of v1 (ADR 0049); the Address screen links out. - **Second hosting provider / multi-provider choice, BYO provider account** — DigitalOcean only at v1 (ADR 0048); own-VPS is the eject route. - **Multi-community per app installation** — one community per installation (ADR 0050); two communities = two OS profiles. - **Service selection** — never at founding; services are chosen in provisioning (ADR 0020). The portal ships brand + service links only; provisioning keeps the links current. - **Recovery-kit contents and share mechanics** — rescue owns them; **kaitiaki designation** — members owns it. Founding owns only the S12 offer/export and the scrub guarantee. - **Device-add proper (P2/P3)** — founding touches it only at the S7b → P3-S2 hand-off; the P3 flow is device-add's contract. - **A forge on the gateway** — rejected for v1 (ADR 0045). - **The going-public step for a private-path community** — S12's "go public later" is a pointer, not a founding capability; it lands with device-add/provisioning work. - **Welcome / Operator home surfaces themselves** — shell owns them; founding only enters from and exits to them. ## Further Notes **Seeded human decisions (`needs_human_decision` — for Ben, not for agents to derive):** 1. **Broker operations** — pricing, margin, billing terms, terms of service for rented gateways and subdomains (ADR 0047). 2. **Second provider & EU-hosting preference** — whether/when Hetzner (or another EU provider) joins the broker's provider set (ADR 0048). 3. **In-flow domain purchase** — deferred (ADR 0049); revisit only on operator evidence that the subdomain + link-out is not covering "I have no domain". **Glossary:** all terms per `CONTEXT.md` — founding, soft phase, stand-up stage, gateway, gateway image, agent, install command, enrollment code, pairing, spec gate, install mode, full install, VM mode, reachability test, control plane, repo replica, operator key, recovery kit, broker, scrub, portal, brand kit. **Cross-feature notes for slice-map:** founding hands off to shell (welcome in, Operator home out — singleton assumption shared via ADR 0050), to device-add (P3-S2), to provisioning (portal links, service choice), to monitoring (gateway health on the fleet surface), to rescue (kit mechanics) and members (kaitiaki). The broker is a new external system for architecture diagrams 01/02 (done, ADR 0042 same-commit rule) and a fifth codebase for the repo skeleton (ADR 0040 as amended by 0047).
Author
Owner

Note from the Sandcastle swarm (leaving open, not relabeling/closing — human triage call):

This is the Phase-1 founding spec deliverable, not an implementable vertical slice:

  • no ticket-level task manifest;
  • the test seam (the founding orchestrator in the bundled helper, ADR 0052) does not exist yet — the ADR 0040 repo skeleton is still unbuilt (STATUS "Now" checklist);
  • it carries open needs_human_decision items (broker operations/pricing, second provider/EU hosting, in-flow domain purchase).

Implementable slices come from Phase 2 (/slice-map) → /to-tickets. Labeled ready-for-agent, so the swarm keeps re-selecting it with no actionable work — suggest retriaging the label until its tickets exist.

Note from the Sandcastle swarm (leaving open, not relabeling/closing — human triage call): This is the **Phase-1 founding spec deliverable**, not an implementable vertical slice: - no ticket-level task manifest; - the test seam (the `founding` orchestrator in the bundled helper, ADR 0052) does not exist yet — the **ADR 0040 repo skeleton is still unbuilt** (STATUS "Now" checklist); - it carries open `needs_human_decision` items (broker operations/pricing, second provider/EU hosting, in-flow domain purchase). Implementable slices come from **Phase 2 (`/slice-map`) → `/to-tickets`**. Labeled `ready-for-agent`, so the swarm keeps re-selecting it with no actionable work — suggest retriaging the label until its tickets exist.
Author
Owner

Sandcastle note (not implementable yet — leaving open): this is a to-spec output (founding's feature spec), not a vertical slice with an implementation task manifest. STATUS.md records "founding now waits on the Phase-2 slice-map"; Phase 2 is not started (docs/slices/ holds only the README; 2 of 8 features specced), and the slice-map + to-tickets steps that emit implementable DAG-ordered tickets are human-gated. Until they run there is no seam/interface for the swarm to build and test against, so I'm not implementing this here.

**Sandcastle note (not implementable yet — leaving open):** this is a `to-spec` output (founding's feature spec), not a vertical slice with an implementation task manifest. STATUS.md records "founding now waits on the Phase-2 slice-map"; Phase 2 is not started (`docs/slices/` holds only the README; 2 of 8 features specced), and the slice-map + `to-tickets` steps that emit implementable DAG-ordered tickets are human-gated. Until they run there is no seam/interface for the swarm to build and test against, so I'm not implementing this here.
Author
Owner

Not an executable slice for the swarm yet — this is the published feature spec, not an implementation ticket.

Same situation as #13: the swarm implements the per-slice tickets to-tickets emits after the Phase-2 slice-map, which has not run (no docs/slices/*.yaml), and there is no repo skeleton / seam packages to build the founding orchestrator against (Phase 2.5 incomplete, ADR 0040). Attempting the whole feature would break one-slice-per-iteration and stay-in-scope. Consider dropping ready-for-agent from the spec issues so the ready-list surfaces implementation tickets rather than specs. Leaving open; no code changed.

**Not an executable slice for the swarm yet — this is the published feature spec, not an implementation ticket.** Same situation as #13: the swarm implements the per-slice tickets `to-tickets` emits after the Phase-2 slice-map, which has not run (no `docs/slices/*.yaml`), and there is no repo skeleton / seam packages to build the `founding` orchestrator against (Phase 2.5 incomplete, ADR 0040). Attempting the whole feature would break one-slice-per-iteration and stay-in-scope. Consider dropping `ready-for-agent` from the spec issues so the ready-list surfaces implementation tickets rather than specs. Leaving open; no code changed.
Author
Owner

Closed in the 2026-08-27 other-state sweep (Ben's ruling) — child spec complete: all 11 founding slices done, all 25 derived tickets closed; Phase-1 VM e2e green through Nextcloud 2026-08-24.

Closed in the 2026-08-27 `other`-state sweep (Ben's ruling) — child spec complete: all 11 founding slices done, all 25 derived tickets closed; Phase-1 VM e2e green through Nextcloud 2026-08-24.
ben closed this issue 2026-08-27 04:43:45 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#11
No description provided.