# finance changelog

## 2.3.0 (2026-12-01), minor
- For Personal Finance 1.2.0. New table `private_investment_events` (capital calls and distributions, signed, with
  `amount_base`); `private_investments`: optional `kind` (vocab `private_kinds`), `manager`, `vintage`, `status_note` and
  provenance `source`, `source_ref`, `imported_at`. NAV history is `valuations` keyed by `investment_id`.
- `transactions`: optional `status` (pending | posted, vocab `txn_status`; NULL = posted), `receipt` (1 / 0 / NULL),
  `asset_id` (a dividend or interest from one holding) and `property_bucket` (running | maintenance | improvement, vocab
  `property_buckets`).
- `recurring.subtype` (vocab `subscription_types`). `taxes.amount_base`; `taxes.type` documents capital_gains and wealth
  (vocabulary `tax_types`, not enforced, so older free-text rows still read).
- New conformance checks at `warn`: `private_valid` (events point at an investment, signs, called and distributed equal
  their events, NAV not negative) and `txn_extras_valid` (receipt values, buckets only on money spent). Fixtures
  `private_investments.csv`, `private_investment_events.csv`.
- No migration: every database is rebuilt from the current `schema.sql` (new columns and table start empty). Boards that
  do not read them keep declaring `>=2.0`.

## 2.2.0 (2026-11-30), minor
- For Investment Portfolio. New table `allocation_targets` (the person's own target mix: `dimension` asset_class |
  region | account, `bucket`, `target_share`, `band`, `note`, provenance). `holdings`: optional `region` (vocab
  `regions`) and `price_date` (the date of the price when the quote is older than the position, so stale prices show).
- Vocabularies `asset_classes` (the values `holdings.asset_class` always documented), `regions`, `target_dimensions`.
- Investment accounts written once (README "Investments"): positions in `holdings`, unit moves in `asset_trades`, money
  in and out of the account in `transactions` (contributions and withdrawals are `investment`, dividends and interest
  `income`, account fees `spend`), so contributions are always separate from growth.
- New conformance check at `warn`: `targets_valid` (shares and bands 0..1, each dimension adds up to 100%). Fixture
  `allocation_targets.csv`.
- No migration: every database is rebuilt from the current `schema.sql` (new columns and table start empty). Boards
  that do not read them keep declaring `>=2.0`.

## 2.1.0 (2026-11-30), minor
- For Debt Payoff. `debts`: optional `kind` (vocab `debt_kinds`: card, loan, student, mortgage, line, other),
  `credit_limit`, and provenance `source_ref`, `imported_at`.
- Debt rules written once (README "Debts"): rates as decimals, promo rate until `promo_end` inclusive, due day clamped
  to the month's last day, one balance source per debt.
- New conformance check at `warn`: `debts_valid` (rates 0..1, due day 1..31, no negative minimum or limit, real promo
  end date). Fixture `debts.csv` fills the new columns.
- No migration: the crate library and every board database are rebuilt from the current `schema.sql` (the new columns
  start empty). Boards that do not read `debts` keep declaring `>=2.0`.

## Notes since 2.0.0 (2026-11-30, no change to the standard)
- Board-derived tables (`d_*`, rebuilt by a board's importer from finance@2 rows, e.g. Personal Finance's lots and net
  worth by class) are allowed beside the standard: `dashremix spec check` no longer warns about them and the JSON
  Schema accepts them like `x_*`. They are never written by connectors or read by other boards. A fork's own data still
  goes in `x_<owner>_*` tables.

## 2.0.0 (2026-11-29), major
- `*_usd` columns renamed to `*_base` (in `meta.base_currency`): `amount_base`, `income_base`, `expense_base`,
  `balance_base`, `value_base`, `price_base`, `cost_basis_base`, `valuation_base`, `proceeds_base`,
  `trailing_12m_base`, `cancellation_savings_base`, `fill_price_base`, `cash_base`, `mark_price_base`, `fee_base`;
  `fx_rates.usd_per_unit` → `base_per_unit`; `transactions.usd_source` → `fx_source`.
- Required now: `transactions.txn_id`, `flow_type`, `currency`; `accounts.currency`.
- Hashed `txn_id` = sha1(account|date|description|amount|currency|n)[:12], `n` counted per file (overlapping downloads dedupe).
  `txn_id_aliases(old_id, new_id, scheme)` maps the finance@1 ids (no currency, one counter for all files) to the new ones.
- Added: provenance (`source`, `source_ref`, `imported_at`, `confidence`) on fact tables; `transactions.counterparty`,
  `recurring_id`, `split_of`; tables `recurring`, `recurring_prices`, `debts`; `categories.parent`; `goals.note`;
  `accounts.opened`, `closed`, `source`; `currency` on taxes, income_years, holdings, properties.
- `subscriptions` is a view over `recurring` (Count My Stack compatibility).
- Removed owner-specific columns from one person's private model (see `2/README.md`); a fork keeps them in
  `x_<owner>_<table>` tables. The migration copies any non-empty ones there, so nothing is lost.
- Vocabularies published: flow types, account groups and status, balance basis, transfer status, confidence,
  cadences, recurring status, a default category tree with synonyms.
- Migration `migrations/1-to-2.py`, codemod `migrations/metrics-codemod.py`.

## 1.0.0 (2026-05)
- Shipped inside Monthly Budget (`dashboards/monthly-budget/schema/finance@1/`), never published under `spec/`.
  Superseded by 2.0.0; one board release of overlap (Monthly Budget 1.1.0 is on finance@2).
