Skip to content

feat(mesh): C3.5+C3.6 — mesh-aware update, restart, and LLM swap verbs#154

Merged
dennys246 merged 1 commit into
mainfrom
feat/plan4-c3.5-c3.6-mesh-verbs
Apr 17, 2026
Merged

feat(mesh): C3.5+C3.6 — mesh-aware update, restart, and LLM swap verbs#154
dennys246 merged 1 commit into
mainfrom
feat/plan4-c3.5-c3.6-mesh-verbs

Conversation

@dennys246
Copy link
Copy Markdown
Owner

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.

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>
@dennys246 dennys246 merged commit 783f65f into main Apr 17, 2026
5 checks passed
@dennys246 dennys246 deleted the feat/plan4-c3.5-c3.6-mesh-verbs branch April 17, 2026 23:42
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