Repository navigation
Description
Problem or Motivation
The stage job planned an issue whose behavior already existed. The plan of PR #3374 (for #3368) says the implement job "writes the delivery title with no check" and that "neither call runs a title check". PR #3319 (be129c99) had already added the guard: _delivery_title in src/devops_cli/roadmap/implement_run.py:957 calls title_problems(title, declared) and raises _StopError, and both _publish and _pull_request call _delivery_title. The plan read the two call sites and not the body of the helper they call, so its Feasibility asserted a fact that the base contradicted.
The result was a plan whose core change duplicates a guard that exists, and an ADDED requirement for behavior that openspec/specs/roadmap-implement-job/spec.md already states.
The premise probe (#3176) reports whether a cited path exists. It does not report whether a check that a plan calls absent is absent.
Proposed Solution & Architectural Design
- When a plan task or decision claims a check is missing at a call site, the premise probe searches the called helper bodies and the base tree for that check, and reports the path and the line where it found it.
- The stage job reconciles the issue against the base: when the behavior the issue asks for is already in the base or in a merged pull request, the job returns the item with that evidence instead of planning a duplicate.
- Add a test in
tests/roadmap/test_roadmap_stage_plan.pyfor a plan that claims a check is missing while a called helper runs it, and one for a plan whose claim is true.
Target Subsystem
src/devops_cli/roadmap/stage_probe.py, src/devops_cli/roadmap/stage.py, src/devops_cli/roadmap/stage_change.py
Existing Tool Considered
No open, maintained tool checks a code premise across a call chain. The premise probe is the repository's own tool, and this change extends it. Cost: about 8,000 tokens to build and test, about 1,500 tokens to keep and fix, and about 3 hours elapsed. The change deletes no internal code.
Source: PR #3374
Proposed design
Problem statement
A stage plan can claim that a call site runs no check while a helper of that call site runs the check. The premise probe checks cited paths and identifiers only, so the job plans a duplicate of existing behavior. The change makes the probe search called helper bodies and the base tree for a claimed missing check. The stage job returns the item with the path and line when it finds the check.
Acceptance criteria
Requirement: The probe finds a check in a called helper
The stage premise probe SHALL search the bodies of helpers that a cited call site calls when a plan claims that a check is missing.
Scenario: A false missing-check claim
- WHEN A plan task says that
_publishruns notitle_problemscheck, and_publishcalls_delivery_title, whose body callstitle_problems. - THEN The probe reports
title_problemswith the path and line of its call.
Requirement: The probe searches the base tree
The probe SHALL search the base tree for a claimed missing check when the cited call site and its helpers do not hold it.
Scenario: A check in another file
- WHEN A plan claims that a call site runs no
title_problemscheck, and another file at the staging commit holdstitle_problems. - THEN The probe reports the path and line of
title_problemsin that file.
Requirement: A false missing-check claim returns the item
The stage job SHALL return an item to New with the probe evidence when a plan claims that a check is missing and the probe finds the check.
Scenario: A plan that duplicates an existing guard
- WHEN A plan claims that
_publishruns no title check, and the probe findstitle_problemsin_delivery_title. - THEN The stage plan records the item in
returned, writes no branch, opens no pull request, and the evidence names the path and line oftitle_problems.
Requirement: A true missing-check claim stays ready
The stage job SHALL keep the plan when the probe finds no check for a claimed missing check.
Scenario: A plan whose claim is true
- WHEN A plan says that a call site runs no
title_problemscheck, and neither the call site, its helpers nor the base tree hold that check. - THEN The stage plan keeps the change in
readyand records noPremiseFailed.
Requirement: The search stays bounded and read-only
The missing-check search MUST use the existing probe budget and MUST make only read-only git commands at the staging commit.
Scenario: The budget is spent
- WHEN A plan claims a missing check and the probe has no command left.
- THEN The probe lists the claim as skipped and runs no further command.
Requirement: The search makes no model call
The missing-check search MUST be deterministic and MUST make no model call.
Scenario: A claim is probed
- WHEN A plan claims a missing check and the stage job probes it.
- THEN The stage job sends no model request for the search.
Requirement: A claim with no cited call site is ignored
The probe SHALL ignore a missing-check claim that cites no call site and no check name.
Scenario: A general claim
- WHEN A plan says that a check is missing but names no function and no check.
- THEN The probe adds no line and the stage job plans the item as before.
Requirement: The probe runs before the stage writes
The stage job SHALL run the missing-check probe after the model reply and before it writes a branch or a pull request.
Scenario: The probe finds the check
- WHEN The model reply claims a missing check and the probe finds it.
- THEN No branch is pushed and no draft pull request opens.
Existing Tool Considered
No alternatives check has run. No open, maintained tool checks a code premise across a call chain. The premise probe is the repository's own tool, and this change extends it. The written cost is about 8,000 tokens to build and test, about 1,500 tokens to keep and fix, and about 3 hours elapsed. The change deletes no internal code.
Key questions
- What existing outcome returns an item on a false premise?:
PremiseFailedcarries the evidence._return_itemcallsapply_returnwithplan_return, so the stage job returns the item to New and writes no branch. [sources: src/devops_cli/roadmap/stage.py] - Where does the stage planner hold the probe lines and call the reply checks?:
_Planner._requestcallsprobe_premiseand stores_probe_lines._Planner._settlecallscheck_proposalwith those lines before it writes the change. [sources: src/devops_cli/roadmap/stage.py] - What bound and commands does the premise probe use?: The probe uses
CONST_ROADMAP_STAGE_PROBE_MAX_COMMANDS. It runs onlygit cat-file,git grepandgit logat the staging commit, with--before every path. [sources: src/devops_cli/roadmap/stage_probe.py] - How should the stage job detect a missing-check claim in a plan?: Scan
feasibility, the group tasks anddecisionsfor an absence word and a check word. Require a code-spanned call site or check name. (best practice) [sources: src/devops_cli/roadmap/stage_change.py, src/devops_cli/roadmap/stage.py, docs/adr/0005-review-findings-come-from-tools-not-models.md]- Chosen: Scan plan texts for an absence word and a check word near a code-spanned call site or check name. The issue names plan tasks and decisions, so a new schema field would not catch a prose claim.
- Rejected: Add a required
missing_checksfield toStageProposal. A model can omit the field, and the existing bad plan is prose. - Rejected: Ask the verifier model to find the claim. ADR 0005 keeps findings deterministic, and the probe is a tool.
- What code should the probe search for the claimed check?: Read the cited call site at the staging commit. Collect the functions that it calls. Search those helper bodies for the check. If none holds it, search the base tree. (best practice) [sources: src/devops_cli/roadmap/stage_probe.py, src/devops_cli/roadmap/implement_run.py]
- Chosen: Search the cited call site's file and one level of called helpers, then the base tree. This covers the helper that the plan did not read, and it avoids an unrelated whole-tree match.
- Rejected: Search only the cited call site body. The cited bug read the call site and missed the helper.
- Rejected: Search the whole base tree first. It can report a check that the call site never calls.
- What does the stage job do when the probe finds the check?: The job returns the item to New through
PremiseFailedandapply_return. The evidence names the path and line. The job pushes no branch and opens no pull request. (best practice) [sources: src/devops_cli/roadmap/stage.py]- Chosen: Return the item to New with
PremiseFailedand the path and line. The stage job already returns a false premise this way, and the issue asks for that evidence. - Rejected: Stop the item as Blocked. A false premise is not a stop; it returns to New.
- Rejected: Send the plan back to the model. The issue asks the job to reconcile and return, not to plan a duplicate again.
- Chosen: Return the item to New with
- Should the probe read merged pull requests from GitHub?: Use the staging commit tree only. The base tree holds the behavior of a merged pull request. (best practice) [sources: src/devops_cli/roadmap/stage_probe.py, src/devops_cli/roadmap/stage.py]
- Chosen: Use the staging commit tree only. A merged behavior is in the base tree, and the probe stays read-only and offline.
- Rejected: Search merged pull requests on GitHub. It adds network, authentication and rate limits for no extra evidence.
- Which tests prove the change?: Add one case where a called helper holds the claimed check and the item returns. Add one case where no helper holds the check and the plan is ready. (best practice) [sources: tests/roadmap/test_roadmap_stage_plan.py]
- Chosen: Add two cases to
tests/roadmap/test_roadmap_stage_plan.py. The issue names the file, and it already covers probe quotes and premise returns. - Rejected: Add a new test module. The change belongs with the stage plan tests.
- Chosen: Add two cases to
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Alternatives check of 2026-11-06: rejected.
Rejected by ADR 0005. A newer fact can change an ADR.
Tool: github/codeql (https://github.com/github/codeql), MIT, last activity 2026-11-06, maintained.
Activity
dan-petty commentedon Nov 4, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
featprefix of the title gives the type.(roadmap)scope of the title gives the scope.It prevents duplicate plans but does not block delivery or expose a security risk.It stops the stage job from planning a guard that already exists, saving model calls and review time.It needs changes to the probe, the stage job reconciliation, and new tests across three files.Both extend the premise probe at the staging commit; #3011 covers path existence, while the candidate adds a search of called helper bodies for a check a plan claims is absent.devops-cli-service commentedon Nov 4, 2026
Status set to Ready at 89682e4 (see proposed design in issue body).
[-]feat(roadmap): the stage premise check proves a claimed missing check is absent[/-][+]feat(roadmap): Verify a claimed missing check in helpers and base[/+]dan-petty commentedon Nov 6, 2026
The job shortened the title of this item. The summary had 64 characters, and the limit is 60. The type and the scope stay.
feat(roadmap): the stage premise check proves a claimed missing check is absentfeat(roadmap): Verify a claimed missing check in helpers and basedevops-cli-service commentedon Nov 6, 2026
Alternatives check: rejected
Rejected by ADR 0005. A newer fact can change an ADR.
Tool: github/codeql (https://github.com/github/codeql)
Covers:
_publish) reaches a named check (for exampletitle_problems) through the helpers it calls, which is the exact claim the plan got wrong.Lacks:
git cat-file,git grepandgit logcommands at the staging commit.PremiseFailed/apply_returnpath that returns the item to New.Searches run:
Sources:
Checked on 2026-11-06. A person decides what this means for the item. The check changes no label and closes no issue.
10 remaining items
devops-cli-service commentedon Nov 15, 2026
Stopped at group 1.
Failed check:
pytest on base: tests/roadmap/stage/test_roadmap_stage_probe.py.Failure class:
outside_plan.Action taken:
repair, 1 fix round(s).Action left:
wait: wait for a person.pytest on base: tests/roadmap/stage/test_roadmap_stage_probe.pyReason:
Last message of the agent (a claim that no check verified): The static check failed because the test module imported
check_claims/claimed_missing_checksat the top level, so the base replay hit a collection error and no test ID failed. ## Fixtests/roadmap/stage/test_roadmap_stage_probe.pyis the only file changed in this turn: - Restored the top-level import toblocked_by, probe_premise(both exist on the base). - Moved the import of the two new functions into each of the six new test functions, with a comment on the first one. This follows the repo's own pattern intests/support/roadmap_stage.py:314("the fail-to-pass replay loads it against a base tree that has noStageWriteryet"). The implementation, message and tasks ticks are unchanged. ## Verification - Base replay, proved by temporarily restoring the basestage_probe.pyandmessages.pyand running the test file: 24 passed, 6 failed asFAILEDtest IDs (no collection error). Then restored the implementation. -uv run devops ci test tests/roadmap/stage/test_roadmap_stage_probe.py— 30 passed. -uv run devops ci test tests/roadmap/stage/test_roadmap_stage_plan.py— 184 passed. -uv run ruff checkon the three changed Python files — passed. -uv run mypy --stricton the two changedsrc/files — no issues. Note: the branch had been reset tomainwhile the check ran; I recovered the implementation from the earlier wip commit74749b27band re-ran every check above on the recovered tree.git diff HEAD --statshows only the group's four filThe job discarded this work. Read it before you retry:
The item is Blocked, and the job will not run it. Fix the cause. Then comment
implement: retry. The Service clears the stop on its own when a new runner image rolls out, but only if a retry can fix the class of the stop and the limits ofroadmap.implement.digest_clears_per_classandroadmap.implement.digest_clears_per_itemallow it.The job kept 1 work-in-progress commit on the branch
feat/3416-verify-a-claimed-missing-check-inon origin. The last is9b5fcc8b27938d9b475add8006f3018fff2544ea. The job discarded only the work after it. The next run continues from it and does the tasks that are not ticked.devops-cli-service commentedon Nov 15, 2026
The runner Job devops-cli-implement-devops-cli-3416-7334f7 ended: succeeded.
Image digest: sha256:8eb01bbf4733ad025ae03ba6f0b040269878699c269450994163754fa514f553
The last lines of its log:
feat(roadmap): Verify a claimed missing check in a helper (#3416)
feat(roadmap): Verify a claimed missing check in a helper (#3416)
devops-cli-service commentedon Nov 16, 2026
Released in v0.164.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.164.0
devops-cli-service commentedon Nov 16, 2026
Live since 2026-11-16 13:55 UTC