Skip to content

fix(roadmap): trace gate reads a tool call citation - #4694

Merged
dan-petty merged 2 commits into
mainfrom
fix/4547-trace-gate-call-form
Nov 11, 2026
Merged

dan-petty merged 2 commits into
mainfrom
fix/4547-trace-gate-call-form

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The Feasibility trace gate now reads the call form of a tool citation. It takes the first quoted argument of a stage tool call, such as read_file("src/a.py", 60, 80), as the claimed path. Before, it kept the whole call as the path and refused a claim of a file that the run read. A call of a word that is no stage tool stays whole.

Closes #4547

Change: openspec/changes/archive/2026-11-11-4547-trace-gate-misses-the-tool-call/

The Feasibility trace gate now takes the first quoted argument of a stage
tool call, such as read_file("path", 60, 80), as the claimed path.

Closes #4547
@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 11, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Test results.

Fail-to-pass: uv run devops ci fail-to-pass --base origin/main shows 6 of 66 tests in tests/roadmap/stage/test_roadmap_stage_trace_spans.py failed on base and pass on the change. They are the double-quoted, single-quoted, spaced and ./ call forms, the line-range call form, and the refusal that names the path of a call.

Stage replay, uv run devops roadmap eval stage --replay, on base and on the change gives the same result: 58 cases, 5 good plans, every gate refuses what it must refuse, good plans accepted 5 of 5, 82 of 319 defects judged by a gate (26%). The change moves no score, as the golden set holds no call-form citation.

Live steps: none.

@dan-petty
dan-petty marked this pull request as ready for review November 11, 2026 17:30
@dan-petty
dan-petty merged commit 5c71ad4 into main Nov 11, 2026
32 checks passed
@dan-petty
dan-petty deleted the fix/4547-trace-gate-call-form branch November 11, 2026 17:30
dan-petty pushed a commit that referenced this pull request Nov 11, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.112.3](v0.112.2...v0.112.3)
(2026-11-11)


### Bug Fixes

* **ai:** record the duration of each agent model request
([#4717](#4717))
([1930b71](1930b71))
* **devcontainer:** poll the Docker daemon through the clock
([#4721](#4721))
([be32268](be32268))
* **roadmap:** confine repair fix turns to the plan files
([#4689](#4689))
([d2e7597](d2e7597))
* **roadmap:** name the nearest test of a module
([#4696](#4696))
([b746c95](b746c95))
* **roadmap:** scoped intake reads a bounded page count
([#4740](#4740))
([f89ccc5](f89ccc5))
* **roadmap:** stage context reads runner facts from the package
([#4723](#4723))
([05e09dc](05e09dc))
* **roadmap:** stage holds an item where openspec is not set up
([#4749](#4749))
([45bd54a](45bd54a))
* **roadmap:** trace gate reads a tool call citation
([#4694](#4694))
([5c71ad4](5c71ad4))


### Performance Improvements

* **ci:** cancel superseded CodeQL runs and idle triggers
([#4763](#4763))
([c951368](c951368))


### Code Refactoring

* **ai:** delete orphan prompts and the prompt fallbacks
([#4710](#4710))
([38a1b13](38a1b13))

---
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): trace gate misses the tool call citation form

1 participant