Align lineage metrics with 8999 mapping-scope classification
davoodmehraban89 committed
Aug 19, 2026 at 13:21 UTC
0ba8b44cb901eae26a83d671bf841aeb7f9fe500
1 file changed
+12
-10
SOURCE_LINEAGE_ANALYSIS.md
+12
-10
@@ -30,14 +30,14 @@ The system implements a 5-tier bidirectional drill-down architecture:
30
31
## 2. Lineage Coverage Metrics & Disambiguation
32
33
-Lineage status across all **252,898 general ledger data rows** in `data/source_ledgers/source_1404.xlsx` is categorized into strict, non-overlapping coverage classes:
33
+Lineage coverage is measured across **252,887 mapping-eligible ledger rows** in `data/source_ledgers/source_1404.xlsx`. The canonical source ledger contains **252,898 rows** in total; 11 rows belonging to Account `8999` are retained in source for audit traceability but excluded from mapping and lineage coverage because they are a domain-confirmed system closing account.
34
35
-| Lineage Class | Row Count | % Coverage | Lineage Status |
35
+| Lineage Class | Row Count | % of Mapping-Eligible Rows | Lineage Status |
36
| --- | --- | --- | --- |
37
-| **`UNIQUE_DETERMINISTIC_COVERAGE`** | **214,848** | **84.95%** | **Proven End-to-End Lineage**: Mapped deterministically through a single unique composite mapping rule. |
38
-| **`AMBIGUOUS/MULTI_MATCH_RATE`** | **37,907** | **14.99%** | **Ambiguous Lineage**: Matches multiple mapping rules due to overlapping account definitions or missing sub-filters. *Not treated as proven lineage.* |
39
-| **`UNMAPPED_RATE`** | **143** | **0.06%** | **Unmapped Lineage**: Matches zero mapping rules in `mapping_1404.xlsx`. |
40
-| **TOTAL GENERAL LEDGER ROWS** | **252,898** | **100.00%** | Full active general ledger dataset for 1404. |
37
+| **`UNIQUE_DETERMINISTIC_COVERAGE`** | **214,848** | **84.96%** | **Proven End-to-End Lineage**: Mapped deterministically through a single unique composite mapping rule. |
38
+| **`AMBIGUOUS/MULTI_MATCH_RATE`** | **37,907** | **14.99%** | **Ambiguous Lineage**: Matches multiple mapping rules. *Not treated as proven lineage.* |
39
+| **`UNMAPPED_RATE`** | **132** | **0.05%** | **Unmapped Lineage**: Mapping-eligible rows matching zero mapping rules. |
40
+| **TOTAL MAPPING-ELIGIBLE ROWS** | **252,887** | **100.00%** | Source rows subject to mapping/lineage coverage. |
41
42
---
43
@@ -60,10 +60,12 @@ All primary financial statements are mapped cell-by-cell in `NOTE_TO_STATEMENT_M
60
61
## 4. Unmapped Ledger Exposure Lineage Reconciliation
62
63
-Of the 143 unmapped rows:
64
-1. **Account `8999` (11 rows)**: `حساب افتتاحیه و اختتامیه` (Opening/Closing Suspense Account) has gross debit/credit balances of `±1,310,883,439,013,116` Rials and **EXACTLY ZERO net closing balance**. Verified as a zero-net internal clearing exception.
65
-2. **Account `8161` (110 rows)**: `حساب کنترل پیمانکاران` accounts for **100% of unmapped net closing balance exposure** (**196,907,918,801 Rials** / **196,908 Million Rials**).
66
-3. **7 Zero-Closing Clearing Accounts (22 rows)**: Accounts `8184`, `8260`, `8488`, `8724`, `8767`, `8769`, and `8874` have non-zero turnover but **EXACTLY ZERO net closing balance**.
63
+Account `8999` is **not part of the unmapped population**. Its 11 source rows are a domain-confirmed **SYSTEM CLOSING ACCOUNT**, excluded from mapping scope and retained unchanged in the canonical ledger for audit traceability.
64
+
65
+Of the **132 true mapping-eligible unmapped rows**:
66
+
67
+1. **Account `8161` (110 rows)**: `حساب کنترل پیمانکاران` accounts for **100% of unmapped net closing balance exposure** (**196,907,918,801 Rials** / **196,908 Million Rials**).
68
+2. **7 Zero-Closing Clearing Accounts (22 rows)**: Accounts `8184`, `8260`, `8488`, `8724`, `8767`, `8769`, and `8874` have non-zero turnover but **EXACTLY ZERO net closing balance**.
69
70
---
71