Mirrored from https://github.com/davoodmehraban89/Aram.git
Synced Dec 4, 14:15 UTC
dependabot/github_actions/actions/setup-python-7
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):
pyodbcwith 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.jsonwith revision history: initial SHA-2569738f8049703ca63ea6eae471538cdadc6328e4f15efaaf87a250315e516e2fc; current (revised appendix) SHA-25679618dddb3de9bde195b8253880593b2900389369150c917d81b97006762823a. - 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_apionLedgerBalance; golden teststest_golden.py,test_domain_controls.py,test_approval_gate.pypresent (الف2/الف3).
Consequences
- C0 (this PR) executes الف1 (browser removal, ADR-028), الف6 (
docs/PR_TRIAGE.md), الف4/الف5 (process rules inAGENTS.md), and records الف2/الف3/الف7 status. - Subsequent phases follow C1…C10 with evidence recorded in
PROJECT_STATUS.mdbefore advancing. No merge, no tag, no runtime network, no company-specific code (§16).