Skip to content

fix(roadmap): make the alternatives check search before a verdict - #3127

Merged
dan-petty merged 6 commits into
mainfrom
fix/2946-the-alternatives-check-must-search-before
Nov 1, 2026
Merged

dan-petty merged 6 commits into
mainfrom
fix/2946-the-alternatives-check-must-search-before

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Requested by D · project thread

The alternatives check no longer lets the model decide whether to search. In 14 days the model gave only the verdict not-applicable (about 36 checks) and made about 4 searches, also for features such as #886 and #1082.

  • A closed list of skip classes in src/devops_cli/roadmap/alternatives.py names the items that need no search: the Conventional Commit types test, docs, refactor, chore, ci and perf, and a fix whose body holds Traceback (most recent call last). The public function skip_class_of reads the type with commit_type.
  • A skip-class item gets the verdict not-applicable with no model call and no search. Its comment and its body block name the class. It writes through the same path as every check: the block, the job record, the comment and the counter.
  • Every other item must search before the check accepts a verdict. investigate takes an optional output_check. The alternatives check passes one that asks for a search, and a pydantic-ai output validator raises ModelRetry with it once, so the model gets one more turn with its history. A second reply with no search is a failed check (the reply gives a verdict with no search). Refine passes no output_check, so its runs do not change.
  • The job refuses not-applicable from the model, because the job sets it for a skip class only. The prompt tells the model to search at least once and to give none when no tool covers the need.
  • The help text, k8s/README.md step 14, CONTEXT.md (Alternative), the docstring of Verdict and the generated documents state the rule. The spec roadmap-alternatives holds the archived delta.

Closes #2946

Change: openspec/changes/archive/2026-11-01-2946-the-alternatives-check-must-search-before/


Generated by Claude Code

A failed check of one item (a failed model call, a stopped run or a
refused reply) is recorded in the item's job record with
alternatives.failed_at and alternatives.failed_error. A written check
clears both keys. The selection leaves out the item until
roadmap.alternatives.retry_days (3 by default) have passed. The row and
the command fail only when the run tried items and checked none. The
reason of a stopped run holds the masked message of the stop.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01PeiMDokwZ2G38Cktk2JiKu
A closed list of skip classes, not the model, names the items that need
no search: the Conventional Commit types test, docs, refactor, chore, ci
and perf, and a fix whose body holds a Python traceback. Such an item
gets not-applicable with its class and no model call.

Every other item must search before the check accepts a verdict. A reply
that follows no search gets one more turn through a pydantic-ai output
validator; a second such reply is a failed check. The model can no
longer give not-applicable.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01PeiMDokwZ2G38Cktk2JiKu
@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 — with Claude
@dan-petty dan-petty self-assigned this Nov 1, 2026
Resolve the import conflict in settings.py: keep DEFAULT_ROADMAP_ALTERNATIVES_RETRY_DAYS from this branch and DEFAULT_ROADMAP_IMPLEMENT_REPAIR_ROUNDS from main.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01PeiMDmCMBS9fd3rVrBSGMW
@dan-petty
dan-petty marked this pull request as ready for review November 1, 2026 23:46
@dan-petty
dan-petty merged commit 099c689 into main Nov 1, 2026
20 checks passed
@dan-petty
dan-petty deleted the fix/2946-the-alternatives-check-must-search-before branch November 1, 2026 23:46
dan-petty pushed a commit that referenced this pull request Nov 2, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.39.0](v0.38.0...v0.39.0)
(2026-11-02)


### Features

* **ci:** uv, test, serve and mcp dry runs list their requests
([#3135](#3135))
([666e183](666e183))
* **k8s:** serve gemini-3.8-flash and two Claude models
([#3117](#3117))
([1fa3a31](1fa3a31)),
closes [#3113](#3113)
* **repos:** request plans for repos, branches, ssh and tls
([#3129](#3129))
([174b82c](174b82c))
* **roadmap:** move unworkable scope to new issues during refine
([#3130](#3130))
([a0b2cb5](a0b2cb5))


### Bug Fixes

* **github:** a refused App JWT names GitHub's reason
([#3116](#3116))
([5ac0bea](5ac0bea))
* **roadmap:** make the alternatives check search before a verdict
([#3127](#3127))
([099c689](099c689))

---
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): the alternatives check must search before any verdict for items that can have an open alternative

2 participants