Engine adapters — child spec: the six families that make the fleet real #161

Closed
opened 2026-07-29 05:00:23 +00:00 by ben · 2 comments
Owner

Parent

Wayfinder map: #7 (OurCloud v1 program scope — Phase 0). The arc was scoped on wayfinder ticket #160 (2026-07-28; Ben ruled the substrate and swarm-entry live: per-family clan-lab smokes + a real-hardware close-out, tickets arm the swarm). This child spec consumes the engine-adapters grill (2026-07-28, auto-accept mode, engineering tree only): ADRs 0102–0107, all accepted with agent-decided provenance — Ben's post-hoc review pending.

No flow, no wireframes — deliberately. The arc adds no screen and changes no journey: every surface it feeds is already built and transport-wired, and the adapters change what answers, never what is asked or shown. Per the DDR 0093 precedent (a justified substitute for a missing artifact class), the design contract here is the confirmed seams (docs/seams/clan.md, docs/seams/agent-control-plane.md, docs/seams/theming.md — all status: confirmed; they do not move without an ADR) plus ADRs 0102–0107. design-verify's Design axis checks this arc at the seams, not at wireframes.

Problem Statement

The production control plane runs resting orchestrators: reads project an honest freshly-founded state, and every engine write port fails loud (ADR 0100). The operator can see every surface and drive every flow — but a confirmed deploy, a backup run, an approved member, a raised alert's email, a rescue rung all end in a truthful 4xx. The platform tests as UI + transport; it does not yet operate a fleet. This arc is the single gate between those two states.

Solution

Six adapter families (CONTEXT.md: Engine adapter), each replacing its resting stubs whole in the composition root while unwired neighbours keep failing loud (ADR 0107):

  1. clan adapter (ADR 0102) — the real clan.Clan drives the pinned clan CLI headlessly; the control plane is the community config repo's single writer; commit-then-apply-exact-revision; layered outcome classification (S13 + Q2.2 evidence).
  2. Durable stores (ADR 0103) — runtime ledgers as jsonstore.File documents in the control plane's state directory; rebuild-surviving documents (access matrix, backup policy, operator-key ledger) as config-repo commits; the fleet-state store as a projection over inventory + enroll ledger, never a parallel database.
  3. Backup engine (ADR 0104) — executes port-declared verbs on owning nodes over the fleet's SSH trust; targets hold age-sealed artifacts + the self-describing JSON inventory; no foreign repository format; Identity's built-in contract is the proving dataset.
  4. kanidm idp adapter (ADR 0105) — drives kanidm's REST API on the internal listener; runtime people are the adapter's alone — declarative re-provisioning never touches them.
  5. Notifier (ADR 0106) — SMTP submission to Matou-operated mail as notify@mail.matou.nz (#85's standing ruling, wired); a failed delivery is logged, never silent, and never loses the app-channel raise.
  6. Fleet composition close-out (ADR 0107) — cross-orchestrator ports become injected views of the real orchestrators; the heartbeat stream feeds monitoring; Settings' brand-kit Apply goes real through the clan adapter's commit-and-deploy path; the monitor aggregation loop starts only when the composition root is whole.

User Stories

Acceptance criteria are Given/When/Then at the confirmed seams and the feature orchestrators' existing test seams (ADRs 0069/0077/0079/0086 et al.) — the same seams the resting composition already serves, now answered by real adapters.

Family 1 — clan adapter

  1. As an operator, I want a confirmed deploy to really converge the fleet, so that "deployed" on the dashboard means machines actually changed.
    • Given an enrolled device and a reviewed setup, When I confirm the deploy, Then the adapter commits the change and applies that exact revision headlessly (no TTY, no prompt hang), and the device goes active only for services whose health checks passed (P4-S5/S5x semantics unchanged).
    • Given a config that does not evaluate, a missing var, or an unreachable node, When the deploy runs, Then the outcome is classified config_eval / missing_var / connectivity with a legible operator-facing message — connectivity classified before secrets, signal-kills by exit code — never a masked success (FailMaskedExit reserved for activation time).
  2. As an operator, I want rollback to deploy the earlier known-good revision, so that a bad change is undone without git revert conflicts breaking eval.
    • Given a fleet on revision N with known-good N−1, When rollback runs, Then N−1 is applied as an exact revision and the tree is never left with conflict markers (a marker-bearing tree is refused before commit, config_eval).
  3. As a device owner, I want enrolment's install verbs real, so that a full-install takeover or VM join driven from the fleet actually executes.
    • Given a takeover-ready device (Q2.2 contract: captured network facts, MAC-matched networkd config, hybrid BIOS+UEFI layout), When the takeover is driven, Then the host is overwritten to NixOS and comes back a clan member over the established trust, with --phases resumability on interruption.
  4. As the control plane, I want to be the config repo's single writer, so that no two writers race a commit.
    • Given concurrent mutation requests (inventory edit + policy confirm), When both land, Then they serialise into two clean commits through one writer and the repo replica syncs both, read-only downstream.
  5. As a rescue, I want Supply to seed closures onto a node over the established connection, so that a cache-starved node can evaluate and deploy offline (S13 Q4).

Family 2 — durable stores

  1. As an operator, I want ledgers to survive a control-plane restart, so that open invites, enrollment codes, reset links, and member records don't vanish with a process.
    • Given an open invite and a minted enrollment code, When the control plane restarts, Then both are still in their ledgers (state-directory documents), and a corrupted document is refused loudly (Check), never silently reset.
    • Given the operator app's repo replica, When it syncs, Then no live invite/reset/code token is in it (ADR 0078 §3 — runtime ledgers are not config-repo files).
  2. As a community, I want rebuild-surviving truth in the config repo, so that Tier-3 recovers it.
    • Given a confirmed backup policy, an access-matrix change, and an operator-key mint/revoke, When each lands, Then it is a commit through the single-writer path, visible in the repo replica, and a rebuild-from-checkout resumes from it with no one re-entering anything (ADR 0082 §1, 0089).
  3. As the fleet, I want fleet state read from the config repo's inventory + the enroll ledger, so that no parallel device database can drift from what clan deploys.
    • Given a device enrolled and placed, When the fleet-state store is read, Then its devices/datasets/gaps derive from those two sources only, and the P4/P5/P7 reads (assess, silence classification, target recommendation) see the same fleet.

Family 3 — backup engine

  1. As an operator, I want a confirmed policy to produce real verified coverage, so that "covered" means restorable.
    • Given Identity's built-in contract and a confirmed policy with a cross-device target, When the scheduled run executes, Then the port's snapshot verb runs on the owning node, the artifact is age-sealed with the dataset's crown-jewel key, replicated to the target beside an updated TargetInventory, and the sampled restore test passes before the copy counts in coverage.
    • Given a run that did not complete before the next was due, When coverage is read, Then the dataset is stale — a failure as loud as an honest one (DDR 0083).
  2. As a community facing rebuild-from-nothing, I want any target readable with keys + standard tooling alone, so that no third-party tool or index stands between me and my data.
    • Given a target holding sealed moments, When it is read with only the community's keys and age, Then every dataset/moment/verification fact is recoverable from the inventory JSON and the artifacts (ADR 0082 §2; no restic/borg — ADR 0104).
  3. As an operator, I want in-place restore deliberate and safe, so that nothing half-applied is called done.
    • Given a verified moment, When I run an in-place restore, Then the pre-restore snapshot is taken first, the port's quiesce/resume bracket the replacement, the restore verifies before it is done, and a mid-way failure falls back to the pre-restore snapshot with the failure named and retryable (P7-S5x semantics).
  4. As an operator, I want honest capacity behaviour, so that a run never claims space it doesn't have: Given a target without headroom, When a run starts, Then it is refused with the reason named, and retention pruning frees whole snapshots per policy only.
  5. As an operator, I want export to reuse the sealed artifact path: Given a dataset, When I export, Then a fresh sealed snapshot is packaged and downloadable, logged, with no second packaging path.

Family 4 — kanidm idp adapter

  1. As an operator, I want member acts to reach the real IdP, so that approve/suspend/remove/reset change what people can actually do.
    • Given a signup awaiting approval, When I approve, Then a real kanidm person exists (enabled), propagated over OIDC; When I suspend, Then the gate projection denies now and the kanidm account disable rides with it (ADR 0074's two moves); When I mint a reset link, Then it wraps kanidm's native reset token, branded, blocked while suspended.
    • Given komiti CRUD, When a komiti is created/renamed/deleted, Then it is a kanidm group under the reserved komiti naming discipline, never shown among or colliding with operators/members/kaitiaki, and deleting it closes doors without touching accounts.
  2. As a community, I want runtime people to survive redeploys, so that fleet operations never erase members.
    • Given a person and a komiti created through the adapter, When the gateway is redeployed (declarative provisioning re-applies), Then both survive untouched (ADR 0105's load-bearing rule).

Family 5 — Notifier

  1. As an operator, I want a raised alert to really reach the community alert contact, so that I hear about outages outside the app.
    • Given a configured alert contact and a raised alert, When delivery runs, Then a real email is submitted from notify@mail.matou.nz carrying severity, diagnosis, and advised action per the existing notification shape; Given delivery fails, Then the failure is retried bounded, recorded in the log pipeline, and the operator-app channel still carries the raise — never a silent loss, never a fabricated success.

Family 6 — fleet composition close-out

  1. As an operator, I want the dashboard's truth loops closed, so that monitoring watches the real fleet.
    • Given real agents reporting heartbeats, When the composition root is whole, Then the aggregation loop starts (never earlier — ADR 0107), silence is classified against each node's own pattern (DDR 0071), and an acknowledge's pattern tuning survives a control-plane restart (state-directory document).
  2. As an operator, I want rescue's rungs to drive the real machinery, so that a restore rung restores and a resolve resolves.
    • Given an escalated incident, When the restore rung runs, Then it hands to the real backup orchestrator's in-place restore; When a rung recovers the service, Then the real monitor's alert returns to watching; When the remove rung reviews impact, Then it is the real provisioning surface's destructive-confirm path — all injected views, never copies (ADR 0107), composed behind #158's mounts.
  3. As an operator, I want Settings' brand-kit Apply real, so that a brand change re-applies everywhere.
    • Given a validated kit, When I apply, Then the compiled artifacts land as a config-repo commit and deploy through the clan adapter, and every surface re-themes (theming seam contract unchanged).

Implementation Decisions

  • The six families and their mechanics are ADRs 0102–0107; this spec adds no decision over them. Composition rule: a family lands whole or its resting stubs stay (ADR 0107); every intermediate state of main.go remains ADR-0100-honest.
  • The adapters implement behind confirmed seams; a seam contract does not move without an ADR. The S13/Q2.2 classifier and takeover findings are contract, not guidance.
  • The Notifier wires #85's standing ruling; the channel decision is not reopened by this arc.
  • Out-of-band reconciler verbs (backup contracts, service provisioning) ride the channel AttachService already admits — no new transport to nodes.

Testing Decisions

  • Seam tests stay fake-driven and remain the acceptance instrument. Every family keeps driving its orchestrator seam with the existing …/testing fakes; adapters additionally get contract tests where a real dependency can be faked at the process boundary (a scripted clan CLI double, a local SMTP sink, a kanidm test instance where cheap). Prior art: the seam-test suites the resting composition already runs, the S13/Q2.2 classifier scripts, the golden corpus pattern.
  • Per-family clan-lab smoke — a family is proven only when its smoke passes (Ben's ruling on #160; this upgrades the standing "non-gating real-lab smoke" pattern for this arc). Each family's closing slice is followed by a smoke slice on the DigitalOcean clan-lab (clan-lab/lab-dns skills): deploy/rollback/enroll/classify (F1); restart-survival + replica hygiene (F2); snapshot→replicate→verify→restore + raw-target read (F3); member lifecycle + redeploy-survival (F4); real submission to a mail sink (F5); heartbeats→silence→alert→email + rescue rung end-to-end (F6). These smokes are where the eight feature specs' standing non-gating smokes (#11 #13 #17 #18 #19 #20 #21 #22) first become executable — each smoke slice cross-references the matching spec clause.
  • Arc close-out: one end-to-end journey on real hardware — found → enrol → provision → back up → invite → alert → rescue — ready-for-human (Ben supplies the machines). The arc is not done until this passes; STATUS.md's "Honest limits" resting paragraph retires with it (ADR 0107).

Out of Scope

(Boundary lines from wayfinder #160.)

  • Updates' signed release source + rollout mechanics — needs the Matou-side channel/supply chain (binary cache, signed releases — S13 Q9); its own later arc. restingReleaseSource stays resting; #149 stays a transport slice.
  • Real catalogue service ports beyond a reference service — the fixed v1 catalogue's growth is bootstrap-orbit engineering; where a smoke needs a deployed service, the S13 Garage port is the reference.
  • The public-signup face's transport; the broker; healer arming; and the transport frontier slices themselves (#149/#151/#156/#158) — though this arc's rescue wiring composes behind #158.

Further Notes

  • Everything here is agent-decided under the auto-accept precedent except the two decisions Ben ruled live on #160 (substrate; swarm entry). needs_human_decision is empty on every slice except the real-hardware close-out, which is ready-for-human by construction.
  • Slice granularity, cross-feature edges (notably into #158), and ticket manifests follow in docs/slices/engine-adapters.yaml via /slice-map → /to-tickets this session.
## Parent Wayfinder map: #7 (OurCloud v1 program scope — Phase 0). The arc was scoped on wayfinder ticket #160 (2026-07-28; **Ben ruled the substrate and swarm-entry live**: per-family clan-lab smokes + a real-hardware close-out, tickets arm the swarm). This child spec consumes the engine-adapters grill (2026-07-28, auto-accept mode, engineering tree only): **ADRs 0102–0107**, all `accepted` with **agent-decided provenance — Ben's post-hoc review pending**. **No flow, no wireframes — deliberately.** The arc adds no screen and changes no journey: every surface it feeds is already built and transport-wired, and the adapters change *what answers*, never *what is asked or shown*. Per the DDR 0093 precedent (a justified substitute for a missing artifact class), the design contract here is the **confirmed seams** (`docs/seams/clan.md`, `docs/seams/agent-control-plane.md`, `docs/seams/theming.md` — all `status: confirmed`; they do not move without an ADR) plus ADRs 0102–0107. `design-verify`'s Design axis checks this arc at the seams, not at wireframes. ## Problem Statement The production control plane runs *resting* orchestrators: reads project an honest freshly-founded state, and every engine write port **fails loud** (ADR 0100). The operator can see every surface and drive every flow — but a confirmed deploy, a backup run, an approved member, a raised alert's email, a rescue rung all end in a truthful 4xx. The platform tests as UI + transport; it does not yet operate a fleet. This arc is the single gate between those two states. ## Solution Six **adapter families** (CONTEXT.md: *Engine adapter*), each replacing its resting stubs whole in the composition root while unwired neighbours keep failing loud (ADR 0107): 1. **clan adapter** (ADR 0102) — the real `clan.Clan` drives the pinned clan CLI headlessly; the control plane is the community config repo's single writer; commit-then-apply-exact-revision; layered outcome classification (S13 + Q2.2 evidence). 2. **Durable stores** (ADR 0103) — runtime ledgers as `jsonstore.File` documents in the control plane's state directory; rebuild-surviving documents (access matrix, backup policy, operator-key ledger) as config-repo commits; the fleet-state store as a projection over inventory + enroll ledger, never a parallel database. 3. **Backup engine** (ADR 0104) — executes port-declared verbs on owning nodes over the fleet's SSH trust; targets hold age-sealed artifacts + the self-describing JSON inventory; no foreign repository format; Identity's built-in contract is the proving dataset. 4. **kanidm idp adapter** (ADR 0105) — drives kanidm's REST API on the internal listener; runtime people are the adapter's alone — declarative re-provisioning never touches them. 5. **Notifier** (ADR 0106) — SMTP submission to Matou-operated mail as `notify@mail.matou.nz` (#85's standing ruling, wired); a failed delivery is logged, never silent, and never loses the app-channel raise. 6. **Fleet composition close-out** (ADR 0107) — cross-orchestrator ports become injected views of the real orchestrators; the heartbeat stream feeds monitoring; Settings' brand-kit **Apply** goes real through the clan adapter's commit-and-deploy path; the monitor aggregation loop starts only when the composition root is whole. ## User Stories Acceptance criteria are Given/When/Then **at the confirmed seams and the feature orchestrators' existing test seams** (ADRs 0069/0077/0079/0086 et al.) — the same seams the resting composition already serves, now answered by real adapters. **Family 1 — clan adapter** 1. As an operator, I want a confirmed deploy to really converge the fleet, so that "deployed" on the dashboard means machines actually changed. - Given an enrolled device and a reviewed setup, When I confirm the deploy, Then the adapter commits the change and applies that exact revision headlessly (no TTY, no prompt hang), and the device goes *active* only for services whose health checks passed (P4-S5/S5x semantics unchanged). - Given a config that does not evaluate, a missing var, or an unreachable node, When the deploy runs, Then the outcome is classified `config_eval` / `missing_var` / `connectivity` with a legible operator-facing message — connectivity classified before secrets, signal-kills by exit code — never a masked success (`FailMaskedExit` reserved for activation time). 2. As an operator, I want rollback to deploy the earlier known-good revision, so that a bad change is undone without `git revert` conflicts breaking eval. - Given a fleet on revision N with known-good N−1, When rollback runs, Then N−1 is applied as an exact revision and the tree is never left with conflict markers (a marker-bearing tree is refused before commit, `config_eval`). 3. As a device owner, I want enrolment's install verbs real, so that a full-install takeover or VM join driven from the fleet actually executes. - Given a takeover-ready device (Q2.2 contract: captured network facts, MAC-matched networkd config, hybrid BIOS+UEFI layout), When the takeover is driven, Then the host is overwritten to NixOS and comes back a clan member over the established trust, with `--phases` resumability on interruption. 4. As the control plane, I want to be the config repo's single writer, so that no two writers race a commit. - Given concurrent mutation requests (inventory edit + policy confirm), When both land, Then they serialise into two clean commits through one writer and the repo replica syncs both, read-only downstream. 5. As a rescue, I want `Supply` to seed closures onto a node over the established connection, so that a cache-starved node can evaluate and deploy offline (S13 Q4). **Family 2 — durable stores** 6. As an operator, I want ledgers to survive a control-plane restart, so that open invites, enrollment codes, reset links, and member records don't vanish with a process. - Given an open invite and a minted enrollment code, When the control plane restarts, Then both are still in their ledgers (state-directory documents), and a corrupted document is refused loudly (`Check`), never silently reset. - Given the operator app's repo replica, When it syncs, Then no live invite/reset/code token is in it (ADR 0078 §3 — runtime ledgers are not config-repo files). 7. As a community, I want rebuild-surviving truth in the config repo, so that Tier-3 recovers it. - Given a confirmed backup policy, an access-matrix change, and an operator-key mint/revoke, When each lands, Then it is a commit through the single-writer path, visible in the repo replica, and a rebuild-from-checkout resumes from it with no one re-entering anything (ADR 0082 §1, 0089). 8. As the fleet, I want fleet state read from the config repo's inventory + the enroll ledger, so that no parallel device database can drift from what clan deploys. - Given a device enrolled and placed, When the fleet-state store is read, Then its devices/datasets/gaps derive from those two sources only, and the P4/P5/P7 reads (assess, silence classification, target recommendation) see the same fleet. **Family 3 — backup engine** 9. As an operator, I want a confirmed policy to produce real verified coverage, so that "covered" means restorable. - Given Identity's built-in contract and a confirmed policy with a cross-device target, When the scheduled run executes, Then the port's snapshot verb runs on the owning node, the artifact is age-sealed with the dataset's crown-jewel key, replicated to the target beside an updated `TargetInventory`, and the sampled restore test passes before the copy counts in coverage. - Given a run that did not complete before the next was due, When coverage is read, Then the dataset is *stale* — a failure as loud as an honest one (DDR 0083). 10. As a community facing rebuild-from-nothing, I want any target readable with keys + standard tooling alone, so that no third-party tool or index stands between me and my data. - Given a target holding sealed moments, When it is read with only the community's keys and `age`, Then every dataset/moment/verification fact is recoverable from the inventory JSON and the artifacts (ADR 0082 §2; no restic/borg — ADR 0104). 11. As an operator, I want in-place restore deliberate and safe, so that nothing half-applied is called done. - Given a verified moment, When I run an in-place restore, Then the pre-restore snapshot is taken first, the port's quiesce/resume bracket the replacement, the restore verifies before it is *done*, and a mid-way failure falls back to the pre-restore snapshot with the failure named and retryable (P7-S5x semantics). 12. As an operator, I want honest capacity behaviour, so that a run never claims space it doesn't have: Given a target without headroom, When a run starts, Then it is refused with the reason named, and retention pruning frees whole snapshots per policy only. 13. As an operator, I want export to reuse the sealed artifact path: Given a dataset, When I export, Then a fresh sealed snapshot is packaged and downloadable, logged, with no second packaging path. **Family 4 — kanidm idp adapter** 14. As an operator, I want member acts to reach the real IdP, so that approve/suspend/remove/reset change what people can actually do. - Given a signup awaiting approval, When I approve, Then a real kanidm person exists (enabled), propagated over OIDC; When I suspend, Then the gate projection denies now and the kanidm account disable rides with it (ADR 0074's two moves); When I mint a reset link, Then it wraps kanidm's native reset token, branded, blocked while suspended. - Given komiti CRUD, When a komiti is created/renamed/deleted, Then it is a kanidm group under the reserved komiti naming discipline, never shown among or colliding with `operators`/`members`/`kaitiaki`, and deleting it closes doors without touching accounts. 15. As a community, I want runtime people to survive redeploys, so that fleet operations never erase members. - Given a person and a komiti created through the adapter, When the gateway is redeployed (declarative provisioning re-applies), Then both survive untouched (ADR 0105's load-bearing rule). **Family 5 — Notifier** 16. As an operator, I want a raised alert to really reach the community alert contact, so that I hear about outages outside the app. - Given a configured alert contact and a raised alert, When delivery runs, Then a real email is submitted from `notify@mail.matou.nz` carrying severity, diagnosis, and advised action per the existing notification shape; Given delivery fails, Then the failure is retried bounded, recorded in the log pipeline, and the operator-app channel still carries the raise — never a silent loss, never a fabricated success. **Family 6 — fleet composition close-out** 17. As an operator, I want the dashboard's truth loops closed, so that monitoring watches the real fleet. - Given real agents reporting heartbeats, When the composition root is whole, Then the aggregation loop starts (never earlier — ADR 0107), silence is classified against each node's own pattern (DDR 0071), and an acknowledge's pattern tuning survives a control-plane restart (state-directory document). 18. As an operator, I want rescue's rungs to drive the real machinery, so that a restore rung restores and a resolve resolves. - Given an escalated incident, When the restore rung runs, Then it hands to the real backup orchestrator's in-place restore; When a rung recovers the service, Then the real monitor's alert returns to *watching*; When the remove rung reviews impact, Then it is the real provisioning surface's destructive-confirm path — all injected views, never copies (ADR 0107), composed behind #158's mounts. 19. As an operator, I want Settings' brand-kit Apply real, so that a brand change re-applies everywhere. - Given a validated kit, When I apply, Then the compiled artifacts land as a config-repo commit and deploy through the clan adapter, and every surface re-themes (theming seam contract unchanged). ## Implementation Decisions - The six families and their mechanics are ADRs 0102–0107; this spec adds no decision over them. Composition rule: **a family lands whole or its resting stubs stay** (ADR 0107); every intermediate state of `main.go` remains ADR-0100-honest. - The adapters implement **behind confirmed seams**; a seam contract does not move without an ADR. The S13/Q2.2 classifier and takeover findings are contract, not guidance. - The Notifier wires #85's standing ruling; the channel decision is **not** reopened by this arc. - Out-of-band reconciler verbs (backup contracts, service provisioning) ride the channel `AttachService` already admits — no new transport to nodes. ## Testing Decisions - **Seam tests stay fake-driven and remain the acceptance instrument.** Every family keeps driving its orchestrator seam with the existing `…/testing` fakes; adapters additionally get contract tests where a real dependency can be faked at the process boundary (a scripted `clan` CLI double, a local SMTP sink, a kanidm test instance where cheap). Prior art: the seam-test suites the resting composition already runs, the S13/Q2.2 classifier scripts, the golden corpus pattern. - **Per-family clan-lab smoke — a family is *proven* only when its smoke passes** (Ben's ruling on #160; this upgrades the standing "non-gating real-lab smoke" pattern *for this arc*). Each family's closing slice is followed by a smoke slice on the DigitalOcean clan-lab (`clan-lab`/`lab-dns` skills): deploy/rollback/enroll/classify (F1); restart-survival + replica hygiene (F2); snapshot→replicate→verify→restore + raw-target read (F3); member lifecycle + redeploy-survival (F4); real submission to a mail sink (F5); heartbeats→silence→alert→email + rescue rung end-to-end (F6). **These smokes are where the eight feature specs' standing non-gating smokes (#11 #13 #17 #18 #19 #20 #21 #22) first become executable** — each smoke slice cross-references the matching spec clause. - **Arc close-out: one end-to-end journey on real hardware** — found → enrol → provision → back up → invite → alert → rescue — `ready-for-human` (Ben supplies the machines). The arc is not *done* until this passes; STATUS.md's "Honest limits" resting paragraph retires with it (ADR 0107). ## Out of Scope (Boundary lines from wayfinder #160.) - **Updates' signed release source + rollout mechanics** — needs the Matou-side channel/supply chain (binary cache, signed releases — S13 Q9); its own later arc. `restingReleaseSource` stays resting; #149 stays a transport slice. - **Real catalogue service ports beyond a reference service** — the fixed v1 catalogue's growth is bootstrap-orbit engineering; where a smoke needs a deployed service, the S13 Garage port is the reference. - **The public-signup face's transport; the broker; healer arming;** and the transport frontier slices themselves (#149/#151/#156/#158) — though this arc's rescue wiring composes behind #158. ## Further Notes - Everything here is **agent-decided** under the auto-accept precedent except the two decisions Ben ruled live on #160 (substrate; swarm entry). `needs_human_decision` is empty on every slice except the real-hardware close-out, which is `ready-for-human` by construction. - Slice granularity, cross-feature edges (notably into #158), and ticket manifests follow in `docs/slices/engine-adapters.yaml` via `/slice-map` → `/to-tickets` this session.
Author
Owner

Arc design closed — what was agent-decided and where to review it

The engine-adapters arc ran the full pipeline in one session (2026-07-28/29): wayfinder → grill → spec → slice-map → tickets. Tickets #162–#183 are armed and the swarm's frontier now holds the arc's roots (#162 clan-adapter-core, #165 store-runtime-ledgers, #171 idp-adapter, #173 notifier-smtp, #174 compose-heartbeat-stream). Everything below is flagged for your post-hoc review, per the auto-accept contract.

You ruled live (nothing to re-review)

  • Substrate (#160 §3): per-family clan-lab smokes gate each family's proven status; the arc closes on an end-to-end real-hardware journey (#183, ready-for-human — you supply the machines).
  • Swarm entry (#160 §4): tickets armed immediately, review post-hoc.

Agent-decided — review here, in priority order

  1. ADR 0104 — the backup engine's on-target format (the least-reversible call): port-verb artifacts age-sealed as plain files + JSON inventory, no restic/borg. Named cost: no dedup/incremental in v1. If you'd rather carry a repo format, say so before family 3 ships — this hardens once snapshots accumulate.
  2. ADR 0103 — store mechanics: runtime ledgers as state-directory jsonstore.File documents; the operator-key ledger goes in the config repo (public material only) while invite/reset/code ledgers stay runtime-only; fleet state is a projection, never a second database.
  3. ADR 0102 — clan adapter: subprocess-drives the pinned CLI; the control plane is the config repo's single writer; commit-then-apply-exact-revision; S13/Q2.2 classifier as contract.
  4. ADR 0105 — kanidm adapter: REST API on the internal listener as the admin identity; declarative provisioning scoped to structural entities only (redeploy must never erase runtime people — smoke #178 proves it); komiti under a reserved group prefix.
  5. ADR 0106 — Notifier: wires your #85 ruling (email from notify@mail.matou.nz) — SMTP submission, bounded retry, loud failure, no durable outbox. Not reopened, just wired.
  6. ADR 0107 — composition: a family lands whole or its stubs stay; cross-orchestrator ports are injected views; the aggregation loop starts only when the root is whole.
  7. Scope boundaries (#160 §6): release source + rollout mechanics stay out (need the Matou channel/supply chain); catalogue growth out (Garage is the smoke's reference service); public signup, broker, healer out.
  8. No UX tree: engineering grill only — the confirmed seams + ADRs are the design contract (DDR 0093 substitute precedent; recorded in ADR 0102's provenance note and this spec).

Artifact index

  • Wayfinder ruling: #160 (indexed on map #7) · ADRs: docs/adr/0102…0107 (0ad12c9) · Slices: docs/slices/engine-adapters.yaml + map.html (126 slices / 240 edges; 9466eb1, 3d63ed5, b0c5895) · Tickets: #162–#183 (22, with task manifests + 27 native dependency edges; compose-cross-orchestrator #180 sits behind the landed #158).
  • One process incident, already repaired: the slice-map commit briefly landed STATUS.md with conflict markers after colliding with the swarm's #158 push — fixed in 3d63ed5.

To pause the swarm on any ticket: swap its label to no-triage. To veto an ADR: mark it superseded and I'll re-run the affected slices' design.

## Arc design closed — what was agent-decided and where to review it The engine-adapters arc ran the full pipeline in one session (2026-07-28/29): wayfinder → grill → spec → slice-map → tickets. **Tickets #162–#183 are armed and the swarm's frontier now holds the arc's roots** (#162 clan-adapter-core, #165 store-runtime-ledgers, #171 idp-adapter, #173 notifier-smtp, #174 compose-heartbeat-stream). Everything below is flagged for your post-hoc review, per the auto-accept contract. ### You ruled live (nothing to re-review) - **Substrate** ([#160](https://git.matou.nz/Matou/ourcloud/issues/160) §3): per-family clan-lab smokes gate each family's *proven* status; the arc closes on an end-to-end real-hardware journey (#183, `ready-for-human` — you supply the machines). - **Swarm entry** (#160 §4): tickets armed immediately, review post-hoc. ### Agent-decided — review here, in priority order 1. **ADR 0104 — the backup engine's on-target format** (the least-reversible call): port-verb artifacts **age-sealed as plain files + JSON inventory, no restic/borg**. Named cost: no dedup/incremental in v1. If you'd rather carry a repo format, say so before family 3 ships — this hardens once snapshots accumulate. 2. **ADR 0103 — store mechanics**: runtime ledgers as state-directory `jsonstore.File` documents; **the operator-key ledger goes in the config repo** (public material only) while invite/reset/code ledgers stay runtime-only; fleet state is a projection, never a second database. 3. **ADR 0102 — clan adapter**: subprocess-drives the pinned CLI; **the control plane is the config repo's single writer**; commit-then-apply-exact-revision; S13/Q2.2 classifier as contract. 4. **ADR 0105 — kanidm adapter**: REST API on the internal listener as the admin identity; **declarative provisioning scoped to structural entities only** (redeploy must never erase runtime people — smoke #178 proves it); komiti under a reserved group prefix. 5. **ADR 0106 — Notifier**: wires your #85 ruling (email from `notify@mail.matou.nz`) — SMTP submission, bounded retry, loud failure, no durable outbox. Not reopened, just wired. 6. **ADR 0107 — composition**: a family lands whole or its stubs stay; cross-orchestrator ports are injected views; **the aggregation loop starts only when the root is whole**. 7. **Scope boundaries** (#160 §6): release source + rollout mechanics stay out (need the Matou channel/supply chain); catalogue growth out (Garage is the smoke's reference service); public signup, broker, healer out. 8. **No UX tree**: engineering grill only — the confirmed seams + ADRs are the design contract (DDR 0093 substitute precedent; recorded in ADR 0102's provenance note and this spec). ### Artifact index - Wayfinder ruling: #160 (indexed on map #7) · ADRs: `docs/adr/0102…0107` (`0ad12c9`) · Slices: `docs/slices/engine-adapters.yaml` + `map.html` (126 slices / 240 edges; `9466eb1`, `3d63ed5`, `b0c5895`) · Tickets: #162–#183 (22, with task manifests + 27 native dependency edges; `compose-cross-orchestrator` #180 sits behind the landed #158). - One process incident, already repaired: the slice-map commit briefly landed STATUS.md with conflict markers after colliding with the swarm's #158 push — fixed in `3d63ed5`. To pause the swarm on any ticket: swap its label to `no-triage`. To veto an ADR: mark it `superseded` and I'll re-run the affected slices' design.
Author
Owner

Closed in the 2026-08-27 other-state sweep (Ben's ruling) — child spec complete: 23/23 engine-adapter slices done incl. the #183 real-hardware closeout (closed 2026-08-26).

Closed in the 2026-08-27 `other`-state sweep (Ben's ruling) — child spec complete: 23/23 engine-adapter slices done incl. the #183 real-hardware closeout (closed 2026-08-26).
ben closed this issue 2026-08-27 04:44:00 +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#161
No description provided.