Repository navigation
Description
Problem Description
The caller gate (#3307) of the stage plan check does not refuse a plan that adds a parameter to a function and leaves out a caller of that function. PR #4490 (#4467) changed changed_functions in src/devops_cli/roadmap/stage/stage_paths.py. The gate now reads a function name only when the added part of the clause holds the word parameter, argument or keyword. The most frequent task form, Add xtofn or `Add `x: T = d` to `fn, holds none of these words, so the gate reads no function and reports no missing caller. Issue #4467 expected that the gate reads each parameter that a task adds to a function, in the form Add <parameter> to ``, with no word condition.
PR #4490 also changed the existing test test_a_plan_that_leaves_out_a_caller_is_refused from Add probestocheck_proposal to `Add the keyword `probes` to `check_proposal. Thus no test checks the plain form now.
Reproduction Steps
- At
origin/main(8a22e82 or later), callchanged_functionswith one group whosetesttext isAddknowntobuild_import_graph. - Do the same with
Addsampling: CallSampling | None = Noneto_retry_chat_dispatch.and withAddfacts_sourcetoplan_item. - Do the same with
Add the keywordknowntobuild_import_graph.
Expected vs Actual Behavior
Expected: each of the four texts gives the function name, and caller_problems reports each file under src/ that calls the function and that the plan leaves out. A class or an enum stays out, because calling_files reads a name only when a module defines it with def.
Actual: texts 1 and 2 give []. Only text 3, with the word keyword, gives ['build_import_graph']. A run of the old and the new rule over the 922 archived tasks.md files, filtered to the names that src/ defines with def, gives 75 function reads for the old rule and 35 for the new rule. The 53 names that the new rule drops include true parameter additions: to_sarif, _build_anthropic_kwargs, _claude_messages, plan_stage, build_job, read_cgroup_v2_metrics, plan_item and build_import_graph. Task 1.2 of PR #4490 itself (Add knowntobuild_import_graph``) is one of them.
Proposed fix: also read a clause whose added part is one code span in parameter shape, name or name: Type = default. Do not read a span such as @decorator, --option or UPPER = value. Let the def filter of calling_files drop classes and enums. Put the case Add probestocheck_proposal`` back in the table of refused cases.
Environment Diagnostics
- DevOps CLI Version:
mainafter 8a22e82 (fix(roadmap): the module-test and caller gates read imports and calls #4490); not in a release yet (0.111.0 does not hold it) - Execution Environment: Service (the stage job in the cluster)
Logs, Traces, or Terminal Output
'Add `known` to `build_import_graph`.' -> []
'Add `sampling: CallSampling | None = None` to `_retry_chat_dispatch`.' -> []
'Add `facts_source` to `plan_item`.' -> []
'Add the keyword `known` to `build_import_graph`.' -> ['build_import_graph']
'Add `probes` to `check_proposal`.' -> []
'Add the keyword `probes` to `check_proposal`.' -> ['check_proposal']
Pre-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.
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 quality gate misses 53 of 75 true parameter additions, but the gate still fires for some forms and other checks remain.The regression commit 8a22e82 does not set P0: the author has no write access, and no caller attached it as evidence. A person can set P0 with the label priority/p0-critical.The gate prevents plans that omit callers of a changed function; missing 73% of cases weakens that safety net.The fix is a targeted change to one parsing rule plus restoring one test case.Both concern the caller gate for changed functions; #3307 created the gate, the candidate fixes a regression in its parsing rule.devops-cli-service commentedon Nov 11, 2026
Released in v0.112.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.112.0
devops-cli-service commentedon Nov 11, 2026
Live since 2026-11-11 14:13 UTC