Skip to content

fix(roadmap): a wait keeps only real repository paths - #6546

Merged
dan-petty merged 10 commits into
mainfrom
fix/6444-refine-watches-numbers-and-names-as
Nov 20, 2026
Merged

dan-petty merged 10 commits into
mainfrom
fix/6444-refine-watches-numbers-and-names-as

Conversation

@devops-cli-service

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

Copy link
Copy Markdown
Contributor

Refine took each dotted token of a wait text as a repository path. A
decimal, a version, a setting key or a domain took one of the 5 watched
slots, cost one commits read in each round, and kept a real file
unwatched. The hold of a rejected plan used the same extractor.

text_paths now keeps a path only when the tree of the round holds it,
as a file or a directory, and applies the cap after that filter. A wait
record that holds a path that the tree lacks is read again one time,
with no model call. The path pattern accepts a period or a comma after a
path, and a lookahead keeps each path of a run. explain reads the tree
of origin/<default>, and the stage and explain dry runs list that read.

Rule: a file that the tree does not hold ends no wait.

On origin/main, 63 of 266 open wait records hold a false value (147
values); 20 are person waits that only a new comment read again.

Closes #6444

Change: openspec/changes/archive/2026-11-20-6444-refine-watches-numbers-and-names-as/

@devops-cli-service devops-cli-service Bot added type/docs Type docs: a change to the documents scope/openspec OpenSpec changes, specs and their checks labels Nov 20, 2026
@devops-cli-service
devops-cli-service Bot force-pushed the fix/6444-refine-watches-numbers-and-names-as branch 3 times, most recently from 2c56959 to e5abd7e Compare November 20, 2026 19:26
@devops-cli-service

Copy link
Copy Markdown
Contributor Author

The steps of the job:

Stopped at group 2. The stop report is on #6444: #6444 (comment).

  • tools: run_command 84, read_file 44, edit_file 41, grep 10
  • fail-to-pass of group 1: fails on the base commit. Tests that fail on the base commit: tests.roadmap.refine.test_roadmap_refine_person_wait::test_a_wait_text_keeps_only_the_paths_of_the_tree, tests.roadmap.refine.test_roadmap_refine_person_wait::test_a_directory_of_the_tree_is_a_path, tests.roadmap.refine.test_roadmap_refine_person_wait::test_a_path_that_a_period_or_a_comma_follows_is_a_path, tests.roadmap.refine.test_roadmap_refine_person_wait::test_a_false_path_of_a_wait_text_reads_no_commits, tests.roadmap.refine.test_roadmap_refine_person_wait::test_a_wait_text_keeps_the_first_five_paths_of_the_tree, tests.roadmap.refine.test_roadmap_refine_person_wait::test_the_explain_verdict_reads_the_tree_for_the_paths_of_the_wait.
  • fail-to-pass of group 2: did not run on the base commit. Tests that fail on the base commit: none.

devops-cli-service Bot and others added 9 commits November 20, 2026 20:16
Records written before the change, the regex boundary, the keyword name,
the explain tree, the test git fake and the base requirements of the waits.
See #6444.
…n tree

Each test fails on the base (#6444):
- a record written before the tree filter keeps 0.202 and reads its commits
- text_paths('Read a.py b.py c.py d.py') gives a.py and c.py alone
- explain reads the tree of HEAD, not of origin/main
- the stage and explain dry runs list no read of the default-branch tree
A record of refine.wait_refs that holds a path that the tree of the round
lacks is not current: the round reads the comments once, writes the
filtered references and makes no model call. The wait check reads no
commits of a recorded path that the tree lacks. The trailing boundary of
the cited-path pattern is a lookahead, so 'a.py b.py' gives both paths.
The keyword is tracked_paths, as DependencyGraph.tree is an ItemTree
(#6450). See #6444.
devops roadmap explain gives refine_left_out the tracked files of
origin/<default>, which read_planned_changes fetched, as a round of the
Service reads the default branch. The dry runs of stage and explain list
the one read of that tree. See #6444.
A wait and the record of a rejected plan keep only the files that the
tree holds; a record with a false path is read again once. See #6444.
@dan-petty
dan-petty force-pushed the fix/6444-refine-watches-numbers-and-names-as branch from e5abd7e to e6d88e0 Compare November 20, 2026 20:23
@dan-petty dan-petty changed the title docs(openspec): plan #6444 Keep only real repository paths in a wait fix(roadmap): a wait keeps only real repository paths Nov 20, 2026
@dan-petty dan-petty added scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them type/bug Type bug: the code does not do what it must and removed type/docs Type docs: a change to the documents scope/openspec OpenSpec changes, specs and their checks labels Nov 20, 2026
@dan-petty

Copy link
Copy Markdown
Owner

An agent took over this branch after the implement Job stopped at group 2 (19:26Z), rebased it on main, and finished the item. How each point was resolved:

  • Implement stop (pytest on base: tests/roadmap/stage/test_roadmap_stage_rejected.py, exit 3): not a test defect. The replay of that file on the group 1 commit and on the plan commit gives 1 failed and 34 passed (the new test fails for the right reason), with 4 random orders. Exit 3 is a pytest internal error, and the stop kept only the last 256 characters of the output, a stderr warning, so the Job recorded no cause. No test changed for it.
  • Major 1: a record of refine.wait_refs that holds a path that the tree lacks is not current. The round reads the comments once, writes the filtered references and makes no model call, and _named_cause_ended drops such a path before a commits read. Test: test_a_record_written_before_the_tree_filter_gets_the_paths_of_the_tree.
  • Major 2: the git fake answers the whole-tree read (group 1). The two named tests pass with no changed assertion. The plan lists tests/support/roadmap_refine.py in Changes and the recorded-wait test in Verification.
  • Minor 1: plan_refine imports tree_files inside the function.
  • Minor 2: the keyword is tracked_paths. After the rebase on fix(roadmap): an open tracker holds back no item #6548, the blocked case of _still_waiting binds a local tree (ItemTree), so the old name gave that ItemTree to _wait_state.
  • Minor 3: the trailing boundary of _CITED_PATH_RE is a lookahead. Test: test_a_run_of_paths_keeps_each_path.
  • Minor 4: the delta MODIFIES three base requirements of roadmap-refine/waits and adds "A file that the tree of the round does not hold ends no wait": a file that a later commit creates, or deletes, ends no wait.
  • Minor 5: the plan asks for no edit of tests/roadmap/test_roadmap_limit_classes.py. Task 1.2 names the file only to say that it does not change, because the registry gate of the plan asks for the path when a task names a CONST_ROADMAP_ constant.
  • Minor 6: explain reads the tree of origin/<default>. Test: test_the_refine_verdict_reads_the_tree_of_the_default_branch. The stage and explain dry runs list the read.

Live, read only, at origin/main: 63 of 266 open wait records hold a value that the tree lacks (147 values), 20 of them person waits with an unchanged comment count. A round now records #4880,#3904,#4921,#4884,#4479,AGENTS.md,src/devops_cli/commands/ai.py,CONTEXT.md on #4671 (no 0.202, no 0.453), nothing on #6365 and #4750, #5434,#5447 on #5356 and #4989,#4517,#4577,#4821,#4809 on #4566. The one open stage.rejected record holds no false path.

Local checks at e6d88e0: devops ci --check --only lint,format,docs,constructs,openspec,test-settings,test-tree,startup-imports,swallowed-failures passes; devops ci test on the 6 changed source files: 2812 passed; mypy on them: no issues; devops ci fail-to-pass --base origin/main: exit 0, 10 changed tests fail on base. devops openspec check and devops roadmap plan-recheck --branch HEAD (before the archive): ok. The pull request stays a draft until its checks pass.

An empty refine.wait_refs split into one empty name, and the tree does
not hold an empty name, so a wait that names nothing was never current
again. Each round read its comments again: about 156 waits today.
_ref_paths now skips an empty name, so an empty record holds no path
that the tree lacks, as the waits spec says. The stage.rejected row of
ROADMAP_WORKFLOW.md says that only files of the default tree count.
@dan-petty

Copy link
Copy Markdown
Owner

An independent review of e6d88e0 found one blocker, fixed in 61c542e: a wait record with an empty refine.wait_refs split into one empty name, and the tree holds no empty name, so _recorded_reads never counted that record as current. Each round read the comments of each wait that names nothing again (139 open waits with no references today, and 17 more that the filter empties, #6365 and #4750 among them), which undid #3667. _ref_paths now skips an empty name. The test test_a_wait_that_names_nothing_reads_no_comment_after_its_record came first (comment reads ([1], [1]) before the fix, none after).

The review also confirmed on the live records against the tree of origin/main: no non-path value is kept, and each real file that the filter drops is a partial path or a file that the tree no longer holds, which never worked before. The stage.rejected row of docs/ROADMAP_WORKFLOW.md now names the tree filter. The scoped checks, mypy and the 1321 covering tests of refine.py pass.

@dan-petty

Copy link
Copy Markdown
Owner

Check results

Head commit: 61c542eeff7d306be6e0de74b86a7bac28f968b0

Check Conclusion Link
Tests & Coverage success run
devops-cli success run
zizmor success run
trivy-config success run
Trivy success run
Plan Check skipped run
CodeQL success run
Tests on Main skipped run
Test Job Duration skipped run
Docs Site Build success run
Dependency Freshness skipped run
Semantic PR title success run
Runner Image success run
Tests & Coverage (shard 1 of 5) success run
Tests & Coverage (shard 4 of 5) success run
Design Tokens success run
Changed-Test Independence success run
Tests & Coverage (shard 2 of 5) success run
Tests & Coverage (shard 5 of 5) success run
MCP Server Image success run
Tests & Coverage (shard 3 of 5) success run
Service Image success run
Analyze (python) success run
Static Analysis success run
Fail-to-Pass Check success run
Analyze (actions) success run

Fail-to-pass run: https://github.com/dan-petty/devops-cli/actions/runs/44814043902/job/136557646993

Skipped check: Plan Check
Skipped check: Tests on Main
Skipped check: Test Job Duration
Skipped check: Dependency Freshness

@dan-petty
dan-petty marked this pull request as ready for review November 20, 2026 20:51
@dan-petty
dan-petty self-requested a review as a code owner November 20, 2026 20:51
@dan-petty
dan-petty merged commit 165463c into main Nov 20, 2026
26 checks passed
@dan-petty
dan-petty deleted the fix/6444-refine-watches-numbers-and-names-as branch November 20, 2026 20:53
dan-petty pushed a commit that referenced this pull request Nov 20, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.185.1](v0.185.0...v0.185.1)
(2026-11-20)


### Bug Fixes

* **ci:** take the CI job tools from the devtools image
([#6543](#6543))
([2e4188f](2e4188f))
* **roadmap:** a Job leaves a stale lock for the agent
([#6558](#6558))
([be35253](be35253)),
closes [#6557](#6557)
* **roadmap:** a wait keeps only real repository paths
([#6546](#6546))
([165463c](165463c))

---
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/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(roadmap): refine watches numbers and names as file paths

1 participant