transport: members-compose-controlplane #155

Closed
opened 2026-07-27 20:44:29 +00:00 by ben · 1 comment
Owner

Parent

Split from #128 (parent: ADR 0037) per Ben's approval on 2026-07-27 to break the six-surface transport slice into per-surface follow-ups.

Context

From #128's handback comment: the main.go composition-root wiring of a resting member orchestrator was deferred from #128 — exactly like #130 deferred rescue's composition wiring. #132 bars prod fakes, so this needs fail-loud resting stubs for the 12 ports. Founder-row seeding is founding's concern, not this issue's.

What to build

Wire a resting member orchestrator into main.go's composition root, with fail-loud resting stubs for the 12 ports per #132, following the precedent set for rescue's composition wiring in #130.

Acceptance criteria

  • main.go composes a resting member orchestrator with fail-loud stubs for all 12 ports.
  • No prod fakes remain in the composition root for the member orchestrator, per #132.
  • Founder-row seeding is explicitly out of scope (belongs to founding).

Blocked by

  • #128 (members transport pattern, done on main)
  • #130 (precedent for composition-root wiring pattern)
  • #132 (bars prod fakes; defines the fail-loud resting stub requirement)

Task manifest

task: transport:members-compose-controlplane
implements_edge: "main.go composition root wires a resting member orchestrator"
interface: "fail-loud resting stubs for the 12 member orchestrator ports"
seam: "composition-root wiring, following #130's precedent"
acceptance: "see Acceptance criteria above"
depends_on: ["#130", "#132"]
out_of_scope: ["founder-row seeding"]
needs_human_decision: []
## Parent Split from #128 (parent: ADR 0037) per Ben's approval on 2026-07-27 to break the six-surface transport slice into per-surface follow-ups. ## Context From #128's handback comment: the `main.go` composition-root wiring of a resting `member` orchestrator was deferred from #128 — exactly like #130 deferred rescue's composition wiring. #132 bars prod fakes, so this needs fail-loud resting stubs for the 12 ports. Founder-row seeding is founding's concern, not this issue's. ## What to build Wire a resting `member` orchestrator into `main.go`'s composition root, with fail-loud resting stubs for the 12 ports per #132, following the precedent set for rescue's composition wiring in #130. ## Acceptance criteria - [ ] `main.go` composes a resting `member` orchestrator with fail-loud stubs for all 12 ports. - [ ] No prod fakes remain in the composition root for the member orchestrator, per #132. - [ ] Founder-row seeding is explicitly out of scope (belongs to founding). ## Blocked by - #128 (members transport pattern, done on `main`) - #130 (precedent for composition-root wiring pattern) - #132 (bars prod fakes; defines the fail-loud resting stub requirement) ## Task manifest ```yaml task: transport:members-compose-controlplane implements_edge: "main.go composition root wires a resting member orchestrator" interface: "fail-loud resting stubs for the 12 member orchestrator ports" seam: "composition-root wiring, following #130's precedent" acceptance: "see Acceptance criteria above" depends_on: ["#130", "#132"] out_of_scope: ["founder-row seeding"] needs_human_decision: [] ```
Author
Owner

Done in 2aba769 (on main).

main.go's composition root now wires a resting member orchestrator (ADR 0077) behind controlapi.WithMembers, with fail-loud resting stubs for all twelve member ports (member-ledger / invite-ledger / reset-ledger / audit-sink / idp / brand / access-matrix / auth-gate / reconciler / catalogue / rescue + system clock), following the backups/rescue resting-composition precedent #130 established.

Acceptance:

  • main.go composes a resting member orchestrator (restingMember()) with fail-loud stubs for all 12 ports — reads project the honest freshly-founded state (empty members list, prominent invite panel, empty invite ledger, empty audit trail), every act verb returns errMemberUnwired.
  • No prod fakes remain: twelve compile-time var _ member.X = restingY{} assertions prove each stub satisfies its port; the acts fail loud rather than faking success (#132, ADR 0100).
  • Founder-row seeding is explicitly out of scope — the resting ledger is genuinely empty until founding seeds it (a runtime data annotation, not this build edge).

Evidence: control-plane/cmd/control-plane/main_test.go seam-tests both faces — TestRestingMemberReadsProjectHonestEmptyState (honest-empty reads) and TestRestingMemberActsFailLoud (fail-loud acts). Whole Go module builds, vets, and tests green; gofmt clean.

Done in `2aba769` (on `main`). `main.go`'s composition root now wires a resting `member` orchestrator (ADR 0077) behind `controlapi.WithMembers`, with fail-loud resting stubs for all **twelve** member ports (member-ledger / invite-ledger / reset-ledger / audit-sink / idp / brand / access-matrix / auth-gate / reconciler / catalogue / rescue + system clock), following the backups/rescue resting-composition precedent #130 established. **Acceptance:** - [x] `main.go` composes a resting `member` orchestrator (`restingMember()`) with fail-loud stubs for all 12 ports — reads project the honest freshly-founded state (empty members list, prominent invite panel, empty invite ledger, empty audit trail), every act verb returns `errMemberUnwired`. - [x] No prod fakes remain: twelve compile-time `var _ member.X = restingY{}` assertions prove each stub satisfies its port; the acts fail loud rather than faking success (#132, ADR 0100). - [x] Founder-row seeding is explicitly out of scope — the resting ledger is genuinely empty until founding seeds it (a runtime data annotation, not this build edge). **Evidence:** `control-plane/cmd/control-plane/main_test.go` seam-tests both faces — `TestRestingMemberReadsProjectHonestEmptyState` (honest-empty reads) and `TestRestingMemberActsFailLoud` (fail-loud acts). Whole Go module builds, vets, and tests green; gofmt clean.
ben closed this issue 2026-07-27 20:52:36 +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#155
No description provided.