Repository navigation
docs(openspec): plan #2116 use PATH stand-ins for scanner tests - #2977
Merged
Merged
Conversation
dan-petty
marked this pull request as ready for review
November 1, 2026 10:15
This was referenced Nov 1, 2026
dan-petty
added a commit
that referenced
this pull request
Nov 1, 2026
This change corrects the plan for #2116 in place. The first plan, staged in #2977, named a test path that is not on main. Its spec delta, its meta-test and its verify commands were wrong. The corrected plan names the real file, tests/security/test_scanner_tool_executor.py. It replaces the shutil.which patch with executable stand-in files on PATH, the same way as scanner_fake. It drops the spec delta and sets skip_specs, because the change touches only a test fixture. Its verify commands now run on main. The change touches only the plan folder. It changes no code and no test. Plans #2116
dan-petty
pushed a commit
that referenced
this pull request
Nov 2, 2026
…ot need Tests for the two new refusals of check_proposal, the purpose and the requirement names in the model input, and the replay of the plan of #2977. They fail on the base. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PeiMDoPafqUWqpk1WxhaYW
dan-petty
pushed a commit
that referenced
this pull request
Nov 2, 2026
The stage job now refuses a plan that carries a spec delta its changed paths do not need. - `check_proposal` refuses `skip_specs: false` when every `changes` path is under `tests/`, `.github/workflows/`, `docs/` or `openspec/`. - It refuses an ADDED requirement whose name the base spec of that capability already has. - The model input lists each capability with its purpose and requirement names. - Both problem texts go back to the model through the existing one-time retry. - The recorded plan of #2977 is refused by the `paths` gate in the replay. Fail-to-pass against `origin/main`: the new refusal, input and replay tests fail on the base. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01PeiMDoPafqUWqpk1WxhaYW Closes #3013 Change: `openspec/changes/archive/2026-11-02-3013-the-stage-job-refuses-a-spec/` --------- Co-authored-by: devops-cli-service[bot] <349441588+devops-cli-service[bot]@users.noreply.github.com> Co-authored-by: Claude <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.
Plans #2116
Replace the autouse fixture scanners_installed in tests/test_scanner_tool_executor.py. It currently patches shutil.which to make review scanners look installed. Since #1982, the shared scanner_fake fixture makes scanners findable by putting executable stand-ins on PATH and patches no shutil or subprocess name. This change applies the same mechanism to the fixture in this test file, so no test in the file patches a shutil or subprocess name. The existing tests pass unchanged.
Change:
openspec/changes/2116-the-scanner-executor-tests-find-the/