Mirrored from https://github.com/davoodmehraban89/Aram.git
Synced Dec 3, 19:30 UTC
docs: define read-only mapping source parser boundary
davoodmehraban89 committed
Nov 1, 2026 at 15:01 UTC
377281f14bb57d3b5a54f94146f638ca4d7a0817
1 file changed
+19
docs/MAPPING_SOURCE_PARSER.md
new
+19
@@ -0,0 +1,19 @@
1
+# Mapping source parser
2
+
3
+## Scope
4
+
5
+`aram_backend.mapping_source_parser.parse_mapping_source` is the first read-only import boundary for the canonical mapping workbook. It reads the `Data` sheet using the existing mapping workbook inspection profile and retains original Excel row numbers and all source columns.
6
+
7
+## Safety and accounting boundaries
8
+
9
+- Formula cells are read as formula text; formulas are never evaluated.
10
+- No mapping precedence is inferred.
11
+- Duplicate rows are retained as separate source evidence.
12
+- Dimension columns (including T1/T4 and current/capital classification when present) are preserved verbatim in `source_values`; this parser does not interpret their business meaning.
13
+- Missing account, mapping type or note code is rejected.
14
+- The parser is streaming and rejects more than 100,000 nonblank data rows.
15
+- This module does not connect ledger rows to mapping rows and does not authorize a mapping.
16
+
17
+## Next integration gate
18
+
19
+Before implementing composite matching, record and test the exact header names and allowed values from an authorized copy of the mapping workbook. The matching layer must use the full account + dimensional key, expose zero/one/multiple matches, and never silently choose a rule. A finance owner must approve any normalization or precedence policy.