Skip to content

fix(roadmap): skip Python keywords in stage removal names - #6349

Merged
dan-petty merged 4 commits into
mainfrom
fix/6328-skip-keywords-removal-names
Nov 19, 2026
Merged

dan-petty merged 4 commits into
mainfrom
fix/6328-skip-keywords-removal-names

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

find_removed_names kept each backticked span after a removal verb when str.isidentifier() was true. A plan line such as "drops and from the title" made and a removed name, the scan found it in every Python file under tests/, and the stage failed with RoadmapStageError. A Python keyword is never an entity that a plan removes. The function now also refuses a span that the standard-library keyword module reports as a hard keyword (keyword.iskeyword) or a soft keyword (keyword.issoftkeyword). One private helper holds this rule for the active and the passive match paths.

Closes #6328

Change: openspec/changes/archive/2026-11-19-6328-skip-keywords-removal-names/

@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 19, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Test record of this pull request.

Fail-to-pass (uv run devops ci fail-to-pass --base origin/main):

failed on base: tests.roadmap.stage.test_roadmap_stage_removal_references::test_find_removed_names_skips_a_python_keyword[hard-keyword] (AssertionError: assert {'and'} == set())
failed on base: tests.roadmap.stage.test_roadmap_stage_removal_references::test_find_removed_names_skips_a_python_keyword[soft-keyword] (AssertionError: assert {'match'} == set())
failed on base: tests.roadmap.stage.test_roadmap_stage_removal_references::test_find_removed_names_skips_a_python_keyword[passive-keyword] (AssertionError: assert {'and'} == set())
failed on base: tests.roadmap.stage.test_roadmap_stage_removal_references::test_a_plan_that_drops_a_keyword_has_no_unhandled_test_reference (AssertionError: assert not True)
4 failed on base (4 failed and 42 passed in tests/roadmap/stage/test_roadmap_stage_removal_references.py; 0 errored).

Local checks on the final code:

  • uv run devops ci test tests/roadmap/stage/test_roadmap_stage_removal_references.py: 46 passed.
  • uv run mypy src/devops_cli/roadmap/stage/stage_removal_references.py: no issues.
  • uv run ruff check and uv run ruff format --check on the two changed Python files: pass.
  • uv run devops ci --check --only lint,format,docs,constructs,openspec,test-settings,test-tree,startup-imports,swallowed-failures: all rows pass.

No live step is necessary.

@dan-petty
dan-petty marked this pull request as ready for review November 19, 2026 01:29
@dan-petty
dan-petty merged commit 5e6822d into main Nov 19, 2026
24 checks passed
@dan-petty
dan-petty deleted the fix/6328-skip-keywords-removal-names branch November 19, 2026 01:29
dan-petty-release Bot added a commit that referenced this pull request Nov 19, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.179.2](v0.179.1...v0.179.2)
(2026-11-19)


### Bug Fixes

* **ai:** retry gateway connect failures and reset streams
([#6345](#6345))
([f0a5435](f0a5435))
* **deps:** drop the ignore of the withdrawn picomatch advisory
([#6348](#6348))
([1447ec3](1447ec3))
* **k8s:** loosen the stage limits and correct the Service config notes
([#6356](#6356))
([397d066](397d066))
* **roadmap:** skip Python keywords in stage removal names
([#6349](#6349))
([5e6822d](5e6822d))
* **roadmap:** Tell the stage planner what counts as source code
([#6335](#6335))
([b9060f5](b9060f5))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
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): Skip Python keywords in stage removal names

1 participant