Repository navigation
chore: upgrade rustledger to v0.22.0 - #284
Conversation
All five changes are upstream-correctness fixes, verified individually rather than accepted wholesale: - test_api_errors: a spurious interpolation error is gone. Verified against beancount in #280. - test_serialise_entry_types: number-value 10 -> 20 (10 + 10 now folds). Verified against beancount in #280. - account_report_off_by_one_journal: 101.0 -> 101 float formatting (#280). - test_api-journal: the synthesised Padding transaction now sorts *after* same-date Open directives instead of before them. This matches beancount's entry_sortkey (date, type_priority, lineno), where Open outranks Transaction. From rustledger beancount#2095. - test_api_query_result-journal: narration "Eating out " -> "Eating out". rustledger beancount#2044 applies MAXWIDTH to JOURNAL's payee/narration, matching beanquery's transform_journal, which compiles JOURNAL to SELECT ... MAXWIDTH(payee, 48), MAXWIDTH(narration, 80) ... MAXWIDTH is textwrap.shorten, which collapses and strips whitespace. Plain SELECT narration still preserves the space, in beancount too. 669 passed.
robcohen
left a comment
There was a problem hiding this comment.
Deep review. There were no prior comments or inline review comments on this PR — nothing to respond to, so this is a fresh pass. I've discharged all three items on the bot's human-review checklist with evidence, and found one real defect in the PR itself plus two bugs in the workflow that produced it.
1. _WIT_VERSION was never bumped — the bot's edit is silently discarded
The PR is held for review specifically because the WIT package version changed, and the body states the bot already did the mechanical part:
- Bumped
_WIT_VERSIONto3.11.0(if it changed)
It did not. component_engine.py:88 still reads _WIT_VERSION = "3.4.0" on both main and this branch, while the v0.22.0 component exports rustledger:ledger/*@3.11.0.
The gate step does perform the edit (update-rustledger.yml:100):
sed -i "s/_WIT_VERSION = \"${CUR_WIT}\"/_WIT_VERSION = \"${NEW_WIT}\"/" \
src/rustfava/rustledger/component_engine.pybut create-pull-request is scoped to a one-file allowlist (update-rustledger.yml:191):
add-paths: |
src/rustfava/rustledger/engine.pycomponent_engine.py isn't listed, so the change is dropped. The scoping was added to stop ~6 MB of working files being committed (#243) — a correct fix that silently invalidated a later addition, which is the usual way allowlists fail.
Why nothing breaks today. wasmtime's component linker matches imports on semver compatibility, so a host defined at 3.4.0 satisfies a component importing 3.11.0 because both are major 3. Verified by substituting values and instantiating:
_WIT_VERSION |
result |
|---|---|
3.11.0 |
OK — version() → 3.11 |
3.4.0 (current) |
OK — version() → 3.11 |
4.0.0 |
FAIL — component imports instance rustledger:ledger/[email protected], but a matching implementation was not found |
2.0.0 |
FAIL — same |
So the constant is inert until a major WIT bump, at which point it breaks — and the mechanism meant to have fixed it will drop the fix again. Two changes are wanted: bump the constant here, and add component_engine.py to add-paths.
2. The PR body blanks the very values a reviewer needs
The reason line renders as:
- WIT package version changed: -> (host bindings in likely need changes)
Both versions and the filename are missing. ${{ steps.gate.outputs.reasons }} is interpolated into an unquoted heredoc (cat > pr-body.md <<EOF, update-rustledger.yml:136), so the backticks in the reason string are treated as command substitution and their contents are executed and replaced with empty output. The static backticks elsewhere in the body survive because they're backslash-escaped; values arriving through a variable can't be escaped at compose time. set -euo pipefail doesn't catch it, since the substitution's exit status is never examined.
Fix is to quote the delimiter (<<'EOF') and inject the body values through env: rather than ${{ }}, which also closes the shell-injection surface this shares.
3. The body claims a vendored artifact that doesn't exist
Bumped
RUSTLEDGER_VERSIONand refreshed the vendored component (sha256-verified)
Nothing is vendored. src/rustfava/rustledger/*.wasm is gitignored (.gitignore:52) and add-paths excludes it anyway; the component is downloaded at runtime. The workflow's component.wasm is a working file used only for the WIT gate. As written, the line implies the shipped artifact was updated by this PR.
Related: I filed #286 for the runtime download being version-agnostic (rustledger_ffi_component.wasm with an if not exists() guard, so a version bump never re-downloads). Worth noting there's already a precedent in this repo — desktop/scripts/ensure-rustledger.ts reads a .wasm-version marker (line 171) and writes it after building (line 240) for a sibling wasm in the same directory.
Checklist, discharged
- New/changed WIT imports / missing host bindings (the #218 class). The component imports only
rustledger:ledger/hostandrustledger:ledger/types.hostcontains exactly one function,decrypt, which the linker defines (component_engine.py:138-139);typesis type-only and needs no implementation. No new mandatory import. - Test suites. 669 passed, 1 skipped. Note this required deleting the stale cached component first — see #286; the stale run is green, which is how it hides.
- Marshalling for changed WIT types. Diffed v0.21.0's component WIT against v0.22.0's, version-normalised. The change is strictly additive: new records (
returns-result,budget-row,budget-total,budget-result), new methods (from-entries-with-options,account-type,dedup,format,returns,budget), newformat-loaded, and a newimporterinterface. Across the whole file the only non-addition isuse types.{input-directive}→use types.{directive, input-directive}, itself a widening. No existing type changed shape and nothing was removed, so no marshalling changes are required — and this is also why the stale_WIT_VERSIONstill resolves.
Snapshots
Each of the five was attributed to a specific upstream change before being accepted, rather than regenerated wholesale; details are in the commit message on 8865062. The one worth flagging is test_api_query_result-journal ("Eating out " → "Eating out"): I initially read this as a regression and it is not. rustledger beancount#2044 applies MAXWIDTH to JOURNAL's payee/narration, matching beanquery's transform_journal, which compiles JOURNAL to SELECT ... MAXWIDTH(payee, 48), MAXWIDTH(narration, 80) .... MAXWIDTH is textwrap.shorten, which collapses and strips whitespace. Plain SELECT narration still returns the trailing space — in beancount too, so the asymmetry is upstream-faithful.
Status
28 checks pass, 5 skipped, 0 failing. Still a draft — needs marking ready before it can merge. I'd land the _WIT_VERSION bump in this PR and fix add-paths separately.
There was a problem hiding this comment.
Pull request overview
Upgrades the pinned rustledger WASM/component backend to v0.22.0 and updates recorded test snapshots to match the new engine’s observable output across JSON API and serialization tests.
Changes:
- Bump
RUSTLEDGER_VERSIONtov0.22.0. - Refresh snapshot outputs for JSON API endpoints and entry-type serialization.
Reviewed changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
src/rustfava/rustledger/engine.py |
Updates the pinned rustledger release tag used by the component backend. |
tests/__snapshots__/test_serialisation-test_serialise_entry_types.json |
Updates expected serialization output for entry-type roundtrips. |
tests/__snapshots__/test_json_api-test_api-journal.json |
Updates expected JSON journal API output (ordering/number formatting/hash changes). |
tests/__snapshots__/test_json_api-test_api-account_report_off_by_one_journal.json |
Updates expected account-report JSON/HTML snapshot output. |
tests/__snapshots__/test_json_api-test_api_query_result-journal.json |
Updates expected query-result snapshot output (including narration string differences). |
tests/__snapshots__/test_json_api-test_api_errors |
Updates expected error list output from the errors API endpoint. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| # Rustledger release this build is pinned to. The component wasm | ||
| # (``rustledger-ffi-component-<version>.wasm``) is downloaded lazily from this | ||
| # release by ``component_engine``. Bumped by ``update-rustledger.yml``. | ||
| RUSTLEDGER_VERSION = "v0.21.0" | ||
| RUSTLEDGER_VERSION = "v0.22.0" |
| {'message': 'Not enough units in Assets:Stock: requested 1.0, available 0.1; ' | ||
| 'not enough to reduce (2020-01-01, "sell")', | ||
| 'source': {'filename': 'TEST_DATA_DIR/errors.beancount', | ||
| 'lineno': 0}, | ||
| 'type': 'BeancountError'}, | ||
| {'message': 'interpolation failed: multiple postings missing amounts or with ' | ||
| 'unresolved cost specs for currency USD (2 unknowns) (2018-07-07, ' | ||
| '"b")', | ||
| 'source': {'filename': 'TEST_DATA_DIR/errors.beancount', | ||
| 'lineno': 0}, | ||
| 'type': 'BeancountError'}] |
| @@ -1 +1 @@ | |||
| {"rows":[["2014-01-01","*","","Opening Balance for checking account","Assets:US:BofA:Checking","{'units': {'currency': 'USD', 'number': '3453.18'}}",{"USD":3453.18}],["2014-01-01","*","","Opening Balance for checking account","Equity:Opening-Balances","{'units': {'currency': 'USD', 'number': '-3453.18'}}",{"USD":0.0}],["2014-01-01","*","","Allowed contributions for one year","Income:US:Federal:PreTax401k","{'units': {'currency': 'IRAUSD', 'number': '-17500'}}",{"IRAUSD":-17500,"USD":0.0}],["2014-01-01","*","","Allowed contributions for one year","Assets:US:Federal:PreTax401k","{'units': {'currency': 'IRAUSD', 'number': '17500'}}",{"IRAUSD":0,"USD":0.0}],["2014-01-02","*","BayBook","Payroll","Assets:US:BofA:Checking","{'units': {'currency': 'USD', 'number': '1350.60'}}",{"IRAUSD":0,"USD":1350.6}],["2014-01-02","*","BayBook","Payroll","Assets:US:Vanguard:Cash","{'units': {'currency': 'USD', 'number': '1200.00'}}",{"IRAUSD":0,"USD":2550.6}],["2014-01-02","*","BayBook","Payroll","Assets:US:Federal:PreTax401k","{'units': {'currency': 'IRAUSD', 'number': '-1200.00'}}",{"IRAUSD":-1200.0,"USD":2550.6}],["2014-01-02","*","BayBook","Payroll","Expenses:Taxes:Y2014:US:Federal:PreTax401k","{'units': {'currency': 'IRAUSD', 'number': '1200.00'}}",{"IRAUSD":0.0,"USD":2550.6}],["2014-01-02","*","BayBook","Payroll","Income:US:BayBook:Salary","{'units': {'currency': 'USD', 'number': '-4615.38'}}",{"IRAUSD":0.0,"USD":-2064.78}],["2014-01-02","*","BayBook","Payroll","Income:US:BayBook:GroupTermLife","{'units': {'currency': 'USD', 'number': '-24.32'}}",{"IRAUSD":0.0,"USD":-2089.1}],["2014-01-02","*","BayBook","Payroll","Expenses:Health:Life:GroupTermLife","{'units': {'currency': 'USD', 'number': '24.32'}}",{"IRAUSD":0.0,"USD":-2064.78}],["2014-01-02","*","BayBook","Payroll","Expenses:Health:Dental:Insurance","{'units': {'currency': 'USD', 'number': '2.90'}}",{"IRAUSD":0.0,"USD":-2061.88}],["2014-01-02","*","BayBook","Payroll","Expenses:Health:Medical:Insurance","{'units': {'currency': 'USD', 'number': '27.38'}}",{"IRAUSD":0.0,"USD":-2034.5}],["2014-01-02","*","BayBook","Payroll","Expenses:Health:Vision:Insurance","{'units': {'currency': 'USD', 'number': '42.30'}}",{"IRAUSD":0.0,"USD":-1992.2}],["2014-01-02","*","BayBook","Payroll","Expenses:Taxes:Y2014:US:Medicare","{'units': {'currency': 'USD', 'number': '106.62'}}",{"IRAUSD":0.0,"USD":-1885.58}],["2014-01-02","*","BayBook","Payroll","Expenses:Taxes:Y2014:US:Federal","{'units': {'currency': 'USD', 'number': '1062.92'}}",{"IRAUSD":0.0,"USD":-822.66}],["2014-01-02","*","BayBook","Payroll","Expenses:Taxes:Y2014:US:State","{'units': {'currency': 'USD', 'number': '365.08'}}",{"IRAUSD":0.0,"USD":-457.58}],["2014-01-02","*","BayBook","Payroll","Expenses:Taxes:Y2014:US:CityNYC","{'units': {'currency': 'USD', 'number': '174.92'}}",{"IRAUSD":0.0,"USD":-282.66}],["2014-01-02","*","BayBook","Payroll","Expenses:Taxes:Y2014:US:SDI","{'units': {'currency': 'USD', 'number': '1.12'}}",{"IRAUSD":0.0,"USD":-281.54}],["2014-01-02","*","BayBook","Payroll","Expenses:Taxes:Y2014:US:SocSec","{'units': {'currency': 'USD', 'number': '281.54'}}",{"IRAUSD":0.0,"USD":0.0}],["2014-01-02","*","BayBook","Payroll","Assets:US:BayBook:Vacation","{'units': {'currency': 'VACHR', 'number': '5'}}",{"IRAUSD":0.0,"USD":0.0,"VACHR":5}],["2014-01-02","*","BayBook","Payroll","Income:US:BayBook:Vacation","{'units': {'currency': 'VACHR', 'number': '-5'}}",{"IRAUSD":0.0,"USD":0.0,"VACHR":0}],["2014-01-03","*","","Employer match for contribution","Assets:US:Vanguard:Cash","{'units': {'currency': 'USD', 'number': '600.00'}}",{"IRAUSD":0.0,"USD":600.0,"VACHR":0}],["2014-01-03","*","","Employer match for contribution","Income:US:BayBook:Match401k","{'units': {'currency': 'USD', 'number': '-600.00'}}",{"IRAUSD":0.0,"USD":0.0,"VACHR":0}],["2014-01-04","*","BANK FEES","Monthly bank fee","Assets:US:BofA:Checking","{'units': {'currency': 'USD', 'number': '-4.00'}}",{"IRAUSD":0.0,"USD":-4.0,"VACHR":0}],["2014-01-04","*","BANK FEES","Monthly bank fee","Expenses:Financial:Fees","{'units': {'currency': 'USD', 'number': '4.00'}}",{"IRAUSD":0.0,"USD":0.0,"VACHR":0}],["2014-01-04","*","Kin Soy","Eating out with Joe","Liabilities:US:Chase:Slate","{'units': {'currency': 'USD', 'number': '-38.48'}}",{"IRAUSD":0.0,"USD":-38.48,"VACHR":0}],["2014-01-04","*","Kin Soy","Eating out with Joe","Expenses:Food:Restaurant","{'units': {'currency': 'USD', 'number': '38.48'}}",{"IRAUSD":0.0,"USD":0.0,"VACHR":0}],["2014-01-06","*","RiverBank Properties","Paying the rent","Assets:US:BofA:Checking","{'units': {'currency': 'USD', 'number': '-2400.00'}}",{"IRAUSD":0.0,"USD":-2400.0,"VACHR":0}],["2014-01-06","*","RiverBank Properties","Paying the rent","Expenses:Home:Rent","{'units': {'currency': 'USD', 'number': '2400.00'}}",{"IRAUSD":0.0,"USD":0.0,"VACHR":0}],["2014-01-06","*","","Investing 40% of cash in VBMPX","Assets:US:Vanguard:VBMPX","{'cost': {'currency': 'USD', 'date': '2014-01-06', 'number': {'type': 'per_unit', 'value': '32.78'}}, 'units': {'currency': 'VBMPX', 'number': '14.643'}}",{"IRAUSD":0.0,"USD":0.0,"VACHR":0,"VBMPX":14.643}],["2014-01-06","*","","Investing 40% of cash in VBMPX","Assets:US:Vanguard:Cash","{'units': {'currency': 'USD', 'number': '-480.00'}}",{"IRAUSD":0.0,"USD":-480.0,"VACHR":0,"VBMPX":14.643}],["2014-01-06","*","","Investing 60% of cash in RGAGX","Assets:US:Vanguard:RGAGX","{'cost': {'currency': 'USD', 'date': '2014-01-06', 'number': {'type': 'per_unit', 'value': '92.75'}}, 'units': {'currency': 'RGAGX', 'number': '7.763'}}",{"IRAUSD":0.0,"RGAGX":7.763,"USD":-480.0,"VACHR":0,"VBMPX":14.643}],["2014-01-06","*","","Investing 60% of cash in RGAGX","Assets:US:Vanguard:Cash","{'units': {'currency': 'USD', 'number': '-720.02'}}",{"IRAUSD":0.0,"RGAGX":7.763,"USD":-1200.02,"VACHR":0,"VBMPX":14.643}],["2014-01-06","*","","Investing 40% of cash in VBMPX","Assets:US:Vanguard:VBMPX","{'cost': {'currency': 'USD', 'date': '2014-01-06', 'number': {'type': 'per_unit', 'value': '32.78'}}, 'units': {'currency': 'VBMPX', 'number': '7.321'}}",{"IRAUSD":0.0,"RGAGX":7.763,"USD":-1200.02,"VACHR":0,"VBMPX":21.964}],["2014-01-06","*","","Investing 40% of cash in VBMPX","Assets:US:Vanguard:Cash","{'units': {'currency': 'USD', 'number': '-239.98'}}",{"IRAUSD":0.0,"RGAGX":7.763,"USD":-1440.0,"VACHR":0,"VBMPX":21.964}],["2014-01-06","*","","Investing 60% of cash in RGAGX","Assets:US:Vanguard:RGAGX","{'cost': {'currency': 'USD', 'date': '2014-01-06', 'number': {'type': 'per_unit', 'value': '92.75'}}, 'units': {'currency': 'RGAGX', 'number': '3.881'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-1440.0,"VACHR":0,"VBMPX":21.964}],["2014-01-06","*","","Investing 60% of cash in RGAGX","Assets:US:Vanguard:Cash","{'units': {'currency': 'USD', 'number': '-359.96'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-1799.96,"VACHR":0,"VBMPX":21.964}],["2014-01-08","*","Chichipotle","Eating out with Joe","Liabilities:US:Chase:Slate","{'units': {'currency': 'USD', 'number': '-23.57'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-1823.53,"VACHR":0,"VBMPX":21.964}],["2014-01-08","*","Chichipotle","Eating out with Joe","Expenses:Food:Restaurant","{'units': {'currency': 'USD', 'number': '23.57'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-1799.96,"VACHR":0,"VBMPX":21.964}],["2014-01-09","*","EDISON POWER","","Assets:US:BofA:Checking","{'units': {'currency': 'USD', 'number': '-65.00'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-1864.96,"VACHR":0,"VBMPX":21.964}],["2014-01-09","*","EDISON POWER","","Expenses:Home:Electricity","{'units': {'currency': 'USD', 'number': '65.00'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-1799.96,"VACHR":0,"VBMPX":21.964}],["2014-01-10","*","Corner Deli","Buying groceries","Liabilities:US:Chase:Slate","{'units': {'currency': 'USD', 'number': '-73.28'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-1873.24,"VACHR":0,"VBMPX":21.964}],["2014-01-10","*","Corner Deli","Buying groceries","Expenses:Food:Groceries","{'units': {'currency': 'USD', 'number': '73.28'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-1799.96,"VACHR":0,"VBMPX":21.964}],["2014-01-11","*","Goba Goba","Eating out with Joe","Liabilities:US:Chase:Slate","{'units': {'currency': 'USD', 'number': '-30.94'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-1830.9,"VACHR":0,"VBMPX":21.964}],["2014-01-11","*","Goba Goba","Eating out with Joe","Expenses:Food:Restaurant","{'units': {'currency': 'USD', 'number': '30.94'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-1799.96,"VACHR":0,"VBMPX":21.964}],["2014-01-11","*","Chase:Slate","Paying off credit card","Liabilities:US:Chase:Slate","{'units': {'currency': 'USD', 'number': '166.27'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-1633.69,"VACHR":0,"VBMPX":21.964}],["2014-01-11","*","Chase:Slate","Paying off credit card","Assets:US:BofA:Checking","{'units': {'currency': 'USD', 'number': '-166.27'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-1799.96,"VACHR":0,"VBMPX":21.964}],["2014-01-12","*","China Garden","Eating out after work","Liabilities:US:Chase:Slate","{'units': {'currency': 'USD', 'number': '-24.94'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-1824.9,"VACHR":0,"VBMPX":21.964}],["2014-01-12","*","China Garden","Eating out after work","Expenses:Food:Restaurant","{'units': {'currency': 'USD', 'number': '24.94'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-1799.96,"VACHR":0,"VBMPX":21.964}],["2014-01-14","*","Goba Goba","Eating out with Natasha","Liabilities:US:Chase:Slate","{'units': {'currency': 'USD', 'number': '-34.92'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-1834.88,"VACHR":0,"VBMPX":21.964}],["2014-01-14","*","Goba Goba","Eating out with Natasha","Expenses:Food:Restaurant","{'units': {'currency': 'USD', 'number': '34.92'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-1799.96,"VACHR":0,"VBMPX":21.964}],["2014-01-15","*","Goba Goba","Eating out with Natasha","Liabilities:US:Chase:Slate","{'units': {'currency': 'USD', 'number': '-37.13'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-1837.09,"VACHR":0,"VBMPX":21.964}],["2014-01-15","*","Goba Goba","Eating out with Natasha","Expenses:Food:Restaurant","{'units': {'currency': 'USD', 'number': '37.13'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-1799.96,"VACHR":0,"VBMPX":21.964}],["2014-01-16","*","Goba Goba","Eating out with Natasha","Liabilities:US:Chase:Slate","{'units': {'currency': 'USD', 'number': '-22.21'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-1822.17,"VACHR":0,"VBMPX":21.964}],["2014-01-16","*","Goba Goba","Eating out with Natasha","Expenses:Food:Restaurant","{'units': {'currency': 'USD', 'number': '22.21'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-1799.96,"VACHR":0,"VBMPX":21.964}],["2014-01-16","*","BayBook","Payroll","Assets:US:BofA:Checking","{'units': {'currency': 'USD', 'number': '1350.60'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-449.36,"VACHR":0,"VBMPX":21.964}],["2014-01-16","*","BayBook","Payroll","Assets:US:Vanguard:Cash","{'units': {'currency': 'USD', 'number': '1200.00'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":750.64,"VACHR":0,"VBMPX":21.964}],["2014-01-16","*","BayBook","Payroll","Assets:US:Federal:PreTax401k","{'units': {'currency': 'IRAUSD', 'number': '-1200.00'}}",{"IRAUSD":-1200.0,"RGAGX":11.644,"USD":750.64,"VACHR":0,"VBMPX":21.964}],["2014-01-16","*","BayBook","Payroll","Expenses:Taxes:Y2014:US:Federal:PreTax401k","{'units': {'currency': 'IRAUSD', 'number': '1200.00'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":750.64,"VACHR":0,"VBMPX":21.964}],["2014-01-16","*","BayBook","Payroll","Income:US:BayBook:Salary","{'units': {'currency': 'USD', 'number': '-4615.38'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-3864.74,"VACHR":0,"VBMPX":21.964}],["2014-01-16","*","BayBook","Payroll","Income:US:BayBook:GroupTermLife","{'units': {'currency': 'USD', 'number': '-24.32'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-3889.06,"VACHR":0,"VBMPX":21.964}],["2014-01-16","*","BayBook","Payroll","Expenses:Health:Life:GroupTermLife","{'units': {'currency': 'USD', 'number': '24.32'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-3864.74,"VACHR":0,"VBMPX":21.964}],["2014-01-16","*","BayBook","Payroll","Expenses:Health:Dental:Insurance","{'units': {'currency': 'USD', 'number': '2.90'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-3861.84,"VACHR":0,"VBMPX":21.964}],["2014-01-16","*","BayBook","Payroll","Expenses:Health:Medical:Insurance","{'units': {'currency': 'USD', 'number': '27.38'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-3834.46,"VACHR":0,"VBMPX":21.964}],["2014-01-16","*","BayBook","Payroll","Expenses:Health:Vision:Insurance","{'units': {'currency': 'USD', 'number': '42.30'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-3792.16,"VACHR":0,"VBMPX":21.964}],["2014-01-16","*","BayBook","Payroll","Expenses:Taxes:Y2014:US:Medicare","{'units': {'currency': 'USD', 'number': '106.62'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-3685.54,"VACHR":0,"VBMPX":21.964}],["2014-01-16","*","BayBook","Payroll","Expenses:Taxes:Y2014:US:Federal","{'units': {'currency': 'USD', 'number': '1062.92'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-2622.62,"VACHR":0,"VBMPX":21.964}],["2014-01-16","*","BayBook","Payroll","Expenses:Taxes:Y2014:US:State","{'units': {'currency': 'USD', 'number': '365.08'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-2257.54,"VACHR":0,"VBMPX":21.964}],["2014-01-16","*","BayBook","Payroll","Expenses:Taxes:Y2014:US:CityNYC","{'units': {'currency': 'USD', 'number': '174.92'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-2082.62,"VACHR":0,"VBMPX":21.964}],["2014-01-16","*","BayBook","Payroll","Expenses:Taxes:Y2014:US:SDI","{'units': {'currency': 'USD', 'number': '1.12'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-2081.5,"VACHR":0,"VBMPX":21.964}],["2014-01-16","*","BayBook","Payroll","Expenses:Taxes:Y2014:US:SocSec","{'units': {'currency': 'USD', 'number': '281.54'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-1799.96,"VACHR":0,"VBMPX":21.964}],["2014-01-16","*","BayBook","Payroll","Assets:US:BayBook:Vacation","{'units': {'currency': 'VACHR', 'number': '5'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-1799.96,"VACHR":5,"VBMPX":21.964}],["2014-01-16","*","BayBook","Payroll","Income:US:BayBook:Vacation","{'units': {'currency': 'VACHR', 'number': '-5'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-1799.96,"VACHR":0,"VBMPX":21.964}],["2014-01-17","*","","Employer match for contribution","Assets:US:Vanguard:Cash","{'units': {'currency': 'USD', 'number': '600.00'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-1199.96,"VACHR":0,"VBMPX":21.964}],["2014-01-17","*","","Employer match for contribution","Income:US:BayBook:Match401k","{'units': {'currency': 'USD', 'number': '-600.00'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-1799.96,"VACHR":0,"VBMPX":21.964}],["2014-01-19","*","Verizon Wireless","","Assets:US:BofA:Checking","{'units': {'currency': 'USD', 'number': '-85.14'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-1885.1,"VACHR":0,"VBMPX":21.964}],["2014-01-19","*","Verizon Wireless","","Expenses:Home:Phone","{'units': {'currency': 'USD', 'number': '85.14'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-1799.96,"VACHR":0,"VBMPX":21.964}],["2014-01-19","*","Goba Goba","Eating out ","Liabilities:US:Chase:Slate","{'units': {'currency': 'USD', 'number': '-31.71'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-1831.67,"VACHR":0,"VBMPX":21.964}],["2014-01-19","*","Goba Goba","Eating out ","Expenses:Food:Restaurant","{'units': {'currency': 'USD', 'number': '31.71'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-1799.96,"VACHR":0,"VBMPX":21.964}],["2014-01-20","*","","Investing 40% of cash in VBMPX","Assets:US:Vanguard:VBMPX","{'cost': {'currency': 'USD', 'date': '2014-01-20', 'number': {'type': 'per_unit', 'value': '33.15'}}, 'units': {'currency': 'VBMPX', 'number': '14.480'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-1799.96,"VACHR":0,"VBMPX":36.444}],["2014-01-20","*","","Investing 40% of cash in VBMPX","Assets:US:Vanguard:Cash","{'units': {'currency': 'USD', 'number': '-480.01'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-2279.97,"VACHR":0,"VBMPX":36.444}],["2014-01-20","*","","Investing 60% of cash in RGAGX","Assets:US:Vanguard:RGAGX","{'cost': {'currency': 'USD', 'date': '2014-01-20', 'number': {'type': 'per_unit', 'value': '92.12'}}, 'units': {'currency': 'RGAGX', 'number': '7.816'}}",{"IRAUSD":0.0,"RGAGX":19.46,"USD":-2279.97,"VACHR":0,"VBMPX":36.444}],["2014-01-20","*","","Investing 60% of cash in RGAGX","Assets:US:Vanguard:Cash","{'units': {'currency': 'USD', 'number': '-720.01'}}",{"IRAUSD":0.0,"RGAGX":19.46,"USD":-2999.98,"VACHR":0,"VBMPX":36.444}],["2014-01-20","*","","Investing 40% of cash in VBMPX","Assets:US:Vanguard:VBMPX","{'cost': {'currency': 'USD', 'date': '2014-01-20', 'number': {'type': 'per_unit', 'value': '33.15'}}, 'units': {'currency': 'VBMPX', 'number': '7.240'}}",{"IRAUSD":0.0,"RGAGX":19.46,"USD":-2999.98,"VACHR":0,"VBMPX":43.684}],["2014-01-20","*","","Investing 40% of cash in VBMPX","Assets:US:Vanguard:Cash","{'units': {'currency': 'USD', 'number': '-240.01'}}",{"IRAUSD":0.0,"RGAGX":19.46,"USD":-3239.99,"VACHR":0,"VBMPX":43.684}],["2014-01-20","*","","Investing 60% of cash in RGAGX","Assets:US:Vanguard:RGAGX","{'cost': {'currency': 'USD', 'date': '2014-01-20', 'number': {'type': 'per_unit', 'value': '92.12'}}, 'units': {'currency': 'RGAGX', 'number': '3.908'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-3239.99,"VACHR":0,"VBMPX":43.684}],["2014-01-20","*","","Investing 60% of cash in RGAGX","Assets:US:Vanguard:Cash","{'units': {'currency': 'USD', 'number': '-360.00'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-3599.99,"VACHR":0,"VBMPX":43.684}],["2014-01-21","*","Good Moods Market","Buying groceries","Liabilities:US:Chase:Slate","{'units': {'currency': 'USD', 'number': '-60.79'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-3660.78,"VACHR":0,"VBMPX":43.684}],["2014-01-21","*","Good Moods Market","Buying groceries","Expenses:Food:Groceries","{'units': {'currency': 'USD', 'number': '60.79'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-3599.99,"VACHR":0,"VBMPX":43.684}],["2014-01-22","*","Wine-Tarner Cable","","Assets:US:BofA:Checking","{'units': {'currency': 'USD', 'number': '-79.83'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-3679.82,"VACHR":0,"VBMPX":43.684}],["2014-01-22","*","Wine-Tarner Cable","","Expenses:Home:Internet","{'units': {'currency': 'USD', 'number': '79.83'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-3599.99,"VACHR":0,"VBMPX":43.684}],["2014-01-23","*","Jewel of Morroco","Eating out with Bill","Liabilities:US:Chase:Slate","{'units': {'currency': 'USD', 'number': '-22.64'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-3622.63,"VACHR":0,"VBMPX":43.684}],["2014-01-23","*","Jewel of Morroco","Eating out with Bill","Expenses:Food:Restaurant","{'units': {'currency': 'USD', 'number': '22.64'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-3599.99,"VACHR":0,"VBMPX":43.684}],["2014-01-25","*","Uncle Boons","Eating out alone","Liabilities:US:Chase:Slate","{'units': {'currency': 'USD', 'number': '-48.63'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-3648.62,"VACHR":0,"VBMPX":43.684}],["2014-01-25","*","Uncle Boons","Eating out alone","Expenses:Food:Restaurant","{'units': {'currency': 'USD', 'number': '48.63'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-3599.99,"VACHR":0,"VBMPX":43.684}],["2014-01-28","*","Metro Transport Authority","Tram tickets","Liabilities:US:Chase:Slate","{'units': {'currency': 'USD', 'number': '-120.00'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-3719.99,"VACHR":0,"VBMPX":43.684}],["2014-01-28","*","Metro Transport Authority","Tram tickets","Expenses:Transport:Tram","{'units': {'currency': 'USD', 'number': '120.00'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-3599.99,"VACHR":0,"VBMPX":43.684}],["2014-01-29","*","Chichipotle","Eating out alone","Liabilities:US:Chase:Slate","{'units': {'currency': 'USD', 'number': '-23.39'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-3623.38,"VACHR":0,"VBMPX":43.684}],["2014-01-29","*","Chichipotle","Eating out alone","Expenses:Food:Restaurant","{'units': {'currency': 'USD', 'number': '23.39'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-3599.99,"VACHR":0,"VBMPX":43.684}],["2014-01-30","*","Chichipotle","Eating out with Julie","Liabilities:US:Chase:Slate","{'units': {'currency': 'USD', 'number': '-38.56'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-3638.55,"VACHR":0,"VBMPX":43.684}],["2014-01-30","*","Chichipotle","Eating out with Julie","Expenses:Food:Restaurant","{'units': {'currency': 'USD', 'number': '38.56'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-3599.99,"VACHR":0,"VBMPX":43.684}],["2014-01-30","*","BayBook","Payroll","Assets:US:BofA:Checking","{'units': {'currency': 'USD', 'number': '1350.60'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-2249.39,"VACHR":0,"VBMPX":43.684}],["2014-01-30","*","BayBook","Payroll","Assets:US:Vanguard:Cash","{'units': {'currency': 'USD', 'number': '1200.00'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-1049.39,"VACHR":0,"VBMPX":43.684}],["2014-01-30","*","BayBook","Payroll","Assets:US:Federal:PreTax401k","{'units': {'currency': 'IRAUSD', 'number': '-1200.00'}}",{"IRAUSD":-1200.0,"RGAGX":23.368,"USD":-1049.39,"VACHR":0,"VBMPX":43.684}],["2014-01-30","*","BayBook","Payroll","Expenses:Taxes:Y2014:US:Federal:PreTax401k","{'units': {'currency': 'IRAUSD', 'number': '1200.00'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-1049.39,"VACHR":0,"VBMPX":43.684}],["2014-01-30","*","BayBook","Payroll","Income:US:BayBook:Salary","{'units': {'currency': 'USD', 'number': '-4615.38'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-5664.77,"VACHR":0,"VBMPX":43.684}],["2014-01-30","*","BayBook","Payroll","Income:US:BayBook:GroupTermLife","{'units': {'currency': 'USD', 'number': '-24.32'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-5689.09,"VACHR":0,"VBMPX":43.684}],["2014-01-30","*","BayBook","Payroll","Expenses:Health:Life:GroupTermLife","{'units': {'currency': 'USD', 'number': '24.32'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-5664.77,"VACHR":0,"VBMPX":43.684}],["2014-01-30","*","BayBook","Payroll","Expenses:Health:Dental:Insurance","{'units': {'currency': 'USD', 'number': '2.90'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-5661.87,"VACHR":0,"VBMPX":43.684}],["2014-01-30","*","BayBook","Payroll","Expenses:Health:Medical:Insurance","{'units': {'currency': 'USD', 'number': '27.38'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-5634.49,"VACHR":0,"VBMPX":43.684}],["2014-01-30","*","BayBook","Payroll","Expenses:Health:Vision:Insurance","{'units': {'currency': 'USD', 'number': '42.30'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-5592.19,"VACHR":0,"VBMPX":43.684}],["2014-01-30","*","BayBook","Payroll","Expenses:Taxes:Y2014:US:Medicare","{'units': {'currency': 'USD', 'number': '106.62'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-5485.57,"VACHR":0,"VBMPX":43.684}],["2014-01-30","*","BayBook","Payroll","Expenses:Taxes:Y2014:US:Federal","{'units': {'currency': 'USD', 'number': '1062.92'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-4422.65,"VACHR":0,"VBMPX":43.684}],["2014-01-30","*","BayBook","Payroll","Expenses:Taxes:Y2014:US:State","{'units': {'currency': 'USD', 'number': '365.08'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-4057.57,"VACHR":0,"VBMPX":43.684}],["2014-01-30","*","BayBook","Payroll","Expenses:Taxes:Y2014:US:CityNYC","{'units': {'currency': 'USD', 'number': '174.92'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-3882.65,"VACHR":0,"VBMPX":43.684}],["2014-01-30","*","BayBook","Payroll","Expenses:Taxes:Y2014:US:SDI","{'units': {'currency': 'USD', 'number': '1.12'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-3881.53,"VACHR":0,"VBMPX":43.684}],["2014-01-30","*","BayBook","Payroll","Expenses:Taxes:Y2014:US:SocSec","{'units': {'currency': 'USD', 'number': '281.54'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-3599.99,"VACHR":0,"VBMPX":43.684}],["2014-01-30","*","BayBook","Payroll","Assets:US:BayBook:Vacation","{'units': {'currency': 'VACHR', 'number': '5'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-3599.99,"VACHR":5,"VBMPX":43.684}],["2014-01-30","*","BayBook","Payroll","Income:US:BayBook:Vacation","{'units': {'currency': 'VACHR', 'number': '-5'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-3599.99,"VACHR":0,"VBMPX":43.684}],["2014-01-31","*","","Employer match for contribution","Assets:US:Vanguard:Cash","{'units': {'currency': 'USD', 'number': '600.00'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-2999.99,"VACHR":0,"VBMPX":43.684}],["2014-01-31","*","","Employer match for contribution","Income:US:BayBook:Match401k","{'units': {'currency': 'USD', 'number': '-600.00'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-3599.99,"VACHR":0,"VBMPX":43.684}]],"t":"table","types":[{"dtype":"str","name":"date"},{"dtype":"str","name":"flag"},{"dtype":"str","name":"payee"},{"dtype":"str","name":"narration"},{"dtype":"str","name":"account"},{"dtype":"object","name":"position"},{"dtype":"Inventory","name":"balance"}]} No newline at end of file | |||
| {"rows":[["2014-01-01","*","","Opening Balance for checking account","Assets:US:BofA:Checking","{'units': {'currency': 'USD', 'number': '3453.18'}}",{"USD":3453.18}],["2014-01-01","*","","Opening Balance for checking account","Equity:Opening-Balances","{'units': {'currency': 'USD', 'number': '-3453.18'}}",{"USD":0.0}],["2014-01-01","*","","Allowed contributions for one year","Income:US:Federal:PreTax401k","{'units': {'currency': 'IRAUSD', 'number': '-17500'}}",{"IRAUSD":-17500,"USD":0.0}],["2014-01-01","*","","Allowed contributions for one year","Assets:US:Federal:PreTax401k","{'units': {'currency': 'IRAUSD', 'number': '17500'}}",{"IRAUSD":0,"USD":0.0}],["2014-01-02","*","BayBook","Payroll","Assets:US:BofA:Checking","{'units': {'currency': 'USD', 'number': '1350.60'}}",{"IRAUSD":0,"USD":1350.6}],["2014-01-02","*","BayBook","Payroll","Assets:US:Vanguard:Cash","{'units': {'currency': 'USD', 'number': '1200.00'}}",{"IRAUSD":0,"USD":2550.6}],["2014-01-02","*","BayBook","Payroll","Assets:US:Federal:PreTax401k","{'units': {'currency': 'IRAUSD', 'number': '-1200.00'}}",{"IRAUSD":-1200.0,"USD":2550.6}],["2014-01-02","*","BayBook","Payroll","Expenses:Taxes:Y2014:US:Federal:PreTax401k","{'units': {'currency': 'IRAUSD', 'number': '1200.00'}}",{"IRAUSD":0.0,"USD":2550.6}],["2014-01-02","*","BayBook","Payroll","Income:US:BayBook:Salary","{'units': {'currency': 'USD', 'number': '-4615.38'}}",{"IRAUSD":0.0,"USD":-2064.78}],["2014-01-02","*","BayBook","Payroll","Income:US:BayBook:GroupTermLife","{'units': {'currency': 'USD', 'number': '-24.32'}}",{"IRAUSD":0.0,"USD":-2089.1}],["2014-01-02","*","BayBook","Payroll","Expenses:Health:Life:GroupTermLife","{'units': {'currency': 'USD', 'number': '24.32'}}",{"IRAUSD":0.0,"USD":-2064.78}],["2014-01-02","*","BayBook","Payroll","Expenses:Health:Dental:Insurance","{'units': {'currency': 'USD', 'number': '2.90'}}",{"IRAUSD":0.0,"USD":-2061.88}],["2014-01-02","*","BayBook","Payroll","Expenses:Health:Medical:Insurance","{'units': {'currency': 'USD', 'number': '27.38'}}",{"IRAUSD":0.0,"USD":-2034.5}],["2014-01-02","*","BayBook","Payroll","Expenses:Health:Vision:Insurance","{'units': {'currency': 'USD', 'number': '42.30'}}",{"IRAUSD":0.0,"USD":-1992.2}],["2014-01-02","*","BayBook","Payroll","Expenses:Taxes:Y2014:US:Medicare","{'units': {'currency': 'USD', 'number': '106.62'}}",{"IRAUSD":0.0,"USD":-1885.58}],["2014-01-02","*","BayBook","Payroll","Expenses:Taxes:Y2014:US:Federal","{'units': {'currency': 'USD', 'number': '1062.92'}}",{"IRAUSD":0.0,"USD":-822.66}],["2014-01-02","*","BayBook","Payroll","Expenses:Taxes:Y2014:US:State","{'units': {'currency': 'USD', 'number': '365.08'}}",{"IRAUSD":0.0,"USD":-457.58}],["2014-01-02","*","BayBook","Payroll","Expenses:Taxes:Y2014:US:CityNYC","{'units': {'currency': 'USD', 'number': '174.92'}}",{"IRAUSD":0.0,"USD":-282.66}],["2014-01-02","*","BayBook","Payroll","Expenses:Taxes:Y2014:US:SDI","{'units': {'currency': 'USD', 'number': '1.12'}}",{"IRAUSD":0.0,"USD":-281.54}],["2014-01-02","*","BayBook","Payroll","Expenses:Taxes:Y2014:US:SocSec","{'units': {'currency': 'USD', 'number': '281.54'}}",{"IRAUSD":0.0,"USD":0.0}],["2014-01-02","*","BayBook","Payroll","Assets:US:BayBook:Vacation","{'units': {'currency': 'VACHR', 'number': '5'}}",{"IRAUSD":0.0,"USD":0.0,"VACHR":5}],["2014-01-02","*","BayBook","Payroll","Income:US:BayBook:Vacation","{'units': {'currency': 'VACHR', 'number': '-5'}}",{"IRAUSD":0.0,"USD":0.0,"VACHR":0}],["2014-01-03","*","","Employer match for contribution","Assets:US:Vanguard:Cash","{'units': {'currency': 'USD', 'number': '600.00'}}",{"IRAUSD":0.0,"USD":600.0,"VACHR":0}],["2014-01-03","*","","Employer match for contribution","Income:US:BayBook:Match401k","{'units': {'currency': 'USD', 'number': '-600.00'}}",{"IRAUSD":0.0,"USD":0.0,"VACHR":0}],["2014-01-04","*","BANK FEES","Monthly bank fee","Assets:US:BofA:Checking","{'units': {'currency': 'USD', 'number': '-4.00'}}",{"IRAUSD":0.0,"USD":-4.0,"VACHR":0}],["2014-01-04","*","BANK FEES","Monthly bank fee","Expenses:Financial:Fees","{'units': {'currency': 'USD', 'number': '4.00'}}",{"IRAUSD":0.0,"USD":0.0,"VACHR":0}],["2014-01-04","*","Kin Soy","Eating out with Joe","Liabilities:US:Chase:Slate","{'units': {'currency': 'USD', 'number': '-38.48'}}",{"IRAUSD":0.0,"USD":-38.48,"VACHR":0}],["2014-01-04","*","Kin Soy","Eating out with Joe","Expenses:Food:Restaurant","{'units': {'currency': 'USD', 'number': '38.48'}}",{"IRAUSD":0.0,"USD":0.0,"VACHR":0}],["2014-01-06","*","RiverBank Properties","Paying the rent","Assets:US:BofA:Checking","{'units': {'currency': 'USD', 'number': '-2400.00'}}",{"IRAUSD":0.0,"USD":-2400.0,"VACHR":0}],["2014-01-06","*","RiverBank Properties","Paying the rent","Expenses:Home:Rent","{'units': {'currency': 'USD', 'number': '2400.00'}}",{"IRAUSD":0.0,"USD":0.0,"VACHR":0}],["2014-01-06","*","","Investing 40% of cash in VBMPX","Assets:US:Vanguard:VBMPX","{'cost': {'currency': 'USD', 'date': '2014-01-06', 'number': {'type': 'per_unit', 'value': '32.78'}}, 'units': {'currency': 'VBMPX', 'number': '14.643'}}",{"IRAUSD":0.0,"USD":0.0,"VACHR":0,"VBMPX":14.643}],["2014-01-06","*","","Investing 40% of cash in VBMPX","Assets:US:Vanguard:Cash","{'units': {'currency': 'USD', 'number': '-480.00'}}",{"IRAUSD":0.0,"USD":-480.0,"VACHR":0,"VBMPX":14.643}],["2014-01-06","*","","Investing 60% of cash in RGAGX","Assets:US:Vanguard:RGAGX","{'cost': {'currency': 'USD', 'date': '2014-01-06', 'number': {'type': 'per_unit', 'value': '92.75'}}, 'units': {'currency': 'RGAGX', 'number': '7.763'}}",{"IRAUSD":0.0,"RGAGX":7.763,"USD":-480.0,"VACHR":0,"VBMPX":14.643}],["2014-01-06","*","","Investing 60% of cash in RGAGX","Assets:US:Vanguard:Cash","{'units': {'currency': 'USD', 'number': '-720.02'}}",{"IRAUSD":0.0,"RGAGX":7.763,"USD":-1200.02,"VACHR":0,"VBMPX":14.643}],["2014-01-06","*","","Investing 40% of cash in VBMPX","Assets:US:Vanguard:VBMPX","{'cost': {'currency': 'USD', 'date': '2014-01-06', 'number': {'type': 'per_unit', 'value': '32.78'}}, 'units': {'currency': 'VBMPX', 'number': '7.321'}}",{"IRAUSD":0.0,"RGAGX":7.763,"USD":-1200.02,"VACHR":0,"VBMPX":21.964}],["2014-01-06","*","","Investing 40% of cash in VBMPX","Assets:US:Vanguard:Cash","{'units': {'currency': 'USD', 'number': '-239.98'}}",{"IRAUSD":0.0,"RGAGX":7.763,"USD":-1440.0,"VACHR":0,"VBMPX":21.964}],["2014-01-06","*","","Investing 60% of cash in RGAGX","Assets:US:Vanguard:RGAGX","{'cost': {'currency': 'USD', 'date': '2014-01-06', 'number': {'type': 'per_unit', 'value': '92.75'}}, 'units': {'currency': 'RGAGX', 'number': '3.881'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-1440.0,"VACHR":0,"VBMPX":21.964}],["2014-01-06","*","","Investing 60% of cash in RGAGX","Assets:US:Vanguard:Cash","{'units': {'currency': 'USD', 'number': '-359.96'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-1799.96,"VACHR":0,"VBMPX":21.964}],["2014-01-08","*","Chichipotle","Eating out with Joe","Liabilities:US:Chase:Slate","{'units': {'currency': 'USD', 'number': '-23.57'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-1823.53,"VACHR":0,"VBMPX":21.964}],["2014-01-08","*","Chichipotle","Eating out with Joe","Expenses:Food:Restaurant","{'units': {'currency': 'USD', 'number': '23.57'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-1799.96,"VACHR":0,"VBMPX":21.964}],["2014-01-09","*","EDISON POWER","","Assets:US:BofA:Checking","{'units': {'currency': 'USD', 'number': '-65.00'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-1864.96,"VACHR":0,"VBMPX":21.964}],["2014-01-09","*","EDISON POWER","","Expenses:Home:Electricity","{'units': {'currency': 'USD', 'number': '65.00'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-1799.96,"VACHR":0,"VBMPX":21.964}],["2014-01-10","*","Corner Deli","Buying groceries","Liabilities:US:Chase:Slate","{'units': {'currency': 'USD', 'number': '-73.28'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-1873.24,"VACHR":0,"VBMPX":21.964}],["2014-01-10","*","Corner Deli","Buying groceries","Expenses:Food:Groceries","{'units': {'currency': 'USD', 'number': '73.28'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-1799.96,"VACHR":0,"VBMPX":21.964}],["2014-01-11","*","Goba Goba","Eating out with Joe","Liabilities:US:Chase:Slate","{'units': {'currency': 'USD', 'number': '-30.94'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-1830.9,"VACHR":0,"VBMPX":21.964}],["2014-01-11","*","Goba Goba","Eating out with Joe","Expenses:Food:Restaurant","{'units': {'currency': 'USD', 'number': '30.94'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-1799.96,"VACHR":0,"VBMPX":21.964}],["2014-01-11","*","Chase:Slate","Paying off credit card","Liabilities:US:Chase:Slate","{'units': {'currency': 'USD', 'number': '166.27'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-1633.69,"VACHR":0,"VBMPX":21.964}],["2014-01-11","*","Chase:Slate","Paying off credit card","Assets:US:BofA:Checking","{'units': {'currency': 'USD', 'number': '-166.27'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-1799.96,"VACHR":0,"VBMPX":21.964}],["2014-01-12","*","China Garden","Eating out after work","Liabilities:US:Chase:Slate","{'units': {'currency': 'USD', 'number': '-24.94'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-1824.9,"VACHR":0,"VBMPX":21.964}],["2014-01-12","*","China Garden","Eating out after work","Expenses:Food:Restaurant","{'units': {'currency': 'USD', 'number': '24.94'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-1799.96,"VACHR":0,"VBMPX":21.964}],["2014-01-14","*","Goba Goba","Eating out with Natasha","Liabilities:US:Chase:Slate","{'units': {'currency': 'USD', 'number': '-34.92'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-1834.88,"VACHR":0,"VBMPX":21.964}],["2014-01-14","*","Goba Goba","Eating out with Natasha","Expenses:Food:Restaurant","{'units': {'currency': 'USD', 'number': '34.92'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-1799.96,"VACHR":0,"VBMPX":21.964}],["2014-01-15","*","Goba Goba","Eating out with Natasha","Liabilities:US:Chase:Slate","{'units': {'currency': 'USD', 'number': '-37.13'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-1837.09,"VACHR":0,"VBMPX":21.964}],["2014-01-15","*","Goba Goba","Eating out with Natasha","Expenses:Food:Restaurant","{'units': {'currency': 'USD', 'number': '37.13'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-1799.96,"VACHR":0,"VBMPX":21.964}],["2014-01-16","*","Goba Goba","Eating out with Natasha","Liabilities:US:Chase:Slate","{'units': {'currency': 'USD', 'number': '-22.21'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-1822.17,"VACHR":0,"VBMPX":21.964}],["2014-01-16","*","Goba Goba","Eating out with Natasha","Expenses:Food:Restaurant","{'units': {'currency': 'USD', 'number': '22.21'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-1799.96,"VACHR":0,"VBMPX":21.964}],["2014-01-16","*","BayBook","Payroll","Assets:US:BofA:Checking","{'units': {'currency': 'USD', 'number': '1350.60'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-449.36,"VACHR":0,"VBMPX":21.964}],["2014-01-16","*","BayBook","Payroll","Assets:US:Vanguard:Cash","{'units': {'currency': 'USD', 'number': '1200.00'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":750.64,"VACHR":0,"VBMPX":21.964}],["2014-01-16","*","BayBook","Payroll","Assets:US:Federal:PreTax401k","{'units': {'currency': 'IRAUSD', 'number': '-1200.00'}}",{"IRAUSD":-1200.0,"RGAGX":11.644,"USD":750.64,"VACHR":0,"VBMPX":21.964}],["2014-01-16","*","BayBook","Payroll","Expenses:Taxes:Y2014:US:Federal:PreTax401k","{'units': {'currency': 'IRAUSD', 'number': '1200.00'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":750.64,"VACHR":0,"VBMPX":21.964}],["2014-01-16","*","BayBook","Payroll","Income:US:BayBook:Salary","{'units': {'currency': 'USD', 'number': '-4615.38'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-3864.74,"VACHR":0,"VBMPX":21.964}],["2014-01-16","*","BayBook","Payroll","Income:US:BayBook:GroupTermLife","{'units': {'currency': 'USD', 'number': '-24.32'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-3889.06,"VACHR":0,"VBMPX":21.964}],["2014-01-16","*","BayBook","Payroll","Expenses:Health:Life:GroupTermLife","{'units': {'currency': 'USD', 'number': '24.32'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-3864.74,"VACHR":0,"VBMPX":21.964}],["2014-01-16","*","BayBook","Payroll","Expenses:Health:Dental:Insurance","{'units': {'currency': 'USD', 'number': '2.90'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-3861.84,"VACHR":0,"VBMPX":21.964}],["2014-01-16","*","BayBook","Payroll","Expenses:Health:Medical:Insurance","{'units': {'currency': 'USD', 'number': '27.38'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-3834.46,"VACHR":0,"VBMPX":21.964}],["2014-01-16","*","BayBook","Payroll","Expenses:Health:Vision:Insurance","{'units': {'currency': 'USD', 'number': '42.30'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-3792.16,"VACHR":0,"VBMPX":21.964}],["2014-01-16","*","BayBook","Payroll","Expenses:Taxes:Y2014:US:Medicare","{'units': {'currency': 'USD', 'number': '106.62'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-3685.54,"VACHR":0,"VBMPX":21.964}],["2014-01-16","*","BayBook","Payroll","Expenses:Taxes:Y2014:US:Federal","{'units': {'currency': 'USD', 'number': '1062.92'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-2622.62,"VACHR":0,"VBMPX":21.964}],["2014-01-16","*","BayBook","Payroll","Expenses:Taxes:Y2014:US:State","{'units': {'currency': 'USD', 'number': '365.08'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-2257.54,"VACHR":0,"VBMPX":21.964}],["2014-01-16","*","BayBook","Payroll","Expenses:Taxes:Y2014:US:CityNYC","{'units': {'currency': 'USD', 'number': '174.92'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-2082.62,"VACHR":0,"VBMPX":21.964}],["2014-01-16","*","BayBook","Payroll","Expenses:Taxes:Y2014:US:SDI","{'units': {'currency': 'USD', 'number': '1.12'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-2081.5,"VACHR":0,"VBMPX":21.964}],["2014-01-16","*","BayBook","Payroll","Expenses:Taxes:Y2014:US:SocSec","{'units': {'currency': 'USD', 'number': '281.54'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-1799.96,"VACHR":0,"VBMPX":21.964}],["2014-01-16","*","BayBook","Payroll","Assets:US:BayBook:Vacation","{'units': {'currency': 'VACHR', 'number': '5'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-1799.96,"VACHR":5,"VBMPX":21.964}],["2014-01-16","*","BayBook","Payroll","Income:US:BayBook:Vacation","{'units': {'currency': 'VACHR', 'number': '-5'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-1799.96,"VACHR":0,"VBMPX":21.964}],["2014-01-17","*","","Employer match for contribution","Assets:US:Vanguard:Cash","{'units': {'currency': 'USD', 'number': '600.00'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-1199.96,"VACHR":0,"VBMPX":21.964}],["2014-01-17","*","","Employer match for contribution","Income:US:BayBook:Match401k","{'units': {'currency': 'USD', 'number': '-600.00'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-1799.96,"VACHR":0,"VBMPX":21.964}],["2014-01-19","*","Verizon Wireless","","Assets:US:BofA:Checking","{'units': {'currency': 'USD', 'number': '-85.14'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-1885.1,"VACHR":0,"VBMPX":21.964}],["2014-01-19","*","Verizon Wireless","","Expenses:Home:Phone","{'units': {'currency': 'USD', 'number': '85.14'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-1799.96,"VACHR":0,"VBMPX":21.964}],["2014-01-19","*","Goba Goba","Eating out","Liabilities:US:Chase:Slate","{'units': {'currency': 'USD', 'number': '-31.71'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-1831.67,"VACHR":0,"VBMPX":21.964}],["2014-01-19","*","Goba Goba","Eating out","Expenses:Food:Restaurant","{'units': {'currency': 'USD', 'number': '31.71'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-1799.96,"VACHR":0,"VBMPX":21.964}],["2014-01-20","*","","Investing 40% of cash in VBMPX","Assets:US:Vanguard:VBMPX","{'cost': {'currency': 'USD', 'date': '2014-01-20', 'number': {'type': 'per_unit', 'value': '33.15'}}, 'units': {'currency': 'VBMPX', 'number': '14.480'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-1799.96,"VACHR":0,"VBMPX":36.444}],["2014-01-20","*","","Investing 40% of cash in VBMPX","Assets:US:Vanguard:Cash","{'units': {'currency': 'USD', 'number': '-480.01'}}",{"IRAUSD":0.0,"RGAGX":11.644,"USD":-2279.97,"VACHR":0,"VBMPX":36.444}],["2014-01-20","*","","Investing 60% of cash in RGAGX","Assets:US:Vanguard:RGAGX","{'cost': {'currency': 'USD', 'date': '2014-01-20', 'number': {'type': 'per_unit', 'value': '92.12'}}, 'units': {'currency': 'RGAGX', 'number': '7.816'}}",{"IRAUSD":0.0,"RGAGX":19.46,"USD":-2279.97,"VACHR":0,"VBMPX":36.444}],["2014-01-20","*","","Investing 60% of cash in RGAGX","Assets:US:Vanguard:Cash","{'units': {'currency': 'USD', 'number': '-720.01'}}",{"IRAUSD":0.0,"RGAGX":19.46,"USD":-2999.98,"VACHR":0,"VBMPX":36.444}],["2014-01-20","*","","Investing 40% of cash in VBMPX","Assets:US:Vanguard:VBMPX","{'cost': {'currency': 'USD', 'date': '2014-01-20', 'number': {'type': 'per_unit', 'value': '33.15'}}, 'units': {'currency': 'VBMPX', 'number': '7.240'}}",{"IRAUSD":0.0,"RGAGX":19.46,"USD":-2999.98,"VACHR":0,"VBMPX":43.684}],["2014-01-20","*","","Investing 40% of cash in VBMPX","Assets:US:Vanguard:Cash","{'units': {'currency': 'USD', 'number': '-240.01'}}",{"IRAUSD":0.0,"RGAGX":19.46,"USD":-3239.99,"VACHR":0,"VBMPX":43.684}],["2014-01-20","*","","Investing 60% of cash in RGAGX","Assets:US:Vanguard:RGAGX","{'cost': {'currency': 'USD', 'date': '2014-01-20', 'number': {'type': 'per_unit', 'value': '92.12'}}, 'units': {'currency': 'RGAGX', 'number': '3.908'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-3239.99,"VACHR":0,"VBMPX":43.684}],["2014-01-20","*","","Investing 60% of cash in RGAGX","Assets:US:Vanguard:Cash","{'units': {'currency': 'USD', 'number': '-360.00'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-3599.99,"VACHR":0,"VBMPX":43.684}],["2014-01-21","*","Good Moods Market","Buying groceries","Liabilities:US:Chase:Slate","{'units': {'currency': 'USD', 'number': '-60.79'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-3660.78,"VACHR":0,"VBMPX":43.684}],["2014-01-21","*","Good Moods Market","Buying groceries","Expenses:Food:Groceries","{'units': {'currency': 'USD', 'number': '60.79'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-3599.99,"VACHR":0,"VBMPX":43.684}],["2014-01-22","*","Wine-Tarner Cable","","Assets:US:BofA:Checking","{'units': {'currency': 'USD', 'number': '-79.83'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-3679.82,"VACHR":0,"VBMPX":43.684}],["2014-01-22","*","Wine-Tarner Cable","","Expenses:Home:Internet","{'units': {'currency': 'USD', 'number': '79.83'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-3599.99,"VACHR":0,"VBMPX":43.684}],["2014-01-23","*","Jewel of Morroco","Eating out with Bill","Liabilities:US:Chase:Slate","{'units': {'currency': 'USD', 'number': '-22.64'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-3622.63,"VACHR":0,"VBMPX":43.684}],["2014-01-23","*","Jewel of Morroco","Eating out with Bill","Expenses:Food:Restaurant","{'units': {'currency': 'USD', 'number': '22.64'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-3599.99,"VACHR":0,"VBMPX":43.684}],["2014-01-25","*","Uncle Boons","Eating out alone","Liabilities:US:Chase:Slate","{'units': {'currency': 'USD', 'number': '-48.63'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-3648.62,"VACHR":0,"VBMPX":43.684}],["2014-01-25","*","Uncle Boons","Eating out alone","Expenses:Food:Restaurant","{'units': {'currency': 'USD', 'number': '48.63'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-3599.99,"VACHR":0,"VBMPX":43.684}],["2014-01-28","*","Metro Transport Authority","Tram tickets","Liabilities:US:Chase:Slate","{'units': {'currency': 'USD', 'number': '-120.00'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-3719.99,"VACHR":0,"VBMPX":43.684}],["2014-01-28","*","Metro Transport Authority","Tram tickets","Expenses:Transport:Tram","{'units': {'currency': 'USD', 'number': '120.00'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-3599.99,"VACHR":0,"VBMPX":43.684}],["2014-01-29","*","Chichipotle","Eating out alone","Liabilities:US:Chase:Slate","{'units': {'currency': 'USD', 'number': '-23.39'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-3623.38,"VACHR":0,"VBMPX":43.684}],["2014-01-29","*","Chichipotle","Eating out alone","Expenses:Food:Restaurant","{'units': {'currency': 'USD', 'number': '23.39'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-3599.99,"VACHR":0,"VBMPX":43.684}],["2014-01-30","*","Chichipotle","Eating out with Julie","Liabilities:US:Chase:Slate","{'units': {'currency': 'USD', 'number': '-38.56'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-3638.55,"VACHR":0,"VBMPX":43.684}],["2014-01-30","*","Chichipotle","Eating out with Julie","Expenses:Food:Restaurant","{'units': {'currency': 'USD', 'number': '38.56'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-3599.99,"VACHR":0,"VBMPX":43.684}],["2014-01-30","*","BayBook","Payroll","Assets:US:BofA:Checking","{'units': {'currency': 'USD', 'number': '1350.60'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-2249.39,"VACHR":0,"VBMPX":43.684}],["2014-01-30","*","BayBook","Payroll","Assets:US:Vanguard:Cash","{'units': {'currency': 'USD', 'number': '1200.00'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-1049.39,"VACHR":0,"VBMPX":43.684}],["2014-01-30","*","BayBook","Payroll","Assets:US:Federal:PreTax401k","{'units': {'currency': 'IRAUSD', 'number': '-1200.00'}}",{"IRAUSD":-1200.0,"RGAGX":23.368,"USD":-1049.39,"VACHR":0,"VBMPX":43.684}],["2014-01-30","*","BayBook","Payroll","Expenses:Taxes:Y2014:US:Federal:PreTax401k","{'units': {'currency': 'IRAUSD', 'number': '1200.00'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-1049.39,"VACHR":0,"VBMPX":43.684}],["2014-01-30","*","BayBook","Payroll","Income:US:BayBook:Salary","{'units': {'currency': 'USD', 'number': '-4615.38'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-5664.77,"VACHR":0,"VBMPX":43.684}],["2014-01-30","*","BayBook","Payroll","Income:US:BayBook:GroupTermLife","{'units': {'currency': 'USD', 'number': '-24.32'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-5689.09,"VACHR":0,"VBMPX":43.684}],["2014-01-30","*","BayBook","Payroll","Expenses:Health:Life:GroupTermLife","{'units': {'currency': 'USD', 'number': '24.32'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-5664.77,"VACHR":0,"VBMPX":43.684}],["2014-01-30","*","BayBook","Payroll","Expenses:Health:Dental:Insurance","{'units': {'currency': 'USD', 'number': '2.90'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-5661.87,"VACHR":0,"VBMPX":43.684}],["2014-01-30","*","BayBook","Payroll","Expenses:Health:Medical:Insurance","{'units': {'currency': 'USD', 'number': '27.38'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-5634.49,"VACHR":0,"VBMPX":43.684}],["2014-01-30","*","BayBook","Payroll","Expenses:Health:Vision:Insurance","{'units': {'currency': 'USD', 'number': '42.30'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-5592.19,"VACHR":0,"VBMPX":43.684}],["2014-01-30","*","BayBook","Payroll","Expenses:Taxes:Y2014:US:Medicare","{'units': {'currency': 'USD', 'number': '106.62'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-5485.57,"VACHR":0,"VBMPX":43.684}],["2014-01-30","*","BayBook","Payroll","Expenses:Taxes:Y2014:US:Federal","{'units': {'currency': 'USD', 'number': '1062.92'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-4422.65,"VACHR":0,"VBMPX":43.684}],["2014-01-30","*","BayBook","Payroll","Expenses:Taxes:Y2014:US:State","{'units': {'currency': 'USD', 'number': '365.08'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-4057.57,"VACHR":0,"VBMPX":43.684}],["2014-01-30","*","BayBook","Payroll","Expenses:Taxes:Y2014:US:CityNYC","{'units': {'currency': 'USD', 'number': '174.92'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-3882.65,"VACHR":0,"VBMPX":43.684}],["2014-01-30","*","BayBook","Payroll","Expenses:Taxes:Y2014:US:SDI","{'units': {'currency': 'USD', 'number': '1.12'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-3881.53,"VACHR":0,"VBMPX":43.684}],["2014-01-30","*","BayBook","Payroll","Expenses:Taxes:Y2014:US:SocSec","{'units': {'currency': 'USD', 'number': '281.54'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-3599.99,"VACHR":0,"VBMPX":43.684}],["2014-01-30","*","BayBook","Payroll","Assets:US:BayBook:Vacation","{'units': {'currency': 'VACHR', 'number': '5'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-3599.99,"VACHR":5,"VBMPX":43.684}],["2014-01-30","*","BayBook","Payroll","Income:US:BayBook:Vacation","{'units': {'currency': 'VACHR', 'number': '-5'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-3599.99,"VACHR":0,"VBMPX":43.684}],["2014-01-31","*","","Employer match for contribution","Assets:US:Vanguard:Cash","{'units': {'currency': 'USD', 'number': '600.00'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-2999.99,"VACHR":0,"VBMPX":43.684}],["2014-01-31","*","","Employer match for contribution","Income:US:BayBook:Match401k","{'units': {'currency': 'USD', 'number': '-600.00'}}",{"IRAUSD":0.0,"RGAGX":23.368,"USD":-3599.99,"VACHR":0,"VBMPX":43.684}]],"t":"table","types":[{"dtype":"str","name":"date"},{"dtype":"str","name":"flag"},{"dtype":"str","name":"payee"},{"dtype":"str","name":"narration"},{"dtype":"str","name":"account"},{"dtype":"object","name":"position"},{"dtype":"Inventory","name":"balance"}]} No newline at end of file | |||
The bot's gate step already performs this edit, but create-pull-request is scoped to an add-paths allowlist containing only engine.py, so the change to component_engine.py is discarded — while the PR body reports it as done. Applying it by hand here; the workflow fix is separate. The constant was 3.4.0 against a component exporting rustledger:ledger/*@3.11.0. Nothing failed because wasmtime matches component imports on semver compatibility, so a host defined at 3.4.0 satisfies an import of 3.11.0 — both are major 3. That makes the drift silent, which is why it survived several releases. Only a major bump fails; substituting 4.0.0 or 2.0.0 raises "a matching implementation was not found". Recorded that in the comment so the next reader knows the constant cannot be trusted to fail loudly. The WIT change itself is strictly additive (new returns/budget records, new session methods, a new importer interface; the sole non-addition across the whole file is a widened `use`), so no marshalling changes are required and no new host import needs defining — host still exports only `decrypt`. 669 passed.
…287) The gate step edits component_engine.py when the component's WIT package version changes: sed -i "s/_WIT_VERSION = \"${CUR_WIT}\"/.../" \ src/rustfava/rustledger/component_engine.py but create-pull-request's add-paths allowlist named only engine.py, so that edit was dropped. The PR body meanwhile reports "Bumped `_WIT_VERSION` to <new> (if it changed)", so the change looks applied. The result was a constant pinned at 3.4.0 against a component exporting rustledger:ledger/*@3.11.0, unnoticed across several releases because wasmtime matches component imports on semver compatibility — a host at 3.4.0 satisfies an import of 3.11.0, both being major 3. It would first fail at a major WIT bump, which is exactly when the bot's pre-applied fix would have been dropped again. Fixed by hand in #284. The allowlist itself is right: it exists because create-pull-request otherwise committed the workflow's working files, adding ~6 MB of sdist weight per release (#243). The failure mode is that narrowing to an allowlist makes every later edit opt-in, and omission is silent. Audited the whole workflow: it edits exactly two files under src/ (engine.py at line 125, component_engine.py at line 100) and both are now listed. Added a comment saying so, since the next step to edit a new file will hit this again. No behaviour change until the next upgrade run.
Two defects in the same PR body, both found reviewing #284. 1. The "why this is held" line lost its values. `${{ steps.gate.outputs.reasons }}` was interpolated into an unquoted heredoc. A `${{ }}` expression is pasted into the script text before bash parses it, so the backticks inside the reason string were parsed as command substitution: their contents were executed and replaced with the empty output. #284's body reads - WIT package version changed: -> (host bindings in likely need changes) losing precisely the two versions and the filename the reviewer needs. `set -euo pipefail` does not catch it, because the substitution's exit status is never examined — it fails silently. Fixed by passing the values through `env:` and referencing them as shell variables. A variable's value is not re-scanned for substitutions, so backticks in it stay literal; the escaped static backticks elsewhere in the heredoc were never affected. This is also the standard remedy for the script-injection surface that `${{ }}`-into-`run` carries. Verified by executing the step with the env the workflow supplies: the body now renders the versions and the filename. The same harness run against the pre-fix step reproduces the blanked line exactly, so the check can report dirty as well as clean. 2. The body claimed a vendored artifact that has never existed. It advertised "refreshed the vendored component (sha256-verified)". The download step did `cp component.wasm src/rustfava/rustledger/rustledger_ffi_component.wasm`, added by #219/#220 to stop a committed artifact going stale — but that path is gitignored (.gitignore:52) and absent from add-paths, so it was never once committed: `git log --all` on the path is empty. The cp wrote into the runner's workspace and was discarded. #243 had already settled the question the other way round: committing the wasm shipped ~6 MB of unconsumed sdist weight per release, so the component is downloaded at runtime against the pinned version instead (#286). Removed the dead cp rather than resurrect vendoring, and made the body describe what actually happens. The download and sha256 verification stay — the WIT gate reads component.wasm from the workspace. Also corrected the checklist's "wasm-tools component wit the vendored file", which pointed at a file that is never there. No functional change to what the bot commits.
* fix: put the pinned version in the component wasm filename Closes #286. The cache path was version-agnostic (rustledger_ffi_component.wasm) and the download was guarded by `not exists()`, so bumping RUSTLEDGER_VERSION never re-downloaded: a working tree kept using the previous release's component indefinitely. The failure mode is the bad one. While preparing #284 this reported "669 passed" against a tree pinned to v0.22.0 while actually running a component from a previous release; after deleting the stale file the true result was 5 failed, 645 passed, matching CI. A stale run is GREEN, so nothing prompts anyone to look. CI was unaffected because it starts from a clean checkout, which means this hit contributors specifically, and hit them exactly when bumping the version — the moment the component matters most. Putting the version in the filename makes a bump a cache miss by construction, rather than relying on a staleness check that has to be maintained. desktop/scripts/ensure-rustledger.ts solves the same problem for a sibling wasm with a .wasm-version marker; a marker would have been ambiguous here, because CI provisions the file directly and a missing marker cannot be distinguished from an externally provisioned file that happens to be stale — which is the bug. Blast radius, all updated: the three CI download sites (test.yml twice, desktop-release.yml, all of which already have the tag to hand), the PyInstaller spec (now globs, so it need not know the version), and the _default_wasm_path assertion. Versioned names would otherwise accumulate one ~7 MB artifact per upgrade, so a successful download now prunes its superseded siblings and the pre-#286 unversioned file, which is dead in every existing checkout. Pruning is best-effort: a file that cannot be removed is left alone, since tidy-up must never break a working engine. 671 passed, coverage gate still 100%. * fix: import RUSTLEDGER_VERSION from its defining module mypy runs with no-implicit-reexport, so importing it via component_engine (which only re-exports it) fails attr-defined.
Two independent silent failures found while reviewing #284/#287/#289. 1. sync-pre-commit could not parse bun.lock, and hid it. `JSON.parse` rejected the lockfile with "Property name must be a string literal": bun writes JSONC with trailing commas (the first is after "web-tree-sitter" on line 34). `Bun.file().json()` is equally strict, so there was no drop-in. The script then swallowed the failure — `main().catch()` logged the error and left the exit code at 0 — so `just sync-pre-commit` and the `sync-pre-commit` package script both reported success while doing nothing at all. Fixed by stripping trailing commas before parsing, skipping string literals so a comma inside a package name or version range can never be mistaken for a structural one, and by setting `process.exitCode = 1` in the catch. Verified: the lockfile now parses to 385 package entries (previously it threw), a deliberately corrupted lockfile exits 1, and the restored one exits 0. Worth knowing: the script has nothing to rewrite today regardless. It looks for `"name@version"` strings, and .pre-commit-config.yaml no longer contains any — the biome hook pins a `rev:` and the only additional_dependencies entry is unversioned. The format it targets did exist historically. Someone should decide whether the script is still wanted; this change at least means it will say so when it breaks. 2. The bot's "Get version" step interpolated a dispatch payload into bash. `${{ github.event.client_payload.version }}` was pasted into the script text before bash parsed it, which is the standard script-injection shape — the same class as the PR-body bug fixed in #289, and here the value arrives from a repository_dispatch payload. Moved to `env:`. Also quotes $GITHUB_OUTPUT (the SC2086 actionlint has been reporting on this workflow), adds `set -euo pipefail`, and fails loudly when neither input supplies a version instead of continuing with an empty one. Reads use `${VAR:-}` because only one of the two is populated for any given event and `set -u` would otherwise abort on the unused one. actionlint on this workflow now exits 0, from one finding before. Simulated all three paths: workflow_dispatch and repository_dispatch each resolve their version and write it to $GITHUB_OUTPUT, and the neither-supplied case exits 1 with a message.
Automated update of rustledger to v0.22.0 — held for human review (draft, no auto-merge) because:
What the bot already did
RUSTLEDGER_VERSIONand refreshed the vendored component (sha256-verified)_WIT_VERSIONto3.11.0(if it changed)What a human must check
wasm-tools component witthe vendored file; see thehostinterface handling incomponent_engine.py)just test-py)See rustledger v0.22.0 release notes. Context: #218 / #219 / #220.