plan: Money architecture #994

Closed
kayg wants to merge 0 commits from docs/money-architecture into dev
Owner

Summary

Adds the design plan for Calternal Money. The plan keeps v7 files as the source, uses one Rust engine crate and reuses Notes' save, sync, history, search and conflict paths.

It covers the three storage roots, rebuildable index, whole-record conflict handling, incremental Actual and YNAB imports, one shared household budget, Automations and Mail interfaces, security, performance gates, first-PR Rust tests and UI delivery slices.

Independent review

A fresh reviewer read only the plan and found gaps around multi-file publish, offline grant revocation, shared-save ownership, whole-record conflict storage and a reproducible performance fixture. The plan now uses the shared bulk-edit job and save log for moves and import batches, defines owner-side authorship and revocation recovery, points conflicts to stored file versions, and fixes the scale fixture at 5,000 open claims with a stated writer/reader workload.

Open questions

  1. Allow offline PWA edits while affected totals wait for server results.
  2. Reserve 30 KB Brotli for Money route chunks inside the 488.3 KB total bank.
  3. Keep H1 edit history under shared version retention while transaction records remain without an age limit.
  4. Share a whole budget folder with named household members as the normal editors.
  5. Approve 50,000 records, a 5 s cold rebuild and a 30 s import as first scale gates, then check linear growth at 150,000.
  6. Confirm the latest approved Money mockup as the UI source and add its URL before P2.

The current docs/perf/web.md summary says 404.2 KB total while perf/budgets.json gates at 488.3 KB. P2 is gated on reconciling that summary. The approved Money mockup URL is not present in the dev tree; the plan records this as an open question.

This PR changes documentation only. No product tests were run.

## Summary Adds the design plan for Calternal Money. The plan keeps v7 files as the source, uses one Rust engine crate and reuses Notes' save, sync, history, search and conflict paths. It covers the three storage roots, rebuildable index, whole-record conflict handling, incremental Actual and YNAB imports, one shared household budget, Automations and Mail interfaces, security, performance gates, first-PR Rust tests and UI delivery slices. ## Independent review A fresh reviewer read only the plan and found gaps around multi-file publish, offline grant revocation, shared-save ownership, whole-record conflict storage and a reproducible performance fixture. The plan now uses the shared bulk-edit job and save log for moves and import batches, defines owner-side authorship and revocation recovery, points conflicts to stored file versions, and fixes the scale fixture at 5,000 open claims with a stated writer/reader workload. ## Open questions 1. Allow offline PWA edits while affected totals wait for server results. 2. Reserve 30 KB Brotli for Money route chunks inside the 488.3 KB total bank. 3. Keep H1 edit history under shared version retention while transaction records remain without an age limit. 4. Share a whole budget folder with named household members as the normal editors. 5. Approve 50,000 records, a 5 s cold rebuild and a 30 s import as first scale gates, then check linear growth at 150,000. 6. Confirm the latest approved Money mockup as the UI source and add its URL before P2. The current `docs/perf/web.md` summary says 404.2 KB total while `perf/budgets.json` gates at 488.3 KB. P2 is gated on reconciling that summary. The approved Money mockup URL is not present in the `dev` tree; the plan records this as an open question. This PR changes documentation only. No product tests were run.
docs: tighten Money architecture rollout
Some checks failed
CI / server (pull_request) Has been cancelled
CI / rust (pull_request) Has been cancelled
CI / web (pull_request) Has been cancelled
Markdown extraction contract / markdown-native-contract (pull_request) Has been cancelled
Markdown extraction contract / markdown-editor-contract (pull_request) Has been cancelled
bf54cc14c4
Author
Owner

Approved by kayg (11-07) and merged into dev (docs only).

Approved by kayg (11-07) and merged into dev (docs only).
kayg closed this pull request 2026-11-07 12:44:21 +00:00
Some checks failed
CI / server (pull_request) Has been cancelled
CI / rust (pull_request) Has been cancelled
CI / web (pull_request) Has been cancelled
Markdown extraction contract / markdown-native-contract (pull_request) Has been cancelled
Markdown extraction contract / markdown-editor-contract (pull_request) Has been cancelled

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/calternal!994
No description provided.