Skip to content

fix(roadmap): the caller gate reads an added parameter span - #4548

Merged
dan-petty merged 2 commits into
mainfrom
fix/4529-caller-gate-parameter-span
Nov 11, 2026
Merged

dan-petty merged 2 commits into
mainfrom
fix/4529-caller-gate-parameter-span

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The caller gate (#3307) of the stage plan check reads again the most frequent task form, Add x to fn or Add x: T = d to fn. Since #4490 it read a function only when the clause said parameter, argument or keyword, so a plan that added a parameter in the plain form and left out a caller passed.

  • changed_functions in src/devops_cli/roadmap/stage/stage_paths.py also reads a clause whose added part is one code span, alone or after the, that ast reads as the parameters of a def. A decorator, an option and a constant in capitals are no parameter. The def filter of calling_files drops a class or an enum.
  • The tests use the plain form Add probes to check_proposal again, add the true and false span forms, and keep a field of a model free of a caller problem.
  • docs/ROADMAP_WORKFLOW.md and the roadmap-stage requirement state the rule.

Closes #4529

Change: openspec/changes/archive/2026-11-11-4529-the-caller-gate-reads-an-added/

The caller gate of the stage plan check reads a task clause whose added part is one code span in parameter shape, as `name` or `name: Type = default`. A decorator, an option and a constant in capitals are no parameter, and the def filter of calling_files drops a class or an enum.
@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

Measurements and checks

Fail-to-pass

uv run devops ci fail-to-pass --base origin/main:

6 failed on base (6 failed and 123 passed in tests/roadmap/stage/test_roadmap_stage_paths.py; 0 errored).

The failures on the base are test_a_plan_that_leaves_out_a_caller_is_refused (assert False) and the cases name-span, typed-span-with-a-default, typed-span-to-two-functions, span-after-the and field-of-a-model-read-as-a-name of test_the_caller_check_reads_only_a_parameter_that_a_task_adds (the base reads []). Each case passes on the change.

Function reads over the archived tasks

changed_functions over each line of the 924 archived tasks.md files at origin/main, kept to names that src/ defines with def (the script of #4529, run with each version of stage_paths.py):

Rule Function reads
Before #4490 (Add .+? to name``) 75
main (word parameter, argument or keyword) 35
This change 58

The change reads each of the 35 names of main, and 23 more. Each of the 23 is a true parameter addition: to_sarif (tool_runs), build_import_graph (known), plan_item and _planner_of (facts_source), build_job (resources), read_cgroup_v2_metrics and collect_sandbox_metrics (cgroup_root), _record (trace), decide_all (model_name), fetch_pr_check_verdicts (checkout), plan_stage (the verifier), and the sampling parameter of _retry_chat_dispatch, _dispatch_messages, _invoke_provider_messages, _build_anthropic_kwargs, _claude_messages, _ollama_messages, _try_single_ollama_request, _ollama_request, _build_ollama_payload, _openai_compat_messages, _prepare_params and _apply_sampling_and_limits.

The change leaves out 45 reads of the old rule: 9 decorators (@dry_run_class(...)), 8 options (--jobs, --take-ownership, --skip, --container, --kind, --branch, --confirm, --json), and 28 clauses that add something other than one span (the read, the sections, the check, a rule, the request open_plan) or that the old rule read across a sentence (Pass repo from plan_refine to refine_one_item). #4490 removed these reads on purpose. The change reads 28 names that the old rule did not read, because the old rule read only the first name after to and only Add with a capital.

The stored refused replies

caller_problems over the 36 stored refused replies (<n>.refused.json of 18 items), on the tree of origin/main (7234d71):

Rule Caller problems
Before #4490 28
main 4
This change 4

The 4 problems of the change are the same 4 true problems of main (#3407 reply 1 and #3423 reply 0: check_gates and check_proposal with their callers plan_recheck.py, implement.py and plan_check.py). No false refusal that #4490 removed comes back. The change reads more names in these replies (select_stageable of #3387, which the plan lists with its callers, and the classes _Judge, StageTarget, CaseFacts, PullStatus, VerificationInput, JobOutcome and the test function test_scan_individual_tools), and calling_files drops each name that no module under src/ defines with def. The count before #4490 is 28 on this tree; #4490 counted 26 on the tree of 6cf78e73.

Stage eval replay

uv run devops roadmap eval stage --replay gives the same output on the base (7234d718) and on the change. The replay tree has no checkout, so it does not judge the caller gate.

Gate     Issue  Known  Caught  Missed
paths    #3010     52      52       0
kind     #3005     25      25       0
criteria #3019      0       0       0
content  #3200      3       3       0
prompt_keys #3328      1       1       0

Defects that a gate judges: 81 of 318 (25%).
Good plans that every gate accepts: 5 of 5.
Result: every gate refuses what it must refuse.

Local checks

uv run devops ci typecheck (no issues in 788 source files), uv run devops ci docs, uv run devops openspec check and uv run pytest tests/roadmap/stage/test_roadmap_stage_paths.py (129 passed) pass.

The live Service

The change needs no ConfigMap or Secret change. The Service gets it with the next image.

@dan-petty
dan-petty marked this pull request as ready for review November 11, 2026 09:00
@dan-petty
dan-petty merged commit 1ba07c1 into main Nov 11, 2026
53 of 55 checks passed
@dan-petty
dan-petty deleted the fix/4529-caller-gate-parameter-span branch November 11, 2026 11:57
dan-petty pushed a commit that referenced this pull request Nov 11, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.112.0](v0.111.0...v0.112.0)
(2026-11-11)


### Features

* **k8s:** export gateway spans without key metadata
([#4520](#4520))
([7234d71](7234d71))
* **k8s:** set the homelab domain in container env values
([#4608](#4608))
([a3bcf7c](a3bcf7c))
* **telemetry:** send pydantic-ai spans through the exporter seam
([#4538](#4538))
([fcf2a7a](fcf2a7a))


### Bug Fixes

* **ai:** price cached prompt tokens of chat calls
([#4584](#4584))
([f84bbe6](f84bbe6))
* **devcontainer:** stop uv noise lines in agent shells
([#4592](#4592))
([9ba375c](9ba375c))
* **k8s:** delete gateway management bodies from spans
([#4551](#4551))
([b835d3c](b835d3c))
* **k8s:** set the kube context and namespace on devops pods
([#4514](#4514))
([9087b39](9087b39))
* **roadmap:** a refused spec after the archive is a plan defect
([#4549](#4549))
([1db29f7](1db29f7))
* **roadmap:** count and log the reason of a left-out stage item
([#4541](#4541))
([5600179](5600179))
* **roadmap:** default the step ceiling to twice the budget
([#4556](#4556))
([1dfb6c8](1dfb6c8))
* **roadmap:** explain --trace shows the argument digest
([#4526](#4526))
([c92195f](c92195f))
* **roadmap:** explain totals count dropped model events
([#4543](#4543))
([fe0e979](fe0e979))
* **roadmap:** give each eval verify run its own report file
([#4534](#4534))
([ad27f2d](ad27f2d))
* **roadmap:** one event loop and a time limit for decide_all
([#4585](#4585))
([ec51e01](ec51e01))
* **roadmap:** scoped updates send requests with no row scope
([#4531](#4531))
([5f75d25](5f75d25))
* **roadmap:** the caller gate reads an added parameter span
([#4548](#4548))
([1ba07c1](1ba07c1))
* **roadmap:** the implement shell waits for its command
([#4536](#4536))
([571e044](571e044))
* **roadmap:** the module-test and caller gates read imports and calls
([#4490](#4490))
([8a22e82](8a22e82))
* **service:** put trace ids on Service JSON log lines
([#4511](#4511))
([0d7a0d2](0d7a0d2))


### Performance Improvements

* **ai:** keep intake embeddings between CLI runs
([#4546](#4546))
([812871e](812871e))
* **roadmap:** intake reads only the issues that changed
([#4552](#4552))
([7dfd155](7dfd155))

---
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): the caller gate reads an added parameter span

1 participant