test: git history as a free oracle for changed_symbols / review_diff / handle resolution #50
Labels
No labels
code-review
correctness
dos
performance
security
severity/high
severity/low
severity/medium
tech-debt
Kind/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
h-dv/code-index#50
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
P3 — a labelled dataset that already exists. Depends on #40 (history=true repos).
From
_prdoc/records/brainstorm-2026-07-28-oss-corpus-test-system.md§2.4.Why
Every commit in a real repo is a labelled change-set. The diff tools have a free, large, realistic test set and currently use none of it.
This matters because I034's freshness barrier permanently bricked
changed_symbolsandreview_diffon any repo with a tracked file underdist//bin//obj/— and CI stayed green. A history-driven oracle is the direct guard against that class.Three oracles
1. Span oracle (HARD assertion).
changed_symbols(C~1..C)must exactly equal the set of symbols whose spans intersect the diff hunks — computable from git plus the index alone, no external tooling. Run it across hundreds of commits.2. Rename/move torture (HARD).
Real history contains file renames, mode changes, and merges — exactly the inputs
cih2_handle resolution claims to survive (exact/moved_or_changed/ambiguous/missing). Replay them and count misclassifications. Today handles are tested only on synthetic renames.3. Fix-commit impact recall (DIAGNOSTIC ONLY).
For a bug-fix commit, seed
change_impactfrom the parent's touched symbols and ask whether the files the fix actually touched appear. Measures impact recall against reality — but must not gate: a fix touching unrelated files is not our defect. Report as a trend.Interaction with #39
#39 replays history through the watcher; this issue replays it through the diff tools. Same fetched repos (
history = true), different assertion surface — build the checkout-driver once and share it.Acceptance