docs(docs): V1-1 contract approved, technical design for review

Owner ratified the V1-1 business decisions. The contract now records them
as approved, adds the nomenclature, the proposed SQL schema, RLS, RPCs,
technical limits, journeys and test plan, and lists the choices left for
the owner. OPEN_QUESTIONS, plan, DOMAIN_MAP, README and CLAUDE.md follow.
This commit is contained in:
bchanot committed 2026-10-25 19:15:35 +01:00
1 parent 5502617193
commit a6346105f1
7 files changed
+1061 -381

No files matched your search

+16 -7
View File
@@ -314,6 +314,13 @@ Definition of Done: architecture Sprint 2 minus seats billing.
Risks: context leakage into later queries (every report/client query must take the context explicitly; enforce by a service-layer signature, not a global).
```
Step 10 note (2026-10-25): with C4 ratified (BDR-073), cabinets are built as
workspaces of kind `cabinet` on the `workspaces` / `workspace_members` tables
that V1-1 creates, not as separate `organizations` / `organization_members`
tables; cabinet roles extend `workspace_member_role` and plug into the V1-1
workspace helpers (`V1-1_OWNERS_ANIMALS.md` §3, §4, §9.1). The rest of the
step (member management, context switcher, seats) is unchanged.
```text
Step 11
Name: Entitlement engine skeleton (no Stripe)
@@ -342,13 +349,15 @@ Definition of Done: architecture Sprint 3; rule 1 (animal ≠ sheet) visible in
Risks: the global-client design (C4) if confirmed as plain shared rows; GDPR consent texts not final (version column from day one).
```
Step 12 note (2026-10-25): roadmap item V1-1 proposes a reduced Step 12 under
the owner's orientation C4 (records attached to a workspace, one personal
workspace per practitioner, cabinets later, no global client record shared
between practitioners), without consents, grants, sharing, files or candidate
matching: `V1-1_OWNERS_ANIMALS.md`. The text above stands until the owner
ratifies the contract's orientations (§9.1) and answers its sub-choices
(§9.2).
Step 12 note (2026-10-25): roadmap item V1-1 is a reduced Step 12 under C4,
ratified by the owner on 2026-10-25 (BDR-073): records attached to a
workspace, one personal workspace per practitioner, cabinets later, no global
client record shared between practitioners, no consents, grants, sharing,
files or candidate matching. Contract and technical design:
`V1-1_OWNERS_ANIMALS.md` (business decisions approved; the SQL, RLS and RPC
design awaits the owner's validation before the first migration). Where the
text above differs (global clients, consents, grants, photo, files, deceased
flow), the contract governs V1-1.
```text
Step 13 (∥ Steps 9–12)