Skip to content

feat(roadmap): let the step guard allow a recorded test removal - #3715

Merged
dan-petty merged 4 commits into
mainfrom
feat/3490-step-guard-allows-recorded-test-removal
Nov 6, 2026
Merged

dan-petty merged 4 commits into
mainfrom
feat/3490-step-guard-allows-recorded-test-removal

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The step guard refused each lost test, so a plan that orders a test removal could never pass: #2519 stopped twice on its own deletion and spent 4.5 million input tokens. The guard now allows a lost test that ## Weakened checks of the plan on the default branch names as path::name (path::Class.test_x for a test of a class). A person merges that plan, so that merge is the owner allowing the removal under rule 5. The class tests_lost takes the action wait, so a new runner image does not repeat the step. read_change reads the section, tests_kept reads the same record, and the plans of #2519, #2592, #2610 and #2636 record their removals.

Closes #3490

Change: openspec/changes/archive/2026-11-06-3490-step-guard-allows-recorded-test-removal/
Elapsed: 4.06s

…records

The step guard stopped each lost test, so a plan that orders the removal or
the rename of a test could never pass (#3490).

- The plan reader reads `## Weakened checks` of `proposal.md` into
  `StageProposal.weakened_checks`, and refuses a line in another form.
- The job reads the record from `origin/<default>`, never from the checkout,
  so only a plan that a person merged waives a test. The step, the fix step
  and the `wip:` commit lose only a test that the record does not name.
- The class `tests_lost` takes the action `wait`, so a new runner image no
  longer starts the same step again.
- The step prompt, the stop reason and docs/ROADMAP_WORKFLOW.md say the same
  as the guard.
- `load_case` adds the record of a fixture plan to `allow_lost_tests`, so
  `tests_kept` and the step read one list.
- The plans of #2519, #2592, #2610 and #2636 get an entry for each test they
  remove, and the plan of #3320 uses the reader and the form of this change.
The guard compares qualified names, so the entries of #2592 for the tests of
class TestTune waived nothing. Qualify them, add the renamed and moved tests
that the tasks of #2592 and #2610 name, and add an invariant that fails an
entry with no class or with another class. tests_kept reads an entry with a
class by the name after the last dot. Fix docs/roadmap/implement.md, the
spec delta of the wip commit, and the scope lines of the plan.
@dan-petty dan-petty added type/feature Type feature: a new function scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them labels Nov 6, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Checks for the review findings of this branch. I verified each one against the code at origin/main.

Findings that were right, and fixed in commit fix(roadmap): record each removed test of a plan by its class

  1. and 5. The five tests of fix(ai): remove weight recs from gateway tune #2592 in class TestTune had no class in the entry. recorded_tests against defined_tests of the base file showed all five as missing (TestTune.test_... is the name that the guard reads). The entry now names TestTune.<name>.
  2. Task 4.2 of fix(ai): remove weight recs from gateway tune #2592 renames test_ai_gateway_weights_refuses_scalar_string_in_config_set (module level, tests/commands/test_config_field_validation.py). It has an entry now.
  3. Task 1.1 of perf(k8s): use tag_digest HEAD for image pins #2610 moves test_an_image_reference_splits_as_the_docker_sdk_splits_it to tests/docker/test_registry_tag_digest.py. It has an entry now.
  4. allow_lost_tests had one list for two matchers. tests_kept now reads an entry path::Class.test_x as test_x, because a hunk shows no class. The step guard stays exact. Tests: test_a_test_of_a_class_that_the_plan_records_by_its_qualified_name_is_not_lost and test_an_entry_for_a_test_of_a_class_waives_no_test_of_another_name.
  5. docs/roadmap/implement.md now names the exception in its exit check.
  6. The spec delta now modifies "A work-in-progress commit holds the tasks file of the job".
  7. The plan lists the 3320 design.md and the 3328 proposal.md and design.md in Reads/Changes of group 5 and in the Impact list.

Check against this class of error. tests/invariants/test_change_folders.py now fails an entry that names a test of a class with no class or with another class, and a ## Weakened checks section that the reader refuses. I ran it against the old entries of #2592: it reports the five names. It does not fail an entry for a test that its file no longer defines, because the pull request that removes a test leaves the plan in place until its last commit archives it.

Line numbers of the issue. I compared each file:line in the body of #3490 with origin/main. All match (roadmap_implement_step.md:36, implement_step.py:1061 and :1320, implement_eval_properties.py:203, implement_eval.py:78 and :89), and the body was last edited at the time of the owner comment of 2026-11-05. I made no edit to the body.

Runs on this branch

  • Full uv run devops ci before the archive commit: 19,197 tests passed; 4 failed and 1 errored. All are known host failures that fail on origin/main too: tests/crypto/test_ssh.py::test_get_ssh_key_prefix_resolution, tests/telemetry/test_config_env_overrides.py::test_find_project_config_path_skips_directory, tests/commands/test_devcontainer_install_tools_dry_run.py::test_mark_only_commands_under_global_dry_run, and tests/ai/test_tool_executor_contract.py::test_the_direct_executor_refuses_a_network_profile_before_it_starts_the_tool[direct] (fix(ci): host state fails four tests and one case #3585). The test row took 8m 32s (fix(ci): the pytest step of devops ci exceeds the 5-minute budget #3593), and the coverage row did not run because test failed. All other rows passed.
  • After the archive and the last rebase: devops ci --only openspec,docs,lint,format passed, and 511 tests of the touched files passed.
  • Not run: the devops ci fail-to-pass replay (this is a feature, not a fix), and devops roadmap eval implement (it calls a model).

@dan-petty
dan-petty marked this pull request as ready for review November 6, 2026 01:43
@dan-petty
dan-petty merged commit f025406 into main Nov 6, 2026
23 checks passed
@dan-petty
dan-petty deleted the feat/3490-step-guard-allows-recorded-test-removal branch November 6, 2026 01:44
dan-petty pushed a commit that referenced this pull request Nov 6, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.64.0](v0.63.2...v0.64.0)
(2026-11-06)


### Features

* **roadmap:** let the step guard allow a recorded test removal
([#3715](#3715))
([f025406](f025406))
* **roadmap:** require the eval replay for a stage check change
([#3716](#3716))
([76e8301](76e8301))
* **roadmap:** restart a suspended job on a comment of a person
([#3699](#3699))
([be8d18a](be8d18a))
* **roadmap:** the verifier reads the repository and repairs a plan
twice ([#3710](#3710))
([c1191e2](c1191e2))
* **service:** chart the Service and filter the CLI dashboard by job
([#3704](#3704))
([fecc6fb](fecc6fb))


### Bug Fixes

* **deps:** upgrade oauthlib to fix GHSA-3jp2-3mrg-2vxc
([#3709](#3709))
([6a88012](6a88012)),
closes [#3705](#3705)
* **k8s:** hold the copy source until the destination ends
([#3712](#3712))
([c7c5556](c7c5556)),
closes [#3695](#3695)
* **k8s:** the gateway stops using the 16 GiB tier
([#3697](#3697))
([842effc](842effc))
* **roadmap:** keep angle-bracket text of a code span in refine
([#3711](#3711))
([396962e](396962e))
* **roadmap:** P1 items pass the planned limit
([#3698](#3698))
([63589f0](63589f0)),
closes [#3692](#3692)
* **roadmap:** refine blocks an item with an open dependency
([#3696](#3696))
([89fbb08](89fbb08))

---
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/feature Type feature: a new function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(roadmap): the step guard allows a test removal that the plan records

1 participant