Code harvest & verification
Two related tracks: pointers (repos / harvested samples attached to methods) and artifacts (verified reference implementations with a verification ladder).
Pointer / harvest lane (continuous)
Typical chain:
discover_code_surfacing_candidates.py/discover_paper_level_candidates.pyclassify_code_surfacing_batch.py(GitHub)stream_harvest_follower.py→CodeSamplenodes, state instream_harvest_state.jsonsynthesize_probe_inputs.py/synthesize_fixtures.pyprobe_harvested_contracts.pyassign_roles_harvested.py→attach_harvested_to_methods.py- Loop wrappers:
run_contract_pipeline_loop.sh, launchd KeepAlive
Edges: HAS_HARVESTED_IMPL, IMPLEMENTS (with roles), plus repo-level
IMPLEMENTED_BY / PapersWithCode loaders.
Artifact / verification ladder
groundwork/13_impl_generation_verification/ — batch cycles, V0–V4 ladder,
verification_ladder.py. groundwork/14_code_ontology_surface/ —
load_*.py, graph_write_guard.py (refuses edge regression / role
downgrade). 21_reconcile_served_levels.py writes down verification already
held.
Served via MCP/REST: get_reference_implementation,
list_reference_implementations (min verification floor; refuse rather than
under-serve). Human page: /code.
Risks
- Continuous writers need writer credentials and ledger discipline.
- State JSON files must not be hand-edited.
- Unbacked
verification_levelis invalid (R2); readers treat as 0.