Skip to content

feat(roadmap): devops roadmap inbox lists what waits for a person #2915

Description

@dan-petty

What happened

The owner asked on 2026-10-31 for one issue workflow that is simple, clear, discrete, consistent and repeatable for the Service jobs, agentic coders and human developers. The plan and the owner's decisions are in the tracker issue. Decisions taken (the recommended defaults): add the label status/planned (amends ADR 0016); claim an item with labels owner/service, owner/agent and owner/human; a new runner image digest clears a stop once; any actor may claim an item, one at a time, a person's claim beats the Service's, and the Service never takes a claimed item.

What waits for a person is spread: plan pull requests to merge (G1), ready implementation pull requests (G2), the release pull request (G3), stopped items, a labels sync, a deploy sync. On 2026-10-31 the owner could not tell whether three pull requests were drafts in progress or finished.

What should happen

  • devops roadmap inbox lists, in this order: ready plan pull requests of the jobs, ready implementation pull requests, the open release pull request, items in status/blocked with their cause, claims that are old (W3), and the repository state that a person owns (labels not synced, .github/labels.yml ahead of the repository's labels; an image digest not rolled).
  • Each line has the number, the age, and the one command or action that clears it.
  • The list is read-only and costs a bounded number of requests, counted against the Service budget if the Service runs it. The same list is a Grafana panel (data from the existing metrics path).

Evidence

Acceptance criteria

  • A test with a fake repository shows each category and the command of each line.
  • A person's own pull requests are listed apart from the jobs'.
  • --dry-run rules hold.
  • uv run devops ci passes.

Proposed design

Problem statement

The owner cannot tell at a glance which pull requests, blocked items, stale claims, and repository-state gaps wait for a person's action. The information is spread across GitHub pull requests, issue labels, and local files. A single read-only command, devops roadmap inbox, lists every item that waits for a person, in a fixed order, with the one action that clears each. The same data feeds a Grafana panel.

Acceptance criteria

Requirement: Six categories in fixed order

The inbox command SHALL list ready plan pull requests, ready implementation pull requests, the open release pull request, blocked items with cause, stale claims, and repository-state gaps in that order.

Scenario: Fake repository with one item per category

  • WHEN devops roadmap inbox runs against a fake repository that holds one item in each of the six categories
  • THEN The output shows six sections in the specified order, and each section names its category

Requirement: Line format

Each line of the inbox SHALL show the item number, its age in days, and the one command or action that clears it.

Scenario: Blocked item with a cause

  • WHEN An issue carries the status/blocked label and a cause comment
  • THEN Its line shows the issue number, the days since the label was set, and the command that clears the block

Requirement: Person and Service pull requests apart

The inbox SHALL list a person's pull requests in a separate section from the Service's pull requests.

Scenario: One person pull request and one Service pull request both ready

  • WHEN The fake repository holds one ready pull request by a person and one ready pull request by the Service App
  • THEN The output shows the two pull requests in separate sections labelled by owner

Requirement: Read-only and bounded requests

The inbox command SHALL make no write calls to the GitHub API and SHALL use a bounded number of requests counted against the Service budget.

Scenario: Request counter on the fake API

  • WHEN devops roadmap inbox runs against the fake repository with a request counter enabled
  • THEN No mutation endpoint is called and the total request count does not exceed the configured budget

Requirement: Grafana panel

The inbox data SHALL be available as a Grafana panel that reads from the existing metrics path.

Scenario: Metrics endpoint returns inbox counts

  • WHEN The Prometheus metrics endpoint is queried for the inbox metric
  • THEN The response contains a count for each of the six categories matching the CLI output

Requirement: Dry-run flag

The --dry-run flag SHALL produce the same output as a normal run and SHALL make no state change.

Scenario: Run with --dry-run

  • WHEN devops roadmap inbox --dry-run runs against the fake repository
  • THEN The output is identical to a normal run and no write call is made

Requirement: CI passes

uv run devops ci SHALL pass after the change is applied.

Scenario: CI command exits zero

  • WHEN uv run devops ci is executed in the repository
  • THEN All checks pass and the command exits with code 0

Existing Tool Considered

No check has run. No open, maintained tool lists a project-specific combination of ready plan pull requests, ready implementation pull requests, the release pull request, blocked items with cause, stale owner claims, and repository-state gaps (labels sync, image digest) in one ordered view. The project builds this command. Written cost: roughly 4000 tokens of Python for the Typer subcommand, six data fetchers, a line formatter, a metrics exporter, and a Grafana panel JSON, plus the tokens to keep and fix that code against GitHub API changes and new categories, over the elapsed time until it matches a maintained tool.

Key questions

  • Where does the inbox command live in the CLI tree?: It is a subcommand of the existing devops roadmap group, alongside devops roadmap claim. (best practice) [sources: CONTEXT.md]
    • Chosen: devops roadmap inbox. CONTEXT.md already names devops roadmap claim as a subcommand of the roadmap group. The inbox is a read view of the same roadmap state, so it belongs in the same group.
    • Rejected: devops gh inbox. The gh group is for raw GitHub API wrappers. The inbox combines multiple sources and project-specific logic, so it does not fit there.
  • How does the command identify a plan pull request versus an implementation pull request?: A plan pull request has the type docs(openspec) in its title. An implementation pull request closes an issue and has a different type. [sources: CONTEXT.md]
  • How does the command tell a person's pull request from the Service's?: The Service acts as a GitHub App (ADR 0015). Pull requests opened by the App are the Service's; pull requests opened by a person account are the person's. [sources: docs/adr/0002-roadmap-jobs-act-as-a-machine-account.md]
  • How does the command detect that labels are not synced?: It compares the entries in .github/labels.yml with the labels returned by the GitHub API for the repository. A mismatch means the labels are not synced. [sources: .github/labels.yml]
  • Which existing metrics path serves the Grafana panel?: The body says the data comes from the existing metrics path. The project has scope/telemetry and scope/monitoring labels, indicating Prometheus metrics are already exported. The inbox metric joins that existing path. [sources: .github/labels.yml]
  • Should the inbox command support a --json output flag for scripting?: The body does not require it. The acceptance criteria test the default table output. A --json flag is a natural addition for the Grafana panel and for scripting, but it is not in the stated requirements. The project's scope/output label suggests output-format flags are a project convention. (best practice) [sources: .github/labels.yml]
    • Chosen: Add --json flag. The project has a scope/output label for output formats. A JSON output makes the inbox scriptable and simplifies the Grafana panel data source.
    • Rejected: Table output only. The body does not require JSON. Adding it is scope creep for this item.

Open questions

  • What is the W3 threshold for a stale claim? (missing verified source)
  • How does the command detect that an image digest has not been rolled? (missing verified source)
  • What is the bounded request budget for the inbox command? (missing verified source)

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    source/agent
    type/feature
    scope/roadmap
    status/new
    value/medium
    effort/medium
    on Oct 31, 2026
  2. dan-petty commented on Oct 31, 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/feature. The feat prefix of the title gives the type.
    • Scope: scope/roadmap. The (roadmap) scope of the title gives the scope.
    • Priority: P2-Medium. The owner needs this to triage pending work, but the workflow is not yet operational, so it is not urgent.
    • Value: Medium. It gives the owner one clear list of every item that waits for a person and the action that clears each one.
    • Effort: Medium. It needs a new sub-command, multiple data sources, a bounded-request budget, a Grafana panel, and tests.
    • Related: feat(roadmap): Define one shared workflow for all roadmap actors #2908, which asks for a different change. Both are part of the one issue workflow for Service, agents and people, but #2908 is the umbrella and the candidate is one concrete sub-command within it.
  3. added
    priority/p2-medium
    on Oct 31, 2026
  4. added
    owner/agent
    on Oct 31, 2026
  5. devops-cli-service commented on Nov 1, 2026

    @devops-cli-service
    Contributor

    Refine cannot set this item to Ready at 66ed3bf until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.

    • What is the W3 threshold for a stale claim? (missing verified source)
    • How does the command detect that an image digest has not been rolled? (missing verified source)
    • What is the bounded request budget for the inbox command? (missing verified source)
  6. added
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 1, 2026
  7. removed
    status/in-review
    owner/agent
    on Nov 1, 2026
  8. added a commit that references this issue on Nov 1, 2026
  9. added a commit that references this issue on Nov 14, 2026
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/mediumpriority/p2-mediumscope/roadmapsource/agenttype/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions