Skip to content

fix(roadmap): the inbox lists trackers as refine waits #6446

Done

Description

@dan-petty

Problem Description

The inbox still asks a person to split, or to answer refine on, a tracker whose children are filed. The cause is a refine record that a round wrote before #5963.

Refine asked a person to split two trackers of the project brain:

#5963 (merged 2026-11-16T18:34Z, in v0.167.1, closes #3703) fixed this for new rounds. Item.is_tracker (src/devops_cli/roadmap/stores/store.py:630-633) is true for an item with sub-issues or the label type/epic, and refine leaves such an item out (src/devops_cli/roadmap/refine/refine.py:2177 and :2763). The spec says that refine then writes "no body, no mark, no Status and no comment" for it (openspec/specs/roadmap-refine/selection/spec.md:153).

But the records of the trackers that refine marked before #5963 stay as they are, and refine never touches them again. The readers of the record have no tracker test:

So these trackers stay in the inbox and in the gauge devops_cli_roadmap_inbox_items with no end. Only an edit of the record by a person removes them. Of the 43 open trackers on 2026-11-19, the inbox lists:

Inbox section Trackers
New items that wait on a person in refine 16: #1878, #3775, #4517, #4624, #4667, #4679, #4742, #4780, #4843, #4893, #4961, #4989, #5014, #5201, #5211, #5482
New items with a split that no person has applied 9 of 20: #2536, #2695, #3027, #4627, #4675, #4735, #4771, #4833, #4880
New items with a covering tool that refine put to a person 1: #4961
Open owner questions 8: #4667, #4679, #4780, #4893, #4961, #4989, #5014, #5201

#2695 is the example of #3703: its split into #3694, #3700 and #3702 is complete, and the inbox still asks for the split. Each refine record of the 9 split trackers dates from 2026-10-29 to 2026-11-15, before #5963.

Reproduction Steps

  1. Run uv run devops roadmap inbox --kind split (it reads GitHub and writes nothing).
  2. See feat(docs): track current content and brain-fed reference docs #4880, feat(roadmap): run the implement agent shell in a real sandbox #2695 and 7 other trackers with "refine proposed a split, not applied".
  3. Read the job record of feat(docs): track current content and brain-fed reference docs #4880: refine.next_step split, refine.commented_at 2026-11-15T22:46:08Z. Read sub_issues_summary of feat(docs): track current content and brain-fed reference docs #4880: 15 sub-issues.
  4. Query Prometheus: max by (kind) (devops_cli_roadmap_inbox_items{kind="split"}) gives 20. 9 of the 20 are trackers.

Expected vs Actual Behavior

Expected: a tracker (Item.is_tracker) is on no refine, split, covering-tool or owner-question line of the inbox. It does not count in devops_cli_roadmap_inbox_items for those kinds, and has_person_cause is false for a refine record of a tracker. The jobs use the one tracker test of #3703.

Actual: 16 trackers are in the refine section, 9 in the split section, 1 in the covering-tool section and 8 in the owner-question section, all from refine records of rounds before #5963.

Environment Diagnostics

  • DevOps CLI Version: 0.180.0 (origin/main 0d90de5)
  • Python Version: 3.14.10
  • Execution Environment: devops roadmap inbox in the devcontainer; the Service emits the same gauge in the cluster.

Logs, Traces, or Terminal Output

$ uv run devops roadmap inbox
Counts by class: release 1, blocked 15, refine 151, split 20, alternatives 17, failed 14, ...
  #4961  3d 6h 42m  feat(ai): track embedding and reranking serving for retrieval: refine waits on a person
  #4880  3d 13h 40m  feat(docs): track current content and brain-fed reference docs: refine proposed a split, not applied
  #2695  1d 9h 29m  feat(roadmap): run the implement agent shell in a real sandbox: refine proposed a split, not applied
  #4961  3d 6h 42m  feat(ai): track embedding and reranking serving for retrieval: refine put a covering tool to a person: https://github.com/huggingface/text-embeddings-inference

# Prometheus, 2026-11-19
max by (kind) (devops_cli_roadmap_inbox_items{kind=~"split|refine|alternatives"})
  -> split 20, refine 151, alternatives 17

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. Searches: "inbox tracker" (title), "tracker refine" (title), "inbox stale" (title), "tracker split" (title), "inbox split" (title), "left tracker" (title), "tracker inbox record". fix(roadmap): refine leaves out a tracker, as stage does #3703 and its PR fix(roadmap): Share one tracker rule with refine #5963 (closed) stop new refine rounds on a tracker. They do not cover the records that older rounds left. No open issue covers this case.

Acceptance Criteria

  • A test: an open New tracker whose record holds refine.next_step split or person, refine.alternatives_asked or an open owner question gives no inbox line of those kinds and no count in devops_cli_roadmap_inbox_items.
  • A test: has_person_cause is false for such a tracker.
  • A test: an item with no sub-issues and no type/epic label keeps its lines, as today.
  • The tracker test is Item.is_tracker, with no second definition.
  • Live proof: after the merge and the release, devops roadmap inbox lists none of the 43 open trackers in the refine, split, covering-tool or owner-question sections. A comment gives the new counts.

Dependencies

Alternatives check of 2026-11-19: none.
Tool: none found.
Reason: Searches for a tool that detects tracker issues by sub-issues or epic label, or that reconciles stale refine records, returned no relevant open tool; the need is an internal guard reusing the repository's own Item.is_tracker in inbox.py and phase.py.

Lacks:

  • No tool filters inbox lines by tracker status
  • No tool edits or migrates stale refine job records
  • No external library owns the Item.is_tracker predicate

Proposed design

Problem statement

Refine records written before #5963 still mark trackers as waiting on a person, a split, a covering tool or an owner answer. The inbox and the devops_cli_roadmap_inbox_items gauge read those records and list the trackers with no end, and has_person_cause keeps the stale refine cause for the stuck-item alert. The change makes each reader reuse Item.is_tracker and omit the tracker, returns false from has_person_cause for a tracker, keeps a tracker out of is_stalled, and keeps the lines of an item that is no tracker.

Acceptance criteria

Requirement: Refine wait omits tracker

The inbox SHALL return no refine wait for an open New tracker even when its job record holds refine.next_step person or a returned body hash that matches the body hash.

Scenario: Tracker with a refine person record

  • WHEN A test builds an open New tracker with sub-issues and, in turn, a job record of refine.next_step person and one with refine.returned_body_hash equal to refine.body_hash, then calls refine_wait_on_person and _refine_lines.
  • THEN Both calls return no refine line and no refine wait.

Requirement: Split line omits tracker

The inbox SHALL return no split line for an open New tracker even when its job record holds refine.next_step split and refine.needs_split is true.

Scenario: Tracker with a split record

  • WHEN A test builds an open New tracker with the type/epic label, no sub-issues and the split record, then calls _split_lines.
  • THEN The result is an empty list.

Requirement: Alternatives line omits tracker

The inbox SHALL return no covering-tool line for an open New tracker even when its record holds refine.alternatives_asked.

Scenario: Tracker with an alternatives record

  • WHEN A test builds an open New tracker with sub-issues and refine.alternatives_asked, then calls _alternatives_lines.
  • THEN The result is an empty list.

Requirement: Owner line omits tracker

The inbox SHALL return no owner-question line for an open tracker even when its record holds an open owner_question.hash.

Scenario: Tracker with an owner question

  • WHEN A test builds an open tracker with the type/epic label, no sub-issues and owner_question.hash with no owner_question.answer, then calls _owner_lines.
  • THEN The result is an empty list.

Requirement: Gauge counts no tracker line

The inbox gauge devops_cli_roadmap_inbox_items SHALL hold a count of 0 for the refine, split and alternatives kinds of a repository whose only matching item is a tracker.

Scenario: A tracker adds no counted gauge sample

  • WHEN A test seeds an open New tracker with sub-issues and the person, split and alternatives records, reads the inbox with read_inbox, and calls emit_inbox_counts into the fake OTLP collector.
  • THEN The samples for refine, split and alternatives are 0.0 for that repository.

Requirement: Person cause ignores tracker

has_person_cause SHALL return false for a tracker even when its job record holds a person, split, failed, alternatives, blocked-by or open owner-question cause.

Scenario: Tracker with each recorded person cause

  • WHEN A test builds a tracker with sub-issues and one with the type/epic label, each with each cause in turn, then calls has_person_cause.
  • THEN Every call returns false.

Requirement: Stalled alert omits tracker

is_stalled SHALL return false for a tracker, so devops_cli_roadmap_stalled_items and the RoadmapServiceItemStuck alert do not count a tracker whose sub-issues deliver it.

Scenario: Tracker with an old phase is not stalled

  • WHEN A test builds an open tracker with sub-issues, a phase age over roadmap.stall.hours, no running unit, no claim and no person cause, then calls is_stalled.
  • THEN The call returns false.

Requirement: Non-tracker keeps its lines

The inbox SHALL keep the refine, split, alternatives and owner lines of an open New item that has no sub-issues and no type/epic label.

Scenario: Non-tracker keeps the same records

  • WHEN A test builds a non-tracker with each of the same records in turn, then calls the four line functions.
  • THEN Each function returns the line that the record asks for.

Requirement: One tracker predicate

The inbox and phase guards MUST read Item.is_tracker and MUST NOT define a second sub-issue or type/epic test.

Scenario: Guard follows Item.is_tracker

  • WHEN A test reads src/devops_cli/roadmap/inbox.py and src/devops_cli/roadmap/phase.py and builds an Item whose is_tracker property returns false for an item with a split record, then calls _split_lines and has_person_cause.
  • THEN Neither module names sub_issues or type/epic, the split line remains, and has_person_cause returns true, which shows that both guards read Item.is_tracker.

Existing Tool Considered

The alternatives check of 2026-11-19 returned the verdict none with no tool, and its block in the issue body holds the reason and the Lacks: list. A web search for an open, maintained tool that detects tracker issues by sub-issues or reconciles stale refine records found no relevant project, so no tool covers this internal guard. The change reuses the repository's own Item.is_tracker in the four line readers, has_person_cause and is_stalled, adds no second predicate and no migration job, and adds unit tests. Written cost of the code that the project keeps: about 6,000 tokens to build, about 2,000 tokens to keep and fix, and about 0.2 engineer-day.

Key questions

  • Which tracker test must the inbox and phase readers use?: Item.is_tracker is the one test. It is true when the item has sub-issues or the label type/epic, and the refine job already leaves such an item out with no body, mark, Status or comment. [sources: src/devops_cli/roadmap/stores/store.py:630, openspec/specs/roadmap-refine/selection/spec.md:153]
  • Where does the tracker guard go?: In each record reader and guard. refine_wait_on_person returns None for a tracker, _split_lines, _alternatives_lines and _owner_lines skip a tracker, has_person_cause returns false, and is_stalled returns false. read_inbox takes no tracker filter, so other lines of a tracker, such as blocked, remain. (best practice) [sources: src/devops_cli/roadmap/inbox.py:253, src/devops_cli/roadmap/inbox.py:298, src/devops_cli/roadmap/inbox.py:317, src/devops_cli/roadmap/inbox.py:393, src/devops_cli/roadmap/inbox.py:518, src/devops_cli/roadmap/phase.py:251, src/devops_cli/roadmap/phase.py:279]
    • Chosen: Guard each reader and guard. It omits only the refine, split, alternatives and owner lines, and the person and stall guards, so the blocked and other lines of a tracker stay.
    • Rejected: Filter every tracker in read_inbox. It also removes the blocked and other tracker lines that the issue does not ask to remove.
  • Should has_person_cause return false for a tracker?: Yes. The guard goes before the record read. The stuck-item alert and the devops_cli_roadmap_stalled_items gauge read this function, and no job clears a refine record of a tracker since fix(roadmap): Share one tracker rule with refine #5963. A tracker is not a person cause, and is_stalled also returns false for a tracker, so the stale record does not move the alert from the cause to the stall. (best practice) [sources: src/devops_cli/roadmap/phase.py:251, src/devops_cli/github/metrics.py:682, k8s/devops/monitoring/prometheus-rules-values.yaml:319, openspec/specs/roadmap-service-alerts/spec.md:228]
    • Chosen: Guard has_person_cause for a tracker. The stale refine record of a tracker then stops counting as a person cause, as the issue expects.
    • Rejected: Leave has_person_cause unchanged. A stale refine record then still reads as a person cause for the tracker, which is the defect.
  • Should is_stalled return false for a tracker?: Yes. is_stalled is true when the phase age is over the limit, no unit runs, no claim exists and no person cause is recorded. A tracker has no unit and no claim, and its sub-issues deliver it, so the guard returns false before the age check. Otherwise the RoadmapServiceItemStuck alert would fire for every old tracker once has_person_cause stops reading its stale refine record. (best practice) [sources: src/devops_cli/roadmap/phase.py:279, src/devops_cli/github/metrics.py:682, k8s/devops/monitoring/prometheus-rules-values.yaml:319, openspec/specs/roadmap-service-alerts/spec.md:228]
    • Chosen: Guard is_stalled for a tracker. A tracker's sub-issues deliver it, and the alert would otherwise move from the stale cause to the stall.
    • Rejected: Leave is_stalled unchanged. Every old tracker becomes stalled once has_person_cause returns false, and the stuck-item alert fires for it.
  • Does the gauge count the owner-question line?: No. COUNTED_KINDS holds blocked, refine, split, alternatives, failed, stage_retry, claim and labels; the owner-question line is InboxKind.OWNER and is not counted. The gauge criterion covers refine, split and alternatives only. [sources: src/devops_cli/roadmap/inbox_kind.py:31, docs/TELEMETRY.md:163]
  • Does the gauge drop a series when a kind has no line?: No. emit_inbox_counts sends one sample for each counted kind and uses 0 when no line matches, so the tracker's lines must add no count; the refine, split and alternatives samples stay at 0.0. [sources: src/devops_cli/roadmap/inbox.py:587, tests/roadmap/test_roadmap_inbox_gauges.py:108]
  • Should a job edit or migrate the stale refine records of the trackers?: No. Each reader ignores the record of a tracker, so no write is necessary. The record of a tracker is harmless once every reader omits it. (best practice) [sources: openspec/specs/roadmap-refine/selection/spec.md:153, src/devops_cli/roadmap/inbox.py:253]
    • Chosen: Ignore the stale record in the readers. It writes nothing to GitHub and needs no new job to keep.
    • Rejected: Add a job that clears the records. It edits many issues and adds a job to the Service for a record that no reader uses.
  • Which tests prove the guards?: Unit tests in the roadmap suite build an open New tracker with sub-issues and one with the type/epic label, each with the same records as a non-tracker control. They call the four line functions, read_inbox with emit_inbox_counts, has_person_cause and is_stalled, and they substitute Item.is_tracker to show that each guard reads it. (best practice) [sources: tests/roadmap/test_roadmap_inbox.py:50, tests/roadmap/test_roadmap_inbox_gauges.py:93, tests/roadmap/test_roadmap_phase.py:155]
    • Chosen: Unit tests on the readers, the gauge and the guards. They run offline, and they cover the gauge through the lines that each reader omits.
    • Rejected: Only a live inbox run. It needs GitHub and a release, so it is no offline test of the pull request.
  • Can the post-release live proof be an acceptance criterion of this change?: No. The live proof is a post-merge step: the workflow document says the gauge proves itself with live values and a comment 7 days after the merge, and the agentic-jobs guideline says a job proves itself with live calls. The pull request of the fix cannot show the release that holds the fix, so the live proof goes to a follow-up issue; the code change carries the offline criteria. (best practice) [sources: docs/ROADMAP_WORKFLOW.md:278, docs/guidelines/agentic-jobs.md:116, openspec/changes/archive/2026-11-13-4559-run-each-stage-item-in-its-own-job/tasks.md:35]
    • Chosen: Defer the live proof to a follow-up issue. The live proof needs a release that holds the fix, and the project records the live proof as a post-merge comment.
    • Rejected: Keep the live proof as an acceptance criterion. It cannot pass in the pull request of the fix, because the release comes after the merge.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Moved to new items

#6478

Activity

  1. added
    type/bug
    source/agent
    on Nov 19, 2026
  2. dan-petty commented on Nov 19, 2026

    @dan-petty
    OwnerAuthor
  3. added
    scope/roadmap
    status/new
    value/medium
    effort/low
    priority/p2-medium
    on Nov 19, 2026
  4. devops-cli-service commented on Nov 19, 2026

    @devops-cli-service
    Contributor

    Next step: the alternatives check records a verdict. See the section Proposed design of the body.

  5. added
    status/ready
    and removed
    status/new
    on Nov 19, 2026
  6. devops-cli-service commented on Nov 19, 2026

    @devops-cli-service
    Contributor

    Next step: the stage job writes the plan of the item. See Moved to new items in the section Proposed design of the body.

  7. added
    owner/agent
    status/in-progress
    status/in-review
    and removed
    status/ready
    status/in-progress
    on Nov 25, 2026
  8. removed
    status/in-review
    owner/agent
    on Nov 25, 2026
  9. devops-cli-service commented on Nov 25, 2026

    @devops-cli-service
    Contributor
  10. 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/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