From d49485ef2159aeaee0a6b8d64282740d26180d4d Mon Sep 17 00:00:00 2001 From: Bobby Date: Tue, 24 Nov 2026 22:17:55 -0500 Subject: [PATCH] new: Finance vocabulary and ADR-0001 Financial Account exception Co-Authored-By: Claude Opus 5.5 --- GLOSSARY.md | 38 +++++++++++++++++++++++++++ docs/adr/0001-data-ownership-model.md | 1 + 2 files changed, 39 insertions(+) diff --git a/GLOSSARY.md b/GLOSSARY.md index e6c1ada..05d9e85 100644 --- a/GLOSSARY.md +++ b/GLOSSARY.md @@ -65,3 +65,41 @@ _Avoid_: Author, owner, creator **Job**: A request, queued in hAPI, for Home Assistant to carry out an action in the house. Jobs are Household data. Domain code, Persons, and Bots can all create them. _Avoid_: Task, command, message + +### Finance + +**Financial Account**: +A bank, credit card, or cash account whose money hAPI tracks. It is owned by a Person or by the Household, and its Transactions share that owner. +_Avoid_: Account (on its own), bank account, wallet + +**Transaction**: +A single posted movement of money into or out of one Financial Account. +_Avoid_: Entry, charge, payment + +**Category**: +A named bucket that Transactions are sorted into, of kind expense, income, or transfer. Household Categories can be used by the Household and by every Household member; Personal Categories only by their Person. +_Avoid_: Tag, label, envelope + +**Budget**: +One owner's zero-based monthly plan: expected income assigned across Categories, then rebalanced during the month with Moves. The Household has one, and each Person may have one. +_Avoid_: Plan, envelope + +**Target**: +A Budget's standing amount for one Category over a period (monthly, quarterly, or annual), spread into even monthly shares. +_Avoid_: Goal, limit + +**Allocation**: +What a Budget assigns to one Category in one month: the Target's monthly share, adjusted by Moves. +_Avoid_: Budgeted amount, envelope + +**Move**: +A shift of money from one Category's Allocation to another's within one month of a Budget. It never changes the month's total. +_Avoid_: Transfer (a kind of Category), reallocation + +**Banked**: +Said of a Category whose Target period is longer than a month. Its unspent Allocations carry forward as a banked balance until the bill draws it down. +_Avoid_: Sinking fund, rollover, savings + +**Payee mapping**: +An owner's remembered link from a payee to a Category, learned from manual categorization and applied to newly ingested Transactions. +_Avoid_: Rule, auto-categorization diff --git a/docs/adr/0001-data-ownership-model.md b/docs/adr/0001-data-ownership-model.md index 9991f83..1c27aa4 100644 --- a/docs/adr/0001-data-ownership-model.md +++ b/docs/adr/0001-data-ownership-model.md @@ -7,6 +7,7 @@ hAPI serves exactly one Household, so there is no multi-tenancy. Every record is - **The Owner has no special read access to Personal data.** Owner authority covers Principals and the platform only. Bots reach Personal data only through a **Binding** that the bound Person grants and can revoke. The Owner cannot grant one on another Person's behalf. - Every record carries its owner plus **Recorded by**: the Principal that created it and the one that last changed it. Principals are deactivated, never hard-deleted, so Recorded by never dangles. - Ownership is fixed when a record is created, except that a Person may move their own Personal record to the Household (one way only). + - **Finance exception:** Financial Accounts and their Transactions never move. To bring an account into the Household, the Personal Financial Account stops tracking at a date and a new Household one starts tracking from it, so spending history stays with the owner who spent it. Finance Categories can still be promoted. - When a Person is removed, their Personal data is exported and then explicitly deleted. Household data they recorded stays with the Household. - Persons who are not Household members (e.g. friends) see only their own Personal data. - Not in v1: roles within the Household, sharing outside the Household, and guest access to Household data.