Repository navigation
refactor(ai): delete orphan prompts and the prompt fallbacks - #4710
Conversation
Delete the nine prompt files of ai/tasks/ and the two files of ai/prompts/ that no code reads. load_task_prompt raises TaskPromptNotFoundError for a name that is not a file of ai/tasks/, so the two fallback prompts in code go too. Two checks of the test-tree row fail when the code loads a prompt that does not exist, or when a file of ai/tasks/ has no reader.
|
Checks and measurements of this change. fail-to-pass ( Orphan census. The Acceptance criteria.
Effect on the review benchmark. The prompt digest of a review changes once, because eleven files leave the hashed folders. No live step is needed: the change does not touch the cluster, a ConfigMap or a Secret. |
🤖 I have created a release *beep* *boop* --- ## [0.112.3](v0.112.2...v0.112.3) (2026-11-11) ### Bug Fixes * **ai:** record the duration of each agent model request ([#4717](#4717)) ([1930b71](1930b71)) * **devcontainer:** poll the Docker daemon through the clock ([#4721](#4721)) ([be32268](be32268)) * **roadmap:** confine repair fix turns to the plan files ([#4689](#4689)) ([d2e7597](d2e7597)) * **roadmap:** name the nearest test of a module ([#4696](#4696)) ([b746c95](b746c95)) * **roadmap:** scoped intake reads a bounded page count ([#4740](#4740)) ([f89ccc5](f89ccc5)) * **roadmap:** stage context reads runner facts from the package ([#4723](#4723)) ([05e09dc](05e09dc)) * **roadmap:** stage holds an item where openspec is not set up ([#4749](#4749)) ([45bd54a](45bd54a)) * **roadmap:** trace gate reads a tool call citation ([#4694](#4694)) ([5c71ad4](5c71ad4)) ### Performance Improvements * **ci:** cancel superseded CodeQL runs and idle triggers ([#4763](#4763)) ([c951368](c951368)) ### Code Refactoring * **ai:** delete orphan prompts and the prompt fallbacks ([#4710](#4710)) ([38a1b13](38a1b13)) --- 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>
Delete the nine prompt files of
ai/tasks/and the two files ofai/prompts/that no code reads. The review prompt digest hashes every file ofai/tasks/, so an edit of an orphan moved the review benchmark arm.load_task_promptraisesTaskPromptNotFoundErrorfor a name that is not a file ofai/tasks/. An empty prompt no longer reaches a model, and the two fallback prompts in code go.Two checks of the
test-treerow ofdevops cifail when the code loads a prompt name (a literal or a constant) that does not exist, or when a file ofai/tasks/has no reader.Closes #4630
Change:
openspec/changes/archive/2026-11-11-4630-delete-orphan-prompts-and-the-prompt/