Substrate Friction

Test selection for coding agents, 2026

An excerpt from our project demo. The repository contains the benchmark and its labels.

A CI benchmark that asks when a coding agent has enough evidence to skip tests.

Could the graph find the right test?

Jayati Ahuja and I built a CI gate for coding agents. I tested whether walking a Python call graph from a changed function would reach a test known to catch the bug. We used 172 labeled SWE-bench fixes from seven repositories.

A result that changed the tool

The type-resolved graph reached the guarding test for 72 of 172 fixes, about 42%. That fell well below our 95% threshold. I made the tool fall back to the full test suite whenever the evidence was too weak to justify skipping tests.

Guarding-test recall by graph class compared with a 0.95 threshold.
Measured recall for each graph class. The chart reports a separate sample size for each comparison.

Inspect the benchmark

The repository includes the data, commands, and comparison between extractors. A later tracing study reports results on a smaller subset, with its own sample size. Our team earned third place overall and a $1,500 team prize at HackHydra.

Python · HydraDB · Pyright · GitHub Actions