Files
wanderbooks/crates
swaitsandClaude Sonnet 5.5 22df07162a test(core): the ledger's edits refuse what their rules refuse
The small commands in ledger.rs whose refusal arms the core's own suite
did not reach. Each drives the public command, compares the ledger to its
clone after a refusal, and names its rule.

- BS-ledger-19 / WB-ledger-10: renumbering needs a known account, a
  non-blank free code, no approval rule naming the old code, and no
  control role's default code the account's type does not fit.
- BS-partner-8 / WB-partner-4: a party's fields hold no full TIN, no
  control character, at most 500 characters; a name is not blank or
  another's; an archived party returns only when no live party took its
  name; emails are addresses.
- BS-asset-1: a description is never blank; a disposal is refused for
  another currency, negative proceeds, an unknown asset, a second time.
- settings.rs's fiscal-year rule (IRS Form 1128, BS-period-2): the year
  does not move under a closed period; with none closed, it moves.
- WB-ledger-15 items 4, 5: annotations replace by file, receipt numbers
  run from the max (a duplicate is not renumbered, saturating at u32);
  entry.settles names existing, distinct entries, never itself.

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