Mirrored from https://github.com/davoodmehraban89/Aram.git
Synced Dec 3, 14:30 UTC
docs(t6a): record source-grounded read-only mapping baseline and owner decisions
davoodmehraban89 committed
Oct 23, 2026 at 00:11 UTC
93a2df3420fd186e13c1936c54575c8ffa7c943a
1 file changed
+38
docs/T6A_READONLY_DIAGNOSTIC.md
new
+38
@@ -0,0 +1,38 @@
1
+# T6a — Read-only mapping and lineage diagnostic (documentary baseline)
2
+
3
+**Status:** DOCUMENT_REVIEW_ONLY. This is a reproducible *document review*, not a fresh calculation against protected workbooks. No mapping decisions are authorized here.
4
+
5
+## Source of figures
6
+
7
+- `MAPPING_ANALYSIS.md` (accepted repository report)
8
+- `SOURCE_LINEAGE_ANALYSIS.md` (accepted repository report)
9
+- Canonical sources identified by those reports: `data/source_ledgers/source_1404.xlsx` and `data/mappings/mapping_1404.xlsx`; **not opened or modified in this task**.
10
+
11
+## Reported 1404 row reconciliation
12
+
13
+| Category | Rows | Denominator |
14
+| --- | ---: | --- |
15
+| All source rows | 252,898 | full ledger |
16
+| System closing account 8999 (excluded from mapping only) | 11 | full ledger |
17
+| Mapping-eligible rows | 252,887 | eligible ledger |
18
+| Unique deterministic matches | 214,848 | eligible ledger |
19
+| Ambiguous / multiple matches | 37,907 | eligible ledger |
20
+| Unmapped | 132 | eligible ledger |
21
+
22
+**Arithmetic checks on published figures:** 252,898 − 11 = 252,887; 214,848 + 37,907 + 132 = 252,887; 214,848 + 37,907 = 252,755 (any-match). The reports quote 84.96% unique, 14.99% ambiguous and 0.05% unmapped, rounded. These are *reported* counts, not newly verified against XLSX.
23
+
24
+## Accounting and product risks
25
+
26
+1. **37,907 ambiguous rows:** no single mapping lineage is proven. Do not auto-select a rule based on first match, row order or convenience.
27
+2. **132 unmapped rows:** require explicit owner disposition; never silently drop from totals.
28
+3. **11 account-8999 closing rows:** preserve in source and audit lineage; exclude only from mapping scope per documented domain decision. Do not delete.
29
+4. **Version and approval:** mapping and reclassification O/OE/E/E2 need owner-approved interpretation and traceable versioning before T6/T7 computation.
30
+5. **Cross-year and statement lineage:** verify the proposed statement → note → mapping → account → source-row links with the original source workbooks before claiming complete provenance.
31
+
32
+## Required next diagnostic run (NOT EXECUTED)
33
+
34
+On a controlled read-only checkout, hash the canonical XLSX files; load them without writeback; recompute row counts and composite-key cardinalities; export only a sanitized discrepancy summary; verify source file hashes unchanged. Record exact command, environment, script SHA, outputs and reviewer. Do not modify protected `data/` files or approve mapping rules as a side effect.
35
+
36
+## Owner decision required before T6/T7
37
+
38
+Resolve ambiguous rule classes and unmapped rows by explicit, auditable rules; confirm treatment of reclassification O/OE/E/E2 and target note/statement references. This diagnostic does not implement or approve those decisions.