Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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 docs/CLI_REFERENCE.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/commands/roadmap.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/roadmap/inbox.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ The lines come in this order of classes:
10. Drafts of jobs, class `draft`. A draft of a job is listed when a check of its head commit failed in its latest run, or when it is older than `roadmap.inbox.draft_days`. An older run that a newer run of the same check replaced does not count. A newer draft with no failed check is not listed. A pull request that a runner Job holds is not listed either.
11. Claims with no activity for 7 days, class `claim`.
12. Workflow labels of the package and labels of `.github/labels.yml` that the repository lacks or holds with another color or description, class `labels`.
13. 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 only items with the priority `P0-Critical` or `P1-High`. The line has no number and no age.
13. 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 only items with the priority `P0-Critical` or `P1-High`, and a refine round still takes New items. The line has no number and no age.

A second list holds open owner questions (class `owner`). Each line lists the item number, age, question, and the clear command `gh issue comment <number> --body "<answer>"`. It also holds the other open pull requests of people and agents, class `person`. It marks the drafts.

Expand Down
2 changes: 1 addition & 1 deletion docs/roadmap/stage.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ The job leaves out an item that is not Ready, and some other items: for example

Plans merge faster than the Service delivers them, and a plan that waits long meets a changed default branch. The setting `roadmap.stage.planned_limit` (variable `DEVOPS_CLI_ROADMAP_STAGE_PLANNED_LIMIT`) is the count of open Planned items at which the job plans only items with the priority `P0-Critical` or `P1-High`. The default is 20. The Service delivers about two items a day, so 20 items wait about ten days.

At the limit, the job leaves out each item with another priority, with the reason that names the setting, the count and the two priorities. An item with the priority `P0-Critical` or `P1-High` passes the limit, and so does the item that `--item` names. The limit counts Planned items only. Open staging drafts do not count. A round can take up to `roadmap.stage.limit` items while the count is below the limit, so the count can pass the limit by less than that number. Each item that passes the limit adds to the count, and no setting bounds these items. `devops roadmap explain` names the limit for an item that it holds, and `devops roadmap inbox` states when it holds. The limit does not apply to the filing of issues.
At the limit, the job leaves out each item with another priority, with the reason that names the setting, the count and the two priorities. An item with the priority `P0-Critical` or `P1-High` passes the limit, and so does the item that `--item` names. The limit counts Planned items only. Open staging drafts do not count. A round can take up to `roadmap.stage.limit` items while the count is below the limit, so the count can pass the limit by less than that number. Each item that passes the limit adds to the count, and no setting bounds these items. `devops roadmap explain` names the limit for an item that it holds, and `devops roadmap inbox` states when it holds. The limit applies to the stage job only. The limit does not apply to the filing of issues.

## The budget of a task group

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@

Kind: behavior. Reads: `src/devops_cli/roadmap/inbox.py`, `src/devops_cli/roadmap/refine/refine.py`, `tests/support/roadmap_refine.py`, `tests/support/config.py`, `tests/support/fakes/model.py`, `tests/roadmap/test_roadmap_inbox.py`, `tests/roadmap/refine/test_roadmap_refine_selection.py`, `tests/roadmap/test_roadmap_limit_classes.py`, `tests/roadmap/implement/test_roadmap_implement_amend.py`, `docs/roadmap/inbox.md`. Changes: `src/devops_cli/lang/en/messages.py`, `tests/roadmap/test_roadmap_inbox.py`, `tests/roadmap/refine/test_roadmap_refine_selection.py`, `docs/roadmap/inbox.md`.

- [ ] 1.1 `tests/roadmap/test_roadmap_inbox.py::test_the_inbox_states_the_planned_limit_when_it_holds` fails first on the new sentence of the queue line, and `tests/roadmap/refine/test_roadmap_refine_selection.py::test_the_planned_limit_does_not_stop_a_round_from_setting_a_new_item_ready` fails first on the scenario "The limit is 1 with 50 Planned items": with roadmap.stage.planned_limit at 1, 50 Planned items and one New item, one round makes one model call and sets the item Ready. The inbox case also asserts the scenario "The line says that refine goes on" and that the line names roadmap.stage.planned_limit and P0-Critical or P1-High, and the refine case holds the requirement "The Planned limit does not stop a refine round"
- [x] 1.1 `tests/roadmap/test_roadmap_inbox.py::test_the_inbox_states_the_planned_limit_when_it_holds` fails first on the new sentence of the queue line, and `tests/roadmap/refine/test_roadmap_refine_selection.py::test_the_planned_limit_does_not_stop_a_round_from_setting_a_new_item_ready` fails first on the scenario "The limit is 1 with 50 Planned items": with roadmap.stage.planned_limit at 1, 50 Planned items and one New item, one round makes one model call and sets the item Ready. The inbox case also asserts the scenario "The line says that refine goes on" and that the line names roadmap.stage.planned_limit and P0-Critical or P1-High, and the refine case holds the requirement "The Planned limit does not stop a refine round"
- Verification: `$ uv run devops ci test tests/roadmap/test_roadmap_inbox.py tests/roadmap/refine/test_roadmap_refine_selection.py` fails on the base
- [ ] 1.2 In `src/devops_cli/lang/en/messages.py`, add the sentence "A refine round still takes New items." to the `queue` subject of `MESSAGES.roadmap.inbox_subjects` after the sentence that names the priorities, and leave the format placeholders as they are. `tests/roadmap/implement/test_roadmap_implement_amend.py` imports `MESSAGES` and needs no edit, so the catalog keeps its contract. Add the assertion of the new sentence to the case `test_the_inbox_states_the_planned_limit_when_it_holds` in `tests/roadmap/test_roadmap_inbox.py`, beside the assertion at `tests/roadmap/test_roadmap_inbox.py:495:assert "The stage job plans only items with the priority P0-Critical or P1-High." in text`. Add the case `test_the_planned_limit_does_not_stop_a_round_from_setting_a_new_item_ready` to `tests/roadmap/refine/test_roadmap_refine_selection.py` in the shape of the round at `tests/roadmap/refine/test_roadmap_refine_selection.py:323:apply_refine(store, plan_refine(store, repo=REPO, source=git_repo))`: take the `git_repo`, `store`, `model_fake` and `config` fixtures from `tests/support/roadmap_refine.py`, `tests/support/fakes/model.py` and `tests/support/config.py`, answer the model with the ready proposal `{"existing_tool": NO_OPEN_TOOL, "problem_statement": "The item needs a design.", "acceptance_criteria": [CRITERION_JSON]}`, call `config(roadmap={"stage": {"planned_limit": 1}})`, `store.seed_visibility(is_private=True)`, seed 50 items with `seed_item(store, "Planned", "P2-Medium")` and one with `seed_item(store, "New", "P3-Low")`, run `apply_refine(store, plan_refine(store, repo=REPO, source=git_repo, limit=1))`, and assert one model call, the New item's number in the prompt, and its status Ready. `tests/roadmap/test_roadmap_limit_classes.py` keeps its table, because the new case adds no roadmap limit
- [x] 1.2 In `src/devops_cli/lang/en/messages.py`, add the sentence "A refine round still takes New items." to the `queue` subject of `MESSAGES.roadmap.inbox_subjects` after the sentence that names the priorities, and leave the format placeholders as they are. `tests/roadmap/implement/test_roadmap_implement_amend.py` imports `MESSAGES` and needs no edit, so the catalog keeps its contract. Add the assertion of the new sentence to the case `test_the_inbox_states_the_planned_limit_when_it_holds` in `tests/roadmap/test_roadmap_inbox.py`, beside the assertion at `tests/roadmap/test_roadmap_inbox.py:495:assert "The stage job plans only items with the priority P0-Critical or P1-High." in text`. Add the case `test_the_planned_limit_does_not_stop_a_round_from_setting_a_new_item_ready` to `tests/roadmap/refine/test_roadmap_refine_selection.py` in the shape of the round at `tests/roadmap/refine/test_roadmap_refine_selection.py:323:apply_refine(store, plan_refine(store, repo=REPO, source=git_repo))`: take the `git_repo`, `store`, `model_fake` and `config` fixtures from `tests/support/roadmap_refine.py`, `tests/support/fakes/model.py` and `tests/support/config.py`, answer the model with the ready proposal `{"existing_tool": NO_OPEN_TOOL, "problem_statement": "The item needs a design.", "acceptance_criteria": [CRITERION_JSON]}`, call `config(roadmap={"stage": {"planned_limit": 1}})`, `store.seed_visibility(is_private=True)`, seed 50 items with `seed_item(store, "Planned", "P2-Medium")` and one with `seed_item(store, "New", "P3-Low")`, run `apply_refine(store, plan_refine(store, repo=REPO, source=git_repo, limit=1))`, and assert one model call, the New item's number in the prompt, and its status Ready. `tests/roadmap/test_roadmap_limit_classes.py` keeps its table, because the new case adds no roadmap limit
- Verification: `$ uv run devops ci test tests/roadmap/test_roadmap_inbox.py tests/roadmap/refine/test_roadmap_refine_selection.py` passes
- [ ] 1.3 Edit `docs/roadmap/inbox.md` so the queue item says that a refine round still takes New items, and run `uv run devops docs generate`
- [x] 1.3 Edit `docs/roadmap/inbox.md` so the queue item says that a refine round still takes New items, and run `uv run devops docs generate`
- Verification: `$ uv run devops ci docs` passes

## 2. Name the stage job only in the explain help and its pages

Kind: other. Reads: `src/devops_cli/lang/en/help.py`, `docs/CLI_REFERENCE.md`, `docs/commands/roadmap.md`, `docs/roadmap/stage.md`, `docs/ENV_VARS.md`. Changes: `src/devops_cli/lang/en/help.py`, `docs/CLI_REFERENCE.md`, `docs/commands/roadmap.md`, `docs/roadmap/stage.md`.

- [ ] 2.1 In `src/devops_cli/lang/en/help.py`, change the `explain` text so the setting is named as a rule of the stage job only: replace the fragment at `src/devops_cli/lang/en/help.py:1929:roadmap.stage.planned_limit), and the limit of a run.` so the sentence reads that the setting roadmap.stage.planned_limit is a rule of the stage job only. Regenerate `docs/CLI_REFERENCE.md` and `docs/commands/roadmap.md` with `uv run devops docs generate`, so `docs/commands/roadmap.md:238:and the setting roadmap.stage.planned_limit), and the limit of a run.` and `docs/CLI_REFERENCE.md:315:and the setting roadmap.stage.planned_limit), and the limit of a run.` carry the new words and no hand edit. Add the sentence "The limit applies to the stage job only." to `docs/roadmap/stage.md` beside `docs/roadmap/stage.md:35:The limit does not apply to the filing of issues.`
- [x] 2.1 In `src/devops_cli/lang/en/help.py`, change the `explain` text so the setting is named as a rule of the stage job only: replace the fragment at `src/devops_cli/lang/en/help.py:1929:roadmap.stage.planned_limit), and the limit of a run.` so the sentence reads that the setting roadmap.stage.planned_limit is a rule of the stage job only. Regenerate `docs/CLI_REFERENCE.md` and `docs/commands/roadmap.md` with `uv run devops docs generate`, so `docs/commands/roadmap.md:238:and the setting roadmap.stage.planned_limit), and the limit of a run.` and `docs/CLI_REFERENCE.md:315:and the setting roadmap.stage.planned_limit), and the limit of a run.` carry the new words and no hand edit. Add the sentence "The limit applies to the stage job only." to `docs/roadmap/stage.md` beside `docs/roadmap/stage.md:35:The limit does not apply to the filing of issues.`
- Verification: `$ uv run devops ci docs` passes
- [ ] 2.2 Edit `docs/roadmap/stage.md`, and regenerate `docs/CLI_REFERENCE.md` and `docs/commands/roadmap.md` with `uv run devops docs generate`, and run `uv run devops docs generate`
- [x] 2.2 Edit `docs/roadmap/stage.md`, and regenerate `docs/CLI_REFERENCE.md` and `docs/commands/roadmap.md` with `uv run devops docs generate`, and run `uv run devops docs generate`
- Verification: `$ uv run devops ci docs` passes

## Criteria
Expand Down
6 changes: 5 additions & 1 deletion openspec/specs/roadmap-inbox/spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ The inbox SHALL read each of its three listings, the open issues, the open pull
- **THEN** the output lists no refine line for it

### Requirement: The inbox states when the Planned limit holds
`devops roadmap inbox` SHALL list one line when the count of open Planned items is at the setting `roadmap.stage.planned_limit` or over it. The line SHALL name the count, the setting and the priorities that the stage job still plans, SHALL show `-` as its number and its age, and SHALL give a way to clear it: deliver Planned items, or raise the setting. The line SHALL come after the line of the labels. Under the limit, the inbox SHALL list no such line.
`devops roadmap inbox` SHALL list one line when the count of open Planned items is at the setting `roadmap.stage.planned_limit` or over it. The line SHALL name the count, the setting, the priorities that the stage job still plans, and that a refine round still takes New items, SHALL show `-` as its number and its age, and SHALL give a way to clear it: deliver Planned items, or raise the setting. The line SHALL come after the line of the labels. Under the limit, the inbox SHALL list no such line.

#### Scenario: At the limit
- **WHEN** 2 open items are Planned, 1 closed item is Planned, and the setting is 2
Expand All @@ -103,6 +103,10 @@ The inbox SHALL read each of its three listings, the open issues, the open pull
- **WHEN** 1 open item is Planned and the setting is 2
- **THEN** the output lists no such line

#### Scenario: The line says that refine goes on
- **WHEN** 2 open items are Planned, the setting is 2, and a New item is in the backlog
- **THEN** the line says that a refine round still takes New items

### Requirement: The inbox reads each repository of service.repos by default
Without `--repo`, `devops roadmap inbox` SHALL read each repository of the setting `service.repos`, in its order, and list the lines of each. With `--repo`, it SHALL read that repository only. When `service.repos` is empty and `--repo` is not given, the command SHALL fail with an error that names `service.repos`, and SHALL read no repository.

Expand Down
Loading
Loading