exam-marker: exam_templates.extraction_meta jsonb (P3 audit gate + provenance)
Applied to dev .94 2026-07-03. {engine, slug, audit:{cover_total,detected_total,status,anomaly}, counts}.
Pending prod (.156) — gated.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
0b6874a3dd
commit
c4ca0ae29f
11
volumes/db/cc/76-exam-marker-extraction-meta.sql
Normal file
11
volumes/db/cc/76-exam-marker-extraction-meta.sql
Normal file
@ -0,0 +1,11 @@
|
||||
--==========================================================================================
|
||||
-- 76. exam_templates.extraction_meta — trust signal + provenance from the extraction service (P3)
|
||||
--==========================================================================================
|
||||
-- Records, per template, how the recognition was produced and whether it reconciled: the audit
|
||||
-- cover-total gate (cover_total vs detected_total, status, anomaly), the engine + slug used, and
|
||||
-- region counts. Lets the setup UI show "extraction: cover 100 = detected 100 ✓" (or flag an under-read),
|
||||
-- and lets the digital-text view resolve the paper's replica by slug. Nullable, defaults to {}.
|
||||
alter table public.exam_templates add column if not exists extraction_meta jsonb not null default '{}'::jsonb;
|
||||
|
||||
comment on column public.exam_templates.extraction_meta is
|
||||
'Extraction-service provenance + trust gate: {engine, slug, audit:{cover_total,detected_total,status,anomaly}, counts}.';
|
||||
Loading…
x
Reference in New Issue
Block a user