Skip to content

fix(roadmap): the implement job refuses a plan that fails the plan check - #3615

Merged
dan-petty merged 1 commit into
mainfrom
fix/3393-the-implement-job-refuses-a-plan
Nov 5, 2026
Merged

dan-petty merged 1 commit into
mainfrom
fix/3393-the-implement-job-refuses-a-plan

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The implement job checks the plan of an item before it selects the item. A Staged item is checked on its branch on origin. A Planned item is checked on the default branch. A plan that the check refuses leaves the item out, and the reason names the first problem. No branch and no runner Job starts for that item. The reason appears in devops roadmap explain and in the implement report.

Before this change, the job could select an item with a plan that the stage job refuses. A runner Job then could spend model calls on the invalid plan. The job calls check_proposal, the same check as the stage job. The plan readers that the plan check uses now live in plan_read, and both jobs share them.

Closes #3393

Change: openspec/changes/archive/2026-11-05-3393-the-implement-job-refuses-a-plan/

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

Copy link
Copy Markdown
Owner Author

Publish notes for this pull request. State: draft. It stays a draft until the owner decides open item 1.

Local checks at commit b7d3e51:

  • Rebase onto origin/main: no change. The branch already sits on origin/main at d254410.
  • uv run devops ci test: 10 failed, 1 error, 18636 passed, 2 skipped. The pytest step took 236.8 s.
  • Host failures, tracked in fix(ci): host state fails four tests and one case #3585: four failed tests and one error. They are 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] (the error, at teardown).
  • Not host failures: six tests of tests/roadmap/test_roadmap_implement_amend_job.py fail. See open item 1.
  • uv run devops openspec check: passed.
  • uv run devops ci docs: passed.
  • Fail-to-pass: uv run devops ci fail-to-pass --base origin/main gave 4 failed on base and 0 errored, on the same code before the archive commit. The four tests are the new selection tests of tests/roadmap/test_roadmap_implement_job.py. The GitHub Fail-to-Pass Check passed.

Deviations:

  • The judge calls check_proposal with the deterministic gates only. It passes no probes and no overlaps. plan_check and plan_recheck pass both.
  • An earlier finish note said that no archive commit exists. That note is stale. Commit b7d3e51 archives the change.

GitHub checks at commit b7d3e51: Tests & Coverage (shards 1 to 4) and Changed-Test Independence fail. Every failing test is one of the six amend-job tests. Semantic PR title, Fail-to-Pass Check, CodeQL, zizmor, trivy-config, Static Analysis and the image checks pass.

Open items:

  1. Owner decision: six amend-job tests. These tests start from a plan that the gate now refuses before any run, so the amend path and command requests cannot repair them. Options: (a) rewrite the six tests to assert the refusal, and retire the path and command amend kinds; (b) let the judge exempt amendable defects. Option (b) needs owner approval.
  2. Timing: the pytest step took 6 m 25 s in an earlier run on this branch, and 3 m 57 s in the run above. Issue fix(ci): the pytest step of devops ci exceeds the 5-minute budget #3593 tracks the five-minute budget. A timing comment was added there.
  3. tasks.md keeps one step for a person: review the diff in tuicr.
  4. The plan prose is not fully ASD-STE100.
  5. The body ends with Closes fix(roadmap): the implement job refuses a plan that fails the plan check #3393 because the title is a fix. The issue closes when this pull request merges.

@dan-petty
dan-petty force-pushed the fix/3393-the-implement-job-refuses-a-plan branch from b7d3e51 to a5acfc2 Compare November 5, 2026 13:33
@dan-petty

Copy link
Copy Markdown
Owner Author

Rebase and checks

The branch has one commit on the current origin/main. Local checks:

  • ruff format and ruff check: pass.
  • openspec check: pass.
  • Roadmap suite (tests/roadmap): 4074 passed, 1 skipped. One assertion failed, and I fixed it. It passes on rerun.
  • Changed-Test Independence (three shuffled repeats, 114 tests): pass.
  • fail-to-pass against origin/main: 7 tests fail on the base.

Decision on the six amendment tests

The plan check refuses a plan with a missing test path or a uv run pytest command before a run starts. The six tests in tests/roadmap/test_roadmap_implement_amend_job.py started a run with such a plan. The check now stops that run, so the tests cannot pass. I deleted them:

  • test_wrong_test_path_ends_in_delivered_pr_with_corrected_path
  • test_command_request_and_task_request_give_amendment
  • test_second_request_for_same_group_stops_item_blocked
  • test_stop_after_amendment_puts_line_in_pr_comment
  • test_amended_group_that_stops_again_names_amend_taken_and_wait_left
  • test_path_request_with_another_file_name_stops_as_question_with_rule

A new test, test_a_plan_whose_test_path_no_file_holds_is_left_out_and_names_the_path, asserts the new refusal.

The scenarios of roadmap-implement-job that describe a path amendment now describe the generic amendment. The scenario "A test path that no file holds" is new.

No job-level test now covers "A second request for the same group" and "A stop after an amendment".

Fixtures

The fail-to-pass fixtures (BEHAVIOR_TASKS and TWO_BEHAVIOR_TASKS) had no Reads: and Changes: lines, no numbered tasks and no criteria entry. The reader refused them. I corrected the fixtures. The assertion on - [x] Add now reads - [x] 1.1 Add.

Owner decision

This PR chooses that the check refuses a plan, and that a run does not amend it. Please confirm this choice.

@dan-petty
dan-petty marked this pull request as ready for review November 5, 2026 13:40
@dan-petty
dan-petty merged commit 233d397 into main Nov 5, 2026
23 checks passed
@dan-petty
dan-petty deleted the fix/3393-the-implement-job-refuses-a-plan branch November 5, 2026 13:40
dan-petty pushed a commit that referenced this pull request Nov 5, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.62.2](v0.62.1...v0.62.2)
(2026-11-05)


### Bug Fixes

* **roadmap:** render only the steps a plan needs
([#3496](#3496))
([83cb6c5](83cb6c5))
* **roadmap:** the implement job refuses a plan that fails the plan
check ([#3615](#3615))
([233d397](233d397))

---
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>
dan-petty added a commit that referenced this pull request Nov 5, 2026
The fix of #3393 makes the implement job refuse a plan that fails the
plan check. Defect pull request #3615 merged without a guardrail on a
declared hardening surface, so the post-merge audit failed. This adds
one guardrail sentence to ARCHITECTURE.md that names the rule.

Closes #3625

Change:
`openspec/changes/archive/2026-11-05-3625-implement-job-plan-check-guardrail/`
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 implement job refuses a plan that fails the plan check

1 participant