engine-adapters: compose-cross-orchestrator — injected views wire the orchestrators together (behind #158) #180

Closed
opened 2026-07-29 05:10:25 +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

Cross-orchestrator ports become injected views of the real orchestrators — never copies (ADR 0107): rescue's Restorer = the real backup orchestrator, AlertResolver = monitor, Provisioning = provision, the rehome gate = the shared HealthCheck registry, KeyLedger = the config-repo document; members' rescue read = rescue's share ledger; Settings' brand-kit Apply goes real through the clan adapter's commit-and-deploy path (theming seam contract unchanged). Composes behind #158's landed rescue mounts — the arc's one transport-frontier edge.

Acceptance criteria

  • Given an escalated incident, When the restore rung runs, Then it hands to the real backup orchestrator's in-place restore
  • Given a rung that recovers a service, When it completes, Then the real monitor's alert returns to watching
  • Given a validated brand kit, When Apply runs, Then compiled artifacts land as a config-repo commit and deploy through the clan adapter
  • Given any injected view, When compared with its owner, Then they cannot disagree (one instance, no copy)

Blocked by

  • engine-adapters:backup-engine-schedule
  • engine-adapters:store-config-repo-docs
  • engine-adapters:clan-adapter-config-vars-supply
  • rescue:transport-rescue-compose-live — #158 (closed; satisfied)

Task manifest

task: engine-adapters:compose-cross-orchestrator
implements_seam: "the confirmed seams + ADRs 0102-0107 are the design contract (no flow/wireframe — spec #161)"
interface: "the cross-orchestrator port set (rescue.Restorer/AlertResolver/Provisioning/Ports/KeyLedger, member.Rescue, brandkit apply) — contracts unchanged"
seam: "integration tests over the jointly-wired real orchestrators (fakes only at the true externals)"
acceptance:
  - given: the wired composition; when: rescue/member/settings verbs cross orchestrators; then: effects land in the owning orchestrator's state
depends_on: [engine-adapters:backup-engine-schedule, engine-adapters:store-config-repo-docs, engine-adapters:clan-adapter-config-vars-supply, rescue:transport-rescue-compose-live]
out_of_scope: [screen changes (no UI surface in this arc), the release source / rollout mechanics (out of arc, wayfinder #160)]
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 Cross-orchestrator ports become injected views of the real orchestrators — never copies (ADR 0107): rescue's Restorer = the real backup orchestrator, AlertResolver = monitor, Provisioning = provision, the rehome gate = the shared HealthCheck registry, KeyLedger = the config-repo document; members' rescue read = rescue's share ledger; Settings' brand-kit Apply goes real through the clan adapter's commit-and-deploy path (theming seam contract unchanged). Composes behind #158's landed rescue mounts — the arc's one transport-frontier edge. ## Acceptance criteria - [ ] Given an escalated incident, When the restore rung runs, Then it hands to the real backup orchestrator's in-place restore - [ ] Given a rung that recovers a service, When it completes, Then the real monitor's alert returns to watching - [ ] Given a validated brand kit, When Apply runs, Then compiled artifacts land as a config-repo commit and deploy through the clan adapter - [ ] Given any injected view, When compared with its owner, Then they cannot disagree (one instance, no copy) ## Blocked by - engine-adapters:backup-engine-schedule - engine-adapters:store-config-repo-docs - engine-adapters:clan-adapter-config-vars-supply - rescue:transport-rescue-compose-live — #158 (closed; satisfied) ## Task manifest ```yaml task: engine-adapters:compose-cross-orchestrator implements_seam: "the confirmed seams + ADRs 0102-0107 are the design contract (no flow/wireframe — spec #161)" interface: "the cross-orchestrator port set (rescue.Restorer/AlertResolver/Provisioning/Ports/KeyLedger, member.Rescue, brandkit apply) — contracts unchanged" seam: "integration tests over the jointly-wired real orchestrators (fakes only at the true externals)" acceptance: - given: the wired composition; when: rescue/member/settings verbs cross orchestrators; then: effects land in the owning orchestrator's state depends_on: [engine-adapters:backup-engine-schedule, engine-adapters:store-config-repo-docs, engine-adapters:clan-adapter-config-vars-supply, rescue:transport-rescue-compose-live] out_of_scope: [screen changes (no UI surface in this arc), the release source / rollout mechanics (out of arc, wayfinder #160)] needs_human_decision: [] ```
Author
Owner

Landed in 163a2b3 on main (engine-adapters:compose-cross-orchestrator, the fan-in family, ADR 0107).

The cross-orchestrator ports are now injected views of the real orchestrators, never copies:

  • rescue.Restorer = the real *backup.Orchestrator (backupRestorer); AlertResolver = the real *monitor.Orchestrator (new monitor.Resolve returns an escalated alert to watching); Provisioning = the real *provision.Orchestrator; the rehome gate = the shared HealthCheck registry provisioning reads (provision.WithPorts, one instance).
  • member.Rescue = a memberRescue view over rescue's OWN share ledger + Keyring.
  • the operator-key ledger = the config-repo document (ConfigRepoKeyLedger).
  • Settings' brand-kit Apply = compile → one config-repo commit through the clan single writer → deploy that revision through the clan adapter scoped to the gateway (configRepoSettings).

main.go serves ONE jointly-wired composition (compose(), compose.go); the resting-composition helpers delegate to it. Config-repo-backed ports gate on OURCLOUD_CONFIG_REPO, else rest. Because every cross-orchestrator port is reached only from state a freshly-founded control plane cannot hold, resting reads and every prior seam test are unchanged.

Acceptance — proven by integration tests over the jointly-wired real orchestrators (fakes only at the true externals), control-plane/cmd/control-plane/crossorchestrator_integration_test.go:

  • AC1/AC2/AC4: TestCrossOrchestrator_RestoreRungHandsToRealBackupAndResolvesMonitor — an escalated incident's restore rung hands to the real backup in-place restore, and on recovery the real monitor's alert returns to watching; effects land in the owning orchestrators' own state.
  • AC3: TestCrossOrchestrator_BrandKitApplyCommitsAndDeploys — a validated brand kit's Apply lands the compiled artifacts as one git commit and deploys that revision through the clan adapter, scoped to the gateway.

go build ./... / vet / gofmt + the full Go suite clean. Post-hoc-review note: the escalate edge (monitor→rescue intake) is wired here though the manifest port set named only rescue's outbound views — a coherent-composition call, harmless until the aggregation loop (#181) drives it.

Remaining in the arc: enroll (#163) + aggregation-loop root (#181).

Landed in `163a2b3` on `main` (engine-adapters:compose-cross-orchestrator, the fan-in family, ADR 0107). The cross-orchestrator ports are now injected views of the real orchestrators, never copies: - rescue.Restorer = the real *backup.Orchestrator (`backupRestorer`); AlertResolver = the real *monitor.Orchestrator (new `monitor.Resolve` returns an escalated alert to watching); Provisioning = the real *provision.Orchestrator; the rehome gate = the shared HealthCheck registry provisioning reads (`provision.WithPorts`, one instance). - member.Rescue = a `memberRescue` view over rescue's OWN share ledger + Keyring. - the operator-key ledger = the config-repo document (`ConfigRepoKeyLedger`). - Settings' brand-kit Apply = compile → one config-repo commit through the clan single writer → deploy that revision through the clan adapter scoped to the gateway (`configRepoSettings`). main.go serves ONE jointly-wired composition (`compose()`, `compose.go`); the resting-composition helpers delegate to it. Config-repo-backed ports gate on `OURCLOUD_CONFIG_REPO`, else rest. Because every cross-orchestrator port is reached only from state a freshly-founded control plane cannot hold, resting reads and every prior seam test are unchanged. **Acceptance** — proven by integration tests over the jointly-wired real orchestrators (fakes only at the true externals), `control-plane/cmd/control-plane/crossorchestrator_integration_test.go`: - AC1/AC2/AC4: `TestCrossOrchestrator_RestoreRungHandsToRealBackupAndResolvesMonitor` — an escalated incident's restore rung hands to the real backup in-place restore, and on recovery the real monitor's alert returns to watching; effects land in the owning orchestrators' own state. - AC3: `TestCrossOrchestrator_BrandKitApplyCommitsAndDeploys` — a validated brand kit's Apply lands the compiled artifacts as one git commit and deploys that revision through the clan adapter, scoped to the gateway. `go build ./...` / `vet` / gofmt + the full Go suite clean. Post-hoc-review note: the escalate edge (monitor→rescue intake) is wired here though the manifest port set named only rescue's outbound views — a coherent-composition call, harmless until the aggregation loop (#181) drives it. Remaining in the arc: enroll (#163) + aggregation-loop root (#181).
ben closed this issue 2026-07-30 00:03:16 +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#180
No description provided.