Skip to content

fix(roadmap): stop refusing test paths in base docstrings - #4826

Merged
dan-petty merged 3 commits into
mainfrom
fix/4791-base-docstring-test-paths
Nov 11, 2026
Merged

dan-petty merged 3 commits into
mainfrom
fix/4791-base-docstring-test-paths

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The stage gate refused a plan for a test path that the plan did not write. _stale_test_path_problems read the docstrings of each changed .py file at the staged base commit, and refused each tests/...py path in them that names no file. Many such paths are example inputs or old locations. The plan cannot change that text, so no repair reply could pass. On 2026-11-11 this problem refused 4 of 11 stage items, and it was the only problem left after the repair of two of them.

The gate now reads test paths only from the specs of the plan. The message and the same-name hint stay for a spec that names a missing test file. _docstrings_in and the tests of the docstring scan are deleted.

Closes #4791

Change: openspec/changes/archive/2026-11-11-4791-stop-refusing-test-paths-in-base/

The stale test path gate read the docstrings of each changed .py file
at the staged base commit and refused each test path in them that names
no file. The plan cannot change that text, so no repair reply could
pass. The gate now reads test paths only from the specs of the plan.

Refs #4791
@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 11, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Fail-to-pass

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

failed on base: tests.roadmap.stage.test_roadmap_stage_form::test_a_test_path_in_the_base_docstring_of_a_changed_file_is_not_refused (AssertionError: assert not ['The test path `tests/test_x.py` names no file of the staged commit. Correct the path or add the test file. No file has this name.'])
1 failed on base (1 failed and 69 passed in tests/roadmap/stage/test_roadmap_stage_form.py; 0 errored).

The test passes on the branch. uv run devops ci test tests/roadmap/stage/: 2370 passed, 1 skipped.

Stage replay

uv run devops roadmap eval stage --replay --json, on the base (origin/main at 84df338) and on the change. The two reports are identical (exit 0 on both):

Base Change
Cases 58 58
Known defects / judged 319 / 82 319 / 82
paths gate caught / known 53 / 53 53 / 53
kind gate caught / known 25 / 25 25 / 25
content gate caught / known 3 / 3 3 / 3
prompt_keys gate caught / known 1 / 1 1 / 1
Good plans passed 5 / 5 5 / 5
Failures 0 0

No golden case depends on the base docstring scan, so no gate stops refusing a known-bad plan.

Evidence of the defect

A replay of missing_test_paths over the base docstrings of the changed files of each refused plan of 2026-11-11 gives exactly the paths of the refusal texts: #4401, #3398, #4472 and #2530. In #3398 and #4401, this was the only problem left after the repair reply. #4498 and #4591 added only a same-name hint, and #4401 failed again with the hint.

Live steps

None. The fix goes live with the next release of the Service image. No setting or ConfigMap changes.

@dan-petty
dan-petty marked this pull request as ready for review November 11, 2026 22:12
@dan-petty
dan-petty enabled auto-merge (squash) November 11, 2026 22:12
@dan-petty
dan-petty merged commit 1bbfce0 into main Nov 11, 2026
28 of 43 checks passed
@dan-petty
dan-petty deleted the fix/4791-base-docstring-test-paths branch November 11, 2026 22:20
dan-petty pushed a commit that referenced this pull request Nov 11, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.114.0](v0.113.0...v0.114.0)
(2026-11-11)


### Features

* **k8s:** add cert-manager and the Barman Cloud plugin
([#4789](#4789))
([cd6fb76](cd6fb76))
* **roadmap:** collect the git facts of a project review window
([#4794](#4794))
([21d1bc0](21d1bc0))
* **roadmap:** consolidate has a read-only MCP mirror
([#4807](#4807))
([2ec561d](2ec561d))


### Bug Fixes

* **ai:** devops ai agents detects the project manifest
([#4790](#4790))
([e8d1e53](e8d1e53))
* **mcp:** bound the gh resources longer than a GitHub read
([#4844](#4844))
([7f09921](7f09921))
* **roadmap:** run stage before refine on the model lane
([#4841](#4841))
([96c9bee](96c9bee))
* **roadmap:** stop refusing test paths in base docstrings
([#4826](#4826))
([1bbfce0](1bbfce0))
* **telemetry:** key the project gauges by repository
([#4804](#4804))
([9f0e0c8](9f0e0c8))


### Performance Improvements

* **ci:** run the in-image suite nightly and on image pull requests
([#4828](#4828))
([a2cfd9a](a2cfd9a))

---
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): stop refusing test paths in base docstrings

1 participant