Skip to content

chore: upgrade rustledger to v0.20.1 - #236

Closed
rustledger-bot[bot] wants to merge 1 commit into
mainfrom
chore/upgrade-rustledger-v0.20.1
Closed

rustledger-bot[bot] wants to merge 1 commit into
mainfrom
chore/upgrade-rustledger-v0.20.1

Conversation

@rustledger-bot

@rustledger-bot rustledger-bot Bot commented Jul 3, 2026

Copy link
Copy Markdown

Automated update of rustledger to v0.20.1 — held for human review (draft, no auto-merge) because:

  • WIT package version changed: -> (host bindings in likely need changes)

What the bot already did

  • Bumped RUSTLEDGER_VERSION and refreshed the vendored component (sha256-verified)
  • Bumped _WIT_VERSION to 3.3.0 (if it changed)

What a human must check

  • New/changed WIT imports: does the component need host bindings the linker doesn't define yet? (wasm-tools component wit the vendored file; see the host interface handling in component_engine.py)
  • Run the rustledger test suites locally (just test-py)
  • Update marshalling for any changed WIT types

See rustledger v0.20.1 release notes. Context: #218 / #219 / #220.

@robcohen

robcohen commented Jul 3, 2026

Copy link
Copy Markdown
Member

Superseded by the full integration PR (WIT 3.3 host-side changes, gap-list shrink, snapshot updates) — the version-string bump alone would have left the cost-number surface and test expectations broken, which is exactly why the gate held this as draft.

@robcohen robcohen closed this Jul 3, 2026
robcohen added a commit that referenced this pull request Jul 3, 2026
…s fixed (#237)

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 deleted the chore/upgrade-rustledger-v0.20.1 branch August 10, 2026 00:39
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