Skip to content

fix(roadmap): the alternatives check must search before any verdict for items that can have an open alternative #2946

Closed

Description

@dan-petty

What happened

The check lets the model decide whether to search. Over 14 days it searched about 4 times and returned not-applicable every time, including for a feature that integrates two products.

What should happen

  • A fixed rule, not the model, names the classes of item that skip the search: the Conventional Commit types test, docs, refactor, chore, ci and perf, and a fix of an internal defect with a stack trace and no new capability. The verdict for those is not-applicable with the class as the reason, with no model call.
  • Every other item must run at least one search before the check accepts any verdict. A reply that gives a verdict with no search is rejected, as a reply that gives not-applicable after a tool ran is rejected today, and the model gets one turn to search.
  • The classes live in one constant list with a test.

Evidence (2026-10-31)

Tracker: #2908 (one issue workflow). Owner request of 2026-10-31: confirm that all issues are vetted for open alternatives.

Acceptance criteria

  • A table test covers each class with no model call and the reason in the comment.
  • A scripted model that answers a feat item without a search gets one more turn, and its second answer without a search ends as a failed check for that item (see the issue on skipping a failed item).
  • The Firecrawl counter rises for a feat item in a replay.
  • uv run devops ci passes.

Proposed design

Problem statement

The alternatives check lets the model decide whether to search for open tools. Over 14 days it searched about 4 times and returned not-applicable every time, even for items that integrate two products. A fixed rule must name the classes of item that skip the search, and every other item must run at least one search before the check accepts any verdict.

Acceptance criteria

Requirement: Skip-class table test

A table test SHALL cover each skip class with no model call and the class name in the comment.

Scenario: Each skip class produces not-applicable without a model call

  • WHEN The check runs on an item whose type is test, docs, refactor, chore, ci, or perf, or whose body is a fix of an internal defect with a stack trace and no new capability
  • THEN The verdict is not-applicable, the comment names the class as the reason, and no model call is made

Requirement: Search-before-verdict enforcement

The check SHALL reject a reply that gives a verdict with no search for a non-skip item, and SHALL give the model one turn to search.

Scenario: A scripted model answers a feat item without a search

  • WHEN The model returns a verdict with no search recorded for a feat item
  • THEN The check rejects the reply, gives the model one turn to search, and a second answer without a search ends as a failed check for that item

Requirement: Firecrawl counter rises in replay

The Firecrawl search counter SHALL rise for a feat item in a replay.

Scenario: A replay of a feat item triggers a search

  • WHEN The check runs on a feat item in a replay and the model performs a search
  • THEN devops_cli_firecrawl_searches_total increases by at least 1

Requirement: CI passes

The command uv run devops ci SHALL pass.

Scenario: Full CI run on the change

  • WHEN A developer runs uv run devops ci on the branch
  • THEN All checks pass with no failures

Existing Tool Considered

No check has run. No open, maintained tool or library covers the need to enforce a search-before-verdict rule inside the devops-cli alternatives check. The project builds this logic itself. The written cost is the tokens to build, keep and fix the constant list, the classification function, the search-enforcement guard, and the table and replay tests, plus the elapsed time to implement and debug them.

Key questions

  • Which Conventional Commit types and item shapes skip the alternatives search?: The types test, docs, refactor, chore, ci, and perf, and a fix of an internal defect with a stack trace and no new capability. The verdict for these is not-applicable with the class as the reason, with no model call. (best practice) [sources: AGENTS.md, CONTEXT.md]
    • Chosen: Fixed rule names the skip classes. The body records this decision. A fixed rule is deterministic and testable. It removes the model's discretion to skip the search.
    • Rejected: Let the model decide whether to search. Rejected. Over 14 days the model searched about 4 times and returned not-applicable every time. It is not reliable for this gate.
  • Where does the constant list of skip classes live?: In the alternatives check module as a single named constant, with a table test that covers each class. (best practice) [sources: AGENTS.md]
    • Chosen: Named constant in the alternatives check module. The body says the classes live in one constant list with a test. A constant in the same module as the check keeps the rule and its enforcement together.
    • Rejected: Separate configuration file. Rejected. The list is a fixed rule, not a user setting. A config file adds indirection without benefit.
    • Rejected: Hardcoded in the model prompt. Rejected. The body says a fixed rule, not the model, names the classes. A prompt is not a fixed rule.
  • How is the search-before-verdict rule enforced for non-skip items?: A reply that gives a verdict with no search is rejected. The model gets one turn to search. A second answer without a search ends as a failed check for that item. (best practice) [sources: AGENTS.md, CONTEXT.md]
    • Chosen: Reject and give one retry turn. The body records this mechanism. It gives the model a chance to search while still enforcing the rule. A second failure ends the check.
    • Rejected: Hard-fail immediately on first no-search reply. Rejected. It gives the model no chance to correct. The body says the model gets one turn to search.
    • Rejected: Warn and continue with the no-search verdict. Rejected. It does not enforce the rule. The body says the reply is rejected.
  • What verdict and comment does a skip-class item receive?: The verdict is not-applicable. The comment names the class as the reason. No model call is made. (best practice) [sources: CONTEXT.md]
    • Chosen: not-applicable with the class name as the reason. The body records this. It is consistent with the existing not-applicable verdict in CONTEXT.md and gives a person a clear reason.
    • Rejected: Skip with no comment. Rejected. A person cannot audit why the check was skipped. The body says the reason is in the comment.
  • What is the evidence that the current behavior is broken?: Over 14 days, devops_cli_roadmap_alternatives_total shows only the verdict not-applicable (about 34 checks), never covers, partly, or none. devops_cli_firecrawl_searches_total shows about 4 searches in 7 days. Comments on feat(cli): commands with no dry-run preview: read-only ones run, mutators gain one #886, feat(k8s): Point Argo CD to Gitea for git and PR dev images #1082, and test(ai): Wire rag once in ai/rag, test with edge fakes #1329 read not-applicable with no reason and no queries. [sources: docs/TELEMETRY.md:81, k8s/README.md:609]

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    source/agent
    type/bug
    scope/roadmap
    status/new
    value/high
    effort/medium
    on Oct 31, 2026
  2. dan-petty commented on Oct 31, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/bug. The fix prefix of the title gives the type.
    • Scope: scope/roadmap. The (roadmap) scope of the title gives the scope.
    • Priority: P1-High. The check is the project's own enforcement of AGENTS.md rule 3, it is effectively broken (34 checks, 4 searches, row suspended), and the owner requested confirmation on 2026-10-31.
    • Value: High. Without this gate the project cannot verify that any issue was vetted for open alternatives, defeating its core rule.
    • Effort: Medium. Requires a constant list with a test, a gate that rejects no-search verdicts, a one-more-turn retry path, and a replay test.
    • Related: feat(roadmap): Add reason and queries to the alternatives comment #2944, which asks for a different change. Both target the alternatives check output; #2944 adds queries and reason to the comment, while the candidate enforces that a search must run before any verdict is accepted.
  3. added
    priority/p1-high
    on Oct 31, 2026
  4. added
    status/ready
    and removed
    status/new
    on Oct 31, 2026
  5. devops-cli-service commented on Oct 31, 2026

    @devops-cli-service
    Contributor

    Status set to Ready at 91a971e (see proposed design in issue body).

  6. devops-cli-service commented on Oct 31, 2026

    @devops-cli-service
    Contributor

    Staged: branch fix/2946-the-alternatives-check-must-search-before, draft pull request #2958. The pull request plans the item and closes no issue.

    The task groups, with the tokens of the inputs of each step, for a budget of 40000 tokens:

    1. Add skip-class constant and classification: 4477 tokens
    2. Enforce search-before-verdict for non-skip items: 4466 tokens
    3. Verify Firecrawl counter rises in replay: 4411 tokens

    These paths of the plan are no file on the default branch, and no group creates them: tests/test_roadmap_alternatives.py. A person checks that the plan names them right.

  7. added a commit that references this issue on Oct 31, 2026
  8. added
    status/planned
    and removed
    status/ready
    on Oct 31, 2026
  9. added
    owner/agent
    on Nov 1, 2026
  10. added a commit that references this issue on Nov 1, 2026
  11. removed
    owner/agent
    on Nov 1, 2026
  12. removed
    status/planned
    on Nov 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/mediumpriority/p1-highscope/roadmapsource/agenttype/bugvalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions