Commit 16a7782
fix(detector): treat gh-aw safe-output scaffolding as trusted in prompt (#592)
Address false positives (#533) where the detector flagged gh-aw's own
mandatory safe-output scaffolding ("you MUST call a safe-output tool
before finishing", noop/report_incomplete rules) as prompt_injection.
Add an explicit "Trusted Framework Scaffolding" section to the detection
prompt that names gh-aw's safe-output/noop/report_incomplete/XPIA
scaffolding as trusted framework instruction. Unlike the existing
trusted/untrusted split, this guidance applies even when the prompt
template artifact is unavailable, closing the residual gap where the
model would otherwise see the full rendered prompt with no delineation.
Co-authored-by: GitHub Ace <githubnext@users.noreply.github.com>
Co-authored-by: David Slater <12449447+davidslater@users.noreply.github.com>1 parent b31de02 commit 16a7782
2 files changed
Lines changed: 24 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
24 | 47 | | |
25 | 48 | | |
26 | 49 | | |
| |||
88 | 111 | | |
89 | 112 | | |
90 | 113 | | |
| 114 | + | |
91 | 115 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
210 | | - | |
0 commit comments