Skip to content

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

Closed

Description

@dan-petty

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

  1. At origin/main (8a22e82 or later), call changed_functions with one group whose test text is Add knowntobuild_import_graph.
  2. Do the same with Add sampling: CallSampling | None = Noneto_retry_chat_dispatch. and with Add facts_sourcetoplan_item.
  3. Do the same with Add the keyword knowntobuild_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

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

  1. added
    source/agent
    type/bug
    scope/roadmap
    status/new
    value/medium
    effort/low
    on Nov 11, 2026
  2. dan-petty commented on Nov 11, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/bug. The fix prefix of the title gives the type.
    • Scope: scope/roadmap. The (roadmap) scope of the title gives the scope.
    • Priority: P2-Medium. 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.
    • Value: Medium. The gate prevents plans that omit callers of a changed function; missing 73% of cases weakens that safety net.
    • Effort: Low. The fix is a targeted change to one parsing rule plus restoring one test case.
    • Related: feat(roadmap): name every caller of a changed function #3307, which asks for a different change. Both concern the caller gate for changed functions; #3307 created the gate, the candidate fixes a regression in its parsing rule.
  3. added
    priority/p2-medium
    owner/agent
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 11, 2026
  4. removed
    status/in-review
    owner/agent
    on Nov 11, 2026
  5. devops-cli-service commented on Nov 11, 2026

    @devops-cli-service
    Contributor
  6. devops-cli-service commented on Nov 11, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-11 14:13 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lowpriority/p2-mediumscope/roadmapsource/agenttype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions