feat(mesh): C3.5+C3.6 — mesh-aware update, restart, and LLM swap verbs#154
Merged
Conversation
Three new mesh-aware verbs composing drain → op → resume: - `maxim peer --node <name> update [--dry-run] [--force] [--branch <b>]` - `maxim peer --node <name> restart` - `maxim peer --node <name> llm <model>` Architecture: - New `admin_core.py` with `update_on_target`, `restart_on_target`, `llm_swap_on_target` — shared HTTP cores mirroring the install_core.py pattern (single source of truth per endpoint, CI grep enforced) - `peer/cli.py` refactored to delegate to admin_core (no behavior change) - `mesh_cli.py` extends run_node_subcommand with the 3 new verbs - CI grep allow-lists for /v1/admin/update, /v1/admin/restart, /v1/admin/llm-swap 2-lens pre-merge review folded 7 findings: - BLOCKING (cross-confirmed): dry-run bypassed self-guard → fixed - Exit code constant renamed _EXIT_RESUME_FAILED_POST_OP (was install-specific) - run_node_subcommand docstring updated for C3.5/C3.6 - Lazy import comment corrected - lane_backends CI allow-list narrowed to docstring match - Redundant test patching cleaned up 42 new tests (20 admin_core wire-level + 22 mesh verb composition). 5065 passed, 0 failed on full suite. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.
Three new mesh-aware verbs composing drain → op → resume:
maxim peer --node <name> update [--dry-run] [--force] [--branch <b>]maxim peer --node <name> restartmaxim peer --node <name> llm <model>Architecture:
admin_core.pywithupdate_on_target,restart_on_target,llm_swap_on_target— shared HTTP cores mirroring the install_core.py pattern (single source of truth per endpoint, CI grep enforced)peer/cli.pyrefactored to delegate to admin_core (no behavior change)mesh_cli.pyextends run_node_subcommand with the 3 new verbs2-lens pre-merge review folded 7 findings:
42 new tests (20 admin_core wire-level + 22 mesh verb composition). 5065 passed, 0 failed on full suite.