Repository navigation
Description
Problem Description
The Feasibility trace gate of the stage job (_uncalled_path in src/devops_cli/roadmap/stage/stage_change.py) takes some read words as a claim that the run read a file, but the sentence says what code does or names no file. Since #4495 the gate judges the object of each read claim, not the first path of the sentence. In these forms the object is a path that a run usually did not read, so the gate refuses a sentence that origin/main accepts when the run read the first path:
- A read at the end of a relative clause, with the object before the relative pronoun: "... so the branch can start past the commit that the planner read." The gate judges the last path before the read (
origin/main). - A code subject before a parenthesis: "
collect_context(src/x.py) readsCONTEXT.md". The clause starts after), so the subject is empty and the read counts as a read of the run. - A subject of code spans only: "
src/a.py:107andsrc/b.py:436read_core_v1". The claim blanks the code spans, so the subject is empty.
These forms make no claim of a read by the run in origin/main either, but there the gate judged the first path of the sentence, which the run usually read. The gate of origin/main and of #4495 also refuse "/proc/self/exe cannot be read" (_NEGATION has no cannot).
Reproduction Steps
- Make a
TraceFactswith every toolbox tool and the pathsrc/devops_cli/sample.py. - Call
_sentence_trace_problemwith each sentence:- "
read_fileofsrc/devops_cli/sample.pyshowed that_createfetchesorigin/main, so the branch can start past the commit that the planner read." - "
collect_context(src/devops_cli/sample.py) readsCONTEXT.mdand a tree." - "
src/devops_cli/sample.py:107andsrc/b.py:436read_core_v1."
- "
- The gate refuses
origin/main,CONTEXT.mdandsrc/b.py.
Expected vs Actual Behavior
Expected: no trace problem. The sentences make no claim that the run read origin/main, CONTEXT.md or src/b.py.
Actual: "The Feasibility section states that origin/main was read, but the run did not read it." The same for CONTEXT.md and src/b.py.
Evidence: a leave-one-out replay of the 15,763 Feasibility sentences of the corpus of #4495 (for each cited path, the trace holds every tool and every other path of the sentence). 20 sentences have a judged path that origin/main does not judge. In 10 of them it is the true object of a read claim of the run, or another path of the same claim. The other 10 come from sentences that claim no read of a file by the run, such as the archived proposals of #2920, #3012, #3188, #3309 and #1315.
Environment Diagnostics
- DevOps CLI Version: main after fix(roadmap): trace gate refuses probe and search-hit reads #4495 (pull request fix(roadmap): the trace gate reads the subject of a read #4544)
- Execution Environment: Roadmap Service (the stage row)
Logs, Traces, or Terminal Output
uv run python loo.py corpus.json loo-fix.json
489 sentences, 494 judged pathsPre-Submission Checklist
- I have verified that no sensitive credentials, private keys, or internal tokens are contained in this issue report.
- I have checked existing issues and pull requests to ensure this is not a duplicate.
Alternatives check of 2026-11-13: none.
Tool: none found.
Proposed design
Problem statement
The Feasibility trace gate of the stage job refuses sentences that make no claim that the run read a file. The gate judges the last path before a relative-clause read. It judges the object after a code subject in parentheses. It judges the object after a subject of code spans only. It also treats cannot as no negation. The gate must accept these sentences and still refuse a true run read of a path that the trace lacks.
Acceptance criteria
Requirement: Relative clause read
The trace gate SHALL not judge the last path before a relative-clause read whose object holds no path.
Scenario: Relative clause with a planner read
- WHEN The sentence is
read_fileofsrc/devops_cli/sample.pyshowed that_createfetchesorigin/main, so the branch starts past the commit that the planner read. The trace holdssrc/devops_cli/sample.py. - THEN
_sentence_trace_problemreturns None.
Requirement: Code subject in parentheses
The trace gate SHALL treat a code span before a parenthesis as the subject of the read, so the object is no run read.
Scenario: Code subject with a location
- WHEN The sentence is
collect_context(src/devops_cli/sample.py) readsCONTEXT.mdand a tree. The trace holdssrc/devops_cli/sample.py. - THEN
_sentence_trace_problemreturns None.
Requirement: Code-span subject
The trace gate SHALL treat a subject of code spans only as a code subject, so a read of _core_v1 is no run read.
Scenario: Two code spans read a symbol
- WHEN The sentence is
src/devops_cli/sample.py:107andsrc/b.py:436read_core_v1. The trace holdssrc/devops_cli/sample.py. - THEN
_sentence_trace_problemreturns None.
Requirement: Cannot negation
The trace gate SHALL treat cannot as a negation word, so a read it negates is no claim.
Scenario: Cannot be read
- WHEN The sentence is
/proc/self/execannot be read. The trace holds no/proc/self/exe. - THEN
_sentence_trace_problemreturns None.
Requirement: Space line range
The trace gate SHALL strip a trailing space-separated line range from a path span, so the gate judges the path.
Scenario: Citation with a space line range
- WHEN The sentence is
read_fileofsrc/devops_cli/sample.py 590-610showed_create. The trace holdssrc/devops_cli/sample.py. - THEN
_sentence_trace_problemreturns None.
Requirement: True run read refused
The trace gate SHALL refuse a read of a path that the trace does not hold when the subject is the run.
Scenario: Run reads an unread path
- WHEN The sentence is
I readsrc/b.py.The trace holds nosrc/b.py. - THEN
_sentence_trace_problemreturns the trace path problem forsrc/b.py.
Existing Tool Considered
No tool covers this: the alternatives check of 2026-11-13 found no open, maintained tool or library that judges the object of a read claim in these sentence forms. The fix stays in the repository's own _uncalled_path, _subject, _object_span, _is_code_reading and _NEGATION logic. Cost: about 30k tokens and 2 hours to write, keep and fix that logic.
Key questions
- Why does the gate judge
origin/mainin the sentence with the relative clause?:_object_spanfinds no path inthe commit. It uses the last path before the read,origin/main._is_run_readtreatsthe planneras a run reader, so the gate judgesorigin/main. [sources: src/devops_cli/roadmap/stage/stage_change.py] - Why does the gate judge
CONTEXT.mdwhen a code span and a parenthesis precede the read?:_claim_wordsblanks the code spancollect_context._subjectstarts the clause after the closing), so the subject is empty._is_run_readtreats an empty subject as the run's read, so the gate judgesCONTEXT.md. [sources: src/devops_cli/roadmap/stage/stage_change.py] - Why does the gate judge
_core_v1when the subject is code spans only?:_claim_wordsblanks the code spans, so the subject is empty._is_code_readingrecognizesreadsorreadingwith a code span before it. It does not recognizereadafter a plural list of code spans. The empty subject makes the read the run's. [sources: src/devops_cli/roadmap/stage/stage_change.py] - Should
cannotcount as a negation word?: Yes. Addcannotto_NEGATION, because it negates the read. The sentence makes no claim that the run read the path. (best practice) [sources: src/devops_cli/roadmap/stage/stage_change.py:1903]- Chosen: Add
cannotto_NEGATION. It is a negation word and the issue's reproduction shows the gate refusescannot be read. - Rejected: Keep
_NEGATIONunchanged. It leaves the false refusal in place.
- Chosen: Add
- Should this change make the job write the Feasibility read list instead of fixing the gate?: No. Fix the gate's parser now. The job-write change changes the stage prompt and the Feasibility generation. It is a separate design. The issue asks for the gate to accept the three sentences. (best practice) [sources: src/devops_cli/roadmap/stage/stage_change.py, src/devops_cli/ai/tasks/roadmap_stage_change.md]
- Chosen: Fix the gate's parser. It is the smallest change that meets the issue's expected behavior and keeps the current stage prompt.
- Rejected: Job writes the read list. It is a larger design change that belongs to a separate item; the issue asks for the gate fix.
- Should the gate strip a trailing line range from a path span, as in
path 590-610?: Yes._citationstrips line numbers only after a tool name. A space-separated line range stays in the claimed path. Strip a trailing<start>-<end>from a span that is a path, so the gate judges the path. (best practice) [sources: src/devops_cli/roadmap/stage/stage_change.py]- Chosen: Strip the line range in
_citation. It fixes the false refusal of a citation form that the reply's evidence names. - Rejected: Change the
read_fileanswer topath:start-end. It changes the tool output and the stage prompt, and the gate can accept the form directly.
- Chosen: Strip the line range in
- Should this change alter the trace finding text to name the accepted read forms?: No. The gate fix removes the false refusals. The finding text is a separate usability change. It does not change the gate's judgment. (best practice) [sources: src/devops_cli/lang/en/messages.py]
- Chosen: Keep the finding text. The issue's expected behavior is no trace problem, and the message text does not cause the refusal.
- Rejected: Name the accepted forms in the message. It is a separate change to
messages.pyand the stage prompt, and the gate fix already accepts the forms.
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
dan-petty commentedon Nov 11, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
fixprefix of the title gives the type.(roadmap)scope of the title gives the scope.A regression that blocks valid plans in three specific sentence forms, affecting 20 of 15,763 corpus sentences.Unblocks valid plans that are incorrectly refused in three specific sentence patterns.Requires fixing object detection in three distinct sentence forms within the gate logic.Both fix the trace gate read-claim judgment, but #4495 fixed probe and search-hit reads while this candidate fixes false positives that #4495 introduced in three sentence forms.devops-cli-service commentedon Nov 13, 2026
Alternatives check: none
Reason: The issue asks for a bug fix inside the project's own trace gate (
_uncalled_path/_NEGATIONinsrc/devops_cli/roadmap/stage/stage_change.py), not for a tool or library. Searches for sentence-parsing, subject/object and claim-extraction tooling returned only generic glossary pages, so nothing found covers the need of making the gate judge the true object of a read claim in these three sentence forms.Tool: none found
Lacks:
cannotto the gate's negation words_uncalled_pathlogic, not in an external dependencySearches run:
Checked on 2026-11-13. A person decides what this means for the item. The check changes no label and closes no issue.
fix(roadmap): the stage gate log names each refused finding (#5441)
dan-petty commentedon Nov 13, 2026
New evidence of 2026-11-13 (review of failing jobs).
stage_problem_trace_pathfindings in 9stage gate returnslines (releases 0.123.1 to 0.129.x).path 590-610,path:250-330,read_file("p", 60, 80)._citationremoves the line numbers only after a tool name (src/devops_cli/roadmap/stage/stage_change.py, near lines 2033-2039).messages.py, near lines 4848-4850).plan_defect. The planner sends 25 to 41 tool calls in each reply.Two scope points:
Feasibilitysection from the run trace, so the model makes no read claim. This follows the owner rule of 2026-10-03: tools originate evidence, and the model correlates.read_fileanswer starts withpath:start-end, which the model can copy. The finding text names the forms that the gate accepts.#5433 logs each refused claim. Its data confirms the share of citation-form refusals before a build.
Measure:
stage_problem_trace_pathfindings per 100 stage runs go down,plan_defectresults go down, and model input and output per staged item go down.devops-cli-service commentedon Nov 14, 2026
Status set to Ready at b15faab (see proposed design in issue body).
devops-cli-service commentedon Nov 18, 2026
Released in v0.178.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.178.0
devops-cli-service commentedon Nov 18, 2026
Live since 2026-11-18 17:44 UTC