Dashboard › institutional-transition-lab › Distillation
dc7edda5-d07f-48cd-89b4-942d603f20cc["lore_tm_v1_CTROTt7_B8qE-lR9hMbRbim7sV2ltlMuWAOHvUDlBfg"]
Date: Sep 9, 2026
/home/byk/Code/institutional-transition-lab/src/institution_lab/governance_adjudication.py defines DECISIONS = {"accept", "revise", "reject", "abstain"}, INSTITUTIONAL_CLASSES = {"effective_institutional_change", "announced_institutional_change", "proposal_only"}, REVIEWER_TYPES = {"human", "llm", "human_llm_assisted"}, REVIEWER_ROLES = {"source_adjudicator", "evidence_auditor", "synthesizer"}, and RESPONSE_SOURCES = {"luna_a", "luna_b", "terra_advisory"}.REQUIRED_INPUT_PINS contains exactly 9 keys: workflow_run_id, artifact_id, artifact_sha256, documents_sha256, documents_file_sha256, coding_package_file_sha256, protocol_sha256, coding_schema_sha256, and adjudication_schema_sha256.FROZEN_INPUT_PINS identifies workflow_run_id=33063470968, artifact_id=9642983578, artifact_sha256="1f6be91fcd98e43e99d82d5f274536f6c23616e7e6c711e26324a2cc4b06ef06", documents_sha256="d70f7f795847968339a645b6dbd6d4428af6bd6044de44fa2602d4c4343b0ee9", documents_file_sha256="2a62ab05687982c112a29f6126227c26c3ff8defc89ca64662753aaf85c3c0ce", coding_package_file_sha256="14644759f53071adfe1173d4e25bb01931b8c1591fa8a48295dbd0556a754769", protocol_sha256="06d4b3407677fe7fb23046f70164a366db06638e8a29af3daf7661f00d565933", coding_schema_sha256="bfc735a7d8602d1f236a88c2d23b195f0600a8bae86fb8c8936afe7883a41b8e", and adjudication_schema_sha256="6181f5cb60a0462f83be00be301763daa89f11581e68ee1c46a84e8bf4e5be31".CLAIM_FIELDS contains record_class, event_kind, title, announced_on, effective_on, affected_scope, and body_patch_relation.VerifiedInputBundle has fields pins: dict[str, Any], documents: dict[str, Any], coding_package: dict[str, Any], and adjudication_schema: dict[str, Any].canonical_sha256(value) serializes with json.dumps(sort_keys=True, separators=(",", ":"), allow_nan=False).encode() and returns the SHA-256 hex digest; _bytes_sha256(payload) directly hashes bytes._validate_manifest_identity() requires the manifest to be a dict with exactly REQUIRED_INPUT_PINS; requires workflow_run_id and artifact_id to have exact type int and values of at least 1; then requires every field to equal FROZEN_INPUT_PINS, raising ValueError("input manifest does not identify frozen issue #4 input: {field}") on mismatch._verify_input_payloads() validates byte-level SHA-256 values for artifact_sha256, documents_file_sha256, coding_package_file_sha256, protocol_sha256, coding_schema_sha256, and adjudication_schema_sha256 before ZIP inspection; after archive checks, it parses documents, verifies documents_sha256 using canonical_sha256(documents_value), and parses the coding package and adjudication schema into VerifiedInputBundle.verify_input_manifest() redundantly calls _validate_manifest_identity() before _verify_input_payloads(), reads artifact with MAX_ARTIFACT_BYTES, reads the other five inputs with the default MAX_INPUT_BYTES, and returns only .pins._duplicates(values: list[str]) uses Counter and returns the set of values occurring more than once._source_index(document) indexes valid source dictionaries by string source_id to string text, then adds a synthetic record_metadata source containing compact, sorted JSON for record_id, source_url, published_on, publisher, and source_type.