engine-adapters: member-orbit-adapters — auth-gate projection, reconciler, honest catalogue answers #172

Closed
opened 2026-07-29 05:09:58 +00:00 by ben · 1 comment
Owner

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 member orchestrator's remaining external ports, real and thin (ADRs 0103/0105): the auth-gate deny projection (a fast local view the gateway's auth gate consumes — re-derivable, ADR 0078 §5), the reconciler's disable/enable-credentials pair (ADR 0074 move 3), and the catalogue port's honest v1 answers (deployed-services empty until services exist; per-port offboard fates and role mappings honest about what each port declares).

Acceptance criteria

  • Given a suspend, When Deny writes, Then the gate's local view denies immediately and a rebuilt gateway re-derives the same view
  • Given an un-suspend, When Allow + EnableCredentials run, Then access is restored everywhere
  • Given no deployed catalogue services, When removal lists fates, Then the honest empty answer renders (no fabricated rows)

Blocked by

  • engine-adapters:idp-adapter

Task manifest

task: engine-adapters:member-orbit-adapters
implements_seam: "the confirmed seams + ADRs 0102-0107 are the design contract (no flow/wireframe — spec #161)"
interface: "member.AuthGate / member.Reconciler / member.Catalogue — contracts unchanged"
seam: "internal/member seam tests; a gate re-derivation test"
acceptance:
  - given: suspend/unsuspend cycles; when: projection lost and rebuilt; then: derived state identical
depends_on: [engine-adapters:idp-adapter]
out_of_scope: [screen changes (no UI surface in this arc), the release source / rollout mechanics (out of arc, wayfinder #160), real catalogue service ports beyond the reference service (wayfinder #160 boundary)]
needs_human_decision: []
## 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 member orchestrator's remaining external ports, real and thin (ADRs 0103/0105): the auth-gate deny projection (a fast local view the gateway's auth gate consumes — re-derivable, ADR 0078 §5), the reconciler's disable/enable-credentials pair (ADR 0074 move 3), and the catalogue port's honest v1 answers (deployed-services empty until services exist; per-port offboard fates and role mappings honest about what each port declares). ## Acceptance criteria - [ ] Given a suspend, When Deny writes, Then the gate's local view denies immediately and a rebuilt gateway re-derives the same view - [ ] Given an un-suspend, When Allow + EnableCredentials run, Then access is restored everywhere - [ ] Given no deployed catalogue services, When removal lists fates, Then the honest empty answer renders (no fabricated rows) ## Blocked by - engine-adapters:idp-adapter ## Task manifest ```yaml task: engine-adapters:member-orbit-adapters implements_seam: "the confirmed seams + ADRs 0102-0107 are the design contract (no flow/wireframe — spec #161)" interface: "member.AuthGate / member.Reconciler / member.Catalogue — contracts unchanged" seam: "internal/member seam tests; a gate re-derivation test" acceptance: - given: suspend/unsuspend cycles; when: projection lost and rebuilt; then: derived state identical depends_on: [engine-adapters:idp-adapter] out_of_scope: [screen changes (no UI surface in this arc), the release source / rollout mechanics (out of arc, wayfinder #160), real catalogue service ports beyond the reference service (wayfinder #160 boundary)] needs_human_decision: [] ```
Author
Owner

Landed in 19799d8 on origin/main.

The member orchestrator's three remaining external ports go real and thin as internal/memberorbit (ADRs 0103/0105):

  • Gate (member.AuthGate) — the auth-gate deny projection the gateway's forward_auth check consults. A projection, never a source (ADR 0078 §5 / 0103 §3): held in memory, lost-on-rebuild by design, and reconstructed from the durable members-owned record by Rederive.
  • Catalogue — one registry over the deployed catalogue service ports (the ADR 0062 parts pattern) implementing both member.Catalogue and member.Reconciler: offboard fates (ADR 0075), komiti role mappings (ADR 0076), client-protocol credential verbs (ADR 0074 move 3). v1 registers no ports beyond the reference service (out of scope, wayfinder #160), so an empty registry gives the honest empty answer — no fabricated removal rows, a suspend's move-3 tail completes, a service with no port is honestly front-door-only. Real, not a fail-loud fake.

Acceptance (all proven through the orchestrator, contracts unchanged):

  • Given a suspend, When Deny writes, Then the gate denies immediately AND a rebuilt gateway re-derives the same view — TestSuspend_DeniesImmediatelyAndRederives, TestGate_RederiveMatchesLiveAcrossCycles.
  • Given an un-suspend, When Allow + EnableCredentials run, Then access is restored everywhere — TestUnsuspend_RestoresAccessEverywhere.
  • Given no deployed catalogue services, When removal lists fates, Then the honest empty answer renders — TestRemovalPlan_NoDeployedServices_HonestEmpty.

Seam: internal/memberorbit/memberorbit_test.go — driven through the member orchestrator, plus the gate re-derivation test and a deployed-port dispatch test proving the parts pattern. go build ./... + go test ./internal/member/ ./internal/memberorbit/ green.

Not wired into main.go — the member composition root goes whole at compose-aggregation-loop #181 (retires restingAuthGate/restingReconciler/restingMemberCatalogue), per the #171 precedent. Evidence: STATUS.md milestone log.

Landed in `19799d8` on origin/main. The member orchestrator's three remaining external ports go real and thin as `internal/memberorbit` (ADRs 0103/0105): - **`Gate`** (`member.AuthGate`) — the auth-gate deny projection the gateway's forward_auth check consults. A **projection, never a source** (ADR 0078 §5 / 0103 §3): held in memory, lost-on-rebuild by design, and reconstructed from the durable members-owned record by `Rederive`. - **`Catalogue`** — one registry over the deployed catalogue **service ports** (the ADR 0062 parts pattern) implementing **both** `member.Catalogue` and `member.Reconciler`: offboard fates (ADR 0075), komiti role mappings (ADR 0076), client-protocol credential verbs (ADR 0074 move 3). v1 registers no ports beyond the reference service (out of scope, wayfinder #160), so an empty registry gives the honest empty answer — no fabricated removal rows, a suspend's move-3 tail completes, a service with no port is honestly front-door-only. Real, not a fail-loud fake. **Acceptance (all proven through the orchestrator, contracts unchanged):** - Given a suspend, When Deny writes, Then the gate denies immediately AND a rebuilt gateway re-derives the same view — `TestSuspend_DeniesImmediatelyAndRederives`, `TestGate_RederiveMatchesLiveAcrossCycles`. - Given an un-suspend, When Allow + EnableCredentials run, Then access is restored everywhere — `TestUnsuspend_RestoresAccessEverywhere`. - Given no deployed catalogue services, When removal lists fates, Then the honest empty answer renders — `TestRemovalPlan_NoDeployedServices_HonestEmpty`. **Seam:** `internal/memberorbit/memberorbit_test.go` — driven through the member orchestrator, plus the gate re-derivation test and a deployed-port dispatch test proving the parts pattern. `go build ./...` + `go test ./internal/member/ ./internal/memberorbit/` green. Not wired into main.go — the member composition root goes whole at `compose-aggregation-loop` #181 (retires `restingAuthGate`/`restingReconciler`/`restingMemberCatalogue`), per the #171 precedent. Evidence: `STATUS.md` milestone log.
ben closed this issue 2026-07-29 15:34:35 +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.

Reference
Matou/idss#172
No description provided.