@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/setup-node-6
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 6.1 KB

ADR-029 — Positioning vs Databan: Host Integration API, accepted elements, OD-09 revision

  • Status: Accepted (C0)
  • Date: 2026-12-03
  • Booklet: booklet 2 revised appendix (owner message 2026-12-03, second), ب‌3..ب‌6, ب‌10, §14 (OD-09, OD-12, OD-14), §16

Context

The owner studied the official Databan catalog (fall 1405 edition) and revised the booklet-2 appendix. Per the owner: Databan is a smart layer on top of existing accounting-software ledgers — it reads ledgers directly, runs on the company's own server (Windows + SQL Server), brings multiple companies into one template, and its domain is reports, dashboards, alerts, automation, and government systems. It does not prepare financial statements. These are marketing claims from a promotional document; the agent has not verified them (databansoft.ir is unreachable from this sandbox's network allowlist) and makes no independent capability claims. Inspiration only; no Databan code, text, design, name, or brand is copied (OD-14, §16, appendix legal restriction).

Decision

Positioning (owner decision, recorded)

Aram is an independent product with a pluggable core and a Host Integration API (REST contract + permissions) so it can later be embedded as a module inside a data platform. Any commercial cooperation with Databan or similar vendors is outside the agent's scope. The gap Aram fills: the preparation, control, and audit engine for financial statements — which the catalog says Databan does not provide.

Implementation note: the Host Integration API contract is designed alongside the plugin API (C4) and exposed with the API surface (C7); it reuses the single authorization policy (below), never a parallel permission model.

OD-14 capability comparison (owner-provided catalog description, unverified)

Capability Databan (per catalog, unverified) Aram (booklet 2)
Read accounting-software ledgers directly, no source mutation Yes Yes — Connectors + read-only safety (ب‌4/ب‌5, C4/C5)
Runs on the company's own server (Windows + SQL Server) Yes Yes — offline Windows default; SQL Server source via pyodbc (C5/C9)
Multi-company in one template Yes Yes — packs + group dashboard (ب‌8, C6/C7); consolidation next version
Reports / dashboards / alerts / automation Yes Statements, work center, drift alerts, nightly jobs (C7/C8)
Government systems (مودیان/IMED/trade) Yes Rejected — out of scope (appendix)
Financial-statement preparation + controls + audit No Yes — the core product (C1–C3)

OD-09 revision (owner directive supersedes the §14 default)

Target environment is Windows + SQL Server with an existing ODBC driver, so pyodbc is preferred; python-tds (pure-Python) is the fallback for offline packaging where no ODBC driver exists. Proof gate unchanged: connection test + 100k-row extraction in C5; switch if unstable. (Evidence/directive over default, §14.)

Accepted elements → phase mapping (appendix priority order)

  1. Direct ledger reads without source mutation → confirms ب‌4/ب‌5 (C4/C5); OD-09 revised above.
  2. Multi-layer access control (module ← company ← fiscal year ← row/field), one policy across API, UI, exports, and any AI module → extends ب‌10 (C8).
  3. Source-drift detection: nightly Windows-service job re-measures source sums + hash after snapshot approval; added/modified/deleted documents dated in an approved year ⇒ alert + audit record + year moved to «نیازمند بازبینی» (needs-review); approved output never changes automatically → C8 (detection) + C9 (Windows service).
  4. Nightly document-level audit (optional, only with a document-level connector): unbalanced, probable-duplicate, large-amount, modified/deleted documents; feeds new controls C-16+ → after C6 per OD-12; control catalog extension registered in C3.
  5. Work center: one page for everything awaiting the user (unknown accounts, failed controls, approval/reopen requests, source drift) → C7.
  6. Dry-run for every extraction and automated job (result shown, zero effect) → C4/C8.
  7. Signed updates with automatic rollback + in-app backup/restore → C9 (+ C8 backup).
  8. Print templates with company letterhead for statements, statutory ledger exports (روزنامه/کل), supporting tables; global Ctrl+K search → C7.
  9. AI assistant — phase C11, optional, OFF by default: understands questions only, never generates numbers; figures come only from the engine and an approved CalculationRun with lineage; read-only; local model or anonymization of person/company names before any external service; every query audited; AI mapping suggestions remain suggestions with mandatory human approval (ب‌8 unchanged) → C11.
  10. Multi-company with one template + group dashboard; consolidated statements in a later version → C6/C7 (consolidation out of V1).

Rejected scope (appendix, binding)

مودیان, IMED, comprehensive trade system, bank-invoice processing and document reading, generic form builder and cartable. Messenger bots for financial data are prohibited by default; if ever needed, notifications only, without figures.

Proof

  • Revised appendix verbatim in docs/booklet/BOOKLET_v2.0.md, SHA-256 79618dddb3de9bde195b8253880593b2900389369150c917d81b97006762823a (revision history in MANIFEST.json).
  • Owner directive is the evidence source for the catalog description; agent network allowlist excludes databansoft.ir (no independent verification claimed).
  • Roadmap updated in PROJECT_STATUS.md (C5/C7/C8/C9 scope notes + C11 row).

Consequences

  • C5 connector work starts from pyodbc; the pure-Python fallback stays available for driverless offline machines (ADR required if the proof gate fails).
  • The needs-review year status and C-16+ controls enter the data-model/control design in C3/C8; no approved output is ever mutated automatically (P-01/D-07 preserved).
  • C11 is optional and gated: no number ever originates from an AI model; lineage and audit are mandatory; default OFF.