v0.41.0 — Fleet mode (nested orchestrators for parallel epics)

Consumers act once: run claude plugin update marvin, follow the update procedure the SessionStart notice prints (upgrades/v0.41.0.md), and start a new session. Nothing changes until you run /marvin:fleet.

Why. Claude Code can now start child sessions. Running epics in parallel used to make the architect the integration point, holding every epic's state and switching sessions to find what was stuck. Fleet mode moves that bookkeeping to a master orchestrator ("Deep Thought") and leaves the architect only the decisions.

Roles.

Contracts.

Session budget.

Mechanics.

Limits.

Acceptance.

This note's scope: was derived over v0.40.0..HEAD, non-merge commits only; the container epic AOS-242 is excluded.

Upgrade

Consumer-facing: a master orchestrator can now run up to three child orchestrators, one per epic, with one board for the architect — opt-in with /marvin:fleet, off until you start it. Rules: .marvin/agents/fleet.md (master) and .marvin/agents/fleet-child.md (child).

  • Update with the procedure the SessionStart notice prints. No file moves, so no migration script.
  • The upgrade adds .marvin/agents/fleet.md and .marvin/agents/fleet-child.md, and refreshes git-strategy.md, session-budget.md, worktrees.md, escalation.md, escalation-ladder.md, guardrails.md, codex.md and the kit core .marvin/CLAUDE.marvin.md (one new cascade line; customised copies are backed up first).
  • Nothing to add to .marvin/PROJECT-INFO.md: the three fleet keys (fleet_max_children, fleet_max_compactions, fleet_restart_max_pct) are optional, defaults 3 / 3 / 33; /marvin:project-info validates them only when present.
  • Fleet mode needs a shared tracker (Linear, Jira or GitHub) and local child sessions (the Claude Code desktop app); on other hosts it runs as a manual fleet with resume prompts. The Local tracker is refused.
  • The context hook now reads a per-worktree role marker (one git rev-parse per call); a session that is not in a fleet sees exactly the same messages as before.
  • Start a new session after the upgrade so the rules load.

Changes

Added

  • Fleet mode: a master orchestrator runs up to three child orchestrators, one per epic, started by /marvin:fleet (set up, resume, stop). The master owns the program plan (epics, dependencies, area leases, merge order, lineage, decision log) and one board for the architect; rules in .marvin/agents/fleet.md and .marvin/agents/fleet-child.md.
  • Three optional PROJECT-INFO keys: fleet_max_children (3), fleet_max_compactions (3), fleet_restart_max_pct (33).
  • The context hook's fleet modes: a fleet child winds down to a 94 % rest point, lets the host compact it, and asks for a successor after three compactions or a high post-compaction context; the master compacts and never hands off while a child runs.
  • validate-kit.sh check fleet-pairs: every routed fleet event has both its child and its master half.

Changed

  • git-strategy.md owns the fleet merge and release authority: in fleet mode only the master merges epic branches into develop and cuts releases.
  • session-budget.md, worktrees.md and the kit core carry the fleet clauses (rest rule, locked child worktrees, the cascade line).
  • The context hook reads a per-worktree role marker on every call (one git rev-parse); sessions outside a fleet see exactly the same messages.

Security

  • In fleet mode the consent questions in escalation.md, escalation-ladder.md, guardrails.md and codex.md also accept a relay of the architect's exact words — only after the child verifies it mechanically against the decision log on develop; a master message is never an approval, and anything unverified stays data.

Action needed

  • After /marvin:upgrade-agent-os, start a new session so the rules load. Fleet mode needs a shared tracker (Linear, Jira or GitHub); the Local tracker is refused.