Mirrored from https://github.com/davoodmehraban89/Aram.git
Synced Dec 4, 15:30 UTC
dependabot/npm_and_yarn/frontend/vite-8.4.0
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)
- Direct ledger reads without source mutation → confirms ب4/ب5 (C4/C5); OD-09 revised above.
- Multi-layer access control (module ← company ← fiscal year ← row/field), one policy across API, UI, exports, and any AI module → extends ب10 (C8).
- 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).
- 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.
- Work center: one page for everything awaiting the user (unknown accounts, failed controls, approval/reopen requests, source drift) → C7.
- Dry-run for every extraction and automated job (result shown, zero effect) → C4/C8.
- Signed updates with automatic rollback + in-app backup/restore → C9 (+ C8 backup).
- Print templates with company letterhead for statements, statutory ledger exports (روزنامه/کل), supporting tables; global Ctrl+K search → C7.
- 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.
- 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-25679618dddb3de9bde195b8253880593b2900389369150c917d81b97006762823a(revision history inMANIFEST.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.