Repository navigation
fix(ai): chat loads each persona prompt and challenger gets tools - #5037
Merged
Merged
Conversation
The chat prompt of a persona dropped prompt.md, so the challenger debate rules and the devsecops threat model never reached chat. The chat prompt is now role.md, tasks/chat.md and prompt.md. The tool map and the RAG search terms are keyed on the Persona enum with one entry for each persona. Challenger gets six read-only tools in place of the 194 default tools, and RAG terms of its own. A RAG search for a name that holds "sec" or "arch" no longer gets the terms of another persona.
Owner
Author
Fail-to-pass
MeasurementsChat system prompt, in characters (tokens at 4 characters each):
Agent tools for each chat turn:
Challenger now sends 188 fewer tool schemas in each request. The other personas send more prompt text, but the text is the focus of the persona, which the review prompt already sends. The roadmap job census does not apply to this change: Checks run in the worktree
Live stepsNone. The change has no setting, ConfigMap or cluster step. |
dan-petty
marked this pull request as ready for review
November 12, 2026 11:19
dan-petty
pushed a commit
that referenced
this pull request
Nov 12, 2026
🤖 I have created a release *beep* *boop* --- ## [0.118.0](v0.117.2...v0.118.0) (2026-11-12) ### Features * **ci:** devops ci stops its rows when timeout ends it ([#5031](#5031)) ([1fa4e9c](1fa4e9c)) * **roadmap:** keep the stage gate problems as a list with a code ([#5022](#5022)) ([5819627](5819627)) * **roadmap:** log one result line for each roadmap job attempt ([#4966](#4966)) ([2b6fe3f](2b6fe3f)) * **telemetry:** record each CLI usage error by name and kind ([#4973](#4973)) ([a179fd9](a179fd9)) ### Bug Fixes * **ai:** chat loads each persona prompt and challenger gets tools ([#5037](#5037)) ([c40b0ad](c40b0ad)) * **ai:** keep the HTTP status of a Claude reply after retries ([#4976](#4976)) ([5bf9466](5bf9466)) * **deps:** keep Renovate uv bumps green and groups on Monday ([#4987](#4987)) ([b19e153](b19e153)) * **k8s:** raise the limits that 7 d of use shows are too low ([#5030](#5030)) ([028c62b](028c62b)) * **roadmap:** a job posts no comment that repeats a recent one ([#4978](#4978)) ([fff903a](fff903a)) * **service:** alert when GitHub cannot deliver a webhook ([#5045](#5045)) ([2bfbfcb](2bfbfcb)) * **service:** delete the stream route that sends canned verified text ([#5038](#5038)) ([e9d51b5](e9d51b5)) * **telemetry:** keep one upstream status series per service ([#4986](#4986)) ([3e4ca56](3e4ca56)) * **tests:** remove the runner variable in the test floor ([#4988](#4988)) ([093aa61](093aa61)) ### Performance Improvements * **ai:** make the ast graph walk and call search faster ([#5039](#5039)) ([3b25cc6](3b25cc6)), closes [#4662](#4662) * **ci:** build the devcontainer only on its own inputs ([#4977](#4977)) ([c5b15ac](c5b15ac)) * **ci:** test each merge once, on the push to main ([#5043](#5043)) ([c6992b1](c6992b1)) * **tests:** remove fixed waste in six slow tests ([#4995](#4995)) ([1c7044e](1c7044e)) ### Code Refactoring * **ai:** delete devops ai pipeline and persona leftovers ([#5044](#5044)) ([d5fefde](d5fefde)), closes [#4827](#4827) * **openspec:** split big capabilities into nested ones ([#4981](#4981)) ([dfb09bd](dfb09bd)) * **pr:** devops pr update acts only on a failed check ([#4990](#4990)) ([aa4fa1a](aa4fa1a)) --- 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The chat prompt of a persona dropped its
prompt.md, so the challenger debate rules and the devsecops threat model never reacheddevops ai chat. The chat prompt is nowrole.md,tasks/chat.mdandprompt.md.The tool map and the RAG search terms are keyed on the
Personaenum, with one entry for each persona. Challenger gets 6 read-only tools in place of the 194 default tools, and RAG terms of its own. A RAG search for a name that holds "sec" or "arch" no longer gets the terms of another persona.get_persona_toolsraisesValueErrorfor a name that is not aPersona, so a missing entry fails a test, not a chat.Closes #4824
Change:
openspec/changes/archive/2026-11-12-4824-chat-loads-each-persona-prompt-and/