Skip to content

refactor(loop): remove multi-host surfaces with no single-process consumer - #488

Merged
huichen merged 3 commits into
mainfrom
claude/loop-remove-multihost
Sep 4, 2026
Merged

huichen merged 3 commits into
mainfrom
claude/loop-remove-multihost

Conversation

@huichen

@huichen huichen commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

Removes the LoopX reference-implementation ports that record data but have no kernel consumer in the single-process orchestrator+worker model. This is a deliberate de-over-engineering: these surfaces are dead weight for a single process, not future-proofing.

What is removed

  • agent contract / recipe / succession / collective (multi_agent.rs, 702 lines): handoff_rules and wake_roster had zero call sites, capabilities was dead metadata (the capability framework was already removed), and succession did not transfer leases — a promoted backup never actually took over a primary's todo. agent onboard loses --recipe; scheduler tick drops the auto_promote_successions call.
  • supervisor propose / receipt: recorded SupervisorProposed / SupervisorReceiptRecorded events that nothing folded into goal state. supervisor keeps register / steer / events — the worker→orchestrator channel the architecture actually promises.
  • Event variants SupervisorProposed, SupervisorReceiptRecorded, MultiAgentContractSet, AgentRecipeAdded, SuccessionOccurred + their replay folding, describe_event arms, CLI registry + help entries.
  • ARCHITECTURE.md drops the peer-backup paragraph (no more backup_for edges).

What is deliberately KEPT

  • scheduler (tick / liveness / heartbeat / backoff cursor) and the ui web dashboard's liveness view — these depend on scheduler_heartbeats / liveness_alerts, which are a real consumer surface (the operator watches worker heartbeats there).
  • agent register/onboard/list, scope, lane — the parallel-worker identity surface.

Verification

  • cargo fmt -p future-loop --check ✅
  • cargo clippy -p future-loop --all-targets ✅ (no warnings)
  • cargo test -p future-loop ✅ (all lib + integration suites green)

Companion skills bump: future-skills #42 (v3.12.0).

…sumer

Delete the LoopX reference-implementation ports that record data but have
no kernel consumer in the single-process orchestrator+worker model:

- agent contract / recipe / succession / collective (multi_agent.rs):
  handoff_rules and wake_roster had zero call sites, capabilities was dead
  metadata (the capability framework was already removed), and succession
  did not transfer leases — a promoted backup never actually took over a
  primary's todo. agent onboard loses --recipe; scheduler tick drops the
  auto_promote_successions call.
- supervisor propose / receipt: recorded SupervisorProposed /
  SupervisorReceiptRecorded events that nothing folded into goal state.
  supervisor keeps register / steer / events (the worker→orchestrator
  channel that the architecture actually promises).

Kept: scheduler (tick/liveness/heartbeat/backoff) and the webui's liveness
view, which depend on scheduler_heartbeats / liveness_alerts.

Removes the corresponding event variants (SupervisorProposed,
SupervisorReceiptRecorded, MultiAgentContractSet, AgentRecipeAdded,
SuccessionOccurred) and their replay folding, the describe_event arms, and
the CLI registry + help entries. ARCHITECTURE.md drops the peer-backup
paragraph (no more backup_for edges).
…tering

Deleting the multi-host agent subcommands (contract/recipe/succession/
collective) left their bare words falling through cmd_agent's default arm,
which is . So
silently registered an agent named X instead of erroring.

Guard the fallthrough: only // (the legacy spelled-out
form) reach register; any other bare word is an unknown subcommand.
@huichen
huichen enabled auto-merge (squash) September 4, 2026 01:25
@huichen
huichen merged commit d6bc1b0 into main Sep 4, 2026
12 checks passed
@huichen
huichen deleted the claude/loop-remove-multihost branch September 4, 2026 01:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant