Dashboard › institutional-transition-lab › Distillation
797e6c54-4711-455c-a2d0-b780f8ef523d["lore_tm_v1_b3eNmgnbIHdznom1by1yyw23TU1PrfbPDRReW9kGnfc","lore_tm_v1_zFGckgI3Nm4B7m81onwhSERPDvL-4zY03aLPwcNgC3M"]
/home/byk/Code/institutional-transition-lab, covering a versioned adjudication schema, validator, 40-record adjudication artifact, and audit summary; explicitly prohibited file edits.file:line citations for every claim and asked to identify: existing schema drafts/styles; validator CLI and error conventions; closest tests/fixtures; targeted and full verification commands from package/pyproject; customary locations for frozen research artifacts and provenance manifests; safeguards excluding unresolved/abstained records from canonical ledgers; and the smallest concrete file/symbol set to add or modify./home/byk/Code/institutional-transition-lab/tests/test_source_retrieval.py:6-7 imports GitHubRestClient from institution_lab.github_client and collect_source_candidates, validate_protocol from institution_lab.source_retrieval./home/byk/Code/institutional-transition-lab/tests/test_source_retrieval.py:10-30 defines fixture helper _protocol() with schema_version=1, collection_id="retrieval-test-v1", design_status="development", transition_dates_excluded=True, outcome_data_used=False, study period 2024-01-01 through 2024-12-31, entity repository acme/example, governance/licensing/ownership queries, and selection limits of 100 results per query, 1 candidate per entity, and 500 document characters./home/byk/Code/institutional-transition-lab/tests/test_source_retrieval.py:33-45 defines _item(number, title, body, *, pull_request=False) to construct GitHub issue fixtures with deterministic URL/timestamps and author alice; when pull_request=True, it adds a pull-request API URL./home/byk/Code/institutional-transition-lab/tests/test_source_retrieval.py:48-109 uses httpx.MockTransport, tmp_path, and a context-managed GitHubRestClient to test collect_source_candidates; the assertions verify candidate count 2, selected count 1, exclusion/provenance flags, required query IDs, exact output document keys, selected ID example-github-issue-1, deduplicated query IDs ["license", "ownership"], and text_truncated=True./home/byk/Code/institutional-transition-lab/tests/test_source_retrieval.py:93-102 expects each retrieved document to have exactly these keys: document_id, entity_id, publisher, published_on, source_url, source_type, source_context, and text./home/byk/Code/institutional-transition-lab/tests/test_source_retrieval.py:112-123 parameterizes invalid protocol mutations and expects validate_protocol() to raise ValueError with field-specific message matching: adding transition_dates must mention "transition_dates", and setting outcome_data_used=True must mention "outcome_data_used"./home/byk/Code/institutional-transition-lab/tests/test_source_retrieval.py:126-130 verifies that a query term containing created:2024-03-01 is rejected by validate_protocol() with ValueError matching "forbidden GitHub qualifier".