Skip to content

feat(roadmap): Add a console that follows a roadmap run - #5774

Merged
dan-petty merged 8 commits into
mainfrom
feat/3076-a-run-console-follow-a-run
Nov 15, 2026
Merged

dan-petty merged 8 commits into
mainfrom
feat/3076-a-run-console-follow-a-run

Conversation

@devops-cli-service

@devops-cli-service devops-cli-service Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

A person learns what a roadmap Job did from kubectl logs and from one comment at the end, so a running Job is opaque, and devops roadmap explain says why an item is taken, not what the Job does. #3076 asks for one command that shows the trace of the run and the live log of its pod.

Closes #3076

Change: openspec/changes/archive/2026-11-15-3076-a-run-console-follow-a-run/

@devops-cli-service
devops-cli-service Bot force-pushed the feat/3076-a-run-console-follow-a-run branch 3 times, most recently from 88a7d6d to 3aa6ced Compare November 15, 2026 01:51
@devops-cli-service devops-cli-service Bot added type/feature Type feature: a new function scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them labels Nov 15, 2026
@devops-cli-service

devops-cli-service Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor Author

The steps of the job:

Stopped at fix.

Failed check: Tests & Coverage (shard 4 of 4). The end of its log:

-11-15T02:11:56.2641757Z SKIPPED [2] tests/roadmap/stage/test_roadmap_stage_renames.py:188: openspec is not installed
Tests & Coverage (shard 4 of 4)\tTests & Coverage Quality Gate\t2026-11-15T02:11:56.2642818Z SKIPPED [1] tests/roadmap/stage/test_roadmap_stage_renames.py:204: openspec is not installed
Tests & Coverage (shard 4 of 4)\tTests & Coverage Quality Gate\t2026-11-15T02:11:56.2643991Z SKIPPED [1] tests/roadmap/stage/test_roadmap_stage_renames.py:225: openspec is not installed
Tests & Coverage (shard 4 of 4)\tTests & Coverage Quality Gate\t2026-11-15T02:11:56.2645337Z ================================================================================================= 1 failed, 5967 passed, 6 skipped in 176.30s (0:02:56) ==================================================================================================
Tests & Coverage (shard 4 of 4)\tTests & Coverage Quality Gate\t2026-11-15T02:11:57.7611252Z   \u2717 fail  pytest & coverage (3m 7s)
Tests & Coverage (shard 4 of 4)\tTests & Coverage Quality Gate\t2026-11-15T02:11:57.7663364Z             CI Summary            
Tests & Coverage (shard 4 of 4)\tTests & Coverage Quality Gate\t2026-11-15T02:11:57.7664030Z  Check           Result  Duration 
Tests & Coverage (shard 4 of 4)\tTests & Coverage Quality Gate\t2026-11-15T02:11:57.7664493Z  python_version  \u2713 pass  2\xb5s      
Tests & Coverage (shard 4 of 4)\tTests & Coverage Quality Gate\t2026-11-15T02:11:57.7664834Z  test            \u2717 fail  3m 7s    
Tests & Coverage (shard 4 of 4)\tTests & Coverage Quality Gate\t2026-11-15T02:11:57.7665159Z  coverage        \u2717 fail  -        
Tests & Coverage (shard 4 of 4)\tTests & Coverage Quality Gate\t2026-11-15T02:11:57.7668405Z Total Elapsed: 3m 7s (concurrent async execution)
Tests & Coverage (shard 4 of 4)\tTests & Coverage Quality Gate\t2026-11-15T02:11:57.7668677Z 
Tests & Coverage (shard 4 of 4)\tTests & Coverage Quality Gate\t2026-11-15T02:11:57.8919478Z ##[error]Process completed with exit code 1.

Failure class: outside_plan.
Action taken: none.
Action left: wait: wait for a person.

Step Status Attempts Tokens in/out Last failing command
group 1 done 2 7654647/26847 pytest on base: tests/roadmap/test_roadmap_follow.py
group 2 done 1 1285809/7435 pytest on base: tests/roadmap/test_roadmap_follow_live.py
group 3 done 1 8081360/23131 pytest on base: tests/commands/test_all_commands_help_dryrun.py, tests/roadmap/test_roadmap_follow_command.py
group 4 done 1 2461397/12793 pytest on base: tests/roadmap/test_roadmap_inbox.py
group 5 done 1 2313750/16674 pytest on base: tests/roadmap/test_roadmap_explain.py
group 6 done 1 1420055/5194 -
fix stopped 1 1901125/22852 Tests & Coverage (shard 4 of 4)

Reason:

The fix step changed paths that the plan does not name: `openspec/specs/roadmap-stage/claims/spec.md`, `tests/core/test_docs_command_resolver.py`, `tests/roadmap/stage/test_roadmap_stage_command_citations.py`. A fix step may change only the paths that the plan names and the files of the change folder. The cause of the failed check may lie in another path. A person decides how to change the plan.

Last message of the agent (a claim that no check verified): The stale example is fixed. Summary of the work: ## Cause of the failure The check failed because this change adds devops roadmap follow, a real subcommand of roadmap that declares an argument. Two tests (from #4956) used uv run devops roadmap follow 3076 … as their example of an unknown subcommand of roadmap. Now the command tree takes follow and its declared argument, so a sentence citing devops roadmap follow 3076 to see the job is a valid command: cited_command_length returns 3, not 2, and the stage citation gate reports no problem. That broke tests/core/test_docs_command_resolver.py::test_a_cited_command_ends_at_the_first_word_the_tree_does_not_take[words2-2] (the shard 4 failure) and tests/roadmap/stage/test_roadmap_stage_command_citations.py::test_an_unknown_subcommand_of_a_group_in_prose_is_refused. ## Changes - tests/core/test_docs_command_resolver.py: the "group that needs a subcommand keeps the next word" case now cites prose (["roadmap", "to", "see", "the", "job"], 2), which no future command can invalidate, and a new case (["roadmap", "follow", "3076", "to", "see"], 3) pins the real behaviour (a declared argument is taken, the prose after it ends the citation). The docstring names roadmap follow beside pr monitor. - tests/roadmap/stage/test_roadmap_stage_command_citations.py: the unknown-subcommand case cites devops roadmap to see the job and expects 'to'; a new accepted case `Run uv run devops roadmap follow 3076 to see the

The job discarded this work. Read it before you retry:

diff --git a/openspec/specs/roadmap-stage/claims/spec.md b/openspec/specs/roadmap-stage/claims/spec.md
index baa1fb4a9..18d740d6f 100644
--- a/openspec/specs/roadmap-stage/claims/spec.md
+++ b/openspec/specs/roadmap-stage/claims/spec.md
@@ -251,8 +251,8 @@ The plan check SHALL end a `devops` command that a sentence cites with no code s
 The plan check SHALL keep the next word of a sentence in a cited command when the group before it needs a subcommand. It SHALL keep a word before an option in the cited command, because a sentence puts no option after an English word.
 
 #### Scenario: An unknown subcommand in a sentence is refused
-- **WHEN** a plan cites `uv run devops roadmap follow 3076 to see the job` in a sentence with no code span
-- **THEN** the check returns a problem that names `follow`
+- **WHEN** a plan cites `uv run devops roadmap to see the job` in a sentence with no code span
+- **THEN** the check returns a problem that names `to`
 
 #### Scenario: An unknown subcommand before an option in a sentence is refused
 - **WHEN** a plan cites `uv run devops ai ast-graph --help to see the options` in a sentence with no code span
diff --git a/tests/core/test_docs_command_resolver.py b/tests/core/test_docs_command_resolver.py
index 2fa030ac8..c0fcd1ba5 100644
--- a/tests/core/test_docs_command_resolver.py
+++ b/tests/core/test_docs_command_resolver.py
@@ -283,7 +283,8 @@ def test_a_command_path_names_only_the_commands_and_counts_the_other_words(
     [
         (["ci", "to", "confirm", "the", "gate"], 1),
         (["roadmap", "intake", "command", "with", "gh"], 2),
-        (["roadmap", "follow", "3076", "to", "see"], 2),
+        (["roadmap", "to", "see", "the", "job"], 2),
+        (["roadmap", "follow", "3076", "to", "see"], 3),
         (["gh", "pages", "verify", "--root_dir", "docs", "to", "check"], 4),
         (["format", "--check", "to", "confirm"], 2),
         (["--dry-run", "config", "show", "the", "value"], 3),
@@ -308,9 +309,10 @@ def test_a_cited_command_ends_at_the_first_word_the_tree_does_not_take(
     `devops ci` runs with no subcommand and `roadmap intake` has no subcommands, so the next word
     is prose. `devops roadmap` and `devops` need a subcommand, so the next word stays for the
     resolver to report. The tree takes an option, the value of a known option and a declared
-    argument, such as the number of `pr monitor`. A sentence puts no option after an English word,
-    so a word before an option stays: `ast-graph` before `--help`, and a second path of `ci test`.
-    A `--` is a dash in a sentence, not an option. The walk parses no word, so it prints nothing.
+    argument, such as the number of `pr monitor` or of `roadmap follow`. A sentence puts no option
+    after an English word, so a word before an option stays: `ast-graph` before `--help`, and a
+    second path of `ci test`. A `--` is a dash in a sentence, not an option. The walk parses no
+    word, so it prints nothing.
     """
     from devops_cli.core.command_resolver import cited_command_length
 
diff --git a/tests/roadmap/stage/test_roadmap_stage_command_citations.py b/tests/roadmap/stage/test_roadmap_stage_command_citations.py
index 12885e3a9..91b17b2be 100644
--- a/tests/roadmap/stage/test_roadmap_stage_command_citations.py
+++ b/tests/roadmap/stage/test_roadmap_stage_command_citations.py
@@ -182,13 +182,13 @@ def test_an_unknown_option_in_prose_is_refused() -> None:
 
 def test_an_unknown_subcommand_of_a_group_in_prose_is_refused() -> None:
     plan = make_stage_proposal(
-        feasibility=["Run uv run devops roadmap follow 3076 to see the job of the item."]
+        feasibility=["Run uv run devops roadmap to see the job of the item."]
     )
 
     problems = command_citation_problems(plan)
 
     assert len(problems) == 1
-    assert "'follow'" in problems[0]
+    assert "'to'" in problems[0]
 
 
 @pytest.mark.parametrize(
@@ -241,6 +241,7 @@ def test_an_unknown_option_after_an_argument_or_a_value_in_prose_is_refused(text
         "Run uv run devops ci --check --only lint,format to confirm the rows.",
         "Run uv run devops ci test tests/a.py -k 'numeric or ip' to confirm the test fails.",
         "Run uv run devops ci again -- it checks all the rows.",
+        "Run uv run devops roadmap follow 3076 to see the job.",
     ],
 )
 def test_the_arguments_and_values_of_a_command_in_prose_are_accepted(text: str) -> None:

The item is Blocked, and the job will not run it. Fix the cause. Then comment implement: retry. The Service clears the stop on its own when a new runner image rolls out, but only if a retry can fix the class of the stop and the limits of roadmap.implement.digest_clears_per_class and roadmap.implement.digest_clears_per_item allow it.

Step Status Attempts Tokens in/out Last failing command
group 1 done 2 7654647/26847 pytest on base: tests/roadmap/test_roadmap_follow.py
group 2 done 1 1285809/7435 pytest on base: tests/roadmap/test_roadmap_follow_live.py
group 3 done 1 8081360/23131 pytest on base: tests/commands/test_all_commands_help_dryrun.py, tests/roadmap/test_roadmap_follow_command.py
group 4 done 1 2461397/12793 pytest on base: tests/roadmap/test_roadmap_inbox.py
group 5 done 1 2313750/16674 pytest on base: tests/roadmap/test_roadmap_explain.py
group 6 done 1 1420055/5194 -
fix stopped 1 1901125/22852 -
  • scoped check pre-push: passed, 8 s
  • scoped check static: passed, 28 s
  • scoped check tests: passed, 63 s
  • fail-to-pass of group 1: fails on the base commit. Tests that fail on the base commit: tests.roadmap.test_roadmap_follow::test_an_item_with_no_trace_and_no_job_is_named_as_never_run, tests.roadmap.test_roadmap_follow::test_a_running_job_with_no_recorded_event_is_no_never_run_line, tests.roadmap.test_roadmap_follow::test_a_secret_in_a_recorded_text_is_masked, tests.roadmap.test_roadmap_follow::test_a_trace_that_is_no_trace_names_the_issue, tests.roadmap.test_roadmap_follow::test_the_follow_command_names_the_item, tests.roadmap.test_roadmap_follow::test_the_table_holds_one_row_for_each_step_of_the_trace, tests.roadmap.test_roadmap_follow::test_one_attempt_event_for_each_attempt_of_a_step.
  • fail-to-pass of group 2: fails on the base commit. Tests that fail on the base commit: tests.roadmap.test_roadmap_follow_live::test_the_tail_reads_the_lines_of_the_named_job, tests.roadmap.test_roadmap_follow_live::test_a_job_with_no_log_has_no_live_line, tests.roadmap.test_roadmap_follow_live::test_a_secret_in_the_pod_log_is_masked.
  • fail-to-pass of group 3: fails on the base commit. Tests that fail on the base commit: tests.commands.test_all_commands_help_dryrun::test_subcommand_apps_help_and_dryrun[app_instance50-args50], tests.roadmap.test_roadmap_follow_command::test_follow_reads_the_item_once_and_prints_the_live_line.
  • fail-to-pass of group 4: fails on the base commit. Tests that fail on the base commit: tests.roadmap.test_roadmap_inbox::test_the_report_names_the_refine_section, tests.roadmap.test_roadmap_inbox::test_only_a_line_that_names_an_item_holds_the_follow_command.
  • fail-to-pass of group 5: fails on the base commit. Tests that fail on the base commit: tests.roadmap.test_roadmap_explain::test_the_output_names_the_follow_command, tests.roadmap.test_roadmap_explain::test_the_report_gives_yes_or_no_for_each_job_and_the_reason_of_a_no, tests.roadmap.test_roadmap_explain::test_explain_names_the_effort_set_and_whether_the_fallback_applies.
  • verify of group 6: uv run devops ci docs exits 0.
\u2139 Quality gate root: /home/devops/.data/agent/worktrees/w-3076
\u2713 All documentation files are up to date.
Bytecode compiled 19311 files in 434ms
Bytecode compiled 19311 files in 472ms

@devops-cli-service
devops-cli-service Bot force-pushed the feat/3076-a-run-console-follow-a-run branch from 906e5d3 to dd8899a Compare November 15, 2026 02:34
@dan-petty
dan-petty force-pushed the feat/3076-a-run-console-follow-a-run branch from dd8899a to 4fdfec9 Compare November 15, 2026 05:04
@dan-petty
dan-petty marked this pull request as ready for review November 15, 2026 05:11
@dan-petty
dan-petty self-requested a review as a code owner November 15, 2026 05:11
@dan-petty
dan-petty merged commit 75b15c2 into main Nov 15, 2026
24 checks passed
@dan-petty
dan-petty deleted the feat/3076-a-run-console-follow-a-run branch November 15, 2026 05:47
dan-petty pushed a commit that referenced this pull request Nov 15, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.150.0](v0.149.0...v0.150.0)
(2026-11-15)


### Features

* **roadmap:** Add a console that follows a roadmap run
([#5774](#5774))
([75b15c2](75b15c2))
* **roadmap:** Check the strength of the new tests
([#3051](#3051))
([#5770](#5770))
([041ad79](041ad79))
* **roadmap:** Export eval fixtures as Harbor tasks
([#5780](#5780))
([bc9f2f8](bc9f2f8))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them type/feature Type feature: a new function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(roadmap): a run console: follow a run and read its history

1 participant