Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
d50859d
docs(openspec): plan the inbox lists every person wait
dan-petty Nov 5, 2026
ca5acf5
feat(roadmap): inbox reads each repository of service.repos
dan-petty Nov 5, 2026
78a8f18
feat(roadmap): inbox lists unapplied splits and alternatives questions
dan-petty Nov 5, 2026
4eedad1
feat(roadmap): inbox lists a draft of a job that is old or fails
dan-petty Nov 5, 2026
5ae162f
feat(roadmap): inbox marks old waits and counts and filters classes
dan-petty Nov 5, 2026
455145f
docs(roadmap): state the inbox classes, repositories and settings
dan-petty Nov 5, 2026
b60fd00
chore(roadmap): type the check-run session and name the inbox limits
dan-petty Nov 5, 2026
1d29188
docs(openspec): archive the inbox lists every person wait change
dan-petty Nov 5, 2026
5e1bdb7
Revert "docs(openspec): archive the inbox lists every person wait cha…
dan-petty Nov 5, 2026
bc77f06
test(roadmap): a draft check read raises when the head commit is missing
dan-petty Nov 5, 2026
59db5a5
test(roadmap): the inbox fails a service repo that is not owner/name
dan-petty Nov 5, 2026
788c9ac
fix(roadmap): the inbox refuses a service repo that is not owner/name
dan-petty Nov 5, 2026
0786b70
test(roadmap): an unknown inbox class is the usage error of the option
dan-petty Nov 5, 2026
934a75e
fix(roadmap): the inbox option --kind takes the class type
dan-petty Nov 5, 2026
85682e2
test(roadmap): the inbox order test covers the split, alternatives an…
dan-petty Nov 5, 2026
f18140c
docs(roadmap): the inbox states its new reads, classes and entry rule
dan-petty Nov 5, 2026
082e188
docs(roadmap): regenerate the inbox help and its option choices
dan-petty Nov 5, 2026
9931220
fix(roadmap): the inbox split and alternatives lines use short active…
dan-petty Nov 5, 2026
32691d1
docs(roadmap): the inbox states that its title comes before the counts
dan-petty Nov 5, 2026
b9ff766
docs(openspec): archive the inbox lists every person wait change
dan-petty Nov 5, 2026
5415979
Revert "docs(openspec): archive the inbox lists every person wait cha…
dan-petty Nov 5, 2026
6a18988
refactor(roadmap): the inbox kind is in a module of its own
dan-petty Nov 5, 2026
79ad58d
docs(openspec): archive the inbox lists every person wait change
dan-petty Nov 5, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ and excessive permissions fail it, and every other finding is shown. |
| | `devops roadmap plan-check [OPTIONS] <pull_request>` | Check a plan pull request: the stage gates without a model, the title, the body, the `Semantic PR title` check and a base spec that moved since the plan. Details: docs/roadmap/plan-check.md. |
| | `devops roadmap plan-recheck [OPTIONS]` | Check each change folder on the default branch again. Each folder gets one result: ok, rewrite, new-plan, delivered or cleanup. The command reads GitHub and git, calls no model and writes nothing. Details: docs/roadmap/plan-recheck.md. |
| | `devops roadmap explain [OPTIONS] <item>` | Say, for one issue, whether the refine job, the stage job and the implement job take it. For each job the answer is yes, or no with the reason of the first rule that fails: the issue is closed or is no item, the filter, the rules of the job (the Status, the owner, the stop on record, the plan and the branch, and the setting roadmap.stage.planned_limit), and the limit of a run. For refine the reason is the wait of the item, such as a question for a person. The reasons are the texts of the 'Left out' list of stage --plan and implement --plan. The command reads GitHub and git, calls no model and writes nothing. It uses the filter and the limit that the Service uses for each job. A group over the step budget shows only when an earlier run recorded it. |
| | `devops roadmap inbox [OPTIONS]` | List what waits for a person, each line with its number, its age and the one command or action that clears it, and a line when the count of Planned items is at the setting roadmap.stage.planned_limit. It reads GitHub, calls no model and writes nothing. Details: docs/roadmap/inbox.md. |
| | `devops roadmap inbox [OPTIONS]` | List what waits for a person in each repository of service.repos, or in the one that --repo names. Each line has its number, its age and the step that clears it, and an old wait is marked. It reads GitHub, calls no model and writes nothing; details: docs/roadmap/inbox.md. |
| | `devops roadmap repair [OPTIONS]` | Find the items that a placeholder reply of a model stalled. A returned item goes back to Ready. A stub refine item loses its stub section and its refine block. An item that a person set or answered stays as it is. This command reads GitHub and calls no model. It writes only with --confirm. Details: docs/roadmap/repair.md. |
| | `devops roadmap return [OPTIONS] <item>` | Return an item to New with an evidence comment, handing it back to refinement when it cannot be built as specified or needs a refactor beyond its scope. The item gets the label status/new in place of its other status/* label. |
| | `devops roadmap claim [OPTIONS] <item>` | Claim an item for an agent or a person with the label owner/agent or owner/human. An item has one owner. A person can take an item from the Service. The jobs stage and implement take no item that an agent or a person claimed. |
Expand Down
3 changes: 2 additions & 1 deletion docs/CLI_REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -6754,7 +6754,7 @@ devops roadmap explain [OPTIONS] <item>

### `devops roadmap inbox`

**List what waits for a person, each line with its number, its age and the one command or action that clears it, and a line when the count of Planned items is at the setting roadmap.stage.planned_limit. It reads GitHub, calls no model and writes nothing. Details: docs/roadmap/inbox.md.**
**List what waits for a person in each repository of service.repos, or in the one that --repo names. Each line has its number, its age and the step that clears it, and an old wait is marked. It reads GitHub, calls no model and writes nothing; details: docs/roadmap/inbox.md.**

```bash
devops roadmap inbox [OPTIONS]
Expand All @@ -6765,6 +6765,7 @@ devops roadmap inbox [OPTIONS]
| Option / Flag | Type | Default | Description |
|---|---|---|---|
| `--repo`, `-R` | `string` | - | Repository as owner/name (default: this checkout's origin). |
| `--kind` | `choice (plan|implement|release|blocked|refine|split|alternatives|draft|claim|labels|queue|person)` | - | List only the lines of one class, such as refine, split, alternatives or draft. The counts of every class stay complete. |
| `--dry-run` | `boolean` | - | Make no request: print the reads that a run makes, in order, with placeholders. |

### `devops roadmap repair`
Expand Down
1 change: 1 addition & 0 deletions docs/CONFIGURATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ roadmap configuration settings.
| `alternatives` | `AlternativesConfig` | `limit=5 first_pass_limit=20 recheck_days=30 retry_days=3` | - | - |
| `stage` | `RoadmapStageConfig` | `filter=['status=ready'] limit=3 planned_limit=20 step_tokens=64000 retry_hours=6 toolset='extended'` | - | - |
| `implement` | `RoadmapImplementConfig` | `in_runner=False repair_rounds=3 step_token_budget=8000000 item_token_budget=20000000 step_time_limit_seconds=5400 item_time_limit_seconds=12600 digest_clears_per_class=1 digest_clears_per_item=3 ladder={'plan': ['devops-coder'], 'edit': ['devops-coder'], 'repair': ['devops-coder'], 'review': ['devops-coder']} request_timeout_seconds=1200 command_timeout_seconds=1800 monitor_timeout_seconds=3600 deadline_stall_seconds=4200 deadline_extension_seconds=5400 deadline_ceiling_seconds=14400` | - | - |
| `inbox` | `RoadmapInboxConfig` | `draft_days=7 wait_days=7` | - | - |

## Firecrawl Configuration (`firecrawl`)

Expand Down
3 changes: 2 additions & 1 deletion docs/commands/roadmap.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ devops roadmap explain [OPTIONS] <item>

## `devops roadmap inbox`

**List what waits for a person, each line with its number, its age and the one command or action that clears it, and a line when the count of Planned items is at the setting roadmap.stage.planned_limit. It reads GitHub, calls no model and writes nothing. Details: docs/roadmap/inbox.md.**
**List what waits for a person in each repository of service.repos, or in the one that --repo names. Each line has its number, its age and the step that clears it, and an old wait is marked. It reads GitHub, calls no model and writes nothing; details: docs/roadmap/inbox.md.**

```bash
devops roadmap inbox [OPTIONS]
Expand All @@ -247,6 +247,7 @@ devops roadmap inbox [OPTIONS]
| Option / Flag | Type | Default | Description |
|---|---|---|---|
| `--repo`, `-R` | `string` | - | Repository as owner/name (default: this checkout's origin). |
| `--kind` | `choice (plan|implement|release|blocked|refine|split|alternatives|draft|claim|labels|queue|person)` | - | List only the lines of one class, such as refine, split, alternatives or draft. The counts of every class stay complete. |
| `--dry-run` | `boolean` | - | Make no request: print the reads that a run makes, in order, with placeholders. |

---
Expand Down
49 changes: 34 additions & 15 deletions docs/roadmap/inbox.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,48 @@

`devops roadmap inbox` lists what waits for a person. It shows the three gates of [the roadmap workflow](../ROADMAP_WORKFLOW.md) and the state that needs a person. The command help gives a summary only. This page gives the rest. The rules that a test checks are in the spec named at the end of this page.

## Which repositories it reads

Without `--repo`, the inbox reads each repository of the setting `service.repos`, in its order, and lists the lines of each. With `--repo`, it reads that repository only. When `service.repos` is empty and `--repo` is not given, the command fails and names the setting. An entry that is not `owner/name` makes the command fail before it reads any repository, and the error names the entry.

## What the inbox lists

Each line has its number, its age and the one command or action that clears it. The age is the time since the last update. The first list has these kinds of line, in this order:
Each line has its number, its age and the one command or action that clears it. The age is the time since the last update. A line whose age is over `roadmap.inbox.wait_days` ends with the mark `(over N days)`. After its title, the output starts with the count of the lines of each class, for example `Counts by class: refine 2, split 1.`

1. Ready plan pull requests of the jobs (G1).
2. Ready implementation pull requests of the jobs (G2).
3. The open release pull request (G3).
4. Items in `status/blocked`, with their cause.
5. New items that wait on a person in refine, one line for each. The line comes from the job record: the last refine round left a question for a person, or the stage job returned the item twice on the same body. A reply shows in the list until the next refine round. `devops roadmap explain <number>` gives the cause.
6. Claims with no activity for 7 days.
7. Labels of `.github/labels.yml` that the repository lacks.
8. The state of the Planned queue, when the count of Planned items is at `roadmap.stage.planned_limit`. The stage job then plans no new item. The line has no number and no age.
The lines come in this order of classes:

A second list holds the other open pull requests, those of people and agents. It marks the drafts.
1. Ready plan pull requests of the jobs (G1), class `plan`.
2. Ready implementation pull requests of the jobs (G2), class `implement`.
3. The open release pull request (G3), class `release`.
4. Items in `status/blocked`, with their cause, class `blocked`.
5. New items that wait on a person in refine, one line for each, class `refine`. The line comes from the job record: the last refine round left a question for a person, or the stage job returned the item twice on the same body. A reply shows in the list until the next refine round. `devops roadmap explain <number>` gives the cause.
6. New items with a split that no person has applied, one line for each, class `split`. Refine proposed the split in a comment.
7. New items whose refine round put a covering tool to a person, one line for each, class `alternatives`. The line names the tool.
8. Drafts of jobs, class `draft`. A draft of a job is listed when its head commit has a failed check run, or when it is older than `roadmap.inbox.draft_days`. A newer draft with no failed check is not listed. A pull request that a runner Job holds is not listed either.
9. Claims with no activity for 7 days, class `claim`.
10. Labels of `.github/labels.yml` that the repository lacks, class `labels`.
11. The state of the Planned queue, when the count of Planned items is at `roadmap.stage.planned_limit`, class `queue`. The stage job then plans no new item. The line has no number and no age.

A draft of a job is not listed. A pull request that a runner Job holds is not listed either.
A second list holds the other open pull requests, those of people and agents, class `person`. It marks the drafts.

The inbox leaves out an image digest that is not rolled yet. To read it, run `devops argo cd apps status devops`.

## How to filter and count the lines

The option `--kind <class>` keeps the lines of one class, for example `--kind split`. The counts at the top stay complete. An unknown class is a usage error that names the classes.

## Settings

| Setting | Default | Meaning |
| :--- | :--- | :--- |
| `roadmap.inbox.draft_days` | 7 | The age in days from which a draft of a job is listed, when no check run of its head commit failed. |
| `roadmap.inbox.wait_days` | 7 | The age in days from which a line is marked as old. |

## What the inbox reads

The command reads the open issues, the open pull requests, the labels of the repository, and the labels file. It reads the newest commit of the labels file only when the labels differ. It reads no closed issue. It calls no model and writes nothing.
The command reads, for each repository it lists, the open issues, the open pull requests, the labels of the repository, and the labels file. It reads the newest commit of the labels file only when the labels differ. It reads the check runs of the head commit of each open draft of a job, one read for each draft. It reads no closed issue. It calls no model and writes nothing.

A run sends these requests:
A run sends these requests for each repository:

| Read | Requests |
| :--- | :--- |
Expand All @@ -34,9 +52,10 @@ A run sends these requests:
| The labels of the repository | One for each 100 |
| `.github/labels.yml` on the default branch | One |
| The newest commit that changed `.github/labels.yml` | One, only when the labels differ |
| The check runs of the head commit of each open draft of a job | One for each draft |

`--dry-run` makes no request and lists these reads.
`--dry-run` makes no request and lists these reads for each repository.

## Where the rules are

[roadmap-inbox](../../openspec/specs/roadmap-inbox/spec.md) holds the order of the lines, the line format, the age of a claim, the second list, and the bound on the reads.
[roadmap-inbox](../../openspec/specs/roadmap-inbox/spec.md) holds the order of the lines, the line format, the age of a claim, the second list, the drafts, the splits, the alternatives, the marks, the counts, the class filter and the bound on the reads.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
schema: spec-driven
created: 2026-11-05
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Design

## Context

`read_inbox` in `src/devops_cli/roadmap/inbox.py` reads one repository and returns the lines of the jobs and the people. Its line builders are pure functions over the open items and the open pull requests of a store. The store protocol is `RoadmapStore` in `src/devops_cli/roadmap/store.py`. The command `inbox_cmd` in `src/devops_cli/commands/roadmap.py` opens one store from `--repo` or from the origin of the checkout.

## Decisions

### One read per repository in `service.repos`

`inbox_cmd` loops over the repositories of `service.repos` when `--repo` is not given, and calls `read_inbox` for each one. `read_inbox` keeps its shape, so each repository has its own reads, its own counts and its own sections.

Rejected: reading the origin of the checkout when `service.repos` is empty. The checkout hides the repositories that the Service runs. The project rule for unconfigured service URLs says to fail and name the setting. The command therefore raises `ConfigurationError` that names `service.repos`.

### Three new classes, in the order of the issue

`InboxKind` gets `SPLIT`, `ALTERNATIVES` and `DRAFT`, after `REFINE`. The person wait and the returned item stay in `REFINE`, because the rule of `refine_wait_on_person` already covers them. The rule for a returned item is kept, since no new record key replaces it.

- `SPLIT`: an open New item whose `refine.next_step` is `split`. The item stays open until a person splits it. A reply shows after the next refine round, as it does for `REFINE`.
- `ALTERNATIVES`: an open New item whose `refine.alternatives_asked` is set. The key is set when the check verdict is `covers` (`refine.py:2079`). The key is read, not the next step, because the covers question joins the open questions only after a reply (`refine.py:560-564`).
- `DRAFT`: a draft of a job, which is a draft pull request that a job record names and that no runner Job holds. It is listed when its age is over `roadmap.inbox.draft_days` or when a check run of its head commit failed.

An item may have more than one line, one for each wait. A `REFINE` line and an `ALTERNATIVES` line of one item both show.

### Check runs by head commit

`OpenPull` gets `head_sha`, read from `head.sha` of the pull request listing. `RoadmapStore.failed_checks(head_sha)` returns whether a check run of the commit failed. The GitHub store calls `read_check_runs` and returns `fail_count > 0`. When GitHub gives no check run list (`unread_reason` is set), the store raises `GitHubUnreadError`, so the inbox does not show a draft as passing. The in-memory store answers from the failures that a test seeds.

The inbox reads the check runs only for job drafts, so a run makes one read for each job draft and no read for a person's draft.

Rejected: reading the check runs of every open pull request. It costs one request for each person's draft, and the rule needs only the job drafts.

### Two settings with a default of seven days

`roadmap.inbox.draft_days` and `roadmap.inbox.wait_days` are integers of at least 1. Both default to 7 (`DEFAULT_ROADMAP_INBOX_DRAFT_DAYS` and `DEFAULT_ROADMAP_INBOX_WAIT_DAYS` in `config/defaults.py`). `CONST_ROADMAP_INBOX_CLAIM_DAYS` stays a constant, because the spec rule of claims names its 7 days.

Rejected: one setting for both thresholds. The issue names a setting for drafts and a setting for the mark, and the two thresholds can differ.

### Marks, counts and the class filter

`InboxLine` gets a field `old`, which `read_inbox` sets when the age of the line is over `wait_days`. `render_inbox` prints the mark after the subject of an old line.

`render_inbox` prints the counts of all lines by class under the title, before any filter. `render_inbox` takes an optional set of classes, and the command option `--kind` passes one class. The counts stay complete when a filter applies.

Rejected: the option name `--class`. `class` is a Python keyword and the code names the type `InboxKind`, so the option is `--kind`.

### Dry run

`inbox_requests(repo)` lists the reads of one repository. It adds the check-run read of each open job draft, under the condition `open job draft`, so a dry run lists the reads that a run may make and makes none.

## Rejected alternatives with their evidence

- Reading the origin of the checkout when `service.repos` is empty: rejected for the reason above (the project rule on unconfigured service URLs).
- A record key for the returned item: rejected, because the rule `RETURNED_BODY_HASH == BODY_HASH` already gives the line, and the issue allows keeping the rule.
- Reading the check runs of every pull request: rejected because it costs a request for each person's draft.
Loading
Loading