Repository navigation
fix: port four upstream beancount checks found by the coverage table - #3057
Merged
Merged
Conversation
robcohen
force-pushed
the
feat/upstream-check-coverage
branch
from
November 27, 2026 04:59
8838253 to
8c697b4
Compare
robcohen
force-pushed
the
fix/upstream-missing-checks
branch
from
November 27, 2026 05:01
e0a0213 to
31b2f17
Compare
robcohen
force-pushed
the
feat/upstream-check-coverage
branch
from
November 27, 2026 05:59
8c697b4 to
ba20d50
Compare
robcohen
force-pushed
the
fix/upstream-missing-checks
branch
from
November 27, 2026 06:06
31b2f17 to
a94980e
Compare
…5 on its posting
beancount reports a posting written with zero units and a cost that states
a number as "Amount is zero" (booking_full.interpolate_group); rledger
accepted it. A cost with no number (0 HOOL {}) or a price alone is still
accepted, as there. E4005 (Cost is negative) moves to the posting, where
beancount reports it and where E4006, from the same loop, goes.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
{*, *} was accepted without a word; beancount reports "Duplicate merge-cost
spec". The first * stays a deliberate extension (compatibility section 20).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…t_prices The reference was refused as an unsupported Python module (E8004). Its parts run in different passes, so rustledger_plugin::plugin_parts expands it before pass classification; the LSP counts it as native. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…not unknown It was E7001 (unknown option); beancount reports it as deprecated. Now E7004 with beancount's message, read as a converter boolean, with no effect. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… rest 2020-13-45.pdf became a document with an invalid date and the loader then discarded all of discovery's output. It is now beancount's "Invalid date on document file", at the main file's line 0, and only that file is skipped. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ches checks.toml: five rows now covered with matching lines in rledger and bean-check. Loader cache v80 (replayed option warning changes), WASM v144. Co-Authored-By: Claude Opus 5.5 <[email protected]>
robcohen
force-pushed
the
fix/upstream-missing-checks
branch
from
November 27, 2026 06:50
a94980e to
97164b4
Compare
Contributor
📊 Benchmark Results
vs base, measured in this run
A difference counts only when it clears the combined spread of the two measurements, per shape (2σ: What do these numbers mean?
|
…edMerge Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
✅ Compatibility Test Results
What's tested
Full results available in workflow artifacts |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
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.
What
Fixes four of the five
missingrows in the upstream check table from #3054, and onecoveredrow whose line difference turned out to be a bug. Stacked on #3054; review that first. Once #3054 merges, this PR's diff shrinks to these commits only.booking_full.interpolate_group:Amount is zero0 HOOL {10 USD}acceptedgrammar.Builder.cost_spec:Duplicate merge-cost spec{*, *}accepted silentlyduplicate merge marker)plugin:beancount.plugins.autoauto_accounts(synth pass) andimplicit_prices(regular pass)option-deprecated:allow_deprecated_none_for_tags_and_linksfind_documents:Invalid date on document file2020-13-45.pdfbecame an invaliddocument, and the loader then discarded all of document discovery's outputE4005 (
Cost is negative) now goes on the posting, which is where beancount reports it and where the new E4006, from the same loop, goes.Each fix updates its row in
checks.tomltocovered. The row's case ledger is checked against bothrledger checkandbean-check, so every row asserts the same lines on both sides.Details
0 HOOL {}(the posting drops out) and a zero-unit posting with only a price, and rledger does the same. The check runs invalidate_transaction_structure(early phase), so an elided number that interpolates to zero is never flagged, again matching beancount.auto. No single native plugin can belong to both passes, andtest_registry_synth_and_regular_are_disjointenforces that, sorustledger_plugin::plugin_partsexpands the reference into its parts before pass classification. The LSP's "is native" check uses the same expansion.Not fixed: needs a decision
interpolate_group:Cannot infer price for postings with units held at cost. rledger treats a bare@ USDbeside a cost as inert, on purpose:a_bare_price_beside_a_cost_is_inert(#1919). beancount reports it and then crashes. The row staysmissing, with a note.Parse-error parity
The manifest pins
grammar-duplicate-mergeandlima-tests/ParseLots.CostRepeatedMergeasmatch, where they werebc-only. Verified locally against the pinned fuzz corpus: no fuzz input changes category.Caches
How to test
🤖 Generated with Claude Code