Engine adapters — child spec: the six families that make the fleet real #161
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#161
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent
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
acceptedwith 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— allstatus: 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):
clan.Clandrives 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).jsonstore.Filedocuments 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.notify@mail.matou.nz(#85's standing ruling, wired); a failed delivery is logged, never silent, and never loses the app-channel raise.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
config_eval/missing_var/connectivitywith a legible operator-facing message — connectivity classified before secrets, signal-kills by exit code — never a masked success (FailMaskedExitreserved for activation time).git revertconflicts breaking eval.config_eval).--phasesresumability on interruption.Supplyto 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
Check), never silently reset.Family 3 — backup engine
TargetInventory, and the sampled restore test passes before the copy counts in coverage.age, Then every dataset/moment/verification fact is recoverable from the inventory JSON and the artifacts (ADR 0082 §2; no restic/borg — ADR 0104).Family 4 — kanidm idp adapter
operators/members/kaitiaki, and deleting it closes doors without touching accounts.Family 5 — Notifier
notify@mail.matou.nzcarrying 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
Implementation Decisions
main.goremains ADR-0100-honest.AttachServicealready admits — no new transport to nodes.Testing Decisions
…/testingfakes; adapters additionally get contract tests where a real dependency can be faked at the process boundary (a scriptedclanCLI 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.clan-lab/lab-dnsskills): 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.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.)
restingReleaseSourcestays resting; #149 stays a transport slice.Further Notes
needs_human_decisionis empty on every slice except the real-hardware close-out, which isready-for-humanby construction.docs/slices/engine-adapters.yamlvia/slice-map→/to-ticketsthis session.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)
ready-for-human— you supply the machines).Agent-decided — review here, in priority order
jsonstore.Filedocuments; 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.notify@mail.matou.nz) — SMTP submission, bounded retry, loud failure, no durable outbox. Not reopened, just wired.Artifact index
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).3d63ed5.To pause the swarm on any ticket: swap its label to
no-triage. To veto an ADR: mark itsupersededand I'll re-run the affected slices' design.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).