Repository navigation
feat(rustledger): upgrade to v0.20.1 (WIT 3.3) — two filed engine bugs fixed - #237
Merged
Merged
Conversation
…s fixed Supersedes the bot's gated draft (#236; the WIT gate correctly held both 0.20 bumps for human review). Engine v0.19.1 -> v0.20.1: - RUSTLEDGER_VERSION -> v0.20.1, _WIT_VERSION -> 3.3.0, vendored component refreshed (sha256-verified). No new host imports (verified against the artifact — decrypt remains the only one). - cost-number JSON surface: v0.20 tags by `type` with a `value` payload (per-unit-from-total as a two-string list) like every other variant; v0.19 tagged by `kind` with spread fields. The writer emits the new shape; both readers (component_engine, types.cost_number_values) tolerate all three historical forms. WIT 3.3 adds a `compound` input case, so cost-number detection is now a superset check. - smoke suite gap list SHRUNK per its guard: only() NULL propagation is fixed upstream (rustledger#1702 <- our beancount#1699), so the Holdings by_currency query is back under assertion on every corpus ledger. abs() on NULL still errors in v0.20.1 — the one remaining gap entry, status updated on rustledger#1699. - {a # b} compound cost now weighs N*a + b (rustledger#1704 <- our beancount#1700): the marshalling round-trip asserts the CORRECT booking arithmetic. - bare {CUR} costs are now inferred from the residual (rustledger#1709): the R3 render test asserts the proper at-cost value (crash-free invariant unchanged). - query snapshots: cost `kind`->`type`; payee column dtype object->str with real nulls instead of 'None' strings (rustledger#1703 <- our beancount#1701). - types.py: pre-existing lint debt cleared (file now passes the pinned hooks it gates). 629 passed, 100.00% coverage under the tightened gate.
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.
Completes the upgrade the WIT gate correctly held for human review (bot drafts #235/#236 — the gate's first production catches). Engine v0.19.1 → v0.20.1.
Integration
RUSTLEDGER_VERSION→ v0.20.1,_WIT_VERSION→ 3.3.0; no new host imports (verified against the artifact —decryptremains the only one)typewith avaluepayload (pair-as-list) like every other variant. Writer emits the new shape; both readers tolerate all three historical forms (v0.20 / v0.19kind-tagged / flat JSON-RPC scalar). WIT 3.3's newcompoundinput case → superset detection.The payoff — our filed bugs, fixed and re-armed
only(NULL){a # b}weightN·a + bbookingpayeedtypeobject→str, real nulls instead of'None'stringsabs(NULL)still errors in v0.20.1 — the one remaining gap entry (status updated on rustledger#1699).Behavior changes traced, not rubber-stamped
{CUR}costs now infer from the residual (fix(cli): support relativeBEANCOUNT_FILEbeancount/fava#1709): the R3 render test asserts the proper at-cost value (crash-free invariant unchanged)Validation
629 passed, 100.00% coverage under the tightened gate; ruff (pinned) + mypy clean. Also clears
types.py's pre-existing lint debt.🤖 Generated with Claude Code