Files
wanderbooks/crates
swaitsandClaude Sonnet 5.5 ab2d40e4c0 test(core): the evidence requirement's branches
evidence.rs ran 34% of lines and 9% of branches from the core's own suite
(the store, server and viewer are its callers). These tests go through
evidence::{requirement, Policy, Annotation} and the Ledger commands that
make an entry of each origin, and each asks the question twice: it is
pure (WB-entry-5), the books equal their clone afterwards.

- BS-entry-5 / WB-entry-5: a hand entry is Required strictly above the
  threshold (25.00 default; at it, none), with its reason in words; a
  required account needs a receipt at any amount; exempt accounts exempt
  only an entry whose every line is on one; threshold 0.00 means every
  entry; debits past exact arithmetic are TooLargeToCompute from the sum
  and past any threshold for the gate, never a panic.
- BS-entry-5, the anti-gaming rule: same-day, same-description,
  same-debit-account drafts are one purchase; a group over the threshold
  makes the draft Required and names the group; other days/descriptions/
  accounts, a group under the threshold, and a reversal are not groups.
- WB-entry-6: each origin is Exempt with its source: a reversal, a
  closing entry, a schedule month, a depreciation run, an asset disposal,
  a payroll tax remittance, a document's entry, a payroll run; a recurring
  draft is the policy's.
- WB-ledger-15 item 4: an annotation's fields are trimmed, blank ones are
  not kept, a receipt number is positive, an amount not negative, a date
  inside the calendar; at least one field or a note.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 02:33:23 -07:00
..