Mirrored from https://github.com/davoodmehraban89/Aram.git
Synced Dec 4, 04:15 UTC
docs: record Phases 1-4 + owner priority fixes in status/log (§0)
Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
davoodmehraban89 committed
Dec 3, 2026 at 10:48 UTC
a5d9010e917aeca00a7b655bdc2114788e8c0d8b
2 files changed
+40
PROJECT_STATUS.md
+20
@@ -101,6 +101,26 @@ Phase-0 local evidence: 201 tests passed; ruff clean; mypy domain strict clean;
101
102
ADRs added: 012 (money scale/rounding), 013 (sign contract), 014 (T1..T4 hierarchy), 016 (reopen/immutability), 017 (CI gates/tooling).
103
104
+## Booklet v1.0 — Phases 1–4 + owner priority fixes (execution work order)
105
+
106
+Continuation on branch `arena/094f314c-aram` (base `7dc864fd`). Per §17 the agent resolves by default + real-data proof + ADR and never queries the owner.
107
+
108
+| Phase / item | State | Evidence |
109
+|---|---|---|
110
+| Phase 1 statements + drill-down | VERIFIED_BUT_UNMERGED | commit `9c33586`; build_statements BS/IS, drill_down source{filename,file_hash,sheet,row} |
111
+| Phase 2 mapping import/export | VERIFIED_BUT_UNMERGED | commit `cfbd879`; mapping_io Mappings sheet, fail-closed, idempotent |
112
+| Phase 3 note formula engine | VERIFIED_BUT_UNMERGED | commit `9fba3c6`; AST formula (no eval), acct/row/note/sum/abs, cycle detection |
113
+| Phase 4 golden comparison | VERIFIED_BUT_UNMERGED | commit `225a38c`; golden.py header-name columns; 1403+1404 real-data tests pass |
114
+| Fix 1 money/P-02 (ADR-012) | VERIFIED_BUT_UNMERGED | commit `a00b0dc`; 457,074 rows, 0 fractional rial; 7 guard tests |
115
+| Fix 2 raw-row drill-down (D3/P-01) | VERIFIED_BUT_UNMERGED | commit `f7c3b4a`; one LedgerBalance per source row; ledger_aggregate service; migration 20261203_05 round-trip |
116
+| Fix 3 approval gate (D5/C-03) | VERIFIED_BUT_UNMERGED | commit `1844a62`; evaluate_controls explicit; hard ERROR gate; 13 tests |
117
+| Fix 4 tests + CI (D-12/§14) | VERIFIED_BUT_UNMERGED | commits `225a38c`,`be08192`; mypy services gate; frontend eslint/tsc/vitest/Playwright |
118
+| Phase 5 UI + Playwright | IN_PROGRESS | frontend scaffold (Vite+React+TS RTL) committed; full screens next |
119
+
120
+Local evidence at head `accf1cc`: backend **281 tests passed**; ruff clean; mypy domain strict + services clean; frontend lint/tsc/vitest/build pass; Playwright `--list` validates 2 specs. Migration 20261203_05 up/down/up verified (SQLite). No canonical `data/` or `samples/` file changed.
121
+
122
+ADRs added in this stretch: 021 (golden comparison scale/column resolution).
123
+
124
## Control documents
125
126
- [Project log](docs/PROJECT_LOG.md)
docs/PROJECT_LOG.md
+20
@@ -298,3 +298,23 @@ Each new entry must record: UTC timestamp, actor, task/phase, base branch and SH
298
- Reviewer: independent reviewer pending
299
- Remaining risks: PostgreSQL path validated only in CI (no local PG); Phase 1+ vertical slice, mapping, notes, statements, UI, packaging, UAT remain
300
- Next action: push branch, open focused Phase-0 PR, obtain independent remote review after CI; then Phase 1 vertical slice (1404)
301
+
302
+### 2026-12-03T10:45:00Z — Booklet v1.0 Phases 1–4 + owner priority fixes
303
+
304
+- Actor: Arena agent (implementation), per booklet §17 autonomous default+proof+ADR
305
+- Task/phase: Phases 1–4 vertical slice, then owner's 4 high-priority architecture fixes before new phases
306
+- Base: `source-data-cleanup@7dc864fd032f0c4ae4d650d89304a01286a6d914`
307
+- Working branch: `arena/094f314c-aram`
308
+- PR: [#96](https://github.com/davoodmehraban89/Aram/pull/96) (draft -> source-data-cleanup)
309
+- Commits: `9c33586` (Phase 1 statements+drill-down), `cfbd879` (Phase 2 mapping io), `9fba3c6` (Phase 3 note formula engine), `b79d68e` (Phase 4 WIP), `a00b0dc` (Fix 1 money/P-02), `f7c3b4a` (Fix 2 raw ledger rows), `1844a62` (Fix 3 approval gate), `225a38c` (Fix 4 services mypy+golden+negative tests), `be08192` (Fix 4 frontend CI gates), `accf1cc` (ruff cleanup)
310
+- Implementation: build_statements (BS/IS/CF/EQ) with source drill-down; mapping Excel import/export (fail-closed, idempotent); AST note-formula engine (no eval) with cycle detection; golden comparison resolving columns BY HEADER NAME (1403/1404 layouts differ); raw-row LedgerBalance storage + ledger_aggregate compute service + migration 20261203_05; explicit approval evaluate_controls with hard ERROR gate (C-03 double-mapping enforced); type-clean services; frontend Vite+React+TS RTL scaffold with eslint/tsc/vitest/Playwright gates
311
+- Local tests: `cd backend && pytest` -> 281 passed; `mypy src/aram_backend/services src/aram_backend/domain` -> clean; ruff check/format clean; frontend `npm run lint`/`typecheck`/`test`/`build` pass; `npx playwright test --list` -> 2 specs
312
+- Fix 1 real-data evidence: both ledgers, 6 money columns, 457,074 rows -> 0 fractional rial; ADR-012 documents scale-0 storage guarantee; 7 no-silent-rounding guard tests
313
+- Fix 4 audit note: owner item #3 was partly inaccurate — approval.py already passed mappings to run_controls; refactor makes C-03 enforcement explicit and adds proof tests rather than claiming a wiring bug
314
+- GitHub Actions: Backend CI + Frontend CI triggered on push (run IDs recorded after completion)
315
+- Artifacts/releases: `NONE`
316
+- Protected data: no canonical `data/`, `samples/`, XLSX/PDF, database, financial-source value, ZIP, EXE, tag, or release changed
317
+- Acceptance: `IN_PROGRESS`; implementation author must not merge
318
+- Reviewer: independent reviewer pending
319
+- Remaining risks: Phase 5 full UI screens, Phase 6 outputs, Phase 7 users/audit/reopen/backup, Phase 8 installer, Phase 9 UAT+tag remain; PostgreSQL path validated only in CI
320
+- Next action: continue §15 phase order — Phase 5 UI + Playwright, then 6→9; finish §18 report