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

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

Synced Dec 4, 15:30 UTC

Docs(README): root README with the AGENTS.md agent entry point (#114)

* Tooling: pre-commit guards, detect-secrets baseline gate, Dependabot, Repo Hygiene workflow - .pre-commit-config.yaml: pre-commit-hooks v6.0.0 + ruff-pre-commit v0.17.6 (revs verified via GitHub API); ruff scopes mirror Backend CI exactly. end-of-file-fixer deliberately omitted (14 pre-existing EOF violations incl. governance-frozen files = unrelated churn); trailing-whitespace kept (zero pre-existing violations). - .secrets.baseline: 9 files / 18 reviewed false-positive findings. - scripts/check_secrets_baseline.py: churn-free CI gate — fails only on new (file, type, line-hash) triples; pragma allowlist escape hatch; negative- tested with a staged fake secret (exit 1) and pragma variant (exit 0). - .github/workflows/repo-hygiene.yml: pre-commit --all-files + secret gate on every PR and accepted-branch push. - .github/dependabot.yml: weekly github-actions/npm/pip updates (npm minors grouped; majors stay individual). Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com> * CI: frontend prod-dependency npm audit gate + vitest coverage thresholds - frontend-ci quality job: npm audit --omit=dev --audit-level=moderate (prod deps must be moderate-clean; currently 0 vulnerabilities) and npm test -> npm run test:coverage. Dev-only advisories in the vitest/vite chain are recorded in PROJECT_LOG for a dedicated major-upgrade task (not shipped). - vite.config.ts: v8 coverage scoped to src/** (tests/main.tsx/d.ts excluded), thresholds lines/statements 30, branches 70, functions 40 vs measured baseline 33.97/72.97/42.85/33.97 (15 tests); autoUpdate off. - package.json/lock: @vitest/coverage-v8 ^2.1.9 devDependency (+ test:coverage script); lockfile +591 generated lines for its dependency tree. Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com> * Docs: PROJECT_LOG entry + PROJECT_STATUS CI-gap update for the tooling PR Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com> * Fix: exclude .secrets.baseline from its own secret scan The baseline stores hashed_secret values and "hashed_secret" keys, which are secret-shaped by construction: the moment the file became tracked, every scan reported 22 self-referential findings (caught by the first CI run of PR #99; the pre-commit step of the same run passed). The gate now scans with --exclude-files '^\.secrets\.baseline$'; the documented regeneration command carries the same exclusion. PROJECT_LOG entry updated (same-PR doc). Verified: gate 0 new (18 baselined) on the tracked-baseline tree; negative test (staged fake secret) still exits 1 with file:line; pre-commit --all-files all hooks pass with zero modifications; git diff --check clean. Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com> * Docs(ADR-031): five-role agent orchestration — master prompt + per-role prompts - docs/agent-orchestration/MASTER_ORCHESTRATION_PROMPT.md: the consolidated single-agent prompt (M0 role, loop, invariants, verify-live snapshot, first actions) — owner directive, Arena chat 2026-12-04. - docs/agent-orchestration/AGENT_PROMPTS.md: the five per-role prompts (A1 Analyst / B1 Backend / F1 Frontend / D1 DevOps / T1 Independent Tester) for separate sessions. - docs/adr/ADR-031-agent-orchestration.md: decision record incl. the Arena single-branch constraint, the الف‌5 co-landing disclosure + split recipe, and the merge-activation semantics. Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com> * 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> * Governance: renumber orchestration ADR 031->032; make orchestration docs R2-aware The parallel session's R2 PR (#100, merged as a8ba20c) landed docs/adr/ADR-031-r2-full-control-set.md, colliding with this branch's ADR-031-agent-orchestration.md. Per the add-new-ADR discipline (never rewrite an accepted ADR), the orchestration ADR becomes ADR-032 with a renumbering note; all refs updated (AGENTS.md, PROJECT_STATUS.md bullet, PROJECT_LOG entry, LATEST_HANDOFF, both orchestration docs). Also refresh stale queue/snapshot claims now that R2 is merged: - B1 queue: R2 marked done/do-not-reimplement; R3-fixes next - MASTER snapshot: live head advanced to a8ba20c; R2 MERGED bullet; first actions reordered (A1 verifies R2, then authors R3 package) - AGENT_PROMPTS: A1 first task, B1 scope/ready text, T1 retroactive verification pass on PR #100, F1 coverage note - LATEST_HANDOFF: next action = R3 after #99 acceptance, with parallel-session coordination warning Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com> * Governance: renumber orchestration ADR 032->033 (R3 holds ADR-032-r3); refresh snapshots for R3 (PR #101 merged) R3 (built-vs-official comparison, BS 16/16 MET, IS 6/6 source-data-blocked) merged as PR #101 @ 0578ea5 while this PR was open, taking ADR-032. Per the add-new-ADR discipline the orchestration ADR becomes ADR-033; all refs updated. Orchestration snapshots/queues refreshed: R2+R3 marked merged (retroactive T1 passes queued), B1 queue now R4 -> C1/C3, IS residue flagged as owner/data escalation (never agent-side tolerance). Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com> * Governance: record owner-delegated acceptance of PR #99 (PASS, combined); reviewed secret-baseline update for R3 integrity hashes Owner directive (this Arena chat, 2026-12-04): «خودت اینکاری که از من خواستی رو انجام بده» — the pending owner step (independent review + combined-vs-split decision for PR #99) is delegated to the author session; the independence waiver is recorded in PROJECT_LOG per the PR #100/#101 self-merge precedent. Verdict: PASS; decision: combined acceptance (option a); mechanics: squash merge, no tag. Also: reviewed baseline update (.secrets.baseline 18->19) for the two high-entropy false positives R3 introduced in docs/discrepancies.json (SHA-256 integrity digests; JSON cannot host pragma comments) so the gate is green on the merged tree; HANDOFF superseded-note + single-next- action refreshed (mechanism goes live for new sessions after this merge; next: R4 via the orchestration loop; IS residue = owner escalation). Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com> * Docs(README): create root README with the AGENTS.md agent entry point Owner-approved follow-up to PR #99 (Arena chat, 2026-12-04): the repo had no root README, so agents (and humans) starting from the repository root had no orientation. Minimal, facts-only README: agent entry pointer (AGENTS.md -> ADR-033 orchestration master/per-role prompts) first, then a verified orientation table, quickstart commands taken from the CI workflows, and the governance quick notes. Every referenced path exists at head 70a0110 (checked individually). Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com> --------- Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>

davoodmehraban89 committed Dec 4, 2026 at 17:53 UTC 3c7638d5f9786bc288d19aa29b3293dd21074984
1 file changed +57
README.md new
+57
@@ -0,0 +1,57 @@
1 +# Aram
2 +
3 +Audit-safe backend foundation for Aram financial statements (FastAPI + SQLAlchemy + Alembic) with a React/TypeScript review workbench. Built from official Iranian source ledgers and official statement workbooks; every persisted figure must trace back to source rows and pass the control set.
4 +
5 +## Start here — AI agents
6 +
7 +**Read [`AGENTS.md`](AGENTS.md) first.** It is the entry point for every AI coding
8 +agent working in this repository (Jules, Copilot, Codex, Arena, …). It carries the
9 +source-of-truth rules, the work rules, and the pointer to the five-role agent
10 +orchestration (ADR-033):
11 +
12 +- Master prompt (read before starting or resuming any task):
13 + [`docs/agent-orchestration/MASTER_ORCHESTRATION_PROMPT.md`](docs/agent-orchestration/MASTER_ORCHESTRATION_PROMPT.md)
14 +- Per-role prompts for separate sessions (A1/B1/F1/D1/T1):
15 + [`docs/agent-orchestration/AGENT_PROMPTS.md`](docs/agent-orchestration/AGENT_PROMPTS.md)
16 +- Decision record: [`docs/adr/ADR-033-agent-orchestration.md`](docs/adr/ADR-033-agent-orchestration.md)
17 +
18 +## Orientation — humans
19 +
20 +| What | Where |
21 +|---|---|
22 +| Current state, phase table, open items | [`PROJECT_STATUS.md`](PROJECT_STATUS.md) |
23 +| Append-only decision/event log | [`docs/PROJECT_LOG.md`](docs/PROJECT_LOG.md) |
24 +| Architecture decision records | [`docs/adr/`](docs/adr/) |
25 +| Acceptance policy | [`docs/ACCEPTANCE_POLICY.md`](docs/ACCEPTANCE_POLICY.md) |
26 +| Authoritative work orders (booklets 1 & 2) | [`docs/booklet/`](docs/booklet/) |
27 +| Latest handoff prompt | [`docs/handoff/LATEST_HANDOFF.md`](docs/handoff/LATEST_HANDOFF.md) |
28 +| Backend (pilot workbench, API, controls) | [`backend/README.md`](backend/README.md) |
29 +| Frontend (React + Vite + Vitest + Playwright) | [`frontend/`](frontend/) |
30 +| Packaging | [`packaging/`](packaging/) |
31 +
32 +## Quickstart
33 +
34 +```bash
35 +# Backend (Python 3.11+)
36 +cd backend
37 +python -m pip install -e ".[test]"
38 +python -m pytest # full suite with coverage gates in CI
39 +
40 +# Frontend (Node 22)
41 +cd frontend
42 +npm ci
43 +npm run lint && npm run typecheck
44 +npm run test:coverage && npm run build
45 +```
46 +
47 +## Governance quick notes
48 +
49 +- `data/` and `samples/` are protected canonical data: read-only for agents; any
50 + change requires owner directive plus before/after tree-hash evidence.
51 +- One dedicated branch and one focused PR per task; at most ~1,500 changed lines
52 + excluding tests/generated data (booklet 2, الف‌۵). The PR body must match
53 + `git diff --stat` and the real head exactly (الف‌۴).
54 +- Merging and tagging are owner/reviewer actions only; a green CI on an unmerged
55 + PR is not acceptance evidence.
56 +- The new-secret gate (`.secrets.baseline` + `scripts/check_secrets_baseline.py`)
57 + fails only on findings that are not in the reviewed baseline.