Repository navigation
Description
Problem or Motivation
Found while working on #3764 (child E of #1330).
_evaluate_tiered_status in src/devops_cli/ai/harness/slots.py returns partial when some sub-agent searches succeed and some fail. _summarize_search then writes "Some searches failed; found ...". No public input reaches this branch.
Evidence, from origin/main 235a807:
AgentHarness.execute_tieredruns up to two searches on onerepo_path. Both testroot.is_dir()with the same root, so they fail together.parse_file_symbolscatches every read and parse error and returnsNone.is_ignored_by_gitfails open.Path.rglobskips a directory it cannot read.- A probe on a directory with an unreadable file, a directory named
d.py, a broken symbolic link, a symbolic link loop, a directory with no access and a file with bytes that are not UTF-8 gavecompletedfor both searches.
The only test of the branch built two SubAgentResult objects by hand and called the private helpers. #3764 deletes that test.
Expected
The partial status and the "Some searches failed; found" text leave slots.py. The status is completed when every search succeeds and failed otherwise.
Acceptance criteria
-
! git grep -n -e partial -e "Some searches failed" -- src/devops_cli/ai/harness/slots.pyreturns no line. - A test of
AgentHarness.execute_tieredstill checks thefailedsummary. -
uv run devops cipasses.
Existing tool considered
None needed. The change deletes code.
Related
Alternatives check of 2026-11-08: not-applicable.
Class: refactor, no search.
Tool: none found.
Proposed design
Problem statement
The function _evaluate_tiered_status in src/devops_cli/ai/harness/slots.py returns partial when some searches succeed and some fail. No public input reaches this branch, because both searches of AgentHarness.execute_tiered use the same repo_path and fail together. The partial status and the text "Some searches failed; found" are dead code. The change deletes them. The status is then completed when every search succeeds and failed otherwise.
Acceptance criteria
Requirement: No partial status in slots.py
The file src/devops_cli/ai/harness/slots.py SHALL contain neither the word partial nor the text "Some searches failed".
Scenario: Search the file for the removed words
- WHEN the command
git grep -n -e partial -e "Some searches failed" -- src/devops_cli/ai/harness/slots.pyruns - THEN the command returns no line
Requirement: Two-state tiered status
The function AgentHarness.execute_tiered SHALL report the status completed when every search succeeds and the status failed otherwise.
Scenario: Searches run on a directory that exists
- WHEN
execute_tieredruns a symbol search and a file search on an existing directory - THEN the result status is
completedand the summary starts with "Found"
Requirement: Failed summary kept
The function AgentHarness.execute_tiered MUST still report the status failed and a summary that lists the errors of the failed searches.
Scenario: Searches run on a missing directory
- WHEN
execute_tieredruns two searches on a directory that does not exist - THEN the result status is
failedand the summary lists both errors
Requirement: CI passes
The change SHALL pass the full project check uv run devops ci.
Scenario: Run the project check after the change
- WHEN
uv run devops ciruns on the branch of the change - THEN the command exits with code 0
Existing Tool Considered
None needed. The change deletes unreachable code, so no tool or library applies. The alternatives check gave not-applicable for the class refactor. The cost of the change is a few lines of deletion and one run of the existing tests.
Key questions
- Does any public input reach the
partialstatus of_evaluate_tiered_status?: No.execute_tieredruns its searches on onerepo_path, and both testroot.is_dir()with the same root, so they fail together. The read and parse helpers swallow their own errors, so a single search does not fail alone. The test(ai): harness slot tests patch no internals #3764 change records the probe and deletes the only test of the branch. [sources: src/devops_cli/ai/harness/slots.py, openspec/changes/archive/2026-11-06-3764-harness-slot-tests-public-interface/proposal.md, openspec/changes/archive/2026-11-06-3764-harness-slot-tests-public-interface/tasks.md]
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
dan-petty commentedon Nov 6, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
refactorprefix of the title gives the type.(ai)scope of the title gives the scope.Removing unreachable code has no user-facing impact and no urgency.No user-visible behaviour changes; it only reduces dead code.The change deletes a status branch and its summary text, then adjusts one test.Both work on the harness slots area; #3764 fixes tests that patch internals, while this candidate deletes unreachable production code in slots.py.devops-cli-service commentedon Nov 8, 2026
Alternatives check: not-applicable
Class: refactor. The check makes no search and no model call for an item of this class.
Tool: none found
Checked on 2026-11-08. A person decides what this means for the item. The check changes no label and closes no issue.
devops-cli-service commentedon Nov 9, 2026
Status set to Ready at 1b37dbc (see proposed design in issue body).
devops-cli-service commentedon Nov 10, 2026
Released in v0.103.1: https://github.com/dan-petty/devops-cli/releases/tag/v0.103.1
devops-cli-service commentedon Nov 10, 2026
Live since 2026-11-09 23:58 UTC