Engine-adapters arc — scope: the v1 adapter families, validation substrate, and sequencing #160

Closed
opened 2026-07-29 04:50:49 +00:00 by ben · 1 comment
Owner

Question

The production control plane runs resting orchestrators: reads project an honest freshly-founded state, and every engine write port fails loud (ADR 0100 bars fakes in production). The engine-adapters arc — flagged in STATUS.md's "Known later slices" and named as future map work by the backups-rescue-live handback — builds the real production adapters behind those ports. Scope it:

  1. Which adapter families are in the arc's v1? The resting stubs in control-plane/cmd/control-plane/main.go enumerate the candidate ports: the clan seam (deploys, node lifecycle), the backup engine's eight write verbs, the provisioning deploy engine, the member orchestrator's twelve ports (incl. the kanidm idp), monitoring's Notifier, the rescue orchestrators' adapter set, the fleet-state/heartbeat inputs, and updates' release source.
  2. What substrate proves the adapters for v1 — the DigitalOcean clan-lab (the spike substrate) or real hardware?
  3. What sequencing constraints bind the arc — internally (which family roots the others) and against the transport frontier (#149/#151/#156/#158)?

Parent

Wayfinder map — OurCloud v1 program scope (Phase 0): #7

## Question The production control plane runs *resting* orchestrators: reads project an honest freshly-founded state, and every engine write port **fails loud** (ADR 0100 bars fakes in production). The **engine-adapters arc** — flagged in STATUS.md's "Known later slices" and named as future map work by the [backups-rescue-live handback](https://git.matou.nz/Matou/ourcloud/issues/130) — builds the real production adapters behind those ports. Scope it: 1. **Which adapter families are in the arc's v1?** The resting stubs in `control-plane/cmd/control-plane/main.go` enumerate the candidate ports: the clan seam (deploys, node lifecycle), the backup engine's eight write verbs, the provisioning deploy engine, the member orchestrator's twelve ports (incl. the kanidm idp), monitoring's `Notifier`, the rescue orchestrators' adapter set, the fleet-state/heartbeat inputs, and updates' release source. 2. **What substrate proves the adapters for v1** — the DigitalOcean clan-lab (the spike substrate) or real hardware? 3. **What sequencing constraints bind the arc** — internally (which family roots the others) and against the transport frontier (#149/#151/#156/#158)? ## Parent Wayfinder map — OurCloud v1 program scope (Phase 0): #7
ben self-assigned this 2026-07-29 04:50:49 +00:00
Author
Owner

Resolution — the engine-adapters arc, scoped

Worked 2026-07-28 (agent-run per the auto-accept precedent). Ben ruled the two starred decisions live in-session; everything else is agent-decided and flagged for his post-hoc review.

1. What the arc is

The single gate between "dashboard + transport testable" (true today) and "OurCloud operates a real fleet": the resting orchestrators' fail-loud write ports (ADR 0100) get real backings, family by family, each family ending by replacing its resting stubs in the composition root (control-plane/cmd/control-plane/main.go) while every still-unwired neighbour keeps failing loud.

2. The v1 adapter families (agent-decided)

Six families:

  1. clan adapter — the real clan.Clan driving the pinned clan CLI headlessly, per S13's proven runner mechanics (commit-then-apply-exact-revision, layered outcome classification, conflict-marker refusal, Supply closure seeding) and Q2.2's takeover reconciliations. One adapter serves provisioning's deploy engine, rescue's rungs, and founding's stand-up.
  2. Durable config-repo store — the shared single-writer-document discipline backing every Load/Save ledger port (the fleet-state store, members' three ledgers, rescue's operator-key ledger, backup policy) plus the standing audit/log pipeline (ADR 0027), homed per the state-homes ADRs (0078/0082/0089).
  3. Backup engine — executes port-declared backup contracts (ADR 0080): snapshot / replicate / verify-sample / restore (in-place with quiesce–resume) / headroom over backup targets with self-describing inventories (ADR 0082); snapshots always encrypted with crown-jewel keys (DDR 0085). Identity's built-in contract is the v1-present dataset the engine is proven on.
  4. IdP adapter — real kanidm behind the member orchestrator's idp port (person / komiti / kaitiaki / reset-token verbs), per the kanidm/Netbird spike (pin kanidmWithSecretProvisioning_1_10; reset links ride kanidm's native reset token).
  5. Notifier — carries #85's standing ruling forward unchanged: email, sent from Matou-operated mail as notify@mail.matou.nz, for now — the alert channel stays independent of the fleet being monitored; the port stays channel-agnostic.
  6. Fleet composition close-out — the cross-orchestrator wiring that makes the composition root whole (rescue's Restorer = the real backup orchestrator, AlertResolver = monitor, Provisioning = provision; members' rescue and reconciler reads; the heartbeat stream feeding monitoring) and starts the monitor aggregation loop — the arc's fan-in.

3. ★ Validation substrate (Ben's ruling, live 2026-07-28): lab-gated + hardware close-out

Each family carries an executable clan-lab smoke as its own follow-on slice — the family counts as proven only when its smoke passes on the DigitalOcean clan-lab (the spike substrate; clan-lab / lab-dns skills). This is where the feature specs' standing "non-gating real-lab smoke" clauses become executable — the spec cross-links them. The arc closes with one end-to-end journey on real hardware (found → enrol → provision → back up → invite → alert → rescue), a ready-for-human close-out ticket — Ben supplies the machines.

4. ★ Swarm entry (Ben's ruling, live 2026-07-28): arm immediately

Tickets ship ready-for-agent with native depends_on edges; the live swarm builds in dependency order. The arc's ADRs/DDRs are agent-decided-flagged; Ben reviews post-hoc.

5. Sequencing constraints (agent-decided)

  • Families 1 (clan adapter) and 2 (durable store) are the arc's roots; families 3–5 build on them independently; family 6 fans in last (the aggregation loop needs the fleet-state store, the heartbeat stream, and backups' coverage all real).
  • The rescue surfaces' composition is #158's (transport): family 6's rescue wiring lands behind #158 — a cross-feature edge the slice-map makes explicit.
  • The arc adds no edge into #149/#151/#156 — those stay transport work on their own frontier.

6. Out of scope (boundary lines)

  • Updates' signed release source + rollout mechanics — both need the Matou-side channel and supply chain (binary cache, signed releases — S13 Q9) that doesn't exist yet; that is its own later arc. restingReleaseSource stays resting; #149 stays a transport slice.
  • Real catalogue service ports beyond a reference service — v1's catalogue is fixed and growing it is bootstrap-orbit engineering (ruled on the v1 feature set). Where a smoke needs a deployed catalogue 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).
## Resolution — the engine-adapters arc, scoped Worked 2026-07-28 (agent-run per the auto-accept precedent). **Ben ruled the two starred decisions live in-session**; everything else is agent-decided and flagged for his post-hoc review. ### 1. What the arc is The single gate between "dashboard + transport testable" (true today) and "OurCloud operates a real fleet": the resting orchestrators' fail-loud write ports (ADR 0100) get real backings, family by family, each family ending by replacing its resting stubs in the composition root (`control-plane/cmd/control-plane/main.go`) while every still-unwired neighbour keeps failing loud. ### 2. The v1 adapter families *(agent-decided)* Six families: 1. **clan adapter** — the real `clan.Clan` driving the pinned clan CLI headlessly, per [S13's proven runner mechanics](https://git.matou.nz/Matou/ourcloud/src/branch/main/docs/spike-findings/S13-clan-orchestration.md) (commit-then-apply-exact-revision, layered outcome classification, conflict-marker refusal, `Supply` closure seeding) and [Q2.2's takeover reconciliations](https://git.matou.nz/Matou/ourcloud/src/branch/main/docs/spike-findings/q22-fresh-host-takeover.md). One adapter serves provisioning's deploy engine, rescue's rungs, and founding's stand-up. 2. **Durable config-repo store** — the shared single-writer-document discipline backing every Load/Save ledger port (the fleet-state store, members' three ledgers, rescue's operator-key ledger, backup policy) plus the standing audit/log pipeline (ADR 0027), homed per the state-homes ADRs (0078/0082/0089). 3. **Backup engine** — executes port-declared backup contracts (ADR 0080): snapshot / replicate / verify-sample / restore (in-place with quiesce–resume) / headroom over backup targets with self-describing inventories (ADR 0082); snapshots always encrypted with crown-jewel keys (DDR 0085). **Identity's built-in contract is the v1-present dataset** the engine is proven on. 4. **IdP adapter** — real kanidm behind the member orchestrator's idp port (person / komiti / kaitiaki / reset-token verbs), per the [kanidm/Netbird spike](https://git.matou.nz/Matou/ourcloud/src/branch/main/docs/spike-findings/kanidm-netbird.md) (pin `kanidmWithSecretProvisioning_1_10`; reset links ride kanidm's native reset token). 5. **Notifier** — carries [#85's standing ruling](https://git.matou.nz/Matou/ourcloud/issues/85) forward unchanged: **email, sent from Matou-operated mail as `notify@mail.matou.nz`, for now** — the alert channel stays independent of the fleet being monitored; the port stays channel-agnostic. 6. **Fleet composition close-out** — the cross-orchestrator wiring that makes the composition root whole (rescue's `Restorer` = the real backup orchestrator, `AlertResolver` = monitor, `Provisioning` = provision; members' rescue and reconciler reads; the heartbeat stream feeding monitoring) and **starts the monitor aggregation loop** — the arc's fan-in. ### 3. ★ Validation substrate *(Ben's ruling, live 2026-07-28)*: lab-gated + hardware close-out Each family carries an **executable clan-lab smoke as its own follow-on slice** — the family counts as *proven* only when its smoke passes on the DigitalOcean clan-lab (the spike substrate; `clan-lab` / `lab-dns` skills). This is where the feature specs' standing "non-gating real-lab smoke" clauses become executable — the spec cross-links them. The arc closes with **one end-to-end journey on real hardware** (found → enrol → provision → back up → invite → alert → rescue), a `ready-for-human` close-out ticket — Ben supplies the machines. ### 4. ★ Swarm entry *(Ben's ruling, live 2026-07-28)*: arm immediately Tickets ship `ready-for-agent` with native `depends_on` edges; the live swarm builds in dependency order. The arc's ADRs/DDRs are agent-decided-flagged; Ben reviews post-hoc. ### 5. Sequencing constraints *(agent-decided)* - Families 1 (clan adapter) and 2 (durable store) are the arc's **roots**; families 3–5 build on them independently; family 6 fans in last (the aggregation loop needs the fleet-state store, the heartbeat stream, and backups' coverage all real). - The rescue surfaces' composition is #158's (transport): family 6's rescue wiring lands **behind #158** — a cross-feature edge the slice-map makes explicit. - The arc adds **no edge into #149/#151/#156** — those stay transport work on their own frontier. ### 6. Out of scope (boundary lines) - **Updates' signed release source + rollout mechanics** — both need the Matou-side channel and supply chain (binary cache, signed releases — S13 Q9) that doesn't exist yet; that is its own later arc. `restingReleaseSource` stays resting; #149 stays a transport slice. - **Real catalogue service ports beyond a reference service** — v1's catalogue is fixed and growing it is bootstrap-orbit engineering (ruled on [the v1 feature set](https://git.matou.nz/Matou/ourcloud/issues/8)). Where a smoke needs a deployed catalogue 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).
ben closed this issue 2026-07-29 04:50:56 +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#160
No description provided.