Mirrored from https://github.com/davoodmehraban89/Aram.git
Synced Dec 3, 20:45 UTC
arena/094f314c-aram
add-index-html-10623938925177053894
arena/094f314c-aram
chatgpt-phase1b2-autopilot
codex/adr-future-connectors-pi-v1
codex/aram-account-note-source-trace-20261031
codex/aram-actions-node24-maintenance-20261031
codex/aram-analyst-review-workbook-20261031
codex/aram-bs-candidate-statement-20261031
codex/aram-cash-flow-direct-candidate-20261031
codex/aram-clean-reference-year-integrity-20261030
codex/aram-cross-statement-controls-20261031
codex/aram-equity-changes-candidate-20261031
codex/aram-five-statement-cli-20261031
codex/aram-five-statement-integration-20261031
codex/aram-five-statement-orchestrator-20261031
codex/aram-gate3-coverage-target-guard-20261030
codex/aram-gate3-hidden-xlsx-guard-20261030
codex/aram-gate3-integration-validation-20261030
codex/aram-gate3-mapping-change-preview-20261030
codex/aram-gate3-stale-note-guard-20261030
codex/aram-income-statement-candidate-20261031
codex/aram-manifest-referential-integrity-20261031
codex/aram-mapping-source-parser-20261101
codex/aram-multidimensional-mapping-20261101
codex/aram-multistatement-mapping-20261031
codex/aram-pipeline-manifest-schema-20261031
codex/aram-readonly-mapping-coverage-20261031
codex/aram-reconciliation-review-gate-20261031
codex/aram-same-flush-fiscal-lock-20261030
codex/aram-synthetic-windows-demo-20261031
codex/aram-trial-balance-diagnostic-20261031
codex/aram-windows-background-detail-search-20261031
codex/aram-windows-detail-review-20261031
codex/aram-windows-five-statement-pilot-20261031
codex/aram-windows-statement-figures-20261031
codex/gate-2a-pilot-workbook
codex/gate-2a-pilot-workbook-6864754244772568979
codex/gate3-authenticated-principal-boundary-20261030
codex/gate3-authored-draft-staging-20261030
codex/gate3-carry-forward-preview-20261023
codex/gate3-draft-staging-audit-20261030
codex/gate3-mapping-batch-freshness-20261030
codex/gate3-mapping-batch-review-20261030
codex/gate3-mapping-core
codex/gate3-mapping-coverage-20261023
codex/gate3-mapping-excel-20261023
codex/gate3-note-mapping-review-20261023
codex/gate3-signed-year-scope-20261030
codex/gate3-unapproved-proposal-storage-20261030
codex/payvast-mapping-discovery-20261023
codex/phase-2a-backend-foundation
codex/phase-2b-post-merge-record
codex/phase-2b-source-registration
codex/phase-2b-source-registration-12955190277775369594
codex/post-gate2a-control-reconciliation
codex/post-pr18-acceptance-record
codex/project-control-foundation
codex/t1-repo-hygiene-20261023
codex/t2-ci-hardening-20261023
codex/t3-explicit-migrations-20261023
codex/t6a-readonly-diagnostics-20261023
codex/v1-01-safety-gate-hardening
codex/v1-year-isolation-followup-20261023
codex/windows-native-pilot-shell-20261030
docs/aram-master-control-plan-20261111
docs/aram-roadmap-dashboard-20261030
docs/financial-statement-reconciliation-1402-1404-20261110
feat/gate3-governed-mapping-20261101
feat/gate3-package9-1-security-20261103
feat/gate3-package9-isolated-20261103
fix/password-unicode-validation-20261111
governance/aram-5-1-3-controls-20261030
governance/role-based-operating-model
jules-1168663913887856558-73b8a885
jules-gate-2b-mapping-workflow-foundation-4137724387867065330
phase-1b1-audit-report-7365389436990903239
phase-2a-backend-foundation-10237597358138521261
phase1b2-postmerge-metadata-fix
refactor/drg-parent-year-id-15088443704684163304
source-data-cleanup
Project Log
This is an append-only operational log. Never delete or rewrite accepted entries. Corrections must be added as new entries that reference the original entry.
Required entry fields
Each new entry must record: UTC timestamp, actor, task/phase, base branch and SHA, working branch, PR number/URL, commit SHA, exact changed files, test command, GitHub Actions run URL/result, artifact or release URL, acceptance status, reviewer, remaining risks, and next action. Unknown evidence must be written as NOT_VERIFIED, never guessed.
Historical entries imported from GitHub
2026-08-18T11:08:12Z — Phase 1B-1
- Actor: Jules / repository owner
- Base:
source-data-cleanup@d18287a74c9453e8071ed03db6b369805b5ccde3 - Working branch:
phase-1b1-audit-report-7365389436990903239 - PR: #1
- Head SHA:
a3e3f675ca637b5ab719b1d6e5fc37c9fb47f707 - Merge SHA:
cd074095c3d63a4a2da1ab8490ce772f555fc91d - Changed files: 3; exact list available in the PR
- Tests / CI / artifacts:
NOT_VERIFIED - Acceptance:
VERIFIED_AND_MERGED - Reviewer: repository owner
- Remaining risk: historical test evidence not recorded here
- Next action: Phase 1B-2
2026-08-19T16:29:06Z — Phase 1B-2 corrections
- Actor: Jules / repository owner
- Base:
source-data-cleanup@cd074095c3d63a4a2da1ab8490ce772f555fc91d - Working branch:
jules-1168663913887856558-73b8a885 - PR: #4
- Head SHA:
ce77f7511066ff85845e6d1f383f20a264f4730b - Merge SHA:
f8084268c1080595d9da672d490834ed677ad77f - Changed files: 7; exact list available in the PR
- Tests / CI / artifacts:
NOT_VERIFIED - Acceptance:
VERIFIED_AND_MERGED - Reviewer: repository owner
- Remaining risk: claims must still be interpreted against the source evidence
- Next action: Phase 2A
2026-08-20T18:53:39Z — Phase 2A backend foundation
- Actor: ChatGPT/Codex implementation; repository owner
- Base:
source-data-cleanup@f8084268c1080595d9da672d490834ed677ad77f - Working branch:
codex/phase-2a-backend-foundation - PR: #6
- Head SHA:
2bcf2b3cbab6d3df1d9340397cec43e363aec8f7 - Merge SHA:
84b19ef1a6efe3e82291a565829ba3e1fc47d246 - Changed files: 18; exact list available in the PR
- Reported test command:
cd backend && pytest - GitHub Actions: reported successful in PR; direct run URL not recorded here
- Artifacts: none
- Acceptance:
VERIFIED_AND_MERGED - Reviewer: repository owner
- Remaining risk: preserve data and fiscal-year invariants
- Next action: focused ingestion work
2026-08-24T00:34:12Z — Model refactor
- Actor: Jules / repository owner
- Base:
source-data-cleanup@84b19ef1a6efe3e82291a565829ba3e1fc47d246 - Working branch:
refactor/drg-parent-year-id-15088443704684163304 - PR: #8
- Head SHA:
b602ced45b04ac0876acac2dcca381d72de38c27 - Merge SHA:
5122fd052ebe0ffe0e07dbb8153a872a4f047355 - Changed files:
backend/src/aram_backend/models.py - Reported test command:
python -m pytest backend/tests/ - GitHub Actions URL:
NOT_VERIFIED - Artifacts: none
- Acceptance:
VERIFIED_AND_MERGED - Reviewer: repository owner
- Remaining risk: none newly recorded
- Next action: Phase 2B review
2026-08-24T00:34:36Z — Parallel V1 prototype closed
- Actor: Jules / repository owner
- Base:
source-data-cleanup@84b19ef1a6efe3e82291a565829ba3e1fc47d246 - Working branch:
phase-2a-backend-foundation-10237597358138521261 - PR: #7
- Head SHA:
a06aab6f2e2c50ec8111316b1a689fb71660c000 - Merge SHA: none
- Changed files: 94; exact list available in the PR
- Tests / GitHub Actions / official release:
NOT_VERIFIED - Branch artifacts: present in the unmerged PR; not accepted release assets
- Acceptance:
VERIFIED_BUT_UNMERGED; closed, superseded/out of scope - Reviewer: repository owner
- Remaining risk: large parallel implementation; do not merge directly
- Next action: recover feature-by-feature through focused PRs
2026-08-24T01:34:25Z — Phase 2B ingestion foundation opened
- Actor: ChatGPT/Codex implementation; repository owner
- Base:
source-data-cleanup@5122fd052ebe0ffe0e07dbb8153a872a4f047355 - Working branch:
codex/phase-2b-source-registration - PR: #9
- Head SHA at import:
8b141d793ad2d534fdf7399bb79d101d53ae29af - Changed files: 8; exact list available in the PR
- Reported test command:
pytest - Reported GitHub Actions: success; direct run URL must be checked during review
- Artifacts: none
- Acceptance:
IN_PROGRESS; draft, not merged - Reviewer: pending independent review
- Remaining risk: evidence and diff review incomplete
- Next action: review before any acceptance
[2026-08-24] Phase 2B Replacement Candidate (PR #12)
- Recorded PR #10 governance merge in PROJECT_STATUS.md.
- Created and recorded PR #12 as the replacement candidate for Phase 2B, superseding PR #9.
- Current active branch:
codex/phase-2b-source-registration-12955190277775369594 - Base SHA:
a41b07d7a7dd192c3ae4a277eb4903327883456f - Verified CI evidence: GitHub Backend CI run #16 successful on PR #12.
- Updated docs to ensure Phase 2B metadata-registration conflict rejection is thoroughly tested and verified.
2026-08-24T08:00:00Z — PR #12 corrective evidence and documentation finalization
- Actor: Jules implementation; ChatGPT/Codex independent remote verification and documentation correction
- Task/phase: Phase 2B ingestion foundation replacement candidate
- Base:
source-data-cleanup@a41b07d7a7dd192c3ae4a277eb4903327883456f - Working branch:
codex/phase-2b-source-registration-12955190277775369594 - PR: #12
- Independently reviewed implementation head:
9e90533658e400a51402db673efae9cbd0aa37d1 - Changed files at reviewed head:
PROJECT_STATUS.md,backend/README.md,backend/pyproject.toml,backend/src/aram_backend/ingestion.py,backend/src/aram_backend/ledger_parser.py,backend/src/aram_backend/workbook_inspection.py,backend/tests/test_ingestion.py,backend/tests/test_ledger_parser.py,backend/tests/test_workbook_inspection.py,docs/PROJECT_LOG.md,docs/handoff/LATEST_HANDOFF.md - Regression evidence: exact duplicate remains idempotent; same-year/same-hash conflicts in document type, filename, or both raise
SourceRegistrationError; each rejection leaves one unchanged originalSourceDocument - Reported local verification by Jules: full backend pytest suite, compileall, Alembic upgrade/downgrade round-trip, and
git diff --checkpassed; exact pytest count was not independently captured and remainsNOT_VERIFIED - GitHub Actions: Backend CI run #17,
success - Artifacts/releases: none
- Protected data: the complete PR filename list contains no canonical XLSX/PDF,
data/, database, ZIP, EXE, or financial-source file - Acceptance:
IN_PROGRESS; Draft and unmerged - Reviewer: ChatGPT/Codex candidate-requirements review; final acceptance pending
- Remaining risks: final documentation commits require their own CI result; independent acceptance decision is not yet recorded
- Recovery: close PR #12 without merging to leave the accepted branch unchanged
- Next action: independently review the final remote head and record an explicit decision
2026-08-24T08:35:40Z — Phase 2B accepted; superseded candidate closed
- Actor: ChatGPT/Codex independent reviewer; repository owner authorization
- Task/phase: Phase 2B ingestion foundation acceptance and post-merge control reconciliation
- Accepted base before merge:
source-data-cleanup@a41b07d7a7dd192c3ae4a277eb4903327883456f - Accepted branch after merge:
source-data-cleanup@7b5bd79b760d534dad34b3162f770e838616ebe9 - Accepted PR: #12
- Reviewed PR #12 head:
f7cb6abb7caf3f1c0c28d402ae41b0e3c005a280 - Merge method and SHA: squash;
7b5bd79b760d534dad34b3162f770e838616ebe9 - Final PR #12 GitHub Actions: Backend CI run #21,
success - Test evidence: 42 passed, 1 warning; Alembic upgrade/downgrade and compileall succeeded
- Superseded PR: #9, closed without merge
- Post-merge control branch:
codex/phase-2b-post-merge-record - Post-merge control PR: #13
- PR #13 base:
source-data-cleanup@7b5bd79b760d534dad34b3162f770e838616ebe9 - PR #13 changed files:
PROJECT_STATUS.md,docs/PROJECT_LOG.md,docs/handoff/LATEST_HANDOFF.md - PR #13 tests / CI / artifacts: documentation-only; no backend workflow triggered; artifacts
NONE - Protected data: no application code, tests, workflows, canonical XLSX/PDF,
data/, database, binary, ZIP, EXE, or financial-source file changed - Acceptance: PR #12
VERIFIED_AND_MERGED; PR #9 closed unmerged; PR #13IN_PROGRESS - Reviewer: PR #12 independently accepted by ChatGPT/Codex with explicit repository-owner merge authorization; PR #13 review pending
- Recovery: revert merge commit
7b5bd79b760d534dad34b3162f770e838616ebe9through a separately reviewed rollback PR if Phase 2B must be withdrawn - Remaining risk: PR #13 must be independently reviewed before its documentation becomes accepted
- Next action: review PR #13, then select the next focused Issue #11 roadmap task
2026-08-24T09:29:00Z — Gate 2A implementation candidate prepared
- Actor: ChatGPT/Codex implementation
- Task/phase: Issue #14, Pilot workbook contract and read-only preflight
- Base:
source-data-cleanup@7c7533ee87146dc8fc78b46ebf423be55532c7eb - Working branch:
codex/gate-2a-pilot-workbook - Scope: typed in-memory preflight, reproducible blank workbook generator, approved blank template, contract, regression tests, and control records
- Local focused verification: 9 targeted preflight scenarios passed through a direct Python harness; compileall succeeded
- Full pytest/Alembic: pending GitHub Backend CI because the automation runtime could not install the repository test dependencies from the external package index
- Template SHA-256:
e14a7feb80a216d79ed9cb6dde2b0df3e55317f3da6b26efc77f7118f4702b6f - Protected data: no canonical XLSX/PDF,
data/, database, financial-source, migration, workflow, ZIP, EXE, desktop, or release file changed - Acceptance:
IN_PROGRESS; Draft and unmerged - Remaining risks: full Backend CI and independent diff review are required
- Recovery: close the Draft PR without merge; accepted branch remains unchanged
2026-08-24T09:40:00Z — Gate 2A Draft PR and CI verified
- Draft PR: #15
- Published head:
8b0431b54392e3c19ae995e2b38bdf08a56a0473 - Changed files: 9, all within the Issue #14 allowlist
- GitHub Actions: Backend CI run #23,
success - Test evidence: 52 passed, 1 warning; Alembic upgrade/downgrade and compileall succeeded
- PR state: Draft, open, mergeable, and unmerged
- Acceptance:
IN_PROGRESS; independent diff review and explicit merge decision remain required
2026-08-25T06:30:00Z — Post-Gate-2A control reconciliation and stale-work cleanup
- Actor: Codex successor project manager / independent GitHub reviewer; cleanup authorized by repository owner
- Task/phase: reconcile accepted Gate 2A evidence, close its duplicate candidate, and block stale-base Gate 2B work before continuation
- Accepted base: source-data-cleanup@4ab54f4a3cf666827fa1ed30c4e43259ea79f2d4
- Working branch: codex/post-gate2a-control-reconciliation
- PR: #18, Draft and unmerged
- Initial publication commit: c6eefc26955c694c388371bcfaa96452b1b5f469
- Exact changed files planned/finalized: PROJECT_STATUS.md, docs/PROJECT_LOG.md, docs/handoff/LATEST_HANDOFF.md, docs/handoff/MASTER_RECOVERY_PROMPT.md
- Accepted Gate 2A evidence: PR #15, reviewed head 74b6a6397a2a2c9199a5c7bcf818bb661b2ebe06, squash merge 4ab54f4a3cf666827fa1ed30c4e43259ea79f2d4
- Final Gate 2A GitHub Actions: Backend CI run #24, success; 52 passed, 1 warning; Alembic upgrade/downgrade and compileall succeeded
- Pilot template SHA-256 independently recomputed from the accepted GitHub file: e14a7feb80a216d79ed9cb6dde2b0df3e55317f3da6b26efc77f7118f4702b6f
- Superseded duplicate: PR #16 closed without merge on 2026-08-25 after an evidence comment; it duplicated accepted Gate 2A, was dirty, and recorded incorrect merge SHA 35d45c3f200672a6ef97f13a84cf7c823ecf1bb8
- Closed reference candidate: PR #17, base 7c7533ee87146dc8fc78b46ebf423be55532c7eb, head 4f8648add0e2ed60f01753e979fa3fbe9ccf0f18; closed without merge on 2026-08-25 after an evidence comment; its green stale-head CI does not prove compatibility and no content is accepted
- Tests for PR #18: documentation-only; backend pytest and migration execution are not applicable; final remote diff and changed-file review remain mandatory
- GitHub Actions for PR #18: NOT_VERIFIED at entry creation; documentation-only paths may not trigger Backend CI
- Artifacts/releases: NONE
- Protected data: no application code, workflow, migration, XLSX/PDF, data/, database, financial-source, binary, ZIP, EXE, or release file changed
- Acceptance: IN_PROGRESS; PR #18 is not merged and requires independent final-head review plus explicit repository-owner authorization
- Reviewer: final PR #18 reviewer pending
- Issue metadata: Issue #14 closed as completed with verified PR #15 evidence; Issue #11 updated to mark Gate 2 accepted and Gate 3 blocked pending PR #18
- Recovery: close PR #18 without merge; accepted branch remains at 4ab54f4a3cf666827fa1ed30c4e43259ea79f2d4
- Remaining risks: branch protection is disabled; PR #17 reference work remains unaccepted; Mapping/UI/release work is incomplete
- Next action: independently review Draft PR #18; do not start or merge Gate 2B work before the control decision
2026-08-25T06:46:16Z — PR #18 accepted; time-bound candidate record reconciled
- Actor: ChatGPT/Codex independent reviewer; repository owner explicit authorization
- Task/phase: accept the post-Gate-2A control reconciliation and correct the preceding time-bound candidate snapshot
- Accepted base before merge:
source-data-cleanup@4ab54f4a3cf666827fa1ed30c4e43259ea79f2d4 - Working branch:
codex/post-gate2a-control-reconciliation - PR: #18
- Reviewed PR head:
fcbeb7387218e9ab294318ae462ed59de717fc95 - Merge method and SHA: squash;
f213d321ff4cd7d3d6fa65ba78dc48f090ee846b - Exact changed files:
PROJECT_STATUS.md,docs/PROJECT_LOG.md,docs/handoff/LATEST_HANDOFF.md,docs/handoff/MASTER_RECOVERY_PROMPT.md - Tests: documentation-only; backend pytest, migration execution, and compileall were not applicable
- GitHub Actions: no workflow run was associated with reviewed head
fcbeb7387218e9ab294318ae462ed59de717fc95; documentation-only paths did not trigger Backend CI - Artifacts/releases:
NONE - Protected data: no application code, tests, workflow, migration, dependency, XLSX/PDF,
data/, database, financial-source, binary, ZIP, EXE, artifact, or release file changed - Acceptance:
VERIFIED_AND_MERGED - Reviewer: ChatGPT/Codex after full remote four-file diff review and Davood's explicit merge authorization
- Correction note: the preceding 2026-08-25T06:30:00Z entry is preserved as an accurate historical candidate snapshot; its Draft/unmerged and pending-review statements are no longer current
- Issue metadata: Issue #11 was reconciled after the merge; Gate 3 is ready for a new focused task definition, while closed PR #17 remains reference-only
- Recovery: revert merge commit
f213d321ff4cd7d3d6fa65ba78dc48f090ee846bthrough a separately reviewed rollback PR if the accepted control reconciliation must be withdrawn - Remaining risks: the accepted branch is unprotected; Mapping, note/sub-note workflow/UI, reproducible Windows packaging, and end-to-end Pilot acceptance remain incomplete
- Next action: fetch the live accepted head and define one new focused Gate 3 / Gate 2B Mapping task; do not revive or merge PR #17
2026-08-25T07:37:08Z — Role-based operating model prepared
- Actor: project manager / repository maintainer; requested by Davood
- Task/phase: record the complete Aram responsibility model in the permanent recovery prompt
- Base:
source-data-cleanup@77f9f595ccfe67a87b11024ff0f6143629dba438 - Working branch:
governance/role-based-operating-model - PR: #20
- Published implementation head before required control-record update:
92f6e096d3471bb5de1fe876066eedee5ab8bcf9 - Intended final changed files:
PROJECT_STATUS.md,docs/DECISION_LOG.md,docs/PROJECT_LOG.md,docs/handoff/LATEST_HANDOFF.md,docs/handoff/MASTER_RECOVERY_PROMPT.md - Governance change: define Davood as Project Owner, ChatGPT chat as Operational Coordinator, Jules as primary Implementation Agent, Codex Work as Senior Technical Supervisor / Independent Reviewer / Authorized Maintainer, and GitHub as the evidence source of truth
- Authority change: record standing delegation for routine technical review and merge actions after evidence gates, while retaining Davood escalation for accounting ambiguity, material scope, protected-data, release, destructive, credential, and external-authority decisions
- Clarification: a repository mismatch pauses only the affected task without edits and does not halt the project
- Tests: documentation-only; backend pytest, migrations, and compileall are not applicable; final remote content, diff, whitespace, link, and consistency checks are required
- GitHub Actions at entry creation:
NOT_VERIFIED; documentation-only paths may not trigger Backend CI - Artifacts/releases:
NONE - Protected data: no application code, test, workflow, migration, dependency, XLSX/PDF,
data/, database, financial-source, binary, ZIP, EXE, artifact, or release file is in scope - Acceptance at entry creation:
IN_PROGRESS; this is a historical preparation record and the live PR state remains authoritative - Reviewer at entry creation: pending final-head independent remote review
- Recovery: close PR #20 without merge; the accepted branch remains at
77f9f595ccfe67a87b11024ff0f6143629dba438 - Remaining risks: the accepted branch is unprotected; role assignments do not replace evidence gates; Gate 3 Mapping and all later V1 gates remain incomplete
- Next action: finish the five-file remote candidate, independently review PR #20, and record one acceptance decision
2026-08-26T15:36:29Z — V1-01 safety-gate hardening prepared
- Actor: Codex Work authorized maintainer / implementation agent for the critical fix
- Task/phase: V1-01 safety-gate hardening before Gate 3 Mapping
- Base:
source-data-cleanup@b1ddee87d31ee73b3a5aeac8f9953d0a604c206a - Working branch:
codex/v1-01-safety-gate-hardening - PR: Draft #21
- Initial implementation commit SHA:
6d774e5dd7afb00b04e523ba255aeee4f13bfccc; final reviewed head remains remote-state dependent - Exact planned changed files:
index.html,PROJECT_STATUS.md,backend/src/aram_backend/models.py,backend/src/aram_backend/pilot_workbook.py,backend/tests/test_models.py,backend/tests/test_pilot_workbook.py,docs/PROJECT_LOG.md,docs/handoff/LATEST_HANDOFF.md - Implementation: prevent approved/locked fiscal-year identity mutation and deletion; prevent parent-company mutation/deletion when protected years exist; reject targetless, hierarchy-invalid, formula-code, review-evidence-deficient, and closing-delta-mismatched Pilot rows; replace the disconnected hard-coded root UI with an explicit quarantine page
- Local tests:
cd backend && .venv/bin/pytest -q-> 67 passed, 1 third-party deprecation warning - Focused static checks:
.venv/bin/ruff check src/aram_backend/models.py src/aram_backend/pilot_workbook.py-> passed;.venv/bin/mypy src/aram_backend/models.py src/aram_backend/pilot_workbook.py-> passed - Migration / compile: isolated SQLite
alembic upgrade headandalembic downgrade basepassed;python -m compileall -q src tests scriptspassed - Adversarial verification: the previously accepted targetless/
account_level=99/closing_delta=999workbook is rejected; locked-year identity mutation and deletion are blocked - GitHub Actions: pending for Draft PR #21
- Artifacts/releases:
NONE - Protected data: no canonical XLSX/PDF,
data/, database, financial-source value, ZIP, EXE, tag, or release is changed - Acceptance:
IN_PROGRESS; implementation author must not merge this PR - Reviewer: independent reviewer pending
- Recovery: close the candidate PR without merge; accepted branch remains at the recorded base
- Remaining risks: comprehensive Mapping, note/sub-note workflow, real Pilot UI/output, Windows packaging, and user acceptance remain incomplete
- Next action: publish the focused PR and obtain independent remote review after CI
2026-12-03T09:30:00Z — Booklet v1.0 Phase 0 debts executed
- Actor: Arena agent (implementation), per booklet §17 autonomous default+proof+ADR
- Task/phase: Phase 0 — clear debts D-01..D-12 before Phase 1 vertical slice
- Base:
source-data-cleanup@7dc864fd032f0c4ae4d650d89304a01286a6d914 - Working branch:
arena/094f314c-aram - 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) - 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)
- Local tests:
cd backend && pytest-> 201 passed - 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
- 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+حساب)
- GitHub Actions: pending push of branch; CI matrix will exercise PostgreSQL
- Artifacts/releases:
NONE - Protected data: no canonical
data/,samples/, XLSX/PDF, database, financial-source value, ZIP, EXE, tag, or release changed - D-09 (git-history rewrite): BLOCKED — owner-only, requires explicit approval (§19); not performed
- Acceptance:
IN_PROGRESS; implementation author must not merge - Reviewer: independent reviewer pending
- Remaining risks: PostgreSQL path validated only in CI (no local PG); Phase 1+ vertical slice, mapping, notes, statements, UI, packaging, UAT remain
- Next action: push branch, open focused Phase-0 PR, obtain independent remote review after CI; then Phase 1 vertical slice (1404)
2026-12-03T10:45:00Z — Booklet v1.0 Phases 1–4 + owner priority fixes
- Actor: Arena agent (implementation), per booklet §17 autonomous default+proof+ADR
- Task/phase: Phases 1–4 vertical slice, then owner's 4 high-priority architecture fixes before new phases
- Base:
source-data-cleanup@7dc864fd032f0c4ae4d650d89304a01286a6d914 - Working branch:
arena/094f314c-aram - PR: #96 (draft -> source-data-cleanup)
- 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) - 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
- Local tests:
cd backend && pytest-> 281 passed;mypy src/aram_backend/services src/aram_backend/domain-> clean; ruff check/format clean; frontendnpm run lint/typecheck/test/buildpass;npx playwright test --list-> 2 specs - 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
- 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
- GitHub Actions: Backend CI + Frontend CI triggered on push (run IDs recorded after completion)
- Artifacts/releases:
NONE - Protected data: no canonical
data/,samples/, XLSX/PDF, database, financial-source value, ZIP, EXE, tag, or release changed - Acceptance:
IN_PROGRESS; implementation author must not merge - Reviewer: independent reviewer pending
- 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
- Next action: continue §15 phase order — Phase 5 UI + Playwright, then 6→9; finish §18 report
2026-12-03T11:40:00Z — Booklet v1.0 Phases 5–9 (UI, outputs, admin, desktop, UAT)
- Actor: Arena agent (implementation), per booklet §17 autonomous default+proof+ADR
- Task/phase: Phases 5–9 in §15 order after the 4 owner priority fixes
- Base:
source-data-cleanup@7dc864fd032f0c4ae4d650d89304a01286a6d914 - Working branch:
arena/094f314c-aram - PR: #96 (draft -> source-data-cleanup)
- Commits:
eb9024a(tolerant import + statement_balance),fa64baf(Phase 5 workbench),c4c37c0(Phase 6 outputs + ADR-022),e20572d(Phase 7 users/reopen/backup + ADR-023),77fbe70(admin UI),ffc9888(Phase 8 desktop + ADR-024),dafb559(e2e smoke fix) - Implementation: tolerant real-ledger import (reclassified rows kept, anomalies reported) + statement_balance capture (migration 20261203_06); RTL React workbench (setup/import/mapping/statements/drill-down/approval/admin) with eslint/tsc/vitest/Playwright gates; reviewable XLSX+JSON statement outputs with exact rial + full lineage; local users/roles (PBKDF2), controlled reopen/lock, verifiable backup (migration 20261203_07); offline desktop entrypoint on 127.0.0.1 + reproducible PyInstaller recipe (no binary committed)
- Local tests:
cd backend && pytest-> 308 passed; mypy domain strict + services clean; ruff clean; frontend lint/tsc/vitest/build pass; Playwright specs valid - Phase 9 UAT (real source_1404.xlsx, read-only, fresh local DB): 131,280 raw rows imported (4 skipped+reported); 22 notes/244 mappings auto-created; BS/IS/CF/EQ built; core BS notes reconcile rial-for-rial with official (10/11/12-1/12-2/13/14/15); remaining differences surfaced as discrepancies (OD-08); approval gate blocks on C-01/C-03/C-04 (fail-loud); export 158,050 lineage rows; backup created+verified; audit chain valid
- GitHub Actions: Backend CI green on recent heads; Frontend CI e2e smoke fixed in
dafb559(run pending) - Artifacts/releases:
NONEcommitted (Windows package is a build artifact, §19); UAT report at /tmp/aram-uat-1404/uat_report.json (evidence, not committed) - Protected data: no canonical
data/,samples/, XLSX/PDF, database, financial-source value, ZIP, EXE, tag, or release changed - Acceptance:
IN_PROGRESS; implementation author must not merge or tag - Reviewer: independent reviewer pending
- Remaining risks: real-data BS/IS discrepancies (OD-08) require owner accounting review; Windows package built+verified on a clean Windows machine by the owner; tag v1.0.0 is the owner's post-acceptance action
- Next action: independent GitHub review of PR #96; owner acceptance, merge, tag v1.0.0, build Windows package
2026-12-03T12:20:00Z — 5-pass deep compliance review + fixes (PR #96 ready)
- Actor: Arena agent (implementation), owner-requested 5-perspective deep review
- Task: verify booklet compliance across 5 reviewer roles; PR #96 marked ready for review (not merged)
- Base:
source-data-cleanup@7dc864fd032f0c4ae4d650d89304a01286a6d914; brancharena/094f314c-aram - Commits:
4726f5e(approve role gate + editable notes/mappings/rows + ADR-018 dep note),87b1929(UI NotesManager) - Review report:
docs/reviews/BOOKLET_COMPLIANCE_REVIEW.md(5 agents, checks, findings, verdicts) - Findings fixed: F2-1 (editable notes/mappings/rows: PUT/DELETE + list endpoints, Draft-guarded, D-07->409, 9 tests + UI), F3-1 (API /approve role-gated when users exist, 2 tests), F5-1 (python-multipart documented in ADR-018)
- Observation O5-1: pilot vendored wheels (commit 2fce09d) noted for owner; left intact (accepted pilot deliverable)
- Verified: domain/services layering clean; no eval; no runtime network; no hardcoded secrets; source data unchanged; no new root analytical doc; ADRs 012-024 present
- Local tests:
cd backend && pytest-> 319 passed; mypy domain strict + services clean; ruff clean; frontend eslint/tsc/vitest/build pass - GitHub Actions: re-triggered on new head (pending)
- Artifacts/releases: NONE committed
- Acceptance: IN_PROGRESS; author does not merge or tag
- Reviewer: independent reviewer pending
- Next action: independent GitHub review of PR #96; owner acceptance, merge, tag v1.0.0, build Windows package
2026-12-03T15:22:02Z — PR #96 merged + tag v1.0.0 (owner acceptance)
- Actor: owner (final acceptance via one-time waiver of independent review); Arena agent executed merge+tag under that authorization only
- PR #96 MERGED (squash) into
source-data-cleanup-> head46253c94405abd065dfc5e8cf080b295cb83cde4 - Tag
v1.0.0created on46253c9(remote tag objecta17da671ce1fef2415ce56ebec87b69da6ebb603) - Post-merge CI: Backend #47137691800 ✅, Frontend #47137691857 ✅ (both on
46253c9) - Transfer verified:
git diff --exit-codeworking tree vsorigin/source-data-cleanup= 0 (199 files identical) - New mission B0…B12 reinstates no-merge/no-tag for the implementation author
2026-12-03T15:45:00Z — B0: booklet reference + lightweight-process reconciliation
- Actor: Arena agent (implementation); independent reviewer separate
- Mission: booklet-compliance remediation B0…B12, one focused PR per category, sequential
- Base: live
source-data-cleanup@46253c94405abd065dfc5e8cf080b295cb83cde4(BASE MATCH verified, §0.2); working brancharena/094f314c-aramaligned to accepted base via merge (no force-push) - B0.1 booklet:
docs/booklet/BOOKLET_v1.0.md(pymupdf extraction, visual-RTL -> logical reorder) +docs/booklet/MANIFEST.json(original PDF SHA-2567dd508274babd604f74d10b692464ce42f26a88c4a7116cfd861188abd4a2baf, 745,088 bytes, 14 pages). Original is PDF not docx; binary not committed (§19); ADR-025 - B0.2 status:
PROJECT_STATUS.mdrewritten to GitHub reality (Phases 0–9 VERIFIED_AND_MERGED at46253c9, 319 backend tests, post-merge CI links, stale V1-01 IN_PROGRESS / VERIFIED_BUT_UNMERGED rows removed, D-08 closed) - B0.3 archive: 14 root analytical docs
git mv->docs/archive/(+ index README); root retains only AGENTS.md + PROJECT_STATUS.md; no new root analytical doc (§0.5) - B0.4 process: AGENTS.md ↔ §0.5 conflict reported + resolved; handoff cadence changed to per-category (not per-step); lightweight-process bullets added; ADR-026
- B0.5 registry:
docs/discrepancies.jsonskeleton{row, our_amount, official_amount, cause, evidence, year}(OD-08; populated in B8) - Protected data:
data/tree2ef8a512523f62f0cf84c5009f141be2f8a9cb5f,samples/tree00aba54b1dc30485ba9b164c8036a7b4bbe9020e— unchanged before/after (B0 touches docs only) - Tests: B0 is documentation/process only; no code changed; backend/frontend suites unaffected (319 backend / 11 frontend at accepted head)
- Artifacts/releases: NONE committed
- Acceptance: IN_PROGRESS; author does not merge or tag
- Next action: independent GitHub review of B0 PR; B1 starts only after B0 acceptance
2026-12-03T16:10:00Z — C0: booklet 2 course correction (بخش الف)
- Actor: Arena agent (implementation); independent reviewer separate
- Trigger: owner delivered booklet 2 v2.0 (course correction + general-platform architecture); supersedes conflicting parts of booklet 1 and the B0…B12 framing with roadmap C0…C10 (ADR-027). No owner questions (§14).
- Base: live
source-data-cleanup@46253c94405abd065dfc5e8cf080b295cb83cde4(BASE MATCH, §0.2). Booklet 2 cited PR #96 head 2fce09d (pilot/browser); actual merged head 46253c9 — browser files present in both, course correction applies (reconciliation recorded in ADR-027, الف4 honesty). - الف1 browser removal:
git rmwebapp/, docs/{app.js,index.html,bridge.py,styles.css,py,vendor}, scripts/build_webapp.py, .github/workflows/pilot-pages.yml (ADR-028). No backend/frontend code refs (verified). Recoverable from history @46253c9; experiment/browser-edition branch = owner action (Arena single-branch constraint). - الف2 persistent core: VERIFIED main path = domain/{controls,money,hierarchy,formula,normalization} + statement_api/admin_api on stored LedgerBalance; legacy in-memory pilot retained as logic reference (secure C8, retire later; exception-queue persistence C4).
- الف3 phase 0/1 + golden: VERIFIED merged @46253c9 (D-01..D-12; test_golden/test_domain_controls/test_approval_gate; real-1404 UAT).
- الف4/الف5: PR honesty + ≤~1500-line/one-phase rules added to AGENTS.md; generality rule (ب1) + no-runtime-network/read-only-source/no-plaintext-secrets (§16) added.
- الف6 triage: docs/PR_TRIAGE.md — ADOPT #81(C6/C4)/#89(C8)/#92(C8); CLOSE NO-GO #82/#88; SUPERSEDED #90/#91 + #22–#80 backlog. Closes recommended, executed after triage acceptance (conservative §14); author merges nothing.
- Booklet 2 verbatim: docs/booklet/BOOKLET_v2.0.md (SHA-256 9738f8049703ca63ea6eae471538cdadc6328e4f15efaaf87a250315e516e2fc) + MANIFEST.json updated (both booklets).
- OD-09..OD-14 adopted (ADR-027); databansoft.ir not reachable from sandbox allowlist — no capability claims (OD-14).
- Protected data: data/ tree 2ef8a512523f62f0cf84c5009f141be2f8a9cb5f, samples/ tree 00aba54b1dc30485ba9b164c8036a7b4bbe9020e — unchanged before/after.
- Tests: removal touches no backend/frontend code; suites unaffected (319 backend / 11 frontend at accepted head); local re-run recorded in PR.
- Artifacts/releases: NONE committed. Acceptance: IN_PROGRESS; author does not merge or tag.
- Next: independent review of C0 (PR #97, re-scoped from B0); C1 starts only after C0 acceptance with evidence in PROJECT_STATUS.
2026-12-03T20:20:00Z — C0 addendum: booklet 2 appendix revision (owner) + ADR-029
- Actor: Arena agent (implementation); trigger: owner re-sent booklet 2 with a rewritten appendix ("این کتابچه اصلاحی رو پیش ببر")
- Appendix now records: Databan catalog (fall 1405) studied by owner — marketing claims, unverified, inspiration only; Databan does NOT prepare financial statements (Aram's gap); positioning = independent pluggable product + Host Integration API (REST + permissions); commercial cooperation out of agent scope
- OD-09 REVISED per owner directive: pyodbc with existing ODBC driver preferred (Windows + SQL Server target); python-tds fallback; 100k-row proof gate unchanged (ADR-027 updated, ADR-029)
- Accepted elements mapped: multi-layer access control (C8), source-drift nightly detection → «نیازمند بازبینی» (C8/C9), nightly document audit C-16+ (optional post-C6, OD-12), work center (C7), dry-run (C4/C8), signed updates + auto-rollback + in-app backup/restore (C9), letterhead print templates + statutory ledgers + Ctrl+K (C7), AI assistant C11 (optional, OFF by default, never generates numbers, engine+CalculationRun lineage only, read-only, local/anonymized, audited), multi-company group dashboard (C6/C7; consolidation next version)
- Rejected scope binding: مودیان/IMED/trade system/bank-invoice+document reader/form builder/cartable; messenger bots for financial data prohibited (notifications without figures only)
- Agent has no access to databansoft.ir (sandbox allowlist); no independent capability claims made; no Databan code/text/design/name/brand copied
- docs/booklet/BOOKLET_v2.0.md appendix replaced verbatim (list numbering normalized, disclosed in header); new SHA-256 79618dddb3de9bde195b8253880593b2900389369150c917d81b97006762823a; MANIFEST.json keeps revision history (initial 9738f804…)
- ADR-029 added (positioning, OD-14 comparison table, element→phase mapping, OD-09 revision, C11 constraints); PROJECT_STATUS roadmap updated (C5/C7/C8/C9 notes + C11 row)
- Protected data: data/ + samples/ trees unchanged (docs-only addendum). Code state identical to C0 commit 6e3fe70 (backend 319 passed / frontend green run on that tree)
- Acceptance: IN_PROGRESS; author does not merge or tag. Next: push C0 (both commits), update PR #97 body to match diff (الف4), independent review