Household Assets for members #85

Open
opened 2026-11-27 16:43:23 -05:00 by bobby · 0 comments
Owner

Part of #73 (spec: #72)

What to build

Household members can create and fetch Maintenance Assets as Household data. This is the first owner-mixin table. It brings owner and Recorded by on every record, SET LOCAL hapi.principal_id in every request transaction, and Household RLS. hapi principal member <person> on|off sets Household membership. CI checks RLS coverage.

Acceptance criteria

  • hapi principal member toggles membership
  • A member can POST and GET /v1/maintenance/assets/{id} (name, location, make, model, serial/VIN, installed, warranty, notes); the response carries owner: household and recorded_by
  • A Person who isn't a member gets 404 on reads and 403 on writes, enforced by RLS as well as the app
  • An RLS coverage check fails if any owner-mixin table lacks relrowsecurity or is owned by hapi_app
  • Ids are UUIDv7 and timestamps are RFC 3339
Part of #73 (spec: #72) ## What to build Household members can create and fetch Maintenance Assets as Household data. This is the first owner-mixin table. It brings `owner` and Recorded by on every record, `SET LOCAL hapi.principal_id` in every request transaction, and Household RLS. `hapi principal member <person> on|off` sets Household membership. CI checks RLS coverage. ## Acceptance criteria - [ ] `hapi principal member` toggles membership - [ ] A member can `POST` and `GET /v1/maintenance/assets/{id}` (name, location, make, model, serial/VIN, installed, warranty, notes); the response carries `owner: household` and `recorded_by` - [ ] A Person who isn't a member gets `404` on reads and `403` on writes, enforced by RLS as well as the app - [ ] An RLS coverage check fails if any owner-mixin table lacks `relrowsecurity` or is owned by `hapi_app` - [ ] Ids are UUIDv7 and timestamps are RFC 3339
bobby added the ready-for-agent label 2026-11-27 16:43:23 -05:00
bobby added a new dependency 2026-11-27 16:43:24 -05:00
bobby added a new dependency 2026-11-27 16:43:25 -05:00
bobby added a new dependency 2026-11-27 16:43:26 -05:00
bobby added a new dependency 2026-11-27 16:43:27 -05:00
bobby added a new dependency 2026-11-27 16:43:28 -05:00
bobby added a new dependency 2026-11-27 16:43:34 -05:00
bobby added a new dependency 2026-11-27 16:43:36 -05:00
bobby added a new dependency 2026-11-27 16:43:37 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: bobby/hapi#85