Skip to content

feat(rustledger): upgrade to v0.20.1 (WIT 3.3) — two filed engine bugs fixed - #237

Merged
robcohen merged 1 commit into
mainfrom
chore/rustledger-0.20.1
Jul 3, 2026
Merged

robcohen merged 1 commit into
mainfrom
chore/rustledger-0.20.1

Conversation

@robcohen

@robcohen robcohen commented Jul 3, 2026

Copy link
Copy Markdown
Member

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 — decrypt remains the only one)
  • Cost-number JSON surface modernized: v0.20 tags by type with a value payload (pair-as-list) like every other variant. Writer emits the new shape; both readers tolerate all three historical forms (v0.20 / v0.19 kind-tagged / flat JSON-RPC scalar). WIT 3.3's new compound input case → superset detection.

The payoff — our filed bugs, fixed and re-armed

Filed Fixed upstream Re-verified here
beancount#1699 only(NULL) beancount#1702 (v0.20.0) gap list shrunk per its guard — Holdings by_currency back under assertion on every ledger
beancount#1700 {a # b} weight beancount#1704 (v0.20.0) round-trip test now asserts the correct N·a + b booking
beancount#1701 Amount/Inventory cells beancount#1703 (v0.20.0) snapshots: payee dtype object→str, real nulls instead of 'None' strings

abs(NULL) still errors in v0.20.1 — the one remaining gap entry (status updated on rustledger#1699).

Behavior changes traced, not rubber-stamped

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

…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.
@robcohen
robcohen merged commit a4cf581 into main Jul 3, 2026
29 checks passed
@robcohen
robcohen deleted the chore/rustledger-0.20.1 branch July 3, 2026 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant