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

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

Synced Dec 4, 14:15 UTC

dependabot/github_actions/actions/upload-artifact-7
add-index-html-10623938925177053894 arena/094f314c-aram arena/2d4eda07-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 dependabot/github_actions/actions/checkout-7 dependabot/github_actions/actions/setup-node-6 dependabot/github_actions/actions/setup-python-7 dependabot/github_actions/actions/upload-artifact-7 dependabot/npm_and_yarn/frontend/eslint-plugin-react-hooks-7.1.1 dependabot/npm_and_yarn/frontend/globals-17.15.0 dependabot/npm_and_yarn/frontend/vite-8.4.0 dependabot/npm_and_yarn/frontend/vitest-5.1.2 dependabot/npm_and_yarn/frontend/vitest/coverage-v8-5.1.2 dependabot/pip/backend/mypy-gte-1.13-and-lt-3 dependabot/pip/backend/pytest-cov-gte-6.0-and-lt-8 dependabot/pip/backend/setuptools-gte-75-and-lt-85 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
md 5.27 KB

ADR-027 — Booklet 2 adoption: course correction + general-platform architecture

  • Status: Accepted (C0)
  • Date: 2026-12-03
  • Booklet: booklet 2 (all sections); booklet 1 §17 (OD-01..OD-08 remain valid), §18, §19

Context

The owner delivered booklet 2 v2.0 («اصلاح مسیر و معماری نهایی Aram»), verbatim at docs/booklet/BOOKLET_v2.0.md (SHA-256 anchor in MANIFEST.json). It supersedes the conflicting parts of booklet 1 and supplements the rest, and asks the agent to never query the owner (ambiguities closed via booklet 2 §14).

Base reconciliation (honesty, الف‌4): booklet 2 cites "PR #96 (head 2fce09d)" — the pilot/browser-edition head. The live accepted head is 46253c94405abd065dfc5e8cf080b295cb83cde4 (squash merge of PR #96, phases 0–9). The browser-edition files booklet 2 targets are present in both heads, so the course correction applies to the current tree. The §0.2 base check passes (live head = 46253c9). The stale head label is recorded here; GitHub reality is authoritative (AGENTS.md).

Decision

Roadmap: C0…C10 (+ optional C11) supersedes the B0…B12 framing

Booklet 2 §13 defines the governing roadmap C0…C10; the revised appendix adds C11 (optional AI assistant, off by default, never generates numbers — ADR-029). The earlier B0…B12 categories are folded into it (B0 groundwork → C0; B1 security → C8; B2 money/UI → C7; B3 controls → C3; B4 data model → C1/C4; B5 import → C4; B6 mapping → C2/C6; B7 outputs → C7; B8 golden/registry → C1/C3; B9 CI → C9; B10 backup → C8; B11 drift/layout → C0/C4; B12 large files → C9). B0's deliverables (booklet reference, archive, status rewrite, discrepancy skeleton, process ADRs) are C0-compatible and retained. One focused PR per phase task, ≤ ~1,500 changed lines excluding tests/generated data (الف‌5); PR body must match git diff --stat and the real head (الف‌4).

Automatic decisions OD-09…OD-14 (booklet 2 §14) adopted

  • OD-09 SQL Server driver: REVISED by the owner's appendix (2026-12-03): pyodbc with the existing ODBC driver is preferred (target environment is Windows + SQL Server); python-tds (pure-Python) is the fallback for offline packaging where no ODBC driver exists. Proof gate unchanged: connection + 100k-row extraction in C5; switch if unstable. See ADR-029.
  • OD-10 adapter language: YAML validated by JSON Schema; round-trip test + precise Persian error messages (C4).
  • OD-11 plugin execution: separate process for Connectors; if it blocks Windows packaging, same-process with restricted permissions + a new ADR (C4/C9).
  • OD-12 data level: trial-balance default; document-level optional, only after C6 and only if a note cannot be computed without document detail.
  • OD-13 concurrency: single local install for V1; multi-user server out of scope; PostgreSQL exercised in CI for the future path.
  • OD-14 similar tools: inspiration only; no code/brand/content copied; capability comparison recorded in an ADR.
  • Other ambiguities: most conservative option (the one that blocks approval) + ADR with rejected options.

Generality rule (ب‌1, non-negotiable)

No company name, account code, heading, or industry constant in source code; these live only in packs/ and the database. An automated grep test enforces this (added with the packs work in C6; the rule is recorded now and in AGENTS.md). Company/industry-specific content (including the current transmission-company pack) is data, never a code default.

databansoft.ir appendix — owner-studied catalog (revised 2026-12-03)

The agent cannot reach databansoft.ir from this sandbox (allowlist: github.com / npmjs / pypi hosts). The owner studied the official Databan catalog (fall 1405 edition) and revised the appendix in a second message: it is a marketing document, its claims are unverified, and it is inspiration only. The positioning decision (independent product + Host Integration API), the OD-14 capability comparison, the accepted elements (priority order), the OD-09 revision, phase C11 (optional AI assistant), and the rejected scope are recorded in ADR-029. No Databan code/text/design/name/brand is copied.

Proof

  • Booklet 2 verbatim in MANIFEST.json with revision history: initial SHA-256 9738f8049703ca63ea6eae471538cdadc6328e4f15efaaf87a250315e516e2fc; current (revised appendix) SHA-256 79618dddb3de9bde195b8253880593b2900389369150c917d81b97006762823a.
  • Live head verified 46253c9; browser files present (webapp/, docs/{app.js,index.html,bridge.py,styles.css,py,vendor}, scripts/build_webapp.py, .github/workflows/pilot-pages.yml).
  • Persistent core is the main path: domain/{controls,money,hierarchy,formula,normalization}.py + statement_api/admin_api on LedgerBalance; golden tests test_golden.py, test_domain_controls.py, test_approval_gate.py present (الف‌2/الف‌3).

Consequences

  • C0 (this PR) executes الف‌1 (browser removal, ADR-028), الف‌6 (docs/PR_TRIAGE.md), الف‌4/الف‌5 (process rules in AGENTS.md), and records الف‌2/الف‌3/الف‌7 status.
  • Subsequent phases follow C1…C10 with evidence recorded in PROJECT_STATUS.md before advancing. No merge, no tag, no runtime network, no company-specific code (§16).