Expand description
Pure, bounded evaluation of provider-supplied code vectors.
This prototype deliberately owns no extraction, model, network, subprocess, or public output behavior. Orchestration validates provider consent and then passes vectors into this deterministic layer.
Structs§
- Function
Location - Complete location of one function in UTF-8 source text.
- Function
Vector - One extracted function and its provider-supplied vector.
- Similar
Code Candidate - One advisory similar-code pair.
- Similar
Code Completion - Machine-readable completion evidence for one run.
- Similar
Code Corpus Selection - Deterministic bounded corpus chosen before provider inference.
- Similar
Code Evaluation - Results and boundedness evidence for one candidate-evaluation run.
- Similar
Code Limits - Hard limits for one candidate-evaluation run.
- Similar
Code Selection Input - Source identity available before provider inference.
- Similar
Code Skip - Omitted-work count for one stable reason.
- Similar
Code Source Digest - Full SHA-256 digest of one exact extracted function source fragment.
- Similar
Code Vector Cache - Separate FIFO cache with a bounded vector-payload budget.
- Vector
Cache Key - Identity for one vector-cache entry.
Enums§
- Similar
Code Completion Status - Whether all eligible work within the supplied corpus was evaluated.
- Similar
Code Error - Invalid input rejected before candidate output is produced.
- Similar
Code Skip Reason - Why an evaluation omitted otherwise eligible work.
- Similar
Code Verification Status - Candidate verification state.
Constants§
- EXTRACTION_
SEMANTICS_ VERSION - Extraction semantics understood by the first similar-code source contract.
Functions§
- evaluate_
selected_ similar_ code - Evaluate only the vectors produced for a prior source-corpus selection.
- evaluate_
similar_ code - Evaluate provider-supplied vectors with bounded brute-force cosine search.
- select_
similar_ code_ corpus - Select a deterministic fair corpus before provider inference.
- validate_
function_ vectors - Validate vectors without generating pair candidates.