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>