Repository navigation
docs: user-facing feature inventory (rewrite requirements baseline) - #240
Conversation
Seven documents under docs/features/ cataloguing exactly what rustfava does from the user's viewpoint - every report, filter capability, editing/document/import workflow, the full BQL surface (67 functions, aggregates, entry-set tables), the JSON API as a capability, the extension system, CLI/serving modes, desktop app behavior, distribution channels, i18n, and the engine capabilities users can observe (directives, booking methods, 31 native plugins, encrypted ledgers, error reporting). Deliberately 'what' not 'how'; divergences from beancount/fava flagged. Extracted from the actual code surfaces at v1.31/main.
The eight new files were not mdformat-clean, so the hook rewrote them on every commit touching them. Purely presentational: prose rewrapped to 80 columns, table separators padded, and ordered lists normalised to lazy `1.` numbering, which renders identically. Verified nothing else moved by diffing the token streams before and after — the only differences are table rules and the list markers. No prose word changed. mdformat is now idempotent on these files. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_012nNGPA44Dt32NyxWem26xr
|
Reviewed and unblocked. The content holds up seven weeks on — I checked rather than assumed, because a stale requirements baseline is worse than none. Accuracy spot-checksThe report inventory matches the code exactly. Every report in The three "not present" claims are still true — the fragile ones, since a negative silently becomes false the moment someone adds the feature:
And the read-only/incognito modes it cross-references really do exist ( It ages well by construction. There is exactly one version-pinned statement in all 508 lines — the self-dating line in the README ("at v1.31/main, 2026-07"). Everything else describes capabilities rather than specifics, which is why seven weeks and a rustledger v0.21 → v0.22 bump falsified none of it. Declaring its own vintage up front is the right call here. I also checked the Docker line against #298, which landed today and made the image multi-arch: it names the image and tag convention without claiming a platform, so it's still correct. Worth mentioning amd64/arm64 there eventually, but it isn't wrong. What I changedTwo mechanical blockers, nothing touching the prose:
Verified nothing else moved by diffing the token streams before and after — the only differences are table rules and list markers, and no prose word changed. mdformat is now idempotent on these files. 30 checks pass, 0 fail, Unrelated debt this surfacedThe push needed
So any push touching those paths is currently blocked; #298 hit the same wall earlier today. Worth a small housekeeping PR, but unrelated to this one. |
Both files failed their pre-commit hooks on unmodified main, so any push touching either path was blocked and had to use --no-verify. #298 and the previous commit on this branch both hit it. - README.md: mdformat rewraps prose to 80 columns, pads table separators, normalises ordered lists to lazy `1.` numbering, and rewrites the `---` thematic break as `___`. All rendering-equivalent: soft line breaks collapse to spaces, and both rule forms emit <hr>. - update-flake-sources.yml: prettier prefers double quotes. Checked that no prose changed by diffing the token streams before and after; the only differences are table rules, list markers and the thematic break. The wrapped lines are paragraph-internal breaks, which CommonMark treats as spaces, including the one splitting a `**bold**` span and the one inside the `<sub>` tag. Both hooks are now idempotent, so `git push` no longer needs --no-verify. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_012nNGPA44Dt32NyxWem26xr
* chore: make every markdown file mdformat-clean The mdformat hook only runs on files a push actually touches, so this debt surfaced one file at a time, always while someone was trying to do something else. #298 and #240 both had to reach for --no-verify. This clears all 18 remaining files so the hook stops being a tripwire. Purely presentational: prose rewrapped to 80 columns, table separators padded, ordered lists normalized to lazy `1.` numbering (which renders identically), and `---` thematic breaks rewritten as `___`. Nine of the eighteen are the user-facing help pages, which are rendered in the app, so they got extra checks rather than a bulk pass: - Every `<pre>` and `<textarea>` block is byte-identical before and after, verified by extracting and comparing them programmatically. Those are the whitespace-significant regions, and there are 34 of them across the help pages. - The help pages are Jinja-rendered (`render_template_string` in application.py), so `{{ rustfava_version }}` in `_index.md` is a live substitution rather than literal text. Placeholder counts match before and after in every file, and the one placeholder is unchanged. - Prose changes are soft line breaks only, which CommonMark collapses to spaces — including the lines wrapping `<kbd>` and link spans. Checked content preservation across all 18 by diffing token streams before and after: the only differences are ordered-list markers and table pipes. No prose word changed. 671 passed. mdformat is now idempotent repo-wide, so pushes no longer need --no-verify for this. * fix: exclude docs/api.md from mdformat and restore it The previous commit broke `mkdocs build --strict`, which CI caught: ERROR - mkdocstrings: rustfava.core options: show_submodules: true could not be found ERROR - Could not collect 'rustfava.core options: show_submodules: true' Aborted with a BuildError! docs/api.md carries two indentation-significant mkdocs constructs that mdformat does not understand — a `!!! note` admonition and an mkdocstrings `::: rustfava.core` block with an indented `options:` mapping. Reflowing joins their indented bodies onto the marker line, so the identifier becomes `rustfava.core options: show_submodules: true` and collection fails. Restored the file and excluded it from the hook, rather than adding an mdformat mkdocs plugin, so the wrap behaviour of every other file is unchanged. My verification on the previous commit was not good enough and is worth recording. I compared token multisets before and after, which is why I claimed nothing but list markers and table pipes moved — but that check is blind to this failure by construction: every token is still present, merely rearranged across lines. It caught nothing because there was nothing to catch at the token level. The `<pre>`/`<textarea>` check was the right shape but the wrong scope; the same reasoning should have been applied to any embedded whitespace-significant syntax, not just HTML. Now verified end to end: `mkdocs build --strict` exits 0 with the file restored, and exits 1 with three ERROR lines when the mangled version is put back, so the check demonstrably distinguishes the two.
A complete inventory of rustfava's capabilities from the user's viewpoint — what, never how — written as the requirements baseline for a rewrite.
Seven documents under
docs/features/:insert_entryplacement, document lifecycle, the import/extract/review workflowEverything extracted from the actual code surfaces (reports, routes,
json_api.py,fava_options.py, the rustledger executor/booking/plugin sources) at v1.31/main; behavioral claims spot-verified.🤖 Generated with Claude Code