Skip to content

fix(roadmap): a stage group has a kind with its own tasks - #3035

Merged
dan-petty merged 8 commits into
mainfrom
fix/3005-stage-task-kind
Nov 1, 2026
Merged

dan-petty merged 8 commits into
mainfrom
fix/3005-stage-task-kind

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

What

A stage group now has a kind: behavior or other. The validator checks the kind. The renderer writes the tasks of the kind. The stage, split and implement prompts, AGENTS.md, CONTRIBUTING.md, docs/TESTING.md, k8s/README.md and openspec/config.yaml state the same rule.

Why

The stage step gave every group a test task and a task to prove that the test fails on the base. A group that deletes code, edits a document or changes a manifest has no test to write. The model had to invent one, and the plans of such items were flawed.

New behavior gets a failing test first. Every other change names one command that can run again, or the steps of a repeatable manual check.

Closes #3005

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

Copy link
Copy Markdown
Owner Author

Test results

fail-to-pass run

uv run devops ci fail-to-pass --base origin/main: 32 tests failed on the base and pass on the branch. Files: tests/roadmap/test_roadmap_stage_kind.py, tests/roadmap/test_roadmap_stage_plan.py, tests/invariants/test_change_folders.py.

Review findings

Fixed:

  • CONTRIBUTING.md (first rule and inner loop) now gives the rule of AGENTS.md rule 4.
  • The stage prompt, docs/TESTING.md and openspec/config.yaml now show ! git grep -n <name> src/ tests/. A test checks the prompt.

Declined: none.

@dan-petty
dan-petty marked this pull request as ready for review November 1, 2026 13:02
@dan-petty
dan-petty merged commit deb2f9e into main Nov 1, 2026
20 checks passed
@dan-petty
dan-petty deleted the fix/3005-stage-task-kind branch November 1, 2026 13:09
dan-petty pushed a commit that referenced this pull request Nov 1, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.37.2](v0.37.1...v0.37.2)
(2026-11-01)


### Bug Fixes

* **roadmap:** a stage group has a kind with its own tasks
([#3035](#3035))
([deb2f9e](deb2f9e)),
closes [#3005](#3005)
* **roadmap:** refuse plans that name missing paths
([#3036](#3036))
([334f0ea](334f0ea)),
closes [#3010](#3010)

---
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 12, 2026
The stage writer gave a `manifest` group the tasks of a `behavior` group
and wrote no `Kind:` line (#3981). The reader read it as `behavior`, and
the #3035 rule refused each such group with no path under `src/`, so
#4963 and #5032 could not be read.

- The writer writes `Kind: <kind>. Reads: ... Changes: ...` for each
group.
- The reader reads the kind from that line. A group of the old form (no
line, or a word that is no kind) gets its kind from its tasks:
`behavior` with a path under `src/`, else `manifest`, or `other`.
- The reader reads `## Unchanged references`, and drops only the last
fits-one-PR line.
- `FIELDS_NOT_IN_FILES` and `file_facts` state what a round trip keeps.
Hypothesis tests hold it.

The issue asks for an error on a word that is no kind. #3164 holds
`Kind: documentation.` and reads on the base, so the reader keeps the
inference for that word.

Closes #5205

Change:
`openspec/changes/archive/2026-11-12-5205-write-and-read-the-kind-of/`
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 stage job plans a failing test for groups that change no code with behavior

1 participant