Skip to content

fix(roadmap): the strength check sets a denied env key - #5892

Merged
dan-petty merged 2 commits into
mainfrom
fix/5887-strength-check-no-denied-env
Nov 15, 2026
Merged

dan-petty merged 2 commits into
mainfrom
fix/5887-strength-check-no-denied-env

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The strength check of the implement job set PYTEST_ADDOPTS, which the process runner refuses (#2747), so each implement run stopped at the scoped checks with the class ci_infra and was retried on each new runner image.

  • The mutation run gives mutmut 3.8.1 the scoped test modules in pytest_add_cli_args_test_selection of [tool.mutmut] (mutmut run takes no pytest argument). It edits pyproject.toml with tomlkit for the run, writes the original bytes back in a finally, and sets no environment key. The env deny list does not change.
  • A SecurityError that ends an implement run stops with refused_tool (action wait), so the rule digest does not clear it.
  • New dependency: tomlkit==0.15.2 (MIT).
  • A test gives the recorded environment of the run to the real build_subprocess_env. test(tests): the process fake skips the env check of the runner #5891 tracks the process fake, which skips that check.

Closes #5887

Change: openspec/changes/archive/2026-11-15-5887-strength-check-no-denied-env/

@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them labels Nov 15, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Check results

Head commit: ba305f2812b9261071465ae110be9d46b79ae008

Check Conclusion Link
Tests & Coverage success run
devops-cli success run
zizmor success run
trivy-config success run
Service Image Tests (shard 3 of 6) success run
Service Image Tests (shard 5 of 6) success run
Service Image Tests (shard 4 of 6) success run
Service Image Tests (shard 2 of 6) success run
Service Image Tests (shard 6 of 6) success run
Service Image Tests (shard 1 of 6) success run
CodeQL success run
Plan Check skipped run
Test Job Duration skipped run
Dependency Freshness skipped run
Tests on Main skipped run
Runner Image success run
Design Tokens success run
Service Image success run
Changed-Test Independence success run
Tests & Coverage (shard 3 of 4) success run
Tests & Coverage (shard 2 of 4) success run
Tests & Coverage (shard 1 of 4) success run
MCP Server Image success run
Analyze (actions) success run
Fail-to-Pass Check success run
Tests & Coverage (shard 4 of 4) success run
DevContainer Image success run
Static Analysis success run
Docs Site Build success run
Analyze (python) success run
Service Image Build success run
Semantic PR title success run

Fail-to-pass run: https://github.com/dan-petty/devops-cli/actions/runs/43762396238/job/132959863853

Skipped check: Plan Check
Skipped check: Test Job Duration
Skipped check: Dependency Freshness
Skipped check: Tests on Main

@dan-petty
dan-petty marked this pull request as ready for review November 15, 2026 21:23
@dan-petty

Copy link
Copy Markdown
Owner Author

Vet: SAFE. The test selection goes into [tool.mutmut] pytest_add_cli_args_test_selection for the time of mutmut run, and no environment key is set, so the env deny list of #2747 stays as it is. The current table holds only --ignore and --deselect entries, so the scoped test paths after them narrow the stats run as PYTEST_ADDOPTS did. The finally gives the file its bytes again, also on a timeout or an error. A SecurityError is now refused_tool (action wait), so a rollout does not retry it. tomlkit (MIT, maintained by the Poetry project) is a new direct dependency; tomllib cannot write TOML. The checks pass, and the branch holds origin/main.

After this merges and the runner image rolls out, #3387, #3239 and #3529 (stopped as ci_infra on this error) can run again.

@devops-cli-service

Copy link
Copy Markdown
Contributor

Pull request #5892 has merge conflicts with main at commit ba305f2812b9. GitHub cannot merge it. Rebase the branch onto the current main, resolve the conflicts and push the branch.

The mutation run gives mutmut the scoped test modules in
pytest_add_cli_args_test_selection of [tool.mutmut] for the run, and
sets no environment key. A SecurityError that ends an implement run
stops with the class refused_tool, not ci_infra.
@dan-petty
dan-petty force-pushed the fix/5887-strength-check-no-denied-env branch from ba305f2 to 37d6a61 Compare November 15, 2026 23:18
@dan-petty
dan-petty merged commit 509a14e into main Nov 15, 2026
32 checks passed
@dan-petty
dan-petty deleted the fix/5887-strength-check-no-denied-env branch November 15, 2026 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(roadmap): the strength check sets a denied env key

1 participant