Skip to content

docs(openspec): plan #2947 Raise the alternatives first-pass limit to 20 - #3174

Merged
dan-petty merged 4 commits into
mainfrom
feat/2947-the-first-pass-of-the-alternatives
Nov 2, 2026
Merged

dan-petty merged 4 commits into
mainfrom
feat/2947-the-first-pass-of-the-alternatives

Conversation

@devops-cli-service

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

Copy link
Copy Markdown
Contributor

Plans #2947

The alternatives check takes 5 items in a round, so the first pass over 141 open issues takes about a month. This plan adds the setting roadmap.alternatives.first_pass_limit (20 by default). A round uses it while an item has no check, and goes back to roadmap.alternatives.limit (5) when every item has a check. The row and devops roadmap alternatives follow one rule, and --limit replaces both limits.

The plan changes two requirements of roadmap-alternatives, whose text and a scenario each said that limit is the one cap. It has a test-first group, the example ConfigMap, and the help text and documents.

Change: openspec/changes/2947-the-first-pass-of-the-alternatives/

https://claude.ai/code/session_01PeiMDoPafqUWqpk1WxhaYW


Generated by Claude Code

Copy link
Copy Markdown
Owner

Review of the plan for #2947.

CI: all 18 checks green or skipped on 0bdd856. Premise: holds in the issue (roadmap.alternatives.limit is 5; it is read at src/devops_cli/roadmap/run.py:611 and alternatives.py:~855), but this PR does not plan it. The change folder is a placeholder.

  1. The plan is a placeholder and must not merge. The PR body is "placeholder" (Plans #2947 / placeholder / Change: ...). proposal.md has "placeholder" in Why, What Changes, Feasibility and Existing Tool Considered. tasks.md has one group titled "placeholder" with the task "1.1 placeholder, and verify that openspec validate --strict passes", and design.md says "None." for both Decisions and Rejected alternatives. The stage record shows stage.groups = [["placeholder", 3587]], so the job produced it and marked it ready. Fix: rerun the stage job (or rewrite by hand) with real content; do not merge. The body must say what the change does, in at most 1,000 characters (CONTRIBUTING.md section 4, "The Body Is the Commit Message").
  2. The spec delta uses ADDED where MODIFIED is needed. openspec/specs/roadmap-alternatives/spec.md already says at line 187 that the row "SHALL check at most roadmap.alternatives.limit items in a round" (requirement "The Service runs the check twice a day"), and at line 161 that roadmap.alternatives.limit "SHALL be the number of items that the row and devops roadmap alternatives check in one run" (requirement "The limit of a round is a setting"). A first-pass limit of 20 contradicts both. So those two requirements need MODIFIED (config.yaml:21), and the two new ones, "First-pass limit applies..." and "Recheck limit applies...", should be folded into them or kept ADDED with the old text narrowed. The scenario at line 201-202 ("roadmap.alternatives.limit is 2 and 4 items have no check") also needs a changed expectation. Say whether devops roadmap alternatives (no --limit, commands/roadmap.py:309-318) uses the first-pass limit too, or only the row: plan_alternatives takes limit=None and reads config.limit, so a change inside it changes the command too. The delta is silent.
  3. Impact is wrong: it lists only README.md. The issue names configmap.example.yaml, defaults.py and the documents. The files that a real plan must list, all verified on origin/main: src/devops_cli/config/settings.py (field beside recheck_days at line 957), src/devops_cli/config/defaults.py (default 20), k8s/devops/configmap.example.yaml, src/devops_cli/roadmap/alternatives.py (plan_alternatives, where config.limit is read) and run.py:611 (the row passes the limit explicitly, so the switch must be there or inside plan_alternatives), docs/ENV_VARS.md and k8s/README.md:615 ("5 by default"), README.md:378-380 and src/devops_cli/lang/en/help.py:1348-1349 (help text "default: ... 5"), which feed docs/CLI_REFERENCE.md, docs/MCP_TOOLS.md and docs/commands/roadmap.md. Also tests/roadmap/test_roadmap_alternatives.py:1600 asserts the limit default.
  4. Tasks are not test-first for this change. The issue says "A test shows 20 items in a round while 25 have no check, and 5 once all have one". This is new behavior (a behavior group, config.yaml:33), but the only group is a document group with openspec validate --strict. Needed: a failing test with fail-on-base verify (uv run devops ci test tests/roadmap/test_roadmap_alternatives.py), then the setting, the switch, a documents group with uv run devops docs generate --sync-readme and uv run devops ci docs. The second acceptance criterion (the round respects the Service budget and lane order) has no task; neither has the third (uv run devops ci passes).
  5. Missing Feasibility and tool cost. There is no evidence of how the first-pass state is decided ("some open item has no check") or what an "open item" is for it: select_items already takes unchecked items first, so the switch may only need limit = first_pass_limit if any unchecked. Cite the code. The Existing Tool Considered must state tokens and time (AGENTS.md rule 3). Also resolve a mismatch in the issue itself: the title says "20 items a day", but the row runs every 719 minutes (k8s/README.md:615), about twice a day, and the criteria say per round. With 20 a round that is about 40 a day. State which one the change delivers.
  6. The title is "docs(openspec): plan feat(roadmap): the first pass of the alternatives check runs 20 items a day #2947 Raise the alternatives first-pass limit to 20", with a 56-char summary; this is fine. The PR is not a draft (AGENTS.md rule 6; not verified whether the service bot is exempt).

Related issues:

Verdict: hold. Reject this plan as a placeholder and stage again with real content; findings 2 to 4 apply to the new plan.


Generated by Claude Code

Replace the placeholder plan with the full plan: the setting first_pass_limit,
the switch in select_items, the row and the command sharing one rule, two
MODIFIED requirements of roadmap-alternatives, test-first tasks, the example
ConfigMap and the documents.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01PeiMDoPafqUWqpk1WxhaYW
@dan-petty
dan-petty merged commit 68ee4c4 into main Nov 2, 2026
20 checks passed
@dan-petty
dan-petty deleted the feat/2947-the-first-pass-of-the-alternatives branch November 2, 2026 17:47
dan-petty pushed a commit that referenced this pull request Nov 2, 2026
#3173)

Plans #2950

The alternatives check ran 34 times in 14 days and searched about 4
times, and no metric showed it. This plan adds two gauges (open items
with no check, age of the oldest check, both by repository) and one
histogram (searches per written check, by verdict). The Service row
records the gauges at the start of each round, also when it has nothing
to write. An alert fires after 3 days with no Firecrawl search while
items have no check. The expression of the issue never fires: its two
sides have different labels. A promtool run with the real labels showed
that, and showed the fixed rule. A row of three panels goes into the
devops-cli dashboard, because no Roadmap dashboard exists. The plan
names #3171, #3174 and #3243 as neighbours.

Change:
`openspec/changes/2950-alternatives-coverage-gauge-searches-per-check/`

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01PeiMDoPafqUWqpk1WxhaYW

---------

Co-authored-by: devops-cli-service[bot] <349441588+devops-cli-service[bot]@users.noreply.github.com>
Co-authored-by: Claude <[email protected]>
dan-petty pushed a commit that referenced this pull request Nov 3, 2026
…3305)

Plans #3264

The model verification pass finds real defects in a staged plan, yet the
plan pull request still goes to review as if it were clean. The stage
now keeps such a plan in draft, applies the label `plan/needs-fix`, and
puts the open findings at the top of the stage comment. The row
`stage_ready` refuses to mark that pull request ready and says why. A
plan with an open finding does not count as staged in the round budget:
it counts as a failed attempt of class `plan_defect`. The golden set
records #3174 as a case of the new stop. No existing gate is removed or
weakened.

Change: `openspec/changes/3264-the-stage-marks-a-plan-ready/`

Co-authored-by: devops-cli-service[bot] <349441588+devops-cli-service[bot]@users.noreply.github.com>
dan-petty added a commit that referenced this pull request Nov 4, 2026
A finding of an open type, or one that reports a placeholder, now keeps
the plan pull request a draft with the label `plan/needs-fix`. The
`stage_ready` row refuses that draft and states the reason once. The
plan counts as a failed attempt of class `plan_defect`, and the golden
set holds the #3174 case.

Closes #3264
Change:
`openspec/changes/archive/2026-11-04-3264-the-stage-marks-a-plan-ready/`
dan-petty added a commit that referenced this pull request Nov 7, 2026
Staging a plan cannot see the registries and ratchet tests that a new
constant, setting, metric or job write needs, so the entries are missed
and the suite fails later (#3254). Evidence: the limit-class ratchet in
`tests/roadmap/test_roadmap_limit_classes.py` (#3174), the job-write
registries of #3169, and the `INSTRUMENTS` registry whose documented
test path is stale (#3173).

Closes #3254

Change:
`openspec/changes/archive/2026-11-07-3254-list-the-registry-and-ratchet-entries/`
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.

2 participants