Repository navigation
Closed
Labels
effort/lowEffort Low: little workpriority/p2-mediumPriority P2: standard workscope/aiAI review pipeline, personas, prompts, LLM client, or RAGsource/agentFiled by an agenttype/bugType bug: the code does not do what it mustvalue/mediumValue Medium
Description
Problem Description
The chat prompt of a persona loses part of its text, and the challenger persona gets the wrong tools:
chat_promptinsrc/devops_cli/ai/personas/__init__.pyisrole.md+tasks/chat.md. It dropsprompt.md. Thus the debate rules of challenger and the threat model of devsecops never reach chat.- The tool map in
src/devops_cli/ai/tools/registry.pyfalls back to the default tools for challenger. _expand_persona_rag_queryinsrc/devops_cli/ai/rag/retriever.pymatches substrings of the persona name ("sec", "arch"), and has no challenger branch.
Reproduction Steps
- Build the persona definition of challenger, and search its
chat_promptfor a line ofpersonas/challenger/prompt.md. The line is not there. - Read the tool set that the registry gives challenger. It is the default set.
Expected vs Actual Behavior
- Expected: each chat prompt holds the role, the chat task and the persona prompt. Each persona has its own tool set and RAG terms.
- Actual: chat drops the persona prompt, and challenger gets the default tools and no RAG terms.
Proposed Solution
chat_prompt=role.md+tasks/chat.md+prompt.md.- Key the tool map and the RAG expansion on the
Personaenum, not on substrings. - Give challenger a read-only tool set and RAG terms.
Existing Tool Considered
A fix of project code. No tool applies. Cost to build: about 40,000 tokens and 1 hour.
Acceptance Criteria
- A test finds the text of each
prompt.mdin the chat prompt of its persona. - The tool map has 6 entries, and challenger has a read-only set that is not the default set.
- The RAG test expands a challenger query.
Dependencies
None.
Source: #4780
Metadata
Metadata
Assignees
Labels
effort/lowEffort Low: little workpriority/p2-mediumPriority P2: standard workscope/aiAI review pipeline, personas, prompts, LLM client, or RAGsource/agentFiled by an agenttype/bugType bug: the code does not do what it mustvalue/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.
fixprefix of the title gives the type.(ai)scope of the title gives the scope.Personas silently lose prompt text and get wrong tools, degrading chat quality but not breaking the tool entirely.Users of challenger and devsecops personas get incomplete prompts and wrong tools, reducing output quality.The body estimates about 40,000 tokens and 1 hour across three small file changes.devops ai chatturns send the user's message #874, which asks for a different change.Both fix bugs in the devops ai chat path, but 874 fixes the streaming path dropping the user message while the candidate fixes persona prompt assembly and tool assignment.devops-cli-service commentedon Nov 12, 2026
Released in v0.118.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.118.0
devops-cli-service commentedon Nov 12, 2026
Live since 2026-11-12 12:40 UTC