Repository navigation
Closed
Labels
priority/p2-mediumPriority P2: standard workscope/roadmapThe roadmap jobs: intake, refine, stage, implement and the Service that runs themsource/agentFiled by an agenttype/bugType bug: the code does not do what it mustvalue/mediumValue Medium
Description
Problem Description
Refine collects the context of an item with git grep -n -F -w -e <identifier> <sha> -- over the whole tree at the pinned commit (_collect_identifiers in src/devops_cli/roadmap/refine/refine.py). git_result runs it with timeout=15. When the grep takes longer, subprocess.TimeoutExpired escapes from refine_one_item, and plan_refine stops with it. Refine does not record the item as a failed model call, so the item gets no failure class and no wait.
Reproduction Steps
- Run refine for test(k8s): verify the RAG ingest CronJob schedule #4135 (body names
crawl4ai) on a loaded workstation:uv run devops roadmap refine --item 4135. - Time the same grep:
git grep -n -F -w -e crawl4ai HEAD -- | wc -lgave 438 lines in 12.0 s on 2026-11-12.
Expected vs Actual Behavior
- Expected: a slow grep cuts the context of the item, and refine goes on with the other parts of the context.
- Actual:
TimeoutExpired: Command '['git', '-C', '<checkout>', 'grep', '-n', '-F', '-w', '-e', 'crawl4ai', '<sha>', '--']' timed out after 15 secondsstops the plan of the item.
Proposed Solution
- Limit the grep to the paths that hold code and documents (for example a pathspec that leaves out
openspec/changes/archive/andtests/fixtures/), or use--max-count. - Treat a timeout of one grep as no result for that identifier, and log it.
- Open PR feat(roadmap): find symbol definitions with tree-sitter #4820 changes the symbol search of refine; check that it does not already cover this.
Existing Tool Considered
git grep is the tool. The change is a pathspec and the handling of a timeout. Cost: about 20,000 tokens and 30 minutes.
Acceptance Criteria
- A test with a git fake that times out on one grep shows that refine plans the item with the other context.
Source: the read-only replay of #4798 on 2026-11-12.
Source: #4874
Alternatives check of 2026-11-14: none.
Tool: none found.
Metadata
Metadata
Assignees
Labels
priority/p2-mediumPriority P2: standard workscope/roadmapThe roadmap jobs: intake, refine, stage, implement and the Service that runs themsource/agentFiled by an agenttype/bugType bug: the code does not do what it mustvalue/mediumValue Medium
Activity
dan-petty commentedon Nov 12, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
fixprefix of the title gives the type.(roadmap)scope of the title gives the scope.The bug stops one item's refine plan under load, but it does not corrupt data or block all items.It keeps refine running for the affected item instead of losing the whole plan on a slow grep.The fix is a pathspec or max-count limit plus a timeout handler, estimated at about 30 minutes.Both work on refine context collection, but #3012 adds callers and tests to the context while this item fixes a crash when the existing grep times out.devops-cli-service commentedon Nov 12, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
fixprefix of the title gives the type.(roadmap)scope of the title gives the scope.A slow grep stops the plan of one item, but the other items and the poll cycle continue.Refine keeps the other parts of the context and no longer loses the plan of an item.The change adds a pathspec and a timeout handler, with one test that uses a git fake.Both items change how refine collects the context of cited identifiers. #3012 adds the callers and tests of each symbol, and the candidate limits the grep paths and treats a timeout as no result.devops-cli-service commentedon Nov 14, 2026
Alternatives check: none
Reason: The need is an in-repo change to refine's context collection: narrow the
git greppathspec (or cap matches) and turn a grepTimeoutExpiredinto a logged empty result so the item keeps its other context. The searches returned only generic Git and timeout reference pages and no tool or library that provides this timeout-tolerant grep behavior for refine, so no external tool covers the need.Tool: none found
Lacks:
--max-countlimit that keepsgit grepinside code and document paths and out ofopenspec/changes/archive/andtests/fixtures/TimeoutExpiredescaperefine_one_itemSearches run:
Sources:
Checked on 2026-11-14. A person decides what this means for the item. The check changes no label and closes no issue.
fix(roadmap): a slow git grep stops the refine context collection (#4878
devops-cli-service commentedon Nov 15, 2026
Released in v0.159.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.159.0
devops-cli-service commentedon Nov 15, 2026
Live since 2026-11-15 23:51 UTC