codex/aram-five-statement-cli-20261031
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
md 86 lines 7.02 KB
Rendered Raw
1 # MAPPING COVERAGE & ANALYSIS REPORT
2
3 ## Executive Summary
4 This document provides the authoritative, source-reconciled mapping coverage analysis for the 1404 general ledger (`data/source_ledgers/source_1404.xlsx`) against the canonical mapping rules workbook (`data/mappings/mapping_1404.xlsx`).
5
6 Across **252,898 total general ledger data rows**, multi-dimensional matching (incorporating Account Code / `حساب`, `T1_CODE`, `جاری / سرمایه ای`, and `T4_CODE`) yields exact, standardized coverage metrics and full exposure reconciliation.
7
8 ---
9
10 ## 1. Mapping Coverage Metrics
11
12 Coverage terminology strictly distinguishes between deterministic, unique lineage and ambiguous or unmapped rows. Ambiguous multi-match rows are **never** treated as proven lineage without explicit, provable disambiguation rules from the canonical mapping workbook.
13
14 | Metric | Row Count | Percentage of Mapping-Eligible Rows | Description / Definition |
15 | --- | --- | --- | --- |
16 | **`UNIQUE_DETERMINISTIC_COVERAGE`** | **214,848** | **84.96%** (84.9581%) | Mapping-eligible ledger rows matching exactly one unique mapping rule. |
17 | **`AMBIGUOUS/MULTI_MATCH_RATE`** | **37,907** | **14.99%** (14.9897%) | Mapping-eligible ledger rows matching multiple mapping rules. |
18 | **`UNMAPPED_RATE`** | **132** | **0.05%** (0.0522%) | Mapping-eligible ledger rows matching zero mapping rules. |
19 | **`ANY_MATCH_COVERAGE`** | **252,755** | **99.95%** (99.9478%) | Mapping-eligible rows with at least one matching rule (`UNIQUE` + `AMBIGUOUS`). |
20 | **TOTAL SOURCE LEDGER ROWS** | **252,898** | -- | Full canonical source ledger, preserved unchanged. |
21 | **SYSTEM CLOSING ROWS EXCLUDED FROM MAPPING** | **11** | -- | Account `8999`; retained in source but excluded from mapping scope. |
22 | **TOTAL MAPPING-ELIGIBLE ROWS** | **252,887** | **100.00%** | Source rows used as the mapping coverage denominator. |
23
24 ---
25
26 ## 2. Analysis of Ambiguous / Multi-Match Rows (`AMBIGUOUS/MULTI_MATCH_RATE`)
27
28 Multiple matches occur across 37,907 ledger rows representing **21 distinct account codes**. Multi-matches arise from two structural causes in the source mapping workbook:
29
30 1. **Multiple Rule Definitions for Single Account Codes**:
31 - For accounts such as `8227`, `8350`, `8590`, `8160`, and `8447`, the mapping workbook defines multiple target notes or mapping types (`O`, `Oe`, `E`, `E2`) without specifying additional required dimensional constraints (such as `T1_CODE`, `T4_CODE`, or `جاری / سرمایه ای`) in `mapping_1404.xlsx`.
32 - *Example*: Account `8350` (حسابجاری فی مابين شركتهای گروه) has 4 mapping rules in `mapping_1404.xlsx` (Note 12-1 Type O, Note 12-1 Type OE, Note 19-1 Type E, Note 19-1 Type E2). Because all 4 rules leave T1/T4/JS blank, any ledger row for account `8350` matches all 4 rules simultaneously.
33
34 2. **Broad vs. Specific Rule Overlaps**:
35 - Account `8161` (حساب کنترل پیمانکاران) contains **66 distinct mapping rules** in `mapping_1404.xlsx`. Some rules specify `T1_CODE`, `T4_CODE`, or `جاری / سرمایه ای` filters, while others are generic. When ledger rows omit optional dimensional codes, both generic and partially matched rules trigger.
36
37 *Rule of Precedence Policy*: Precedence or rule ranking is **only** applied if explicitly defined in the canonical mapping workbook. Synthetic or unproven rule hierarchy is strictly avoided to maintain audit integrity.
38
39 ---
40
41 ## 3. Account 8999 System Closing Account — Excluded From Mapping Scope
42
43 Account `8999` (`998999.0` / `حساب افتتاحیه و اختتامیه`) is a system opening/closing account used exclusively for accounting close procedures.
44
45 - **Row Count**: 11 ledger rows.
46 - **Business Classification**: SYSTEM CLOSING ACCOUNT.
47 - **Mapping Eligibility**: **EXCLUDED FROM MAPPING SCOPE**.
48 - **Financial Note Mapping**: Not applicable.
49 - **Domain Confirmation**: Confirmed by accounting owner that Account `8999` is not intended to map to any financial statement note and is not a true unmapped-account exception.
50 - **Source Preservation Rule**: The 11 source rows remain unchanged in the canonical ledger for audit traceability and must not be deleted.
51
52 Accordingly, Account `8999` is excluded from mapping coverage denominators and unmapped-exposure metrics.
53
54 ---
55
56 ## 4. Reconciled 132-Unmapped Exposure Analysis
57
58 The mapping-eligible ledger contains **132 true unmapped rows** across 8 distinct accounts.
59
60 Account `8999` is not included in this unmapped population because its 11 rows are a domain-confirmed system closing account excluded from mapping scope.
61
62 ### Exact Source Financial Reconciliation for 132 Active Unmapped Rows
63
64 | Account Code | Account Persian Name | Row Count | OPENING Sum (Rials) | Period Debit Sum (Rials) | Period Credit Sum (Rials) | CLOSING Sum (Rials) | Closing Exposure % |
65 | --- | --- | --- | --- | --- | --- | --- | --- |
66 | **`8161`** | حساب كنترل پيمانكاران | 110 | 116,541,110,893 | 3,915,605,618,638 | 3,835,238,810,730 | **196,907,918,801** | **100.00%** |
67 | **`8184`** | حق عضويت مهدكودك | 1 | 0 | 150,000,000 | 150,000,000 | **0** | 0.00% |
68 | **`8260`** | انتقال مانده به شركتها گازاستاني / پالايشي /شهري | 2 | 0 | 0 | 0 | **0** | 0.00% |
69 | **`8488`** | كارمزد پرداختي | 1 | 0 | 14,891,074,867 | 14,891,074,867 | **0** | 0.00% |
70 | **`8724`** | موجودي كالاي مصالح ساختماني | 1 | 0 | 139,610,024 | 139,610,024 | **0** | 0.00% |
71 | **`8767`** | واسطه انتقال كالاي برگشتي به انبار(جاري) | 8 | 0 | 23,002,900,150 | 23,002,900,150 | **0** | 0.00% |
72 | **`8769`** | واسطه انتقال كالاي برگشتي به انبار (سرمايه اي) | 6 | 0 | 7,855,802,639 | 7,855,802,639 | **0** | 0.00% |
73 | **`8874`** | بانك ملت | 3 | 0 | 155,180,000 | 155,180,000 | **0** | 0.00% |
74 | **TOTAL (132 Mapping-Eligible Unmapped Rows)** | *Active Unmapped Accounts* | **132** | **116,541,110,893** | **3,961,800,186,318** | **3,881,433,378,410** | **196,907,918,801** | **100.00%** |
75
76 ### Key Exposure Insights
77 1. **Exposure Concentration**: 100% of the net unmapped closing balance exposure (**196,907,918,801 Rials**, or **~196.91 Billion Rials** / **196,908 Million Rials**) belongs entirely to **Account `8161` (حساب کنترل پیمانکاران)** across 110 unmapped rows where specific T1/T4 combinations are omitted from `mapping_1404.xlsx`.
78 2. **Zero-Closing Clearing Accounts**: The remaining 22 unmapped rows across 7 distinct zero-closing accounts (`8184`, `8260`, `8488`, `8724`, `8767`, `8769`, `8874`) are temporary or clearing accounts with non-zero period turnover but **EXACTLY ZERO closing balance**.
79
80 ---
81
82 ## 5. Source File Traceability & Lineage Metadata
83
84 - **Ledger Workbook**: `data/source_ledgers/source_1404.xlsx` (Sheet: `Source`, Header Row: 2, Data Rows: 2-252,899, Total Data Rows: 252,898).
85 - **Mapping Workbook**: `data/mappings/mapping_1404.xlsx` (Sheet: `Data`, Total Mapping Rules: 497).
86 - **Matching Function**: Composite key matching on `حساب` (Account Code), `T1_CODE`, `جاری / سرمایه ای`, and `T4_CODE`.