fix(anatomy): B/C changes leave every touched finding and annotation at to_confirm (applier rule, reviewed refused), typed test reads, docs numbers

This commit is contained in:
bchanot committed 2026-10-10 09:03:00 +02:00
1 parent 37550c29a5
commit 6034909674
10 files changed
+776 -327

No files matched your search

+6 -2
View File
@@ -188,7 +188,7 @@ any authenticated user; no write path through the API (platform step later).
| `id uuid`, `sheet_id` | |
| `version_number int` | unique per sheet, assigned by the server from the sheet's monotonic counter |
| `status` | enum `sheet_version_status`: `draft` \| `published` \| `deprecated` |
| `document_schema_version int` | CHECK = `content->>'schema_version'`; only `1` today |
| `document_schema_version int` | CHECK = `content->>'schema_version'`; only `2` now (CHECK `= 2`) |
| `content jsonb` | the canonical document; CHECK `jsonb_typeof = 'object'` and size ≤ 2 MiB |
| `change_note text` | what changed in this version |
| `created_by`, `published_by`, `deprecated_by` | profile ids, `on delete set null` |
@@ -347,7 +347,7 @@ duplicated the SSB tree), sutures absent in the horse removed, FR grammar,
NAV terms (caudal vertebrae, thoraco-lombaire, atlanto-occipitale,
supra-/infra-épineux, fibularis tertius), vertebral ranges (T 17–19, L 5–6,
Cd 15–21, no fixed 18), 62 descriptions translated, view and document
labels. Level B (integrated, `to_confirm`): nine annotation points moved
labels. Level B (integrated, `to_confirm`): ten annotation points moved
onto the drawn structures (hip ↔ sacroiliac swap, C7-T1 / T18-L1 / L6-S1
onto the column, skull points), carpus zone + point added, veterinary red
flags on the distal joints, legal disclaimer anchored on the articles,
@@ -356,6 +356,10 @@ nodes, pain-behaviour descriptions. Level C (questions, data kept): SSB
patterns, sacral lateralization, NSR, accessory motions, sesamoid zone,
"charnière", "fixation", two-tier referral, duplicate reasons. Nothing is
published; the professional review starts from `REVIEW-REPORT.md` §10.
11 changes carry a question. The applier enforces the review rule: after a
level B or C change, every finding, finding category and annotation it
touched is left at `to_confirm` (recorded in the CHANGELOG), and an explicit
`reviewed` in such a change throws.
Seed: `equine_draft.sql` is idempotent and converging. On a fresh database
it inserts the sheet, the cleaned asset row and the draft through