Skip to content

fix(roadmap): the trace gate counts code that reads a file #4314

Closed

Description

@dan-petty

Problem

The trace gate takes a present-tense reads that describes code as a claim that the run read a file.

_READ_WORD in src/devops_cli/roadmap/stage/stage_change.py matches read, reads, reading, ran and read_file anywhere in a Feasibility sentence outside a negation. A sentence that says what the code does, such as "it reads .github/labels.yml of the default branch", then needs a tool call for that path. The run did not call one, and the plan is refused.

Evidence: a live stage run on item #3599 with the live stage model (deepseek-v4.1-flash-1017), 2026-11-10, with the fix of #4290 applied. The first reply was refused with: "The Feasibility section states that .github/labels.yml was read, but the run did not read it." The sentence of the reply was: "Precondition of declared_labels(self.store, ref=None): a client of the GitHub service, because it reads .github/labels.yml of the default branch." The subject of reads is the function. The item failed after the second reply.

Expected

  • A sentence in which reads or reading has a code span (a function, a class or a command) or it or which as its subject is no claim that the run read a path.
  • A claim in the first person, or of the run (I read, the run read, read_file of), is still refused when the run holds no call for the path.

Acceptance criteria

  • A test with the sentence above and a trace with no call passes the trace gate. It fails today.
  • A test with "I read src/x.py" and a trace with no call is refused.
  • uv run devops roadmap eval stage --replay keeps its result.

Existing tool considered

No library reads the subject of a sentence for a gate of this size. The change narrows _READ_WORD with a lookbehind on the words before the verb. Cost: about 20 000 tokens to build, 3 000 to keep, and 1 hour.

Activity

  1. added
    source/agent
    type/bug
    scope/roadmap
    status/new
    value/medium
    effort/low
    on Nov 10, 2026
  2. dan-petty commented on Nov 10, 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. Valid plans are refused when they describe code behaviour, but a rephrase works around it.
    • Value: Medium. It removes a false refusal that blocks plans that accurately describe what a function does.
    • Effort: Low. The body states about 1 hour and a narrow regex change with a lookbehind.
    • Related: fix(roadmap): Refuse Feasibility claims the run did not support #3266, which asks for a different change. Both concern the trace gate in stage_change.py, but #3266 created the gate and this candidate fixes a false positive in its _READ_WORD regex.
  3. added
    priority/p2-medium
    owner/agent
    on Nov 10, 2026
  4. removed
    status/new
    owner/agent
    on Nov 10, 2026
  5. devops-cli-service commented on Nov 10, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-10 03:32 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