Dashboard › institutional-transition-lab › Distillation
Distillation
ID: 5f16b16d-bbe2-4b57-9227-73adeb89a6a4
Generation: 0
Tokens: 550
R_compression: 13.711
C_norm: 0.013
Archived: Yes
Created: 2026-09-09 01:12:53
Source IDs:
["lore_tm_v1_6neELMxZEHXhYWmNT_4ghhNWOdbQYDe-SyIcrRqfTLc","lore_tm_v1_yOsdqyg4INc3TeNVkwzyQQtXCDHY6ftZuSRJ2vWcpSc","lore_tm_v1_gDvKWOB2bfTiDx2OoGEGzwnlvwBQEQt6qWmPIqScCGQ"]
Observations
- 🟡 (01:08) Search found exactly 22 matches in src/institution_lab/governance_coding.py for record_class, power_changes, evidence_refs, and validate_response: record_class at lines 70, 245, 246, 247, 304, 310, 313, 429, and 448; power_changes at lines 77, 273, 275, 278, 291, 293, 297, 302, 310, 312, and 381; evidence_refs at lines 88, 291, 293, 297, 302, and 388; validate_response() defined at line 241.
- 🟡 (01:09) src/institution_lab/governance_coding.py:230-238 strips a complete triple-backtick code fence before calling json.loads(); it raises ValueError("unterminated JSON code fence") for an incomplete fence and ValueError("response must be an object") when the decoded value is not a dict.
- 🟡 (01:09) src/institution_lab/governance_coding.py:241-266 validate_response(response, document) requires the response key set to equal RESPONSE_KEYS; validates record_class against RECORD_CLASSES, non-null event_kind against EVENT_KINDS, title/affected_scope/ambiguity as non-empty strings or null, announced_on/effective_on as ISO dates or null, body_patch_relation against BODY_PATCH_RELATIONS, and confidence as a finite non-boolean int or float from 0 through 1.
- 🟡 (01:09) src/institution_lab/governance_coding.py:268-302 builds source_map from each document source’s source_id and text. power_changes must be an array; each entry must be an exact-key dict matching POWER_KEYS, have non-empty actor, target, and scope, use allowed RIGHT_KINDS, DIRECTIONS, and CHANGE_STATUSES, and contain non-empty evidence_refs. Each evidence ref must be an exact-key dict matching REF_KEYS and is grounded only when its source_id resolves to string source text and its non-empty quote occurs verbatim in that text.
- 🟡 (01:09) src/institution_lab/governance_coding.py:304-315 classifies effective_institutional_change, announced_institutional_change, and proposal_only as institutional records requiring power_changes; non-institutional records must not contain power_changes; record_class="abstain" requires non-null ambiguity.
- 🟡 (01:09) Search found _nonempty(value: object) -> bool defined at src/institution_lab/governance_coding.py:118.