Skip to content

docs: fold the 2026-07 import review into the importing roadmap - #1763

Merged
robcohen merged 3 commits into
mainfrom
docs/importing-roadmap-review
Jul 12, 2026
Merged

robcohen merged 3 commits into
mainfrom
docs/importing-roadmap-review

Conversation

@robcohen

Copy link
Copy Markdown
Member

Revises docs/roadmap/importing.md with the findings of the import-capabilities review:

  • New top Now item — import over the component boundary. The engine (auto-inference, WASM importers, ML categorization, fuzzy dedup) is unreachable from every GUI surface: rustfava's import UI is upstream Fava's Python-beangulp flow behind an optional extra, and the WASI component exposes no import interface. An additive extract/identify WIT interface + a rustfava backend converts the engine into the product's ingestion layer.
  • Expose finished-but-unwired ops: rustledger-ops::reconcile() (statement comparison) and transfer.rs (871 lines of transfer pairing) are tested but have no consumer.
  • OFX <LEDGERBAL> as balance-extraction phase 1 — the parser currently drops it; surfacing it makes every OFX import verified-complete nearly for free.
  • Fixture corpus before profiles: the repo ships zero built-in profiles and no real-institution fixtures; the corpus is the prerequisite that makes profiles and the community registry trustworthy.
  • Adds camt.053 (EU ISO 20022 statement standard) as the next native format, IBKR ([Feature]: IBKR Importer #923) as the flagship WASM-importer exemplar, and an explicit adopt-or-out-of-scope decision on beangulp archive/file parity.
  • Fixes the merchant-dictionary count inconsistency in docs/guides/importing.md (~75) and docs/commands/extract.md (~150) — the actual dictionary is 76 entries.

Docs only; no code.

🤖 Generated with Claude Code

Re-prioritizes around the review's central finding: the Rust import
engine is unreachable from every GUI surface (rustfava imports via
Python beangulp; the WASI component has no import interface), so the
top Now item is an extract/identify interface on the component
boundary. Also promotes: wiring the finished-but-unexposed
rustledger-ops reconcile()/transfer.rs, OFX <LEDGERBAL> as the free
first phase of automatic balance extraction, and a real-institution
fixture corpus as the prerequisite for shipped profiles and the
community registry. Adds camt.053, the IBKR WASM exemplar (#923),
and an explicit adopt-or-declare-out-of-scope decision on beangulp
archive/file parity. Fixes the merchant-dictionary count in two docs
(75/150 -> actual 76).

Co-Authored-By: Claude Fable 5 <[email protected]>
@robcohen
robcohen requested a review from a team as a code owner July 12, 2026 00:47
Copilot AI review requested due to automatic review settings July 12, 2026 00:47
@codecov

codecov Bot commented Jul 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the importing roadmap and related documentation to reflect the 2026-07 import-capabilities review, focusing on integration gaps (GUI/component boundary), surfacing existing-but-unwired ops, and tightening up the merchant-dictionary docs.

Changes:

  • Re-prioritizes the importing roadmap “Now / Next” items around exposing import functionality over the WASI component boundary and wiring existing reconcile/transfer ops into user-facing flows.
  • Adds explicit sequencing guidance (fixtures corpus before institution profiles/registry) and calls out next native format (camt.053) plus IBKR as a flagship WASM importer.
  • Normalizes merchant-dictionary size claims to 76 patterns in user docs.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
docs/roadmap/importing.md Reworks “Now/Next” priorities and adds new roadmap items/approaches from the 2026-07 review.
docs/guides/importing.md Updates merchant-dictionary count in the enriched-imports overview.
docs/commands/extract.md Updates merchant-dictionary count in the extract/enrichment documentation.
Comments suppressed due to low confidence (2)

docs/commands/extract.md:187

  • This section says use_merchant_dict and regex_mappings "are not yet exposed" in importers.toml, but the CLI config schema already supports use_merchant_dict (only regex_mappings is missing). Updating this avoids misleading users.
| `use_merchant_dict(true)` | Enable the built-in merchant dictionary (76 common patterns) as a low-priority fallback for account categorization |
| `regex_mappings(vec)` | Add regex-based account mappings (case-insensitive, compiled at load time) |

These options are available in the Rust library API but are not yet exposed as
fields in `importers.toml` configuration. Substring-based mappings in

docs/guides/importing.md:212

  • The merchant dictionary count update is great, but the later instructions in this section are inaccurate: use_merchant_dict is supported in importers.toml (and via the rledger extract --use-merchant-dict flag). The doc currently says it’s only available via CsvConfigBuilder and not in TOML, which can mislead users.
- **Transaction fingerprinting**: Stable structural hashes for deduplication against existing ledger entries
- **Confidence scores**: Every enrichment decision carries a confidence value

### Auto-Detect Mode


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/roadmap/importing.md Resolved
Comment thread docs/roadmap/importing.md Resolved
@github-actions

Copy link
Copy Markdown
Contributor

✅ Compatibility Test Results

Metric Result
Check Compatibility 100%
BQL Compatibility 100%
Full AST Match 100%
Total Files 811
What's tested
  • Check: Exit codes and error counts match bean-check
  • BQL: Query results match bean-query
  • Files: ~800 test files downloaded from 10+ beancount repositories

Full results available in workflow artifacts

robcohen and others added 2 commits July 12, 2026 02:08
transfer.rs is consumed by 'rledger lint transfers' — the accurate
gap is that the IMPORT flow never uses it. And the merchant
dictionary is 75 entries, not 76 (the extra match was the struct
definition, not an entry).

Co-Authored-By: Claude Fable 5 <[email protected]>
@robcohen
robcohen merged commit 788c656 into main Jul 12, 2026
51 checks passed
@robcohen
robcohen deleted the docs/importing-roadmap-review branch July 12, 2026 13:48
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.

2 participants