Repository navigation
refactor(loop): remove multi-host surfaces with no single-process consumer - #488
Merged
Merged
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_rulesandwake_rosterhad zero call sites,capabilitieswas dead metadata (the capability framework was already removed), andsuccessiondid not transfer leases — a promoted backup never actually took over a primary's todo.agent onboardloses--recipe;scheduler tickdrops theauto_promote_successionscall.supervisor propose / receipt: recordedSupervisorProposed/SupervisorReceiptRecordedevents that nothing folded into goal state.supervisorkeepsregister/steer/events— the worker→orchestrator channel the architecture actually promises.SupervisorProposed,SupervisorReceiptRecorded,MultiAgentContractSet,AgentRecipeAdded,SuccessionOccurred+ their replay folding,describe_eventarms, CLI registry + help entries.backup_foredges).What is deliberately KEPT
scheduler(tick/liveness/heartbeat/ backoff cursor) and theuiweb dashboard's liveness view — these depend onscheduler_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).