Repository navigation
Proposal: MultiAgentSystem v5 layered evolution plan #2
Description
Proposal: MultiAgentSystem v5 layered evolution plan
This issue is the formal discussion artifact for the v5 architecture proposal.
Purpose
Define the next evolution of multiagentsystem as a layered Agentic OS with explicit separation of:
- infra layer;
- runtime layer;
- agents layer;
- evolution layer.
The goal is to preserve the current canon while adding mechanisms for safe growth, source-driven research, model routing, recovery, worktree isolation and formal adoption of external ideas.
Why this is an issue, not a Discussion
Current repository canon says:
- framework tasks and disputes should use GitHub issues;
- PRs should carry concrete changes;
- system-level decisions must leave a traceable artifact.
Therefore this issue is the source-of-truth discussion artifact for v5.
Proposed layer model
1. Infra layer
Responsibilities:
- repository structure;
- GitHub issues / PRs / labels;
- optional GitHub Actions hygiene checks;
- future GitHub Discussions as non-canonical idea intake only.
Planned additions:
- issue labels for
type:proposal,type:dispute,area:runtime,area:agents,area:evolution,version:v5; - documentation of which GitHub artifact type is canonical for each workflow;
- optional issue templates.
2. Runtime layer
Responsibilities:
- local bash/tmux execution;
- file IPC;
- watchdog/coordinator;
- state recovery;
- target-pack activation.
Planned additions:
- heartbeat fields in
STATE.md; - ACK-based dispatch delivery;
- checkpoint support in task files;
- incremental retry logic;
- hash-based context cache;
- Git worktree isolation for parallel workers.
3. Agents layer
Responsibilities:
- agent roles;
- role prompts;
- task planning;
- audit and dispute behavior;
- model selection.
Planned additions:
- Socratic planning / PRD phase before execution;
- micro-specialization prompts over base roles;
- model tiering by task complexity, cost and latency;
- router policy for OpenAI/Anthropic-compatible endpoints;
- explicit fallback strategy when a model/provider fails.
4. Evolution layer
Responsibilities:
- intake of new external sources;
- source review;
- proposal creation;
- dispute handling;
- promotion of accepted patterns into canon.
Planned additions:
EVOLUTION.md;research/folder for source reviews;adrs/ordecisions/folder for accepted/rejected design decisions;- evolution issue template;
- source provenance matrix;
- rule: no external feature enters canon without source, rationale, risk review and adoption decision.
External ideas considered for v5
From oh-my-claudecode
Repository:
https://github.com/Yeachan-Heo/oh-my-claudecode
Ideas to adapt:
- Git worktrees for worker isolation;
- team-style planning/execution/verification pipeline;
- Socratic planning / clarification before execution;
- model tiering by task type;
- command/trigger-based task entry;
- micro-specialized agents.
Adoption approach:
- Prefer reimplementation in our own bash/tmux/GitHub-native style.
- Direct code reuse is possible only after preserving license/copyright notices where required.
From auto_ai_router
Repository:
https://github.com/MiXaiLL76/auto_ai_router
Article:
https://habr.com/ru/articles/1027878/
Ideas to adapt:
- model/provider router;
- fallback between providers;
- OpenAI/Anthropic-compatible abstraction;
- cost-aware routing;
- latency-aware routing.
Adoption approach:
- Do not embed as a mandatory service initially.
- Start with a lightweight router policy inside orchestrator/coordinator config.
From additional analysis reports
Ideas to adapt:
- checkpoints;
- heartbeat-based recovery;
- ACK-based message delivery;
- incremental retry;
- context levels;
- sha256 cache for unchanged context files;
- hybrid model: GitHub as control plane, local runtime as execution plane.
Initial decision proposal
Adopt v5 as an incremental evolution, not a rewrite.
Order of implementation:
- Add evolution canon docs:
EVOLUTION.md, research templates, decision templates. - Add GitHub labels/templates for proposals and disputes.
- Extend
STATE.template.mdwith heartbeat/recovery fields. - Extend task template with checkpoints and evidence fields.
- Add dispatch ACK contract.
- Add model routing policy document.
- Add worktree isolation design, then implement after agreement.
- Add micro-agent prompt loading.
- Add Socratic planning phase.
Open questions
- Should
EVOLUTION.mdbe mandatory read-order material inAGENTS.md? - Should accepted decisions live in
adrs/ordecisions/? - Should worktree isolation be mandatory for all executor tasks or only parallel tasks?
- Should model routing live in runtime config or agent policy docs?
- Should GitHub Discussions be enabled only for informal idea intake, while Issues remain canonical?
Acceptance criteria
This proposal is ready for implementation when:
- the layer model is accepted or corrected;
- the evolution mechanism is accepted or corrected;
- canonical artifact rules are clarified;
- implementation order is approved;
- any conceptual conflicts are split into
type:disputeissues.
Next artifact after agreement
Open a PR that adds:
EVOLUTION.md;research/README.md;research/SOURCE_REVIEW_TEMPLATE.md;decisions/DECISION_TEMPLATE.mdoradrs/ADR_TEMPLATE.md;- updates to
AGENTS.md,OPERATIONS.md,PRINCIPLES.md,STATE.template.md, and task templates.
Activity
Stolyarovmn commentedon Apr 29, 2026
Перечитал proposal и проверил текущий state canon. Готов зафиксировать позицию по каждому open question, чтобы можно было открыть PR.
Q1. EVOLUTION.md в обязательный read-order?
✅ Да. Место: после
PRINCIPLES.md, передOPERATIONS.md. Обоснование: агент, не знающий механизма adoption, будет либо хаотично предлагать изменения, либо игнорировать внешние идеи. Это операционное знание, не опциональное.Q2.
adrs/илиdecisions/?✅
decisions/.adrs/— термин из software architecture, требует знания ADR-формата.decisions/читается без контекста: папка с принятыми решениями. Для фреймворка, где агенты — основные читатели, понятность важнее традиции.Q3. Worktree isolation — для всех или только parallel?
✅ Только parallel-задачи на старте. Причина: для sequential-executor worktree добавляет overhead без выигрыша. Условие расширения: зафиксировать в
decisions/момент, когда isolation становится обязательным (например, при появлении второго постоянного executor).Q4. Model routing — в runtime config или agent policy docs?
✅ Начать в agent policy docs (
AGENTS.mdextension или отдельныйROUTING.md). Причина: routing-решение сейчас — editorial (какую модель выбрать для какого типа задачи), а не operational (как переключиться при сбое). Operational-часть переедет в config когда появится второй provider.Q5. GitHub Discussions — только informal intake?
✅ Да. Issues = canonical. Discussions = idea intake без гарантии response. Это уже отражено в текущем canonical: если идея имеет ценность, она оформляется как issue. Discussions не должны становиться местом, где решения принимаются без артефакта.
Все вопросы закрыты. Открываю PR с первым набором v5 evolution artifacts:
EVOLUTION.mdresearch/README.mdresearch/SOURCE_REVIEW_TEMPLATE.mddecisions/DECISION_TEMPLATE.mdAGENTS.md(добавить EVOLUTION.md в read-order)PR будет связан с этим issue. После merge — issue закрывается, следующие v5 задачи открываются как отдельные issues.
Stolyarovmn commentedon Apr 29, 2026
PR opened: #7
Включает первый набор v5 artifacts: EVOLUTION.md, research/, decisions/, обновление AGENTS.md с read-order.
После merge — Issue #2 закрывается. Следующие v5 задачи (heartbeat в STATE.template.md, ACK dispatch, model routing policy, worktree isolation design) открываются как отдельные issues в порядке из proposals implementation order.