feat(component): consume v0.16.5 — clamp provenance, load filename, narration#181
Merged
Conversation
…arration Companions to rustledger beancount#1425 / v0.16.5, completing the component backend's parity with the JSON-RPC surface (closes the last of #173's snapshot triage): - bump RUSTLEDGER_VERSION to v0.16.5 (the component now preserves clamp provenance and the WIT `load` takes a filename). - component_engine.load: pass `filename` through to the WIT `load` (was dropped), so source-location metadata matches the JSON-RPC engine. - types: default empty `narration` to "" on falsy — the component emits absent narration as null (present-but-None) where JSON-RPC omits it; `.get(k, "")` returned the None. Fixes the payee/transaction serialization. With these, the full rustfava suite passes via the component backend (`RUSTFAVA_RUSTLEDGER_BACKEND=component`): 497 passed, 0 failed (was 114). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This was referenced Jun 18, 2026
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.
Companions to rustledger beancount#1425 / v0.16.5, closing the last of #173's snapshot triage. The full rustfava suite now passes via the component backend: 497 passed, 0 failed (was 114).
Changes
RUSTLEDGER_VERSION→ v0.16.5 — the component now preserves clamp provenance + the WITloadtakes a filename (German Translations beancount/fava#1425).component_engine.loadpassesfilenamethrough to the WITload(was dropped) → source-location metadata matches JSON-RPC. Fixesfava_options(InsertEntryOption.filename).types: narration default — the component emits absent narration asnull(present-but-None) where JSON-RPC omits it;.get(k, "")returned the None. Fixespayee_transaction.(Clamp provenance fixed
download_journal+trial_balance; posting-metaadvanced_filterlanded in #180.)Validation
RUSTFAVA_RUSTLEDGER_BACKEND=component pytest→ 497 passed, 0 failed. mypy clean; no new ruff violations (reduced types.py debt by 2). Default JSON-RPC path unchanged.Next: flip the default to the component (#173) — now a one-line
backend.pychange.