Skip to content

feat(roadmap): map each acceptance criterion to a group - #3180

Merged
dan-petty merged 6 commits into
mainfrom
feat/3019-the-stage-job-maps-each-acceptance
Nov 2, 2026
Merged

dan-petty merged 6 commits into
mainfrom
feat/3019-the-stage-job-maps-each-acceptance

Conversation

@devops-cli-service

@devops-cli-service devops-cli-service Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

What and why

The stage reply now holds a criteria list. Each entry gives one acceptance criterion of the issue and the group that delivers it, or pending-person with a reason. check_proposal refuses a reply that leaves a criterion out, and the refusal quotes the exact text to copy. tasks.md gets a ## Criteria section. A split gives the criteria again. The replay has a criteria gate.

An acceptance criterion is a top-level item under the heading Acceptance criteria in the text a person wrote, before the refine block. An issue with no such list has none.

Not done: no model run, so no before/after score of the stage prompt change.

Closes #3019

Change: openspec/changes/archive/2026-11-02-3019-the-stage-job-maps-each-acceptance/

🤖 Generated with Claude Code

https://claude.ai/code/session_01PeiMDoPafqUWqpk1WxhaYW

Copy link
Copy Markdown
Owner

Review of the plan for #3019.

CI: all 18 checks green or skipped on dd95376. Premise: holds. On origin/main, check_proposal is at src/devops_cli/roadmap/stage_change.py:286 and is called at src/devops_cli/roadmap/stage.py:672; StageProposal (line 239) has no criteria; path_problems is at stage_paths.py:141; _tasks_file is at stage_change.py:450. The cited lines match. The plan misses the wiring of the replay gate and the source of the criteria (findings 1 to 3).

  1. The replay gate (group 4) is wrong in three ways.
    • The golden-set cases are JSON fixtures, not stage_eval_cases.py. The five cases with a criterion_dropped defect are tests/fixtures/roadmap_eval/stage/{2147,2163,2167,2369,2373}-*/case.json, each with "gate": "pending". Task 4.2 says "mark the known dropped-criterion defects" in stage_eval_cases.py, which only holds the schema.
    • The gate list is closed. GateName (stage_eval_cases.py:82-89) has paths, kind, pending, none and no criteria. PENDING_GATES in stage_eval_gates.py still lists CRITERION_DROPPED: "#3019", and the module docstring says the replay fails "when a defect waits for a gate that exists now". So the change must add GateName.CRITERIA, add a Gate to GATES, remove the pending entry, and change the gate value of the five fixtures. None of this is in Impact or in the tasks.
    • The recorded plan.json files have no criteria key (checked 2147: keys are summary ... groups). A gate that runs criterion_problems on them would report every criterion as unmapped and refuse the good plans, which the replay forbids. The plan must say what the gate compares for a recorded plan (for example, the criterion text against the task text), or add criteria to the fixtures. This also decides whether PlanUnderTest (which holds no issue body; StageCase.issue_body does) gets a new field.
  2. "Acceptance bullet of the issue" is not defined. The issue body that the job reads holds up to three forms. In tests/fixtures/roadmap_eval/stage/2147-*/issue.txt there are the human - [ ] bullets under ### Acceptance criteria, and then the refine block (devops-roadmap-refine) with its own ### Acceptance criteria of - Criterion N: ... Verification: ... entries; feat(roadmap): the stage job maps each acceptance criterion of the issue to a task group #3019 itself has ### Requirement: blocks in the refine block (refine.py:1292). An exact trimmed-text match (design.md) then asks for the same criterion two or three times, and the text in the refine form includes the Criterion N: prefix and a Verification: line. Fix: name the one section and the one bullet form (the human-written list before the refine block), say what happens when the body has no list (no problem), and make criteria default to []. The scenario "issue with no criteria" is missing for this reason. Use a Markdown parser if one is in the tree, not a regex (CONTRIBUTING.md, Closed Lists and Standard Parsers).
  3. The signature change is bigger than listed. check_proposal(proposal, known, tree) has callers at stage.py:672, stage_eval_gates.py:106 and at least four calls in tests/roadmap/test_roadmap_stage_plan.py:330-354. Adding the issue body as a required argument breaks all of them, and Impact lists only stage.py. Also, the body that goes to the model is truncated (stage.py:651, truncate_to_token_limit), so say that the check reads the full item.body.
  4. Exact match is brittle against model output. The model must copy the criterion text character for character (backticks, links, trailing periods), and one miss costs the only retry (stage.py:630-640, one return, then stage_invalid). Say in design how the problem text names the exact missing string, so the retry can copy it, and add a scenario for the retry. Not verified whether this raises the failure rate; a replay on live cases would show it.
  5. Task 5.2 is malformed ("docs/ROADMAP_WORKFLOW.md, run uv run devops docs generate --sync-readme, ..."). No command or option changes, so the sync is not needed, and devops ci docs in 5.1 already covers the document. Delete 5.2. Task 3.1 changes the stage prompt, which changes model behavior, and its only verification is devops ci docs; add the prompt-digest or prompt test if one covers roadmap_stage_change.md (not verified).
  6. Feasibility lists search_code/read_file/list_files calls, which a reader cannot repeat. Replace with git grep -n "def check_proposal" src/ and similar. The last bullet, uv run devops roadmap eval stage --replay, is real (commands/roadmap_eval_stage.py:112). The cost statement in Existing Tool Considered (about 120 lines, 1200 tokens, 30 to 60 minutes) meets rule 3.
  7. Spec delta: ADDED on roadmap-stage is right. Add the missing scenario for pending-person with no reason (design says a reason is required; the issue says "required when pending-person, optional otherwise") and one for the replay gate. The tasks.md Criteria section goes before the fixed ## Workflow follow-up of _tasks_file; say so.
  8. The PR is not a draft (AGENTS.md rule 6). Not verified whether the service bot is exempt. The tuicr bullet is allowed by config.yaml:39.

Title (summary 50 chars), Plans #3019 and body are fine. One PR is plausible once finding 1 is counted (gate wiring plus five fixtures).

Related issues:

Verdict: hold until findings 1 to 3 are fixed in the plan (gate wiring and fixtures, definition of the criteria source, full list of check_proposal callers).


Generated by Claude Code

The stage reply holds a criteria list. check_proposal refuses a reply that
leaves an acceptance criterion of the issue unmapped, tasks.md shows the
mapping, and the replay has a criteria gate.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PeiMDoPafqUWqpk1WxhaYW
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PeiMDoPafqUWqpk1WxhaYW
@dan-petty dan-petty changed the title docs(openspec): plan #3019 Map each acceptance criterion to a task group feat(roadmap): map each acceptance criterion to a group Nov 2, 2026
@dan-petty
dan-petty marked this pull request as draft November 2, 2026 13:35
@dan-petty
dan-petty marked this pull request as ready for review November 2, 2026 13:58
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PeiMDoPafqUWqpk1WxhaYW
@dan-petty
dan-petty merged commit 9639c02 into main Nov 2, 2026
20 checks passed
@dan-petty
dan-petty deleted the feat/3019-the-stage-job-maps-each-acceptance branch November 2, 2026 14:22
dan-petty pushed a commit that referenced this pull request Nov 2, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.43.0](v0.42.1...v0.43.0)
(2026-11-02)


### Features

* **roadmap:** map each acceptance criterion to a group
([#3180](#3180))
([9639c02](9639c02))
* **roadmap:** the stage job probes the premise
([#3176](#3176))
([b05e678](b05e678))

---
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): the stage job maps each acceptance criterion of the issue to a task group

2 participants