Dashboard › institutional-transition-lab › Distillation
72064a9a-09c0-44c3-ae39-dbc0933bcc87["lore_tm_v1_J7-m_mV6AEmszTCEn6r1vOIHFcvPard3SqCoESxOog8","lore_tm_v1_nOVMhsRTSWarhNp315aSJwLaIkzi4s7OvxdeAUKzrIY","lore_tm_v1_r10nNJ9o1U-wFiAvS6dMJJTsQWe04RLbMGH3dOGn6wg"]
src/institution_lab/governance_adjudication.py, _source_index() builds evidence sources from each frozen document’s sources entries and adds synthetic record_metadata containing canonical JSON for record_id, source_url, published_on, publisher, and source_type._evidence_errors() in src/institution_lab/governance_adjudication.py requires evidence references to contain exactly source_id and quote, plus field for claim references; it validates claim fields against CLAIM_FIELDS, requires a known source ID and non-empty quote, and grounds evidence using literal substring membership in the indexed source text._validate_record() validates adjudication decisions and reviewer provenance, requires source-first audit metadata, requires evidence_limitations when evidence is bounded, validates accept/revise/reject/abstain invariants, enforces class-specific dates and edge statuses, checks claim grounding, and derives graph_edge_revision through graph_edge_diff()._validate_record() checks claim_evidence_refs with _evidence_errors(..., claim=True) and then treats a final-coding field as grounded when any reference declares that field; applicable fields come from CLAIM_FIELDS.validate_adjudication() requires transition_dates_excluded=true, outcome_data_used=false, exact verified input pins, matching documents_sha256, non-empty reviewers, exact ordered one-to-one record IDs across frozen documents/coding/adjudication, and at least one reviewer with role source_adjudicator per record.validate_adjudication() returns a summary containing record_count, sorted decision_counts, sorted class_counts, unresolved_record_ids, record_decisions, graph_edge_revisions, reviewer_provenance, and canonicalization_gate; the gate is "closed" when errors or unresolved records exist and "open" otherwise.validate_adjudication_fragment() permits a unique known subset of record IDs only in frozen-document order, checks reviewer roles and frozen coding hash integrity, and delegates each valid fragment record to _validate_record().src/institution_lab/governance_coding.py, validate_response() validates exact response and power-edge keys, allowed enums, ISO dates, finite numeric confidence from 0 through 1, non-empty edge evidence, and literal quote grounding against document source text.validate_response() requires institutional/proposal classes—effective_institutional_change, announced_institutional_change, and proposal_only—to contain power_changes; forbids power_changes for non-institutional classes; and requires ambiguity for record_class == "abstain"._evidence_errors, both in src/institution_lab/governance_adjudication.py: its definition at line 263 and its sole call at line 480 for claim_evidence_refs with claim=True.