Day 1: the core (ledger, statements, subscriptions, forecast) #1

Manually merged
mnovak merged 0 commits from feature/core into main 2026-11-03 21:34:14 +01:00
Owner

Day 1 core of Fiscus Domi: three pure crates (no I/O, no clock, no floats). Design: docs/01_core.md.

  • fiscus-ledger: Haler (checked; largest-remainder split), civil Date, the append-only event log with a total, deterministic State::apply, merchant keys and rules, one-to-one capture ↔ statement matching, plan_import with stable line keys.
  • fiscus-statement: strict CSV, Czech amount/date fields, strict UTF-8 / Windows-1250 decoding, 16 MiB cap, fixture harness. No bank parser: no real samples yet, so every file is UnsupportedFormat.
  • fiscus-insight: subscriptions (monthly/yearly, several per merchant, price change, review, cancel status), trials, the 7-day strip, cancel kits, seeded integer bootstrap forecast.

Tests: fiscus-ledger 26, fiscus-statement 12, fiscus-insight 12 — all green.

Self-review: what could still be wrong

  • The statement fixture tests walk zero samples; they prove nothing about real banks yet.
  • Subscription thresholds (26–35 / 358–373 days, ±50 % grouping, "mostly one price") and the trial rule (≤ 10 CZK, 30-day estimate) are tuned on one synthetic history.
  • Matching window (−1 … +5 days) and merchant compatibility are guesses until real captures and statements meet.
  • A confirmed pair shows the statement line's date, not the purchase date; budgets near a month boundary may shift a payment by a month.
  • Budgets count outflows only; refunds do not reduce spending yet.
  • Cancel-kit URLs were not opened.

Not verified

Any real statement, any real capture.

Day 1 core of Fiscus Domi: three pure crates (no I/O, no clock, no floats). Design: `docs/01_core.md`. - `fiscus-ledger`: `Haler` (checked; largest-remainder `split`), civil `Date`, the append-only event log with a total, deterministic `State::apply`, merchant keys and rules, one-to-one capture ↔ statement matching, `plan_import` with stable line keys. - `fiscus-statement`: strict CSV, Czech amount/date fields, strict UTF-8 / Windows-1250 decoding, 16 MiB cap, fixture harness. **No bank parser**: no real samples yet, so every file is `UnsupportedFormat`. - `fiscus-insight`: subscriptions (monthly/yearly, several per merchant, price change, review, cancel status), trials, the 7-day strip, cancel kits, seeded integer bootstrap forecast. Tests: fiscus-ledger 26, fiscus-statement 12, fiscus-insight 12 — all green. ## Self-review: what could still be wrong - The statement fixture tests walk **zero** samples; they prove nothing about real banks yet. - Subscription thresholds (26–35 / 358–373 days, ±50 % grouping, "mostly one price") and the trial rule (≤ 10 CZK, 30-day estimate) are tuned on one synthetic history. - Matching window (−1 … +5 days) and merchant compatibility are guesses until real captures and statements meet. - A confirmed pair shows the statement line's date, not the purchase date; budgets near a month boundary may shift a payment by a month. - Budgets count outflows only; refunds do not reduce spending yet. - Cancel-kit URLs were not opened. ## Not verified Any real statement, any real capture.
mnovak added 6 commits 2026-11-03 19:55:24 +01:00
mnovak manually merged commit 2bda5dbbec into main 2026-11-03 21:34:14 +01:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mnovak/FiscusPublic#1