Prompt changed without review
An agent file or fragment changes without a reviewed pull request, by one of the routes below.
Before and after controls.
With controls is rated as if every control below works as designed.
How it can happen.
A prompt released without a reviewed pull request
An agent file or fragment is changed and released without a reviewed pull request, by mistake or by a compromised account. The release branch accepts only a reviewed pull request (CFG-08) approved by the owner of the files it touches (CFG-09), and one a bot opened needs a person's approval (CFG-13).
A prompt edited outside the repository
An operator or a script edits a prompt in a console, a database copy or a running system instead of the repository; a regression or a jump in token cost reaches end users, and nobody can say what changed, when or by whom. A run takes every field of its agent's definition, the prompt included, from the bundle it loads through the verifying loader and from nowhere else (CFG-30); the bundle is stored under its content hash (CFG-16), and no person can write the database copies of the repository (CFG-62), so an edit made there changes no run. Clause.3 is not built.
Controls that reduce it.
- CFG-08The release branch accepts changes only through a reviewed pull request Configuration
- CFG-09Every change requires review by the owner of the code it touches Configuration
- CFG-13Every pull request requires a person's approval before merging Configuration
- CFG-16Built agent bundles are stored under their content hash for tampering detection Configuration
- CFG-62No person can edit the database copies of the source repository Configuration
- CFG-30Agent bundles load only through the loader that verifies them Configuration
Where it comes from.
This risk to prompt arises from:
See the whole picture.
Every AI risk on one matrix, before and after controls.