Skip to content

test: gate the tool output agents actually read - #5

Merged
maxgfr merged 1 commit into
mainfrom
real-shapes
Sep 10, 2026
Merged

maxgfr merged 1 commit into
mainfrom
real-shapes

Conversation

@maxgfr

@maxgfr maxgfr commented Sep 10, 2026

Copy link
Copy Markdown
Owner

The failing-suite defect fixed in #3 was found by hand while writing the README, not by the eight synthetic fixtures. That is a statement about the fixture set: it was built from shapes that were easy to generate, not from what an agent reads all day.

This adds the four most common ones as a gate:

Shape Input View Kept
cargo build with a warning and a type error among 420 compile lines 13,653 790 94.2%
tsc with one TS2322 among 400 checked files 17,907 481 97.3%
pytest -v with one failure among 400 passes 27,996 1,001 96.4%
git diff with the real hunk before 60 generated ones 11,774 952 91.9%

Each asserts that the evidence deciding the outcome survives, that the view is at most half the input, and that the original bytes round-trip. All four already pass, so this locks in behaviour rather than changing it.

The failing-suite defect was found by hand while writing the README, not
by the eight synthetic fixtures, which is a statement about the fixture
set: it was built from shapes that were easy to generate, not from what
an agent reads all day. Close that gap for the four most common ones.

A cargo build with a warning and a type error among 420 compile lines,
a tsc run with one TS2322 among 400 checked files, a pytest -v run with
one failure among 400 passes, and a git diff whose real hunk sits before
60 identical generated-file hunks. Each asserts that the evidence
deciding the outcome survives, that the view is at most half the input,
and that the original bytes still round-trip.

All four pass on the current engine at 92% to 97% reduction, so this
locks in behaviour rather than changing it.
@maxgfr
maxgfr merged commit 9b608cb into main Sep 10, 2026
6 checks passed
@maxgfr
maxgfr deleted the real-shapes branch September 10, 2026 21:01
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