Commit adecad0
fix: make the contract explicit that answering a question is read-only
A consuming agent treated a reviewer's Ask as a change request and
edited code immediately. The wire already keeps questions out of
requestedChanges and approval blocking — the gap was the contract
text: the question-event guidance never said not to edit.
galley spec now states it where the event is described and again in
the loop example's question branch: a question wants an answer, not a
code change; never edit tracked files in response, unless the question
itself explicitly asks for an immediate change (and then still edit +
reload per the between-rounds discipline). Contract tests pin the new
phrases.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015jcfPg9g4TTWQksf8vhHps1 parent 271fe97 commit adecad0
2 files changed
Lines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
22 | 25 | | |
23 | 26 | | |
24 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
43 | 45 | | |
44 | 46 | | |
45 | 47 | | |
| |||
66 | 68 | | |
67 | 69 | | |
68 | 70 | | |
69 | | - | |
70 | | - | |
71 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
72 | 78 | | |
73 | 79 | | |
74 | 80 | | |
| |||
0 commit comments