@davoodmehraban89 / Aram / commits / 9374aa9
Fork 0

docs(mapping): specify typed identifiers and source-locator integrity

davoodmehraban89 committed Oct 30, 2026 at 19:06 UTC 9374aa9323f791eaea3ad7670ff7c83076dd1747
1 file changed +7
docs/superpowers/specs/2026-10-30-gate3-mapping-batch-review.md
+7
@@ -36,3 +36,10 @@ Outputs include per-row reason, stable locators, optional `MappingChangePreview`
36 Synthetic cases: first-time batch without writes; identical duplicates coalesced; conflicting duplicates poison every row; valid old/new diff and no-op; stale version rejects only affected row and blocks all approval; foreign-year and unknown accounts; obsolete same-year target; all-noop no approval delta; deterministic digest and unrelated no-autoflush; pending dirty MappingRule rejected; empty/malformed/oversized batch; repeated locator; Approved/Locked year; malformed row fail closed. Exact-final-SHA remote GitHub CI, migration round-trip and compile needed. Do not read/change canonical financial XLSX/PDF, `data/`, customer databases, migrations, dependencies, workflows or releases.
37
38 Rollback: close this unmerged Draft, or use an independently reviewed revert after authorized merge.
39 +
40 +
41 +## Additional financial identity and provenance hardening
42 +
43 +- Python treats `True == 1`; a malformed Boolean `target_note_id=True` or `expected_base_version=True` must never coalesce with a valid integer `1`. Comparison signatures preserve **actual Python type** for each identifier/value; differing types yield explicit conflicting-source results, not a false "coalesced" success.
44 +- A `source_locator` is an auditable provenance label; reject Unicode category `Cc`, `Cf`, and `Cs` (including newline, tab, NUL, bidi overrides and invisible format characters) rather than allowing log/row-spoofing. Source file hashes and actual cell coordinates must still be verified by the later Excel adapter.
45 +- These are fail-closed **pre-review** rules only. They do not confer authenticated ownership, signed review, or ability to apply any Mapping proposal.