Repository navigation
Description
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:
- feat(docs): track current content and brain-fed reference docs #4880: refine comment of 2026-11-15T22:46Z, "The proposal at ca62d6a needs splitting into 20 items. A person splits the item into the items below". GitHub had linked all 15 sub-issues by 2026-11-13T19:26Z (timeline events
sub_issue_added). Record:refine.next_stepsplit,refine.needs_splittrue. - feat(ai): track embedding and reranking serving for retrieval #4961: refine comment of 2026-11-16T06:52Z (a covering-tool question). Its 8 sub-issues were linked on 2026-11-12 from 07:44Z to 08:21Z. Record:
refine.next_stepperson,refine.needs_splittrue,refine.alternatives_askedset,owner_question.hashset.
#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:
refine_wait_on_personand_refine_lines(src/devops_cli/roadmap/inbox.py:253-291)_split_lines(inbox.py:298-314)_alternatives_lines(inbox.py:317-338)_owner_lines(inbox.py:393-417)has_person_cause(src/devops_cli/roadmap/phase.py:251-267), which the stuck-item alert reads (feat(roadmap): the phase of each item drives the stuck-item alert #5495)
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
- Run
uv run devops roadmap inbox --kind split(it reads GitHub and writes nothing). - 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".
- Read the job record of feat(docs): track current content and brain-fed reference docs #4880:
refine.next_stepsplit,refine.commented_at2026-11-15T22:46:08Z. Readsub_issues_summaryof feat(docs): track current content and brain-fed reference docs #4880: 15 sub-issues. - 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/main0d90de5) - Python Version: 3.14.10
- Execution Environment:
devops roadmap inboxin 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 17Pre-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_stepsplitorperson,refine.alternatives_askedor an open owner question gives no inbox line of those kinds and no count indevops_cli_roadmap_inbox_items. - A test:
has_person_causeis false for such a tracker. - A test: an item with no sub-issues and no
type/epiclabel 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 inboxlists none of the 43 open trackers in the refine, split, covering-tool or owner-question sections. A comment gives the new counts.
Dependencies
- None. fix(roadmap): Share one tracker rule with refine #5963 (closed) delivered
Item.is_tracker.
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_steppersonand one withrefine.returned_body_hashequal torefine.body_hash, then callsrefine_wait_on_personand_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/epiclabel, 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/epiclabel, no sub-issues andowner_question.hashwith noowner_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 callsemit_inbox_countsinto the fake OTLP collector. - THEN The samples for
refine,splitandalternativesare 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/epiclabel, each with each cause in turn, then callshas_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 callsis_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.pyandsrc/devops_cli/roadmap/phase.pyand builds anItemwhoseis_trackerproperty returns false for an item with a split record, then calls_split_linesandhas_person_cause. - THEN Neither module names
sub_issuesortype/epic, the split line remains, andhas_person_causereturns true, which shows that both guards readItem.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_trackeris the one test. It is true when the item has sub-issues or the labeltype/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_personreturns None for a tracker,_split_lines,_alternatives_linesand_owner_linesskip a tracker,has_person_causereturns false, andis_stalledreturns false.read_inboxtakes 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_causereturn false for a tracker?: Yes. The guard goes before the record read. The stuck-item alert and thedevops_cli_roadmap_stalled_itemsgauge 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, andis_stalledalso 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_causefor a tracker. The stale refine record of a tracker then stops counting as a person cause, as the issue expects. - Rejected: Leave
has_person_causeunchanged. A stale refine record then still reads as a person cause for the tracker, which is the defect.
- Chosen: Guard
- Should
is_stalledreturn false for a tracker?: Yes.is_stalledis 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 theRoadmapServiceItemStuckalert would fire for every old tracker oncehas_person_causestops 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_stalledfor 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_stalledunchanged. Every old tracker becomes stalled oncehas_person_causereturns false, and the stuck-item alert fires for it.
- Chosen: Guard
- Does the gauge count the owner-question line?: No.
COUNTED_KINDSholdsblocked,refine,split,alternatives,failed,stage_retry,claimandlabels; the owner-question line isInboxKind.OWNERand is not counted. The gauge criterion coversrefine,splitandalternativesonly. [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_countssends one sample for each counted kind and uses 0 when no line matches, so the tracker's lines must add no count; therefine,splitandalternativessamples 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/epiclabel, each with the same records as a non-tracker control. They call the four line functions,read_inboxwithemit_inbox_counts,has_person_causeandis_stalled, and they substituteItem.is_trackerto 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.
Activity
dan-petty commentedon Nov 19, 2026
Both items concern trackers in the refine pipeline; #3703 fixed refine from processing trackers, this candidate fixes the inbox readers that still display stale tracker records.devops-cli-service commentedon Nov 19, 2026
Next step: the alternatives check records a verdict. See the section Proposed design of the body.
devops-cli-service commentedon Nov 19, 2026
Next step: the stage job writes the plan of the item. See Moved to new items in the section Proposed design of the body.
devops-cli-service commentedon Nov 25, 2026
Released in v0.219.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.219.0
devops-cli-service commentedon Nov 25, 2026
Live since 2026-11-25 17:09 UTC