Repository navigation
fix(roadmap): the trace gate reads the subject of a read - #4544
Conversation
MeasurementsStored refusals (the premise)The roadmap-service pod held 21
The 8 that
3 of the 4 subject cases also cite a Search match and probe decision
Corpus15,763 Feasibility sentences (13,818 from archived change proposals, 1,255 from refused records, 370 from eval cases, 320 from kept plans), judged with a trace that holds every tool and no path:
No sentence is newly refused. 17 refusals name another path: the object of the read in place of the first path of the sentence. The 9 kept plan files with facts in the pod pass the gate of the change with their own facts (0 trace problems). Eval replay (
|
7f607dc to
f391fd9
Compare
f391fd9 to
82c3a44
Compare
Review finding: the read object and the quoted result
VerificationI ran
FixThe object of a read word now ends at a verb of its result (
Fail-to-pass
Corpus replay (corrects "No sentence is newly refused")The same 15,763 Feasibility sentences. With a trace that holds every tool and no path, Replay of the 15 with a trace that holds the path that
Leave-one-out replay. For each sentence and each path that it cites, the trace holds every tool and every other path of the sentence, so only that path is unread.
So the change newly refuses some sentences that claim no read by the run when the run read the first path of the sentence. These forms come from archived proposals. None comes from a stored refusal or a kept plan of the stage job. I filed #4590 for the forms (a relative clause read, a code subject before a parenthesis, a subject of code spans only). Other replays
Known limits
Live stepsNone. |
82c3a44 to
bebf0d5
Compare
|
Review fixes (review 1. Major: 2. Minor: nested backticks in the trace gate paragraph of 3. Minor: the pull request closes #4495 but narrows two acceptance criteria. CONFIRMED. Replay ( No code changed in this round, so no new CI: |
c6d57f4 to
fb985a8
Compare
The trace gate takes a read word as a claim of the run only when it is read_file, a passive, a read with no subject, or a read whose subject names the run or its author. A read whose subject is the plan, a group, the probe or code is no claim, and read-only is no read word. The gate judges the path that the read takes, not the first path of the sentence. A citation of a line that a search_code or callers match showed counts as seen; a claim of the whole file does not.
The object of a read word ends at a verb of its result, such as `shows`. A read with no path in its object takes the last path before it, so "`read_file` on it showed the text `x.py`" judges the earlier path and not the quoted path. Refs #4495.
fb985a8 to
9c6d038
Compare
Fix round 2: findings of the verifierHead before this round: Finding 1 (major),
|
| Gate | Refused |
|---|---|
origin/main 5f75d256 |
469 |
round 1 bebf0d57 |
221 |
| this round | 272 |
- 17 refusals are new against
origin/main. Each is a spanread_file pathwhose path the empty trace does not hold. Each is a true read claim of the run. - 17 refusals name another path of the same sentence (the object of the read, not the first path).
- 214 refusals of
origin/mainare dropped. I read each of them:- 19 have only
read-only(orread-configuration) as a read word. - 188 have a subject that is not the run ("All commands ran on
origin/main", "the probe line reads", "the helper reads"), a read of code, or a read claim of the run with no path in its object. - 7 are read claims of the run. 3 have no repository path as the object (a key, a source archive, "the repository"). 4 have a label or a heading as the subject: "Code read:
x.py" (3) and "Renovate. Read the config" (1), where the sentence split does not end the heading. All 7 come from archived proposals that agents wrote, not from the stage job. I did not add rules for them, because a label rule would also take "The probe line reads: ..." as a claim.
- 19 have only
Finding 2 (major), a match line supports a claim of the whole file through a pronoun: CONFIRMED
With the match line src/devops_cli/commands/roadmap.py:813 and no path, bebf0d57 accepted the 3 pronoun forms of the finding. Change: _object_span now also returns whether the read names the span itself. _was_seen(..., by_line=...) lets a match line support only a read that names that line. read_file, a read that takes the line through a pronoun or from the last path before it, and a read that takes the first path of its result judge the path against trace.paths only. New test test_a_match_line_supports_no_read_of_the_whole_file: the 3 forms of the finding, the direct form, and read_file of a match line citation are refused. The direct citation cases of test_a_search_match_supports_a_citation_of_its_line_only still pass.
Finding 3 (minor), a pronoun object with a result verb that is not in _RESULT_VERB: CONFIRMED
bebf0d57 refused src/b.py for "docs/a.md is a file, and read_file on it revealed the text "see src/b.py"" with docs/a.md in the trace. Change: _PRONOUN_OBJECT (it, them, or that, this, these, those, the same before a noun, after one preposition). When the object starts with a pronoun and a path is before the read, the read takes that path. Table cases pronoun-read and pronoun-not-read use revealed.
Earlier findings
- Round 1 major (a path in the result of a read): still fixed. The
3252-read,3252-not-read,participle-readandparticiple-not-readcases pass. - Nested backticks in
docs/roadmap/stage.md: the new paragraph uses double-backtick spans. A markdown-it-py parse of the line gives 34 code spans and no split span. - The two narrowed criteria of fix(roadmap): trace gate refuses probe and search-hit reads #4495: no change. The evidence stays in the proposal Feasibility and on fix(roadmap): trace gate refuses probe and search-hit reads #4495.
Checks
tests/roadmap/stage/test_roadmap_stage_trace_subject.py,test_roadmap_stage_trace_spans.py,test_roadmap_stage_plan_record_facts.py,tests/ai/client/test_roadmap_agent_run.py: 173 passed. The 18 new cases failed onbebf0d57before the change (14 for the three findings, 4 for the extra forms).- After each rebase I ran the 3 trace test files of
tests/roadmap/stage/and the test files that changed onmainsince the round-1 base (fix(roadmap): return a stage item to New after three refused plans #4537, fix(roadmap): name the same-name file of a stale test path #4591 and fix(roadmap): refuse a requirement text over 500 chars #4614 changestage.pyandstage_change.py): 407 passed on9605f554, 365 stage tests passed onf67c8820. CI on the earlier headsc6d57f45andfb985a8b: 34 of 34 checks passed each time. On9c6d0380,devops pr monitorreported that all checks passed. uv run devops ci fail-to-pass --base origin/main: 11 failed and 2 collection errors on the base (TraceFactshas nolinesthere), exit 0.uv run devops roadmap eval stage --replayonorigin/mainand on this head: the same report. 81 of 318 defects caught by a gate, 5 of 5 good plans accepted, "every gate refuses what it must refuse".devops openspec checkpassed. The requirement texts have 498 and 484 characters.- The rebases had four conflicts in
openspec/specs/roadmap-stage/spec.md: fix(roadmap): count and log the reason of a left-out stage item #4541, fix(roadmap): return a stage item to New after three refused plans #4537, fix(roadmap): name the same-name file of a stale test path #4591 and fix(roadmap): refuse a requirement text over 500 chars #4614 each added a requirement at the same place. I kept all requirements.openspec validate --specs --strictafter the rebase: 239 passed.
I set the pull request to draft before the push, because it was ready for review, and I changed the body to state the new rules in 976 characters up to the Change: line (the limit is 1,000).
A person merged the pull request at 14:09 UTC with the head 9c6d0380. The squash commit 4330ee43 holds all changes of this round, so no finding needs a new issue.
No live cluster, ConfigMap or Secret step is necessary.
🤖 I have created a release *beep* *boop* --- ## [0.112.1](v0.112.0...v0.112.1) (2026-11-11) ### Bug Fixes * **roadmap:** the trace gate reads the subject of a read ([#4544](#4544)) ([4330ee4](4330ee4)) --- 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>
The Feasibility trace gate took each
readas a claim that the run read the first path of the sentence. It refused sentences with no such claim, such as "This plan readsx.pyin group 2" or "a read-only root".read_file(orread_file path), a passive or participle, a noun read, a read with no subject, or a read whose subject, or that of its verb list, names the run or its author.shows) or a pronoun object is not its object.path:lineof each search match line. A read whose object cites that line counts as seen;read_file, a pronoun read and a whole-file claim do not. A probe line gives no read. This replaces the issue criteria on search hit and probe paths, which accept invented reads.Closes #4495
Change:
openspec/changes/archive/2026-11-11-4495-trace-gate-refuses-probe-and-search/