@davoodmehraban89 / Aram / commits / a7d224e
Fork 0

audit: correct source lineage null-dimension profile

davoodmehraban89 committed Aug 18, 2026 at 20:49 UTC a7d224ee4ce309dc9d8f9495f13b81621af9c087
1 file changed +4 -3
SOURCE_LINEAGE_ANALYSIS.md
+4 -3
@@ -18,15 +18,17 @@ Any mapping classification currently present in the application for 1403 must be
18 ### source_1403.xlsx
19 - **Actual Data Records**: 204176
20 - **Duplicate Physical Rows**: 0
21 -- **Null Key Dimensions (AccountId, T1-T4)**: 0
21 +- **Key-dimension null profile**: `AccountId`, `T1_CODE`, `T2_CODE`, `T3_CODE`, and `T4_CODE` were recorded as 0.0% null in the accepted Phase 1B-1 field dictionary.
22 - **Schema**: Contains 29 columns including dimensions, opening/closing balances, and statement mapping outputs.
23
24 ### source_1404.xlsx
25 - **Actual Data Records**: 252898
26 - **Duplicate Physical Rows**: 0
27 -- **Null Key Dimensions (AccountId, T1-T4)**: 0
27 +- **Key-dimension null profile**: the accepted Phase 1B-1 field dictionary records non-zero null prevalence: `AccountId` 0.2%, `T1_CODE` 2.2%, `T2_CODE` 2.8%, `T3_CODE` 2.4%, and `T4_CODE` 2.4%. These nulls must not be described as zero and must be handled explicitly by any deterministic mapping logic.
28 - **Schema**: Contains 26 columns. Identifiable structural differences exist compared to 1403 (e.g., column count).
29
30 +The presence of a null in an optional dimension does not by itself mean a source row is ineligible for mapping; eligibility depends on the dimensions required by the applicable mapping rule. Coverage metrics below therefore use the full source-row denominator and separately report unmapped/multiple-match outcomes.
31 +
32 ## 4. Specific High-Value Exception Review
33 A robust search across all account-code and account-name columns (including `حساب`, `kol`, `KOL_NAME`, `AccountId`, `ACCOUNT_NAME`, `شرح کل`, `T1_NAME`, `T2_NAME`, `T3_NAME`, `T4_NAME`) identified 11 rows related to the closing/offset account **8999** (حساب ترازاختتاميه).
34
@@ -77,7 +79,6 @@ There are 143 rows that failed to map deterministically due to missing mapping l
79 | 8161 | 117488 | 4502 | 22 | 159,965,459,804 | 48,274,392,545 |
80 | 8161 | 117865 | 4512 | 3 | 128,833,512,752 | 17,044,422,304 |
81
80 -
82 ### Proven Lineage Examples
83 1. **Simple Account Rule**: `1101 -> Note 6`. Rows with `حساب` 1101 are matched successfully if they don't have conflicting T1/T4 specific rules.
84 2. **Composite Rule (8161)**: `حساب` 8161 requires `T1_CODE` and `T4_CODE` to route to correct notes like 19-1 or 12-1. When these dimensions are present, the engine accurately assigns the note.