Skip to content

fix(security): block all existing-test edits, not just the reproduction - #17

Merged
Noumenon-ai merged 1 commit into
mainfrom
fix/block-all-test-edits
Jun 10, 2026
Merged

fix(security): block all existing-test edits, not just the reproduction#17
Noumenon-ai merged 1 commit into
mainfrom
fix/block-all-test-edits

Conversation

@Noumenon-ai

Copy link
Copy Markdown
Owner

A fix patch could weaken any existing test other than the attached reproduction, and in --no-repro mode (used by the UI, watchdog, and loop) no test was protected at all -- so a fix could pass by gutting the very tests it must satisfy (red-team finding). This contradicted the roadmap's own guarantee and undermines the reliability-layer thesis.

What: patch validation now rejects any patch that modifies/deletes ANY pre-existing test file (not just the reproduction), holding in --no-repro mode. New patch.block_test_edits config (on by default; opt-out). _is_test_path broadened to python/js/ts/go/java/ruby. ROADMAP/README updated to match.

Tests: 111 pass (+4: cross-test weakening blocked, --no-repro hole blocked, opt-out allowed, language coverage).

A fix patch could previously weaken any existing test OTHER than the attached
reproduction, and in --no-repro mode (used by the UI, watchdog, and loop) no test
was protected at all -- so a fix could pass by gutting the very tests it must
satisfy (red-team finding). Patch validation now rejects a patch that modifies or
deletes ANY pre-existing test file, governed by the new patch.block_test_edits
config (on by default; opt out to deliberately edit tests). _is_test_path
broadened to cover python/js/ts/go/java/ruby conventions. Roadmap and README
guarantee updated to match what the code now enforces.

111 tests pass (+4 covering the cross-test and --no-repro holes and the opt-out).
@Noumenon-ai
Noumenon-ai force-pushed the fix/block-all-test-edits branch from 93f9166 to 7e7d139 Compare June 10, 2026 15:30
@Noumenon-ai
Noumenon-ai merged commit 9b53838 into main Jun 10, 2026
3 checks passed
@Noumenon-ai
Noumenon-ai deleted the fix/block-all-test-edits branch June 10, 2026 15:31
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