Repository navigation
Closed
Labels
effort/lowEffort Low: little workpriority/p3-lowPriority P3: a small improvementscope/aiAI review pipeline, personas, prompts, LLM client, or RAGsource/agentFiled by an agenttype/refactorType refactor: a new structure, same behaviorvalue/mediumValue Medium
Description
Problem or Motivation
- 9 files in
src/devops_cli/ai/tasks/have 0 code readers: agent_direct_response_from_reasoning, agent_direct_response_from_tools, agent_invoke_tool_request, agent_tool_already_called, agent_tool_feedback, guardrails_isolation, summarize_memory, summarize_memory_system and tool_execution_protocol. The 2 files insrc/devops_cli/ai/prompts/also have 0 code readers.git grepoutside the prompt folders gives 0 matches. review_prompt_digest(src/devops_cli/ai/personas/__init__.py:89-96) hashes everytasks/*.md. So an edit of an orphan file moves the review benchmark arm.load_task_promptreturns''for a missing file (src/devops_cli/ai/task_loader.py:20-22). This keeps 2 fallback prompt copies in code (src/devops_cli/ai/research/socratic.py:139andsrc/devops_cli/ai/research/mental_model.py:225).
Proposed Solution & Architectural Design
- Delete the 11 files and the 2 fallback copies.
- Remove the glob
src/devops_cli/ai/prompts/**/*.mdfromCONST_DOCS_CLASS_PROMPT(src/devops_cli/config/constants.py:499). - Make
load_task_promptraise the project error type for a missing prompt. - Correct
tests/ai/test_ai_task_loader.py:5, which says that the benchmark_suite files never existed.
Target Subsystem
AI & Agentic Review Pipeline (src/devops_cli/ai/tasks/ and src/devops_cli/ai/task_loader.py).
Existing Tool Considered
The change deletes code. git grep proves that no code reads the files. No tool is necessary. Cost: about 90 lines removed, about 60,000 tokens and 1 hour.
Acceptance Criteria
-
ls src/devops_cli/ai/tasks/*.md | wc -lgives 51 (60 today). - A test:
load_task_prompt('missing.md')raises. - A test loads every prompt name that the code gives to
load_task_prompt(collected withgit grep), and each one exists. -
uv run devops cipasses.
Dependencies
None.
Source: #4627
Metadata
Metadata
Assignees
Labels
effort/lowEffort Low: little workpriority/p3-lowPriority P3: a small improvementscope/aiAI review pipeline, personas, prompts, LLM client, or RAGsource/agentFiled by an agenttype/refactorType refactor: a new structure, same behaviorvalue/mediumValue Medium
Activity
dan-petty commentedon Nov 11, 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.Dead-code cleanup with no user-facing defect; it prevents benchmark drift but blocks nothing.Removes 11 files that can silently move the review benchmark and eliminates two stale fallback copies.About 90 lines removed, one constant glob edit, one error-path change, and two small tests; the body estimates 1 hour.Both delete unread prompt-related files, but the candidate targets src/devops_cli/ai/tasks/*.md and the task loader, while #1916 targets .devops/review.md and its conventions constant.devops-cli-service commentedon Nov 11, 2026
Released in v0.112.3: https://github.com/dan-petty/devops-cli/releases/tag/v0.112.3
devops-cli-service commentedon Nov 11, 2026
Live since 2026-11-11 19:36 UTC