@davoodmehraban89 / Aram-2 Mirror · read-only / commits / 475c114
Fork 0

Mirrored from https://github.com/davoodmehraban89/Aram.git

Synced Dec 3, 22:00 UTC

docs(cli): specify manifest referential integrity checks and limitations

davoodmehraban89 committed Oct 31, 2026 at 18:21 UTC 475c114aef8c54f04e2494872738c39701414965
1 file changed +5
docs/FIVE_STATEMENT_PIPELINE_CLI.md
+5
@@ -27,6 +27,11 @@ The root object must contain exactly:
27 - Monetary amounts in reference controls and journal transaction rows must be **decimal strings**, not JSON numeric literals or booleans. NaN, Infinity, excessive exponents and out-of-range precision are rejected.
28 - Presentation sign multipliers must be exactly the JSON integers `1` or `-1`. Numeric booleans and floating-point `1.0` are invalid.
29 - Identity, category, activity, label and evidence fields must be nonempty strings without leading/trailing whitespace, control characters or excessive length. An explicitly blank `subnote_code` remains supported.
30 +- Every note reference is unique by `(statement, section, note_number, subnote_code)`; supported statements are BS, IS, EQ and CF.
31 +- Every BS/IS/EQ policy key must match an existing reference of the same statement and cannot appear twice. Missing presentation policies are still allowed through parsing so the analyst engines can report them as *blocked review findings*, rather than silently inventing policies.
32 +- Every selected balance-sheet cash note must be unique, have a matching BS reference and an explicitly categorized `ASSETS` presentation policy. This does not prove the cash-equivalents selection is complete or finance-owner approved.
33 +- The cash-account registry and counterpart-account policies cannot contain duplicate account codes or overlap. Each transaction line ID must be unique; its cash account must be registered and its counterpart must be another cash account or explicitly classified counterpart. An account cannot be paired with itself.
34 +- All of these structural referential controls run **before opening the XLSX**; they validate consistency of user-provided references, not their accounting truth.
35 - References use the same fields as the note reconciliation manifest.
36 - BS/IS/EQ policy rows use the exact dataclass fields of their respective policy classes.
37 - Cash-account, counterpart and transaction rows use the exact fields of `CashAccountPolicy`, `CashCounterpartPolicy` and `CashFlowEntry`.