Skip to content

feat(roadmap): refine writes each criterion as an OpenSpec requirement - #2591

Merged
dan-petty merged 2 commits into
mainfrom
feat/1849-refine-criteria-scenarios
Oct 29, 2026
Merged

dan-petty merged 2 commits into
mainfrom
feat/1849-refine-criteria-scenarios

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Refine writes each acceptance criterion in the shape that a change's spec delta takes, and asks the existing-tool question of every plan (ADR 0010, step 7).

  • AcceptanceCriterion is name, requirement, scenario, when and then. A requirement must contain SHALL or MUST, with OpenSpec's own pattern. The description and verification keys are deleted.
  • The reply carries existing_tool, which refine renders under "Existing Tool Considered". An empty answer leaves the item not Ready.
  • The proposed design renders each criterion as an OpenSpec requirement block with one scenario. A rendered block passes openspec validate --strict with OpenSpec 1.14.3.
  • The refine prompts name the new keys and ask the question, and the investigation searches for the tool.

Closes #1849

Change: openspec/changes/archive/2026-10-29-1849-refine-criteria-scenarios/

Refine's reply gives each acceptance criterion as `name`, `requirement`,
`scenario`, `when` and `then`, and the proposed design renders it as an
OpenSpec requirement block with one scenario. A requirement must contain
SHALL or MUST, as OpenSpec 1.14.3 requires, so the block goes into a
change's spec delta as it is. The reply also carries `existing_tool`, the
answer to the existing-tool question, which refine renders under
"Existing Tool Considered" and needs before it sets an item Ready. The
`description` and `verification` keys and the `Criterion N` and
`Verification:` lines are deleted.
@dan-petty

Copy link
Copy Markdown
Owner Author

Test evidence:

  • uv run devops ci fail-to-pass --base origin/main: 10 tests fail on the base, and 2 modules error there, because the base AcceptanceCriterion has no name, requirement, scenario, when or then.
  • After the rebase onto b32348a8: tests/test_roadmap_refine.py, tests/test_roadmap_refine_investigation.py and tests/test_ai_client_structured.py, 193 passed. openspec validate --all --strict: 121 passed.
  • Full uv run devops ci before the rebase: every gate passed. The test step took 6 m 55 s at a load average near 20; perf(ci): the startup-import tests start 56 interpreters and take 204 s of the suite's 2,423 s #2369, perf(ci): each test shard collects only its own test files #2371 and perf(ci): measure coverage and branch cost #2373 cover the suite's time.
  • A block that render_proposal_section wrote, put under ## ADDED Requirements in a scratch change, passed openspec validate --strict with OpenSpec 1.14.3.
  • A new test runs plan_refine through the person-edit path. It failed with a ValidationError while that path built its empty proposal without existing_tool, and passes with the fix.

Pending a person: review the diff in tuicr (tuicr -r origin/main..HEAD).

@dan-petty
dan-petty marked this pull request as ready for review October 29, 2026 01:53
@dan-petty
dan-petty merged commit d9a869f into main Oct 29, 2026
17 checks passed
@dan-petty
dan-petty deleted the feat/1849-refine-criteria-scenarios branch October 29, 2026 01:53
dan-petty pushed a commit that referenced this pull request Oct 29, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.13.0](v0.12.0...v0.13.0)
(2026-10-29)


### Features

* **gh:** devops gh issues close records the close reason and a comment
([#2575](#2575))
([97ed0ea](97ed0ea)),
closes [#1658](#1658)
* **monitoring:** the ai spend dashboard counts gateway traffic from the
gateway's own series, shows failed attempts and names each caller
([#2584](#2584))
([33491ca](33491ca))
* **roadmap:** refine writes each criterion as an OpenSpec requirement
([#2591](#2591))
([d9a869f](d9a869f))
* **sandbox:** sandbox commands take a seccomp profile file
([#2588](#2588))
([46958d4](46958d4))


### Bug Fixes

* **monitoring:** RoadmapServiceGitHubWritesHigh counts a request with
no method label as a write, so it fired on 341 reads
([#2583](#2583))
([6dc3aa7](6dc3aa7)),
closes [#2574](#2574)


### Performance Improvements

* **ci:** the gate writes no coverage XML, and the clean-up keeps the
combined data
([#2582](#2582))
([ae9ebb2](ae9ebb2)),
closes [#1743](#1743)
* **roadmap:** intake's embeddings are cached in a password-protected
Valkey in the cluster
([#2578](#2578))
([bfe8a0c](bfe8a0c))


### Code Refactoring

* **devcontainer:** remove the DEVOPS_CLI_SKIP_TOOL_BOOTSTRAP test
switch from product code
([#2580](#2580))
([7e7272e](7e7272e))
* **lint:** lazy exports import names under TYPE_CHECKING
([#2590](#2590))
([c96dbfe](c96dbfe)),
closes [#2010](#2010)

---
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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(roadmap): refine criteria as requirement, when and then with the existing-tool question

1 participant