Skip to content

feat(test_file_weakened): per-file anti-gaming (catch a strong-for-weak test swap)#12

Open
johnpatrickwarren-oss wants to merge 1 commit into
mainfrom
feat/per-file-test-weakening
Open

feat(test_file_weakened): per-file anti-gaming (catch a strong-for-weak test swap)#12
johnpatrickwarren-oss wants to merge 1 commit into
mainfrom
feat/per-file-test-weakening

Conversation

@johnpatrickwarren-oss

Copy link
Copy Markdown
Owner

Follow-up to #11. The net test_signal floor guards total test strength, so it permits weakening one file's tests while adding new ones elsewhere (net-positive) — which the value study showed agents actually do under pressure.

test_file_weakened closes that gap: counts tracked test files whose active signal dropped vs HEAD (git-based, like config_relaxations); pair with max: 0. Catches a per-file swap/skip/trim even when net signal grows. Abstains when there's no git HEAD.

test-arch-testfileweakened.mjs covers the net-grows-but-a-file-weakened case + clean case. 37/37 suites, self-gate green.

🤖 Generated with Claude Code

…eak test swap

The net test_signal floor (#11) guards TOTAL test strength, so it permits weakening one
file's tests while adding new ones elsewhere (net-neutral/positive) — which the value study
showed agents actually do under pressure. test_file_weakened closes that: it counts tracked
test files whose active signal DROPPED vs HEAD (git-based, like config_relaxations), pair
with max:0. Catches a per-file swap/skip/trim even when net signal grows.

Refactors the shared signal/walk helpers out of testSignalCount. test-arch-testfileweakened.mjs
covers the net-grows-but-a-file-weakened case + the clean case. 37/37 suites; self-gate green.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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