docs(mapping): specify multi-statement mappings and unique-account coverage totals
davoodmehraban89 committed
Oct 31, 2026 at 08:49 UTC
cffe5d1d9a0fed3cba98c642e8bef058eb352066
1 file changed
+3
-1
docs/READONLY_MAPPING_COVERAGE.md
+3
-1
@@ -10,7 +10,9 @@ Call `preview_mapping_coverage(workbook_bytes, company_code="001", fiscal_year=1
10
11
The input must pass `preflight_pilot_workbook`. It must contain an explicit company/fiscal-year record and at least one account. The result includes the source SHA-256, full account lineage (Excel row/source row), candidate note exposure, ambiguous/unmapped/unapproved exceptions, and source/covered/blocked closing exposures.
12
13
-Only an account with **exactly one** Mapping row marked `Approved` and `Valid` **in the workbook** is included in the *candidate* group. These are untrusted workbook claims, **not** authorization. Duplicated mappings are excluded regardless of their stated approval status. Missing mappings are excluded. A closing balance is **not** a statement line, cash flow, income, or auditor-approved figure.
13
+An account may have **one Mapping row per distinct target statement**, each independently marked `Approved` and `Valid` **inside the workbook**. This permits the same ledger account to feed, for example, both BS and EQ, or BS and CF. More than one mapping row for the same account and same target statement is ambiguous; every row for that statement is excluded. Missing or unapproved mappings are excluded for their target. These workbook labels are untrusted claims, **not** authorization. A closing balance is **not** a statement line, cash flow, income, or auditor-approved figure.
14
+
15
+The `accounts` collection remains one row per source account. The new `mappings` collection carries one trace per mapping row. `candidate_mapped_accounts` and global covered/blocked closing exposures count each source account once, even if it maps to several statements. Note exposures are statement-specific and may therefore sum to more than the global covered exposure; **never sum note exposures across different statements as if they were a single ledger total**.
16
17
Each output has `kind="UNAPPROVED_MAPPING_COVERAGE_PREVIEW"`, `financial_statement=false`, `trusted_approvals=false`, `releasable=false`. Do not remove these protections or expose an approval/export UI until authenticated independent reviews, source-to-statement semantics and reconciliation are accepted.
18