codex/gate-2a-pilot-workbook
MAPPING COVERAGE & ANALYSIS REPORT
Executive Summary
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).
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.
1. Mapping Coverage Metrics
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.
| Metric | Row Count | Percentage of Mapping-Eligible Rows | Description / Definition |
|---|---|---|---|
UNIQUE_DETERMINISTIC_COVERAGE |
214,848 | 84.96% (84.9581%) | Mapping-eligible ledger rows matching exactly one unique mapping rule. |
AMBIGUOUS/MULTI_MATCH_RATE |
37,907 | 14.99% (14.9897%) | Mapping-eligible ledger rows matching multiple mapping rules. |
UNMAPPED_RATE |
132 | 0.05% (0.0522%) | Mapping-eligible ledger rows matching zero mapping rules. |
ANY_MATCH_COVERAGE |
252,755 | 99.95% (99.9478%) | Mapping-eligible rows with at least one matching rule (UNIQUE + AMBIGUOUS). |
| TOTAL SOURCE LEDGER ROWS | 252,898 | -- | Full canonical source ledger, preserved unchanged. |
| SYSTEM CLOSING ROWS EXCLUDED FROM MAPPING | 11 | -- | Account 8999; retained in source but excluded from mapping scope. |
| TOTAL MAPPING-ELIGIBLE ROWS | 252,887 | 100.00% | Source rows used as the mapping coverage denominator. |
2. Analysis of Ambiguous / Multi-Match Rows (AMBIGUOUS/MULTI_MATCH_RATE)
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:
Multiple Rule Definitions for Single Account Codes:
- For accounts such as
8227,8350,8590,8160, and8447, the mapping workbook defines multiple target notes or mapping types (O,Oe,E,E2) without specifying additional required dimensional constraints (such asT1_CODE,T4_CODE, orجاری / سرمایه ای) inmapping_1404.xlsx. - Example: Account
8350(حسابجاری فی مابين شركتهای گروه) has 4 mapping rules inmapping_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 account8350matches all 4 rules simultaneously.
- For accounts such as
Broad vs. Specific Rule Overlaps:
- Account
8161(حساب کنترل پیمانکاران) contains 66 distinct mapping rules inmapping_1404.xlsx. Some rules specifyT1_CODE,T4_CODE, orجاری / سرمایه ایfilters, while others are generic. When ledger rows omit optional dimensional codes, both generic and partially matched rules trigger.
- Account
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.
3. Account 8999 System Closing Account — Excluded From Mapping Scope
Account 8999 (998999.0 / حساب افتتاحیه و اختتامیه) is a system opening/closing account used exclusively for accounting close procedures.
- Row Count: 11 ledger rows.
- Business Classification: SYSTEM CLOSING ACCOUNT.
- Mapping Eligibility: EXCLUDED FROM MAPPING SCOPE.
- Financial Note Mapping: Not applicable.
- Domain Confirmation: Confirmed by accounting owner that Account
8999is not intended to map to any financial statement note and is not a true unmapped-account exception. - Source Preservation Rule: The 11 source rows remain unchanged in the canonical ledger for audit traceability and must not be deleted.
Accordingly, Account 8999 is excluded from mapping coverage denominators and unmapped-exposure metrics.
4. Reconciled 132-Unmapped Exposure Analysis
The mapping-eligible ledger contains 132 true unmapped rows across 8 distinct accounts.
Account 8999 is not included in this unmapped population because its 11 rows are a domain-confirmed system closing account excluded from mapping scope.
Exact Source Financial Reconciliation for 132 Active Unmapped Rows
| Account Code | Account Persian Name | Row Count | OPENING Sum (Rials) | Period Debit Sum (Rials) | Period Credit Sum (Rials) | CLOSING Sum (Rials) | Closing Exposure % |
|---|---|---|---|---|---|---|---|
8161 |
حساب كنترل پيمانكاران | 110 | 116,541,110,893 | 3,915,605,618,638 | 3,835,238,810,730 | 196,907,918,801 | 100.00% |
8184 |
حق عضويت مهدكودك | 1 | 0 | 150,000,000 | 150,000,000 | 0 | 0.00% |
8260 |
انتقال مانده به شركتها گازاستاني / پالايشي /شهري | 2 | 0 | 0 | 0 | 0 | 0.00% |
8488 |
كارمزد پرداختي | 1 | 0 | 14,891,074,867 | 14,891,074,867 | 0 | 0.00% |
8724 |
موجودي كالاي مصالح ساختماني | 1 | 0 | 139,610,024 | 139,610,024 | 0 | 0.00% |
8767 |
واسطه انتقال كالاي برگشتي به انبار(جاري) | 8 | 0 | 23,002,900,150 | 23,002,900,150 | 0 | 0.00% |
8769 |
واسطه انتقال كالاي برگشتي به انبار (سرمايه اي) | 6 | 0 | 7,855,802,639 | 7,855,802,639 | 0 | 0.00% |
8874 |
بانك ملت | 3 | 0 | 155,180,000 | 155,180,000 | 0 | 0.00% |
| 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% |
Key Exposure Insights
- 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 frommapping_1404.xlsx. - 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.
5. Source File Traceability & Lineage Metadata
- Ledger Workbook:
data/source_ledgers/source_1404.xlsx(Sheet:Source, Header Row: 2, Data Rows: 2-252,899, Total Data Rows: 252,898). - Mapping Workbook:
data/mappings/mapping_1404.xlsx(Sheet:Data, Total Mapping Rules: 497). - Matching Function: Composite key matching on
حساب(Account Code),T1_CODE,جاری / سرمایه ای, andT4_CODE.