Skip to content

fix(roadmap): use _read_at for Ready comment re-selection #7190

Done

Description

@dan-petty

Problem Description

src/devops_cli/roadmap/refine/refine.py:3493 calls _repeated_at(item) inside _has_trusted_comment_since_last_round, causing NameError at runtime and breaking lint, typecheck, and uv-check on main.

Commit 44fb86a04 (#7144, closes #6371) removed _repeated_at and replaced it with _read_at(item) (RefineRecordKey.READ_AT). Commit 3bb8a4891 (#7178, closes #6452) merged after 44fb86a04 and introduced _has_trusted_comment_since_last_round, which still references _repeated_at(item) (along with test_roadmap_refine_ready_edits.py using RefineRecordKey.REPEATED_AT and openspec/specs/roadmap-refine/selection/spec.md naming refine.repeated_at).

Reproduction Steps

  1. Run uv run devops ci --check --no-cache --only lint,typecheck,uv-check on origin/main (ac8bdebdb).
  2. Run uv run pytest -q tests/roadmap/refine/test_roadmap_refine_ready_edits.py -k trusted_comment.

Expected vs Actual Behavior

Expected: _has_trusted_comment_since_last_round reads RefineRecordKey.READ_AT (_read_at(item) / _since_wait_start), and lint, typecheck, uv-check, and all test_roadmap_refine_ready_edits.py tests pass.

Actual: ruff check fails with undefined-name: Undefined name _repeated_at, mypy fails with Name "_repeated_at" is not defined, uv check fails with unresolved-reference, and test_roadmap_refine_ready_edits.py raises NameError at runtime.

Environment Diagnostics

  • DevOps CLI Version: main at ac8bdebdb
  • Python Version: 3.14.10
  • OS & Architecture: Linux (x86_64)
  • Execution Environment: DevContainer

Logs, Traces, or Terminal Output

undefined-name: Undefined name `_repeated_at`
    --> src/devops_cli/roadmap/refine/refine.py:3493:16
     |
3493 |     repeated = _repeated_at(item)
     |                ^^^^^^^^^^^^

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.

Source

Source: 3bb8a48

Activity

  1. added
    type/bug
    source/agent
    scope/roadmap
    status/new
    on Nov 25, 2026
  2. dan-petty commented on Nov 25, 2026

    @dan-petty
    OwnerAuthor
    • Priority: CI on main is failing for lint, typecheck, and uv-check, which blocks all merges. The regression commit 3bb8a48 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.
    • Related: fix(roadmap): finish the refine wait and frame fixes of #6353 #6378, which asks for a different change. Both involve refine.repeated_at/read_at in the refine module, but #6378 fixes the wait timing logic and spec alignment while this candidate fixes a NameError from a removed function reference.
  3. added
    effort/low
    value/high
    priority/p1-high
    owner/agent
    status/in-progress
    and removed
    status/new
    on Nov 25, 2026
  4. removed
    status/in-progress
    owner/agent
    on Nov 25, 2026
  5. devops-cli-service commented on Nov 25, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-25 17:09 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/p1-highscope/roadmapsource/agenttype/bugvalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions