Mirrored from https://github.com/davoodmehraban89/Aram.git
Synced Dec 4, 14:15 UTC
dependabot/github_actions/actions/setup-node-6
ADR-033 — Five-role agent orchestration and its auto-discovery entry point
- Status: Accepted (owner directive, Arena chat, 2026-12-04)
- Date: 2026-12-04
- Related:
AGENTS.md(agent instructions), ADR-026 (handoff cadence), ADR-028 (Arena single-branch constraint precedent), booklet 2 الف4/الف5,docs/ACCEPTANCE_POLICY.md - Renumbering note: introduced as ADR-031; two concurrent merges took the lower numbers first — R2 (PR #100, merged 2026-12-04T10:40:42Z) holds
ADR-031-r2-full-control-set.md, R3 (PR #101, merged 2026-12-04T11:50:09Z) holdsADR-032-r3-built-vs-official.md— so this ADR is ADR-033 per the add-new-ADR discipline (never rewrite an accepted ADR). Verify the number against the livedocs/adr/at merge time; if it has moved again, take the next free number.
Context
The owner directed (2026-12-04, Arena chat) that work on Aram proceeds through five specialized agents — an analyst, an independent tester who gates every deliverable, and three implementers — coordinated by a manager/architect/ integrator (M0, the Arena session) — and that the whole design be placed where every future agent session discovers it automatically, so the owner never has to paste prompts or name files in a new chat ("you pick the best method").
The design was elaborated and approved in chat: roster (M0 + A1 Analyst, B1 Backend, F1 Frontend, D1 DevOps/Release & Security, T1 Independent Tester), the work-order → focused-PR → tester-verdict → integration loop, serialization rules, and the governance invariants each role must obey.
Two placement problems had to be solved:
- Discovery. New agent sessions start with no chat memory and a clean
checkout of the canonical branch; untracked files do not propagate. The
entry point must be a file every agent in this ecosystem reads first.
AGENTS.mdis that file (its own header: "these instructions apply to every AI coding agent working in this repository, including Jules, Copilot, and Codex"). - Branch constraint. The Arena session is pinned to a single branch
(
arena/2d4eda07-aram, currently carrying open tooling PR #99). System-level rule: never create/push any other branch (precedents: ADR-028; R1 PROJECT_LOG entry).
Decision (§14 default + proof)
- Commit the orchestration documents at
docs/agent-orchestration/(MASTER_ORCHESTRATION_PROMPT.md— the consolidated single-agent prompt;AGENT_PROMPTS.md— the five per-role prompts for separate sessions). These are operating procedure, not analytical documents; the ban on new root-level analytical documents is unchanged. - Add a compact pointer section to
AGENTS.mdso every future session discovers the model automatically: read the master prompt before starting or resuming any task. A sole agent without sub-agent capability executes the roles sequentially with strict separation of duties — the verification phase (T1) independently reproduces all evidence and never trusts the implementation phase's claims. - Precedence is unchanged: the orchestration documents add procedure only;
they never override
AGENTS.md,PROJECT_STATUS.md,docs/ACCEPTANCE_POLICY.md, or the governing booklets. A T1 verdict is verification evidence, not acceptance; merge/tag remain owner/reviewer actions (§19). - Governance records updated per §0.5: this ADR; a
PROJECT_STATUS.mdbullet; adocs/PROJECT_LOG.mdentry; and adocs/handoff/LATEST_HANDOFF.mdrefresh (governance change → the ADR-026 cadence applies: role-model entry, superseded-head note, current single-next-action). - الف5 compromise (disclosed under الف4): the governance commits land on
the open PR #99 branch — forced by the single-branch constraint, not by
convenience. No code, data, or workflow behavior changes; the combined diff
stays far under the cap excluding tests/generated data. Split recipe if the
owner prefers separation: (a) create a
tooling-onlybranch fromsource-data-cleanup, cherry-pick the four tooling commits (38b1e65,9f915fe,3b16aa1,73889c7; verify live viagh pr view 99— the branch has since merged the advanced basea8ba20c), PR + independent review + merge; (b) the remaining diff on the session branch is governance-only → second focused PR. Or the owner approves the combined merge (one-time waiver, PR #96/#97 precedent). - Activation: the discovery mechanism goes live for new sessions only
after this merges into
source-data-cleanup(new sessions check out the canonical branch). Until then the mechanism exists on the open PR only.
Consequences
- Any new agent session reading
AGENTS.mddiscovers the model without owner effort; the master prompt's snapshot sections instruct live remote verification rather than trusting recorded state. - The orchestration documents can drift as the project evolves; the master
prompt's bootstrap rules (§2) and "orientation only — verify live" snapshot
(§8) are the mitigation. Role cards are guidance; per-session work orders in
the
docs/JULES_TASK_TEMPLATE.mdshape remain the binding task interface. - The mixed PR is transparent in its body; the reviewer chooses combined acceptance or the split recipe.
Risks
- If a harness changes how
AGENTS.mdis surfaced to agents, the pointer may need relocation (low cost; same mechanism, e.g.PROJECT_STATUS.mdheader). - Prompt content mentions operational facts (open PRs, debt) that age quickly; all such mentions are explicitly marked "verify live".