diff --git a/GLOSSARY.md b/GLOSSARY.md index 469ba27..1cb8977 100644 --- a/GLOSSARY.md +++ b/GLOSSARY.md @@ -19,5 +19,31 @@ A non-human Principal: a script, automation, or integration such as Home Assista _Avoid_: Service account, machine user, integration account **Owner**: -The single Person with administrative authority over hAPI and every other Principal. +The single Person with administrative authority over hAPI and every other Principal. That authority covers Principals and the platform, not other Persons' Personal data. _Avoid_: Admin, root, superuser + +**Binding**: +A Person's consent letting a specific Bot act on that Person's Personal data. +_Avoid_: Delegation, impersonation, link + +### Ownership + +**Household**: +The single group of Persons that hAPI serves. There is exactly one. +_Avoid_: Family, tenant, organization, group + +**Household member**: +A Person who belongs to the Household. A Person can be a Principal without being a Household member (e.g. a friend). +_Avoid_: Family member, resident + +**Personal data**: +A record owned by one Person, visible only to that Person (and to Bots bound to them). +_Avoid_: Private data, user data + +**Household data**: +A record owned by the Household, visible to every Household member. +_Avoid_: Shared data, common data + +**Recorded by**: +The Principal that created or last changed a record, distinct from who owns it. +_Avoid_: Author, owner, creator diff --git a/docs/adr/0001-data-ownership-model.md b/docs/adr/0001-data-ownership-model.md new file mode 100644 index 0000000..9991f83 --- /dev/null +++ b/docs/adr/0001-data-ownership-model.md @@ -0,0 +1,12 @@ +# Every record is owned by a Person or by the Household + +hAPI serves exactly one Household, so there is no multi-tenancy. Every record is either **Personal data**, owned by one Person and visible only to them, or **Household data**, owned by the Household and visible to every Household member on equal terms. Each record type declares which kind it is: fitness is personal, home maintenance and smart home are household, and finance has both. We chose this over per-record sharing (which needs sharing lists and revocation) and over "everything household" (which gives no privacy for personal finances). Anything that needs to be shared is modelled as Household data. + +## Consequences + +- **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). +- 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.