test(differential): booking methods, includes, plugin, aggregates, encryption#217
Merged
Merged
Conversation
…cryption Third-deep-dive sweep of previously-unexamined constructs, each verified against beancount and locked in so an engine bump can't silently regress them: - Booking methods FIFO/LIFO/HIFO + `@` per-unit price + a multi-file include chain added to the differential inventory oracle (book like beancount). - test_booking_errors_are_rejected_like_beancount: ambiguous reduction and oversell must error in both engines. - test_auto_accounts_plugin_matches_beancount: the plugin's synthesized opens match beancount's. - Aggregate checks for cases where the lot *representation* diverges but the economic total must not: labeled-lot reduction (engine drops the label, rustledger#1666) matches beancount's aggregate; AVERAGE booking (beancount can't book it) aggregates to the hand-verified 15 X / 225 USD. - test_encrypted_ledger: is_encrypted detection works and an undecryptable ledger fails cleanly, not a crash (decryption itself is rustledger#1667). Engine-side findings filed upstream: rustledger#1666 (label drop), beancount#1667 (GPG decryption via WASI), beancount#1668 (duplicate/missing diagnostics).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Third deep-dive: sweep of previously-unexamined constructs, each verified against beancount and locked into the differential oracle so an engine bump can't silently regress them (the way
@@/clamp/balance did before the oracle existed).Added to the oracle
@per-unit price, and a multi-file include chain — all book identically to beancount.auto_accountssynthesizes the same opens as beancount.is_encrypteddetection works, and an undecryptable ledger fails cleanly (an error, never a crash or silent-empty).Engine-side findings filed upstream (rustfava faithfully reflects the engine)
openacross includes.Test-only + fixtures; full suite/coverage unaffected.
🤖 Generated with Claude Code