Skip to content

docs(openspec): fix plan #2747 refuse two probed keys - #3079

Merged
dan-petty merged 2 commits into
mainfrom
docs/2747-fix-plan
Nov 1, 2026
Merged

dan-petty merged 2 commits into
mainfrom
docs/2747-fix-plan

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

This pull request corrects the plan for issue #2747. The Service staged the plan in pull request #2870.

The corrected plan makes the subprocess environment guard refuse two more keys: PYTEST_ADDOPTS and npm_config_logs_dir. Probes showed these keys. No caller sets them.

The plan keeps npm_config_cache and the rest of the npm_config_* family accepted. It now states the reason. The install_npm_tool function sets npm_config_cache, so a refusal would need a code change.

The change touches only the plan folder. It changes no code and no test.

Plans #2747

… key

The family pattern NPM_CONFIG_* refused the keys that devops install-tools sets, and it broke two tests. The plan now refuses PYTEST_ADDOPTS and npm_config_logs_dir, keeps npm_config_cache accepted with the reason, and holds the probe output, the test file of the file-write keys, and a spec delta that modifies the base requirements.
@dan-petty dan-petty added type/docs Type docs: a change to the documents scope/openspec OpenSpec changes, specs and their checks labels Nov 1, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Changes

  • The plan now refuses PYTEST_ADDOPTS and npm_config_logs_dir. Probes showed both keys. No caller sets them.
  • The plan keeps npm_config_cache and the rest of the npm_config_* family accepted. The plan gives the reason: install_npm_tool sets npm_config_cache.
  • Edited files: proposal.md, design.md, tasks.md and the subprocess-environment spec delta.

Evaluation of PR #2870

The evaluation findings were leads. I checked each one against origin/main. The fix stage confirmed the two probed keys. A script found no missing path in the plan.

Point for the owner

The refine acceptance criterion of the issue says to refuse the whole npm_config_* family. The plan does not do this, because it cannot be built without a code change. The issue body allows it: "or the design names each such key that it accepts and the reason".

A stricter choice exists. Refuse npm_config_cache too, and change install_npm_tool to pass --cache as an argument. This adds a code change. The design rejected it.

Verification

  • openspec validate --strict: pass.
  • uv run devops openspec check: pass.
  • tests/invariants/test_change_folders.py: 17 passed.
  • I applied the planned change by hand and ran the four named test files: 698 passed. I then reverted the code.
  • origin/main merged into the branch before the first push. No conflict.

@dan-petty
dan-petty marked this pull request as ready for review November 1, 2026 14:09
@dan-petty
dan-petty merged commit 8c86fad into main Nov 1, 2026
19 checks passed
@dan-petty
dan-petty deleted the docs/2747-fix-plan branch November 1, 2026 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/openspec OpenSpec changes, specs and their checks type/docs Type docs: a change to the documents

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant