Dashboard › institutional-transition-lab › Distillation
f75d5fdb-ed71-468c-9aa2-412e378ecd0f["lore_tm_v1_qBK8QJ2cS8vUr4L6FVJs6KSFpNwhAv3UHCvXPa1e7Nc","lore_tm_v1_klcwjmUXAPEDZkdS85hW5aXC5DSmI0_x7a42QSkOJaw","lore_tm_v1_cG668zvgwVSsC14c3xf-CmqF-10QZrRVh0iVWAX15t8","lore_tm_v1_IUqCEDWNyh9TkhnO0mhFxudz1QtHodErpbnkdH-8TnA","lore_tm_v1_a6x12ORpGUpLRBE55MrGHin9H_I-ZAJ6wnIw-c6qXJI","lore_tm_v1_9FokKuqQ9uD37HBgcM9ipZvGcdmQx3syi_DBKNMzOWo"]
Date: Sep 9, 2026
pytest was unavailable: /usr/bin/bash: line 1: pytest: command not found./home/byk/Code/institutional-transition-lab/src/institution_lab/governance_adjudication.py defines archive limits: MAX_INPUT_BYTES = 16 * 1024 * 1024, MAX_ARTIFACT_BYTES = 32 * 1024 * 1024, MAX_ARCHIVE_MEMBERS = 128, MAX_ARCHIVE_MEMBER_BYTES = 16 * 1024 * 1024, and MAX_ARCHIVE_EXPANDED_BYTES = 64 * 1024 * 1024._verify_input_payloads() uses zipfile.ZipFile(io.BytesIO(artifact)), rejects more than MAX_ARCHIVE_MEMBERS, duplicate info.filename entries, and total declared info.file_size above MAX_ARCHIVE_EXPANDED_BYTES; for documents.json and v1.2-adjudication-package.json, it checks declared info.file_size, reads through archive.open(info).read(MAX_ARCHIVE_MEMBER_BYTES + 1), checks actual decoded length, and requires exact equality with durable input bytes. It normalizes only zipfile.BadZipFile to ValueError("artifact is not a valid ZIP archive")._read_regular_file() opens with os.O_RDONLY | os.O_NONBLOCK | getattr(os, "O_NOFOLLOW", 0), requires a regular file via stat.S_ISREG, and enforces limits using both metadata.st_size and a read(max_bytes + 1)._parse_json_object() rejects duplicate JSON keys through _reject_duplicate_keys, rejects non-finite constants through _reject_non_finite_number, and requires the parsed top-level value to be a dict.zipfile despite the underlying decoder not reaching EOF: zipfile_accepted=True decoded=1920 codec_eof=False crc_matches=True compressed=32/33./home/byk/Code/institutional-transition-lab/tests/test_governance_adjudication.py defines MAX_TEST_ARCHIVE_MEMBERS = 256; _write_pinned_cli_inputs() creates artifact.zip containing documents.json and v1.2-adjudication-package.json, builds all frozen hashes with file_sha256()/canonical_sha256(), and monkeypatches governance_adjudication.FROZEN_INPUT_PINS.src/institution_lab/governance_adjudication.py and tests/test_governance_adjudication.py; user explicitly prohibited editing files.ZipExtFile.read(n); compressed-stream EOF and trailing-byte validation; decoded-size and CRC verification; data-descriptor handling and boundaries for the current pinned archive; malformed/truncated streams whose decoded payload or CRC could otherwise match; and normalized codec exceptions.SUBSTANTIVE, or an exact blocker with tool/error evidence ending exactly BLOCKED.0 16 18 1 ab564ac94f2ecd4dcd2b2956b28a8ead0500; 1 17 19 1 ab564ac94f2ecd4dcd2b2956b28a8ead550000; 8 24 20 1 ab564ac94f2ecd4dcd2b2956b28a8ead55800200; 64 80 21 1 ab564ac94f2ecd4dcd2b2956b28a8ead55a0100000; 128 144 21 1 ab564ac94f2ecd4dcd2b2956b28a8ead5518600000; 256 272 21 1 ab564ac94f2ecd4dcd2b2956b28a8ead5518e10000; 1024 1040 26 1 ab564ac94f2ecd4dcd2b2956b28a8ead551805a360148c580000.