engine-adapters: compose-aggregation-loop — the composition root goes whole; the loop starts #181
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.
Blocks
Depends on
#165 engine-adapters: store-runtime-ledgers — the runtime ledgers become state-directory documents
Matou/idss
#171 engine-adapters: idp-adapter — real kanidm behind the member orchestrator's idp port
Matou/idss
Reference
Matou/idss#181
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
Engine-adapters child spec: #161 (ADRs 0102–0107; scoped on wayfinder #160 — Ben ruled live: per-family clan-lab smokes gate each family, the arc closes on a real-hardware end-to-end, tickets arm the swarm). Everything else agent-decided, post-hoc review pending.
What to build
The arc's fan-in (ADR 0107): the member orchestrator's full real port set wired, the provisioning deploy engine live (errProvisionEngineUnwired retired), and the monitor aggregation loop STARTED — only now, with the real fleet read, real heartbeats and real coverage (DDR 0071 forbids classifying silence against a resting projection). After this slice no resting stub remains in main.go except the out-of-arc release source.
Acceptance criteria
Blocked by
Task manifest
Landed in
6875c9bonorigin/main(engine-adapters:compose-aggregation-loop).The arc's fan-in close (ADR 0107).
compose()is now a dispatcher: with the whole external set present — the config repo (OURCLOUD_CONFIG_REPO), the state directory (OURCLOUD_STATE_DIR) and the kanidm IdP (OURCLOUD_KANIDM_URL) — it goes whole (composeWhole,whole_composition.go) andmain()starts the monitor aggregation loop (go mon.Run); any external absent keeps the honest resting composition (composeResting,resting_composition.go) and the loop stays stopped — no premature start against a resting projection (DDR 0071). A family lands whole or not at all (ADR 0107): the resting branch is all-resting, never half a real family.Whole composition wired: the ONE real
fleetstate.Projectionshared by monitor/backups/provision/rescue — a live read over a NEW config-repo inventory reader (configRepoInventory, the readerfleetstatereserved for #181), the persisted enroll ledger, and provisioning's coverage bit bridged through adeferredHealthholder; the realmonitor.HeartbeatStream(#174); the full real member family (File member/invite/reset ledgers + a NEW File audit sink, the kanidm IdP, config-repo access matrix + a NEW config-repo brand reader, memberorbit gate/catalogue); and the provisioning deploy engine live on the real clan adapter (errProvisionEngineUnwiredretired frommain.go).Acceptance:
Status()/AlertCount()project the real fleet (the placed+enrolled node reads back; a fresh heartbeat keeps it watched, nothing raised).silence/<node>), driven by the running loop, not a hand-driven tick.main.gocarries onlyrestingReleaseSource; every other resting placeholder moved toresting_composition.go. A structural guard test enforces it.Seam: a boot-to-loop integration test over the full real wiring (
aggregation_integration_test.go), fakes only at the true externals (clan CLI, kanidm directory). Every prior feature seam suite stays green;go build ./.../vet/gofmt clean, full Go suite green, race-clean.Agent-decided, post-hoc review pending (parent spec #161): member
AuditSinkandBrandhad no real adapter (docs mark them later slices), so this slice adds a minimal File audit sink (member.NewFileAuditSink, the ADR 0103 §1 runtime-ledger discipline) and a config-repo brand reader over the applied brand-kit doc; the inventory reader reads placed nodes only (richer placement — roles, service assignments, datasets — rides the catalogue slices). monitor's per-servicePorts/Revisionsstay honest nils (no real adapter yet); the rescue family's own engine adapters keep resting (a separate arc).Next:
enroll(#163) is the last engine-adapters child; the arc's real-hardware close-out (wayfinder #160) follows.