Repository navigation
Commit fcea4ec
committed
fix(scenarios): a hook's declared refusal at 403 is no build denial
After #33556 the door serves a hook's own refusal at 403 as
PERMISSION_DENIED with the hook's code on declaredCode. isWriteDenial now
requires no declaredCode, so that refusal is graded as the app's rule
(both halves measured) and never read as the build denying the persona the
write. Pinned in the grader test; ablating the guard reds 2 tests.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L9qibzZVHjrq7bFdLyjYVG1 parent d1f74ec commit fcea4ec
3 files changed
Lines changed: 18 additions & 4 deletions
File tree
- .changeset
- packages/qa/scenarios
- src/score
- test/score
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
291 | 291 | | |
292 | 292 | | |
293 | 293 | | |
294 | | - | |
295 | | - | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
296 | 298 | | |
297 | 299 | | |
298 | | - | |
| 300 | + | |
299 | 301 | | |
300 | 302 | | |
301 | 303 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
163 | 175 | | |
164 | 176 | | |
165 | 177 | | |
| |||
0 commit comments