Mirrored from https://github.com/davoodmehraban89/Aram.git
Synced Dec 4, 14:15 UTC
docs: refresh PROJECT_STATUS + PROJECT_LOG for Phase 0 debts (D-08)
Record D-01..D-12 states with commit evidence, real-data proof, ADRs 012/013/ 014/016/017, and local gate results (201 tests, coverage 92%/97%, pip-audit clean). D-09 marked BLOCKED (owner-only). No source data changed. Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
davoodmehraban89 committed
Dec 3, 2026 at 09:34 UTC
b3e8125d6bc42dc183e70ca2801aa8ae2e5d8fde
2 files changed
+43
PROJECT_STATUS.md
+23
@@ -78,6 +78,29 @@ The accepted branch does not include PR #7 desktop/release work, PR #16 alternat
78
2. The independent reviewer re-fetches the resulting documentation-only head, confirms that its comparison with `b3dc8b3a18934ffe63f615e4f650248be21a5f9c` changes only `PROJECT_STATUS.md` and `docs/handoff/LATEST_HANDOFF.md`, verifies the final workflow result, then marks the PR ready and squash-merges it.
79
3. Only after V1-01 is accepted, start the first focused Gate 3 Mapping import/persistence task from the new accepted head.
80
81
+## Booklet v1.0 — Phase 0 (execution work order)
82
+
83
+Authoritative work order: «کتابچهٔ اجرایی تکمیل Aram» v1.0 (base head `7dc864fd032f0c4ae4d650d89304a01286a6d914`, PR #21 merge). Branch `arena/094f314c-aram`. Per §17 the agent resolves ambiguities by default + real-data proof + ADR and never queries the owner; the owner's sole role is Phase-9 final acceptance.
84
+
85
+| Debt | State | Evidence |
86
+|---|---|---|
87
+| D-01 LedgerBalance model | VERIFIED_BUT_UNMERGED | commit `a3c330b`; exact-rial round-trip + aggregation tests |
88
+| D-02 controls in preflight | VERIFIED_BUT_UNMERGED | commit `8f2f902`; C-01..C-04 preflight tests |
89
+| D-03 Rial money column | VERIFIED_BUT_UNMERGED | commit `a3c330b`; BIGINT storage >2^53 via ORM; ADR-012 |
90
+| D-04 numeric code normalization | VERIFIED_BUT_UNMERGED | commit `ac565e9`; integral-numeric exact, leading zeros preserved |
91
+| D-05 Persian header matching | VERIFIED_BUT_UNMERGED | commit `ac565e9`; normalize_fa header matching |
92
+| D-06 source bytes + CSV | VERIFIED_BUT_UNMERGED | commit `a661423`; content-addressed store + CSV encodings/delimiters |
93
+| D-07 immutability + audit + reopen | VERIFIED_BUT_UNMERGED | commit `00ca58e`; raw-SQL locked-year guards, hash chain, ADR-016 |
94
+| D-08 status/log refresh | IN_PROGRESS | this entry |
95
+| D-09 git-history rewrite | BLOCKED | owner-only; requires explicit owner approval (§19) |
96
+| D-10 hierarchy mapping | VERIFIED_BUT_UNMERGED | commit `ac565e9`; ADR-014 (general=kol, subsidiary=حساب) |
97
+| D-11 inspection guards | VERIFIED_BUT_UNMERGED | commit `ac565e9`; max_column None guard |
98
+| D-12 CI quality gates | VERIFIED_BUT_UNMERGED | commit `8412c56`; ruff/mypy/coverage/pip-audit/PG matrix; ADR-017 |
99
+
100
+Phase-0 local evidence: 201 tests passed; ruff clean; mypy domain strict clean; coverage total 92% / domain 97%; pip-audit no known vulnerabilities; SQLite migration up/down/up clean. PostgreSQL migration path is exercised by the CI matrix (no local PG). Real-data evidence (source_1404.xlsx, 252,898 rows): debit-positive C-01 holds 252,892/252,898; Σdebit=Σcredit=10,823,163,409,740,108; OD-01 refuted (T1..T4 concat ≠ حساب), ADR-014 adopted. No canonical `data/` or `samples/` file changed.
101
+
102
+ADRs added: 012 (money scale/rounding), 013 (sign contract), 014 (T1..T4 hierarchy), 016 (reopen/immutability), 017 (CI gates/tooling).
103
+
104
## Control documents
105
106
- [Project log](docs/PROJECT_LOG.md)
docs/PROJECT_LOG.md
+20
@@ -278,3 +278,23 @@ Each new entry must record: UTC timestamp, actor, task/phase, base branch and SH
278
- Recovery: close the candidate PR without merge; accepted branch remains at the recorded base
279
- Remaining risks: comprehensive Mapping, note/sub-note workflow, real Pilot UI/output, Windows packaging, and user acceptance remain incomplete
280
- Next action: publish the focused PR and obtain independent remote review after CI
281
+
282
+### 2026-12-03T09:30:00Z — Booklet v1.0 Phase 0 debts executed
283
+
284
+- Actor: Arena agent (implementation), per booklet §17 autonomous default+proof+ADR
285
+- Task/phase: Phase 0 — clear debts D-01..D-12 before Phase 1 vertical slice
286
+- Base: `source-data-cleanup@7dc864fd032f0c4ae4d650d89304a01286a6d914`
287
+- Working branch: `arena/094f314c-aram`
288
+- Commits: `ac565e9` (domain + D-04/D-05/D-10/D-11 + ADR-012/013/014), `a3c330b` (D-01/D-03 LedgerBalance + Rial), `a661423` (D-06 source store + CSV), `00ca58e` (D-07 immutability triggers + hash-chained audit + reopen + ADR-016), `8f2f902` (D-02 controls preflight), `8412c56` (D-12 CI gates + ADR-017)
289
+- Implementation: pure financial domain (normalization/money/hierarchy/controls); LedgerBalance model with exact integer-rial BIGINT; content-addressed source-byte store + full CSV (UTF-8/BOM/Windows-1256, delimiter sniff); DB triggers block raw-SQL mutation of locked years; append-only hash-chained audit log + controlled reopen; C-01..C-04 ingestion preflight; CI quality gates (ruff, mypy strict domain, coverage total>=80%/domain>=90%, pip-audit, SQLite+PostgreSQL migration matrix)
290
+- Local tests: `cd backend && pytest` -> 201 passed
291
+- Gates: ruff check clean; ruff format (domain/services/migrations) clean; mypy domain strict clean; coverage total 92.23% / domain 97%; pip-audit no known vulnerabilities; SQLite alembic up/down/up clean; compileall clean; git diff --check clean
292
+- Real-data evidence (read-only): source_1404.xlsx 252,898 rows; debit-positive C-01 holds 252,892/252,898; Σdebit=Σcredit=10,823,163,409,740,108; OD-01 refuted, ADR-014 hierarchy adopted (general=kol, subsidiary=حساب, canonical=kol+حساب)
293
+- GitHub Actions: pending push of branch; CI matrix will exercise PostgreSQL
294
+- Artifacts/releases: `NONE`
295
+- Protected data: no canonical `data/`, `samples/`, XLSX/PDF, database, financial-source value, ZIP, EXE, tag, or release changed
296
+- D-09 (git-history rewrite): BLOCKED — owner-only, requires explicit approval (§19); not performed
297
+- Acceptance: `IN_PROGRESS`; implementation author must not merge
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)