test(core): the adapter's refused hand entries go through a real Store, and payroll is its own source

A hand entry the example says is refused when posted at once was made on a
clone of the Ledger and the receipt-gate error hand-built from
`evidence::requirement`, as `Store::post_entry_checked` builds it: the
adapter, not the engine, produced the refusal. A store journals a draft the
moment it is made, so the entry is now made, lined and posted on a rehearsal:
the books replayed from their journal into a Store of their own (the journal
and blobs copied, opened as any store is), and posted through
`post_entry_checked` under a policy, `post_entry` otherwise. The refusal is the
engine's own (ReceiptRequired included) and the example's books keep nothing.

A payroll run or tax remittance is exempt by its own source, so the engine's
"a payroll ..." sentence now reads as bookspec's new `payroll_posting`, not
`document_entry`. A draft reversal, which wanderbooks has no path for, is
returned as an unsupported-operation error (reported as "another refusal"), not
a panic that takes the harness down with it.

The claims for B-43 name the new example, entry-only-a-draft-can-be-posted-or-
discarded (a posted entry or a discarded draft is no draft), and the rehearsal.
Needs bookspec's x-h1c commits (payroll_posting, the new example, the
25.00 threshold example); the pin moves when they land.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
swaitsandClaude Sonnet 5.5 committed 2026-11-09 04:23:10 -07:00
1 parent d889f2e7fb
commit 56461c1bb6
4 files changed
+100 -33

No files matched your search

+8 -1
View File
@@ -222,7 +222,14 @@ pinned; every tool over every old book).
`entry-a-discarded-draft-leaves-the-books-unchanged`,
`entry-a-drafts-state-is-a-note-and-a-posted-entry-has-none`,
`period-a-draft-holds-its-period-open-until-it-is-discarded` (BS-period-2's
`LedgerError::DraftsInPeriod`) and `entry-evidence-is-decided-in-one-place`.
`LedgerError::DraftsInPeriod`), `entry-evidence-is-decided-in-one-place` and
`entry-only-a-draft-can-be-posted-or-discarded` (`LedgerError::EntryAlreadyPosted`
and `LedgerError::UnknownEntry`, through `Store::post_entry` and `Store::discard_draft`). An entry the example
says is refused when posted at once is made, lined and posted on a rehearsal:
the books replayed from their journal into a `Store` of their own (the
journal and the blobs copied, `Store::open`), so the refusal, an evidence
refusal included, is `Store::post_entry_checked`'s own and the example's books
keep no draft the engine would have journaled.
### Product rules