Skip to content

fix(roadmap): stage holds an item where openspec is not set up - #4749

Merged
dan-petty merged 2 commits into
mainfrom
fix/4629-stage-hold-no-openspec
Nov 11, 2026
Merged

dan-petty merged 2 commits into
mainfrom
fix/4629-stage-hold-no-openspec

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The stage job holds every item of a repository whose default branch has no openspec/config.yaml. The round pushes no branch and calls no model, and each item gets a reason that names the file and the onboarding that adds it (#3770). A new helper, uses_openspec(source, ref), reads the file at the commit, so devops pr create (#3767) can use the same switch. The stage row returns the file in JobOutcome.missing, so the onboarding row of #4664 can start from it (owner decision 1). devops roadmap explain prints the reason. Why: 0 of the 6 other Service repositories hold the file, and the job opened plans there that cannot run. A repository with the file, as devops-cli, gets the same plan as before.

Closes #4629

Change: openspec/changes/archive/2026-11-11-4629-stage-holds-an-item-where-openspec/

The stage job holds every item of a repository whose default branch has no openspec/config.yaml, and the stage row records the missing file in its outcome for onboarding.
@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

Measurements

Fail-to-pass (uv run devops ci fail-to-pass --base origin/main, exit 0):

  failed on base: tests.roadmap.stage.test_roadmap_stage_job::test_a_round_in_a_repository_without_openspec_holds_each_item_and_reports_the_file (devops_cli.exceptions.roadmap.RoadmapStageError: the stage job failed for 1 item(s): #1 (RoadmapStageError: A tool call of the run held invalid arguments, which are not one JSON text: Exceeded maximum output retries (1). The model made several tool calls in one reply and the gateway joined their arguments. Use a model or a gateway version that keeps parallel tool calls apart.))
  failed on base: tests.roadmap.stage.test_roadmap_stage_plan::test_a_repository_with_openspec_names_no_missing_file (AttributeError: 'StagePlan' object has no attribute 'missing')
  failed on base: tests.roadmap.stage.test_roadmap_stage_plan::test_a_repository_without_openspec_holds_a_named_item_and_the_plan_names_the_file (AttributeError: 'RoadmapMessages' object has no attribute 'stage_left_no_openspec')
  failed on base: tests.roadmap.test_roadmap_dry_runs::test_the_stage_plan_reads_whether_the_default_branch_holds_the_openspec_config (AssertionError: assert [] == [('git', '-C'...n/main', ...)])
  failed on base: tests.roadmap.test_roadmap_explain::test_a_repository_without_openspec_is_the_reason_of_the_stage_job (AttributeError: 'RoadmapMessages' object has no attribute 'stage_left_no_openspec')
5 failed on base (5 failed and 279 passed in tests/roadmap/stage/test_roadmap_stage_job.py, tests/roadmap/stage/test_roadmap_stage_plan.py, tests/roadmap/test_roadmap_dry_runs.py, tests/roadmap/test_roadmap_explain.py; 0 errored).

Stage golden set (uv run devops roadmap eval stage --replay): base and change give the same report, exit 0 on both. The change does not touch a plan gate; the selection runs before the planner, and plan_item does not call it.

Defects that a gate judges: 82 of 319 (26%).
Good plans that every gate accepts: 5 of 5.
Result: every gate refuses what it must refuse.

Tests: uv run pytest -n 6 over tests/roadmap/stage, the explain, dry-run, trust and run tests and tests/telemetry/test_roadmap_stage_steps.py: 2627 passed after the fix of test_a_round_reads_the_tree_once_for_many_items (the round now makes one change-folder read and one config read). The pre-push fast static checks passed.

Premise (2026-11-11): GET repos/dan-petty/<repo>/contents/openspec/config.yaml gives 404 for vibes, dreamscaper, dotfiles, danielpetty.com, homelab and devcontainer-features, and the file for devops-cli. 9 open draft plan pull requests: vibes #173-175, dreamscaper #15-17, dotfiles #6-8.

@dan-petty

Copy link
Copy Markdown
Owner Author

Live steps after the rollout (for a person)

This pull request changes no cluster object. The steps below act in other repositories, so a person does them after the image with this change runs in the Service.

  1. Check the hold. For each repository without OpenSpec, run:
    uv run devops roadmap explain <n> --repo dan-petty/dotfiles for a Ready item <n>. The stage verdict is no, with the reason "The repository has no openspec/config.yaml on main, so the stage job writes no plan for it. Onboarding adds the file (feat(roadmap): onboard sets up openspec in a repository #3770)."

  2. Close the 9 draft plan pull requests (owner decision 2): docs(openspec): plan #166 Retire triage, key audit on type labels vibes#173, feat(k8s): configurable k8s context setting and conditional minikube autostart (#172) #174, fix(github): project field options synchronization, complete pagination, and generic owner resolution #175, docs(openspec): plan #1 unify windows crate in lockfile dreamscaper#15, feat(release): v0.1.13 — embedding benchmarks, tls automation & otel integrations #16, feat(release): v0.2.0 #17 and docs(openspec): plan #2 fix git config linking in install script dotfiles#6, feat(ci): publish reusable devcontainer package and add tf FastMCP tools #7, docs(agents): forbid commits to unrelated or merged branches #8. Close each with no merge, with this comment (more than 60 characters, so the stage job records it as the reason of a rejected plan):

    Closed by owner decision 2 of 2026-11-11 (fix(roadmap): stage holds an item where openspec is not set up #4629): this repository has no openspec/config.yaml, so this plan cannot run here. The stage job plans the item again after onboarding adds openspec/config.yaml (feat(roadmap): onboard sets up openspec in a repository #3770).

    The comment names openspec/config.yaml, so the hold of the rejected plan ends when onboarding adds that file. The command for one pull request: uv run devops gh api repos/dan-petty/dotfiles/issues/8/comments -X POST -F [email protected], then uv run devops gh api repos/dan-petty/dotfiles/pulls/8 -X PATCH -f state=closed.

  3. Measure acceptance criterion 4 after 24 h: for each of the 6 repositories, uv run devops gh api 'repos/dan-petty/<repo>/pulls?state=all&per_page=50' --jq '[.[] | select(.created_at > "<rollout time>") | select(.title | startswith("docs(openspec): plan"))] | length' gives 0.

@dan-petty
dan-petty marked this pull request as ready for review November 11, 2026 18:35
@dan-petty
dan-petty merged commit 45bd54a into main Nov 11, 2026
32 checks passed
@dan-petty
dan-petty deleted the fix/4629-stage-hold-no-openspec branch November 11, 2026 18:37
dan-petty pushed a commit that referenced this pull request Nov 11, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.112.3](v0.112.2...v0.112.3)
(2026-11-11)


### Bug Fixes

* **ai:** record the duration of each agent model request
([#4717](#4717))
([1930b71](1930b71))
* **devcontainer:** poll the Docker daemon through the clock
([#4721](#4721))
([be32268](be32268))
* **roadmap:** confine repair fix turns to the plan files
([#4689](#4689))
([d2e7597](d2e7597))
* **roadmap:** name the nearest test of a module
([#4696](#4696))
([b746c95](b746c95))
* **roadmap:** scoped intake reads a bounded page count
([#4740](#4740))
([f89ccc5](f89ccc5))
* **roadmap:** stage context reads runner facts from the package
([#4723](#4723))
([05e09dc](05e09dc))
* **roadmap:** stage holds an item where openspec is not set up
([#4749](#4749))
([45bd54a](45bd54a))
* **roadmap:** trace gate reads a tool call citation
([#4694](#4694))
([5c71ad4](5c71ad4))


### Performance Improvements

* **ci:** cancel superseded CodeQL runs and idle triggers
([#4763](#4763))
([c951368](c951368))


### Code Refactoring

* **ai:** delete orphan prompts and the prompt fallbacks
([#4710](#4710))
([38a1b13](38a1b13))

---
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): stage holds an item where openspec is not set up

1 participant