Skip to content

fix(roadmap): keep the trace facts of a plan in its record - #4285

Merged
dan-petty merged 5 commits into
mainfrom
fix/4281-kept-plan-trace-facts
Nov 9, 2026
Merged

dan-petty merged 5 commits into
mainfrom
fix/4281-kept-plan-trace-facts

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The plan file of the stage job held no trace facts. A kept plan is read in a process that made no plan run, so the trace gate skipped it, and a revision of it (after another gate or the model review returned it) had only its own calls as facts. The revision kept the Feasibility claims of the first run and the gate refused them (item #4062, 2026-11-09).

The record now holds the tool names of the plan runs and the paths that they read and that the Feasibility text cites. A hit joins them with the facts of each later plan run. A record with no facts (an older job) counts as a miss and is planned again. The key is the same: it holds the model name, so a new planner model gives a new plan.

Closes #4281

Change: openspec/changes/archive/2026-11-09-4281-a-kept-plan-fails-the-trace/

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

Copy link
Copy Markdown
Owner Author

Test record.

  • Fail-to-pass (uv run devops ci fail-to-pass --base origin/main): 5 of 6 tests in tests/roadmap/stage/test_roadmap_stage_plan_record_facts.py fail on base. test_a_new_planner_model_is_a_miss passes on base: the key already holds the model name.
  • The flaw on base code: a kept record with no facts, whose plan another gate refuses and whose revision calls no tool, fails with "The Feasibility section names the tool read_issue, but the run did not call it." I ran this with src reset to origin/main.
  • uv run devops roadmap eval stage --replay: "Good plans that every gate accepts: 5 of 5."
  • Full uv run devops ci (under the shared lock, before the last test edit): 22023 passed, 5 failed, 4 errors. The 4 failures and 4 errors in tests/commands/test_scan.py (trivy, gitleaks and semgrep reach the host with no fake) fail the same on the origin/main tree. They are not in the known list of host failures. The 5th failure was test_suppressions_stay_under_their_ceilings: my test had one type: ignore too many. I removed all of them; that test, the new tests and the two neighbour test files pass after the rebase (38 passed in the three plan-record files). The full run was not repeated.
  • Limit: I did not read the full log of the live run of fix(roadmap): alternatives ADR cap test reads logs of other loggers #4062. The two paths that the change fixes (a revision after a refusal, and a repair after a review) are read in the code and proved by the tests. On a hit, the first reply was unchecked before this change.

@dan-petty
dan-petty marked this pull request as ready for review November 9, 2026 23:17
@dan-petty
dan-petty merged commit cb2287e into main Nov 9, 2026
26 checks passed
@dan-petty
dan-petty deleted the fix/4281-kept-plan-trace-facts branch November 9, 2026 23:38
dan-petty pushed a commit that referenced this pull request Nov 9, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.103.1](v0.103.0...v0.103.1)
(2026-11-09)


### Bug Fixes

* **roadmap:** keep the trace facts of a plan in its record
([#4285](#4285))
([cb2287e](cb2287e))


### Code Refactoring

* **ai:** remove unreachable partial status of harness
([#4287](#4287))
([a4ea0c2](a4ea0c2))
* **cli:** entry.main sets a dry-run state that is set again
([#4286](#4286))
([f0d3eaa](f0d3eaa))

---
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): a kept plan fails the trace gate

1 participant