@davoodmehraban89 / Aram-2 Mirror · read-only / commits / bae834b
Fork 0

Mirrored from https://github.com/davoodmehraban89/Aram.git

Synced Dec 4, 15:30 UTC

Governance: AGENTS.md orchestration pointer + STATUS/LOG/HANDOFF records (ADR-031)

- AGENTS.md: compact 'Agent orchestration (five-role model — ADR-031)' section — the ecosystem's auto-read agent entry point now directs every future session to the master prompt before starting or resuming work; precedence clause (never overrides AGENTS.md / ACCEPTANCE_POLICY / booklets) included. - PROJECT_STATUS.md: Agent-operations bullet in the repository baseline. - docs/PROJECT_LOG.md: append-only entry (mechanism, الف‌5 disclosure, secret-gate re-verification, protected-data confirmation). - docs/handoff/LATEST_HANDOFF.md: governance-change refresh per ADR-026 — role-model entry, superseded-head note, current single-next-action. Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>

davoodmehraban89 committed Dec 4, 2026 at 10:41 UTC bae834b91a8ca34c9a7574dad15f7054d2fb0ec7
4 files changed +37 -2
AGENTS.md
+21
@@ -27,6 +27,27 @@ Never treat a local file, task summary, or agent report as proof that a branch,
27 - Do not commit ZIP, EXE, build output, secrets, credentials, caches, or local databases unless explicitly required by an approved artifact task.
28 - Do not invent financial values, mapping rules, tests, CI outcomes, URLs, or acceptance status.
29
30 +## Agent orchestration (five-role model — ADR-031)
31 +
32 +Work proceeds through a five-role agent orchestration coordinated by a single
33 +manager (M0): **A1** Analyst (no product code), **B1** Backend Engineer,
34 +**F1** Frontend Engineer, **D1** DevOps/Release & Security Engineer, and
35 +**T1** Independent Tester, who gates every deliverable and never fixes code.
36 +
37 +Before starting or resuming any task in this repository, read
38 +`docs/agent-orchestration/MASTER_ORCHESTRATION_PROMPT.md` — it defines the
39 +roles, the work-order → focused-PR → tester-verdict → integration loop,
40 +serialization rules against open PRs, and first actions. Full per-role prompts:
41 +`docs/agent-orchestration/AGENT_PROMPTS.md` (use when the roles run as separate
42 +sessions).
43 +
44 +A sole agent without sub-agent capability executes the roles sequentially with
45 +strict separation of duties: the verification phase must independently
46 +reproduce all evidence (fresh checkout, re-run commands, CI on the real head
47 +SHA) and never trust the implementation phase's claims. The orchestration
48 +documents add operating procedure only — they never override this file,
49 +`PROJECT_STATUS.md`, `docs/ACCEPTANCE_POLICY.md`, or the governing booklets.
50 +
51 ## Verification
52
53 - Run the exact tests required by the task.
PROJECT_STATUS.md
+2
@@ -12,6 +12,8 @@
12 - Product objective: a controlled, auditable accounting and financial-statement workflow that preserves canonical source data.
13 - Authoritative work orders: booklet 1 v1.0 ([`docs/booklet/BOOKLET_v1.0.md`](docs/booklet/BOOKLET_v1.0.md), ADR-025) and **booklet 2 v2.0** ([`docs/booklet/BOOKLET_v2.0.md`](docs/booklet/BOOKLET_v2.0.md), ADR-027 — course correction + general-platform architecture; supersedes conflicting parts of booklet 1). Integrity anchored by SHA-256 in [`docs/booklet/MANIFEST.json`](docs/booklet/MANIFEST.json). **Governing now: booklet 2.1** (owner message 2026-12-04; no markdown copy is committed because the agent holds no byte-exact original — the owner's text is authoritative, see `MANIFEST.json`). It closes only the remaining gaps and takes precedence over booklets 2 and 1, whose other sections stay valid. Work is split into **R1…R6**, one PR each, ≤1,500 lines excluding tests/data; security/control defects may not be deferred.
14
15 +- **Agent operations — five-role orchestration (ADR-031, 2026-12-04):** M0 manager + A1 Analyst / B1 Backend / F1 Frontend / D1 DevOps / T1 Independent Tester; auto-discovered through the `AGENTS.md` pointer; entry point `docs/agent-orchestration/MASTER_ORCHESTRATION_PROMPT.md`, per-role prompts `docs/agent-orchestration/AGENT_PROMPTS.md`. Orchestration adds operating procedure only — it never overrides `AGENTS.md`, `docs/ACCEPTANCE_POLICY.md`, or the booklets; a T1 verdict is verification evidence, not acceptance.
16 +
17 ## Status vocabulary
18
19 | State | Meaning |
docs/PROJECT_LOG.md
+10
@@ -443,3 +443,13 @@ Each new entry must record: UTC timestamp, actor, task/phase, base branch and SH
443 - Evidence: `pre-commit run --all-files` — all hooks Passed, zero file modifications; secret gate 0 new; frontend eslint + tsc clean; **15 vitest tests pass** under the coverage gate; `npm run build` clean; `npm ci` reproduces the lockfile (+591 lines = generated `@vitest/coverage-v8` dependency tree). Backend code untouched (Backend CI path filter unaffected); no R-task scope touched.
444 - Protected data: `data/` tree `2ef8a512523f62f0cf84c5009f141be2f8a9cb5f` and `samples/` tree `00aba54b1dc30485ba9b164c8036a7b4bbe9020e` unchanged (before = after).
445 - Acceptance: IN_PROGRESS; author does not merge or tag. Next: independent review of the tooling PR; the vitest/vite major upgrade and any coverage-threshold raise are follow-up tasks.
446 +
447 +### 2026-12-04T10:40:55Z — ADR-031: five-role agent orchestration adopted + auto-discovery entry point (owner directive)
448 +
449 +- Actor: Arena agent (M0 implementation). Trigger: owner directive in Arena chat (2026-12-04): place the five-agent orchestration where every future agent reads it automatically — "you pick the best method" — so no prompt-pasting or file-naming is needed in a new session.
450 +- Landed: `docs/agent-orchestration/MASTER_ORCHESTRATION_PROMPT.md` + `AGENT_PROMPTS.md` (design from the earlier chat turns, now committed); `docs/adr/ADR-031-agent-orchestration.md`; compact pointer section in `AGENTS.md` (the ecosystem's auto-read agent entry point: read the master prompt before starting or resuming any task); `PROJECT_STATUS.md` bullet; `docs/handoff/LATEST_HANDOFF.md` refresh (governance change → ADR-026 cadence: role-model entry, superseded-head note, current single-next-action).
451 +- Mechanism: a new session checks out the canonical branch → reads `AGENTS.md` → pointer → master prompt (roles, work-order → PR → tester-verdict → integration loop, serialization, invariants, first actions, "verify live" snapshot). **Goes live for new chats only after the merge into `source-data-cleanup`.**
452 +- الف‌5 disclosure: the Arena single-branch constraint (system-level; precedents ADR-028 / R1) forces co-landing with open tooling PR #99 — the governance commits join the same branch/PR; PR title+body updated (الف‌4); the split recipe is documented in ADR-031; the owner chooses combined acceptance or split.
453 +- No product/backend/frontend/workflow behavior change; no R-task scope touched. Secret gate re-verified after the additions: `.secrets.baseline` unchanged (the new docs' 40-char tree hashes do not trigger the plugins — fresh-scan diff = 0 new / 0 gone).
454 +- Protected data: `data/` tree `2ef8a512523f62f0cf84c5009f141be2f8a9cb5f` + `samples/` tree `00aba54b1dc30485ba9b164c8036a7b4bbe9020e` unchanged (before = after).
455 +- Acceptance: IN_PROGRESS; author does not merge or tag. Next: independent review of the updated PR #99 (tooling + orchestration governance); after acceptance → R2 via the orchestration loop.
docs/handoff/LATEST_HANDOFF.md
+4 -2
@@ -8,7 +8,7 @@
8
9 - Repository: davoodmehraban89/Aram
10 - Canonical branch: `source-data-cleanup`
11 -- **Live accepted head: `46253c94405abd065dfc5e8cf080b295cb83cde4`** — squash merge of [PR #96](https://github.com/davoodmehraban89/Aram/pull/96) at 2026-12-03T15:22:02Z (owner final acceptance).
11 +- **Live accepted head: `46253c94405abd065dfc5e8cf080b295cb83cde4`** — squash merge of [PR #96](https://github.com/davoodmehraban89/Aram/pull/96) at 2026-12-03T15:22:02Z (owner final acceptance). *(Superseded: the head has since advanced — PR #97 → `f2e6da5`, PR #98/R1 → `07a8ae0`; verify live.)*
12 - **Release tag `v1.0.0`** → `46253c94405abd065dfc5e8cf080b295cb83cde4` (owner-authorized, pre-mission). Author does not tag (§19).
13 - Post-merge CI on accepted head: [Backend #47137691800](https://github.com/davoodmehraban89/Aram/actions/runs/47137691800) ✅, [Frontend #47137691857](https://github.com/davoodmehraban89/Aram/actions/runs/47137691857) ✅.
14 - Booklet Phases 0–9 are **VERIFIED_AND_MERGED** at this head (319 backend tests; see `PROJECT_STATUS.md`).
@@ -41,6 +41,8 @@ Booklet 2 v2.0 (`docs/booklet/BOOKLET_v2.0.md`, ADR-027) supersedes conflicting
41 - Accounting ambiguity, material scope, protected-data changes, releases, destructive actions, credentials, and new external authority remain Davood escalation points.
42 - A repository mismatch pauses only the affected task without edits; it does not halt the project.
43
44 +- **Five-role agent orchestration (ADR-031, 2026-12-04, owner directive):** M0 manager/architect/integrator coordinates A1 Analyst (no product code), B1 Backend Engineer, F1 Frontend Engineer, D1 DevOps/Release & Security Engineer, and T1 Independent Tester, who gates every deliverable (findings only, never fixes). Entry point: `docs/agent-orchestration/MASTER_ORCHESTRATION_PROMPT.md`, auto-discovered through the `AGENTS.md` pointer; per-role prompts: `docs/agent-orchestration/AGENT_PROMPTS.md`. A sole agent executes the roles sequentially with strict separation of duties (verification reproduces all evidence independently). A T1 verdict is verification evidence, not acceptance; merge/tag remain owner/reviewer actions (§19).
45 +
46 ## Governance and release reality
47
48 - GitHub remote evidence outranks this record and every agent report.
@@ -52,4 +54,4 @@ Booklet 2 v2.0 (`docs/booklet/BOOKLET_v2.0.md`, ADR-027) supersedes conflicting
54
55 ## Single next action
56
55 -Independent GitHub review of the C0 PR (#97, re-scoped from B0: booklet 1+2 references + browser-edition removal + PR triage + process rules). After C0 acceptance, start C1 (real vertical slice: 1404 → LedgerBalance → C-01/C-02 → mapping → BS/IS → official reconciliation) from the new accepted head, recording evidence in `PROJECT_STATUS.md`. Do not merge or tag; do not begin C1 before C0 acceptance.
57 +Independent GitHub review of PR #99 (verify the live head — the branch advances with pushes): dev tooling (pre-commit + secret gate, Repo Hygiene workflow, Dependabot, frontend prod-audit + coverage gates) **and** the ADR-031 five-role orchestration governance (owner directive, Arena chat 2026-12-04). After #99 acceptance, start R2 (booklet 2.1: controls C-05..C-15 wired into `run_controls` + the approval gate) from the new accepted head via the orchestration loop (M0 work order → B1 implements → T1 gates → M0 integrates), recording evidence in `PROJECT_STATUS.md`. Do not merge or tag; R2 starts only after #99 acceptance.