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
Open
feat(test_file_weakened): per-file anti-gaming (catch a strong-for-weak test swap)#12johnpatrickwarren-oss wants to merge 1 commit into
johnpatrickwarren-oss wants to merge 1 commit into
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #11. The net
test_signalfloor 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_weakenedcloses that gap: counts tracked test files whose active signal dropped vs HEAD (git-based, likeconfig_relaxations); pair withmax: 0. Catches a per-file swap/skip/trim even when net signal grows. Abstains when there's no git HEAD.test-arch-testfileweakened.mjscovers the net-grows-but-a-file-weakened case + clean case. 37/37 suites, self-gate green.🤖 Generated with Claude Code