Skip to content

feat(roadmap): keep the gated stage plan as a file - #4167

Merged
dan-petty merged 5 commits into
mainfrom
feat/4064-keep-gated-stage-plan-file
Nov 8, 2026
Merged

dan-petty merged 5 commits into
mainfrom
feat/4064-keep-gated-stage-plan-file

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Stage keeps the gated plan as one local file per item, keyed by a hash of the item number, title, body, model, toolset and prompt text. --plan writes the file and makes no GitHub write. --confirm reads it by the same key and sends the planner no request; the gates and the review run again on the current sha. The file is deleted when the item is staged or its key changes. A counter with result hit, miss or written measures the hit rate.

Closes #4064

Change: openspec/changes/archive/2026-11-08-4064-keep-gated-stage-plan-file/

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

Copy link
Copy Markdown
Owner Author

Test record for #4064.

Fail-to-pass run (base origin/main): the new test file tests/roadmap/stage/test_roadmap_stage_plan_record.py errors at collection on base (module stage_plan_record missing). The help test stage_plan fails on base ("write nothing"). Log: .data/agent/state/4064-f2p.log (1 failed, 12 passed, 1 errored on base).

Local checks on the final code (before the archive commit):

  • Full devops ci: all rows pass. The test row took 14m 44s, over the 5m budget (known fix(ci): the pytest step of devops ci exceeds the 5-minute budget #3593, not caused by this change).
  • Narrow: ruff, format, mypy on the stage directory, devops docs generate --check, tests/roadmap/stage and tests/roadmap/test_roadmap_command_help.py (1763 passed), telemetry tests.
  • tests/config/test_k8s_devops_runtime.py: 11 passed (the example ConfigMap loads into Settings).

Rollout rule: this change adds, removes, renames or tightens no setting. The example and live ConfigMap need no change. RoadmapStageConfig has extra="ignore" (read from src/devops_cli/config/settings.py), so a stale key would be ignored, not refused.

Hit rate: UNMEASURED. The counter devops_cli_roadmap_stage_plan_record_total has 3 series (label result: hit, miss, written). Measure the real hit rate after merge.

Limit: the file lives in the Service data dir (volume roadmap-service-home). A runner pod without that volume gets only misses.

@dan-petty
dan-petty marked this pull request as ready for review November 8, 2026 16:05
@dan-petty
dan-petty force-pushed the feat/4064-keep-gated-stage-plan-file branch from 0f99164 to ac4ef31 Compare November 8, 2026 16:36
@dan-petty
dan-petty enabled auto-merge (squash) November 8, 2026 16:38
@dan-petty
dan-petty merged commit a59f6fc into main Nov 8, 2026
25 checks passed
@dan-petty
dan-petty deleted the feat/4064-keep-gated-stage-plan-file branch November 8, 2026 16:43
dan-petty pushed a commit that referenced this pull request Nov 8, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.91.0](v0.90.1...v0.91.0)
(2026-11-08)


### Features

* **roadmap:** keep the gated stage plan as a file
([#4167](#4167))
([a59f6fc](a59f6fc))
* **roadmap:** refuse a plan that reads an absent model field
([#4164](#4164))
([3181b22](3181b22))
* **roadmap:** require a move plan to cover each reference
([#4166](#4166))
([c3cf983](c3cf983))

---
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): keep the gated stage plan as a file

1 participant