Skip to content

test(eval): precision scoring and a pinned-corpus edge gate for resolution - #27

Merged
bompus merged 1 commit into
fork/consolidatedfrom
t3code/recreate-codegraph-in-rust
Sep 12, 2026
Merged

bompus merged 1 commit into
fork/consolidatedfrom
t3code/recreate-codegraph-in-rust

Conversation

@bompus

@bompus bompus commented Sep 12, 2026

Copy link
Copy Markdown
Owner

Summary

Phase 0 of docs/design/resolution-binding-model-plan.md: the evaluation runner can now see a wrong edge.

Baseline (codegraph 1498c2ff)

Corpus Index Edges fuzzy Cases
vite 3.3 s 28,893 16 5 absent held, 1 control held
vitest 5.8 s 75,035 28 1 absent held
svelte 7.9 s 70,432 159 1 absent held

Verification

  • evaluation-edge-scoring.test.ts: 5 tests pass.
  • Three real-corpus runs as above, all green.
  • npx tsc --noEmit clean; npm run check:agent-docs passes.

…ution

Phase 0 of docs/design/resolution-binding-model-plan.md.

The evaluation runner scored recall only, so a wrong edge — the thing
the resolution PR chain (colbymchenry#1713, colbymchenry#1718, colbymchenry#1746, colbymchenry#1844) exists to remove —
was invisible to it. scoring.ts gains scoreEdgeCase: an EdgeCase names
a kind, a target endpoint (file suffix + symbol) and optionally a source,
and expects the edge absent (known-wrong) or present (control).
evaluation-edge-scoring.test.ts pins it on a synthetic project with the
bare-import and sealed-module shapes and proves it flags a violated case
and a missing endpoint.

edge-cases.ts encodes the edges the PR bodies named on the commits they
measured (full SHAs): vite 8492422b (colbymchenry#1713 self-import + getEnv, colbymchenry#1718
two fuzzy nested calls, colbymchenry#1746 sealed defineConfig -> test-stacktrace.js
vite, one relative-import control), vitest 7c818153 (evaluatedModules),
svelte 5895c637 (bundle). npm run eval:precision -- <corpus> fetches the
pinned commit, indexes, scores, prints the resolved-edge histogram by
resolver (the LOST/GAINED methodology) and writes a report; the three
baseline reports at codegraph 1498c2f are committed:
vite 28,893 edges / fuzzy 16, vitest 75,035 / 28, svelte 70,432 / 159;
every absent case held, the control held.
@bompus
bompus merged commit 72a5703 into fork/consolidated Sep 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant