Commit e242bb5
fix(mcp): strengthen chat-uploads teaching to forbid soliciting file content
Real product bug: with the chat-uploads capability active, a user who
attached a document and typed "summarize this document" got the
response "please provide the document's content or a URL." Zaru's
default agentic-mode pattern (solicit content/URL) was winning because
the existing CHAT_UPLOADS_TEACHING was about pass-through mechanics,
not the higher-level rule "the user already attached the file; the
platform staged it; do not ask them for it again."
Rewrote the teaching block to:
- Make explicit that uploaded files are staged and surfaced via
attachments[] automatically.
- Forbid asking the user to provide content / paste text / share URL
when their intent implies an attached file.
- Direct Zaru to read attachments via aegis.attachment.read inside the
dispatched agent.
- Forbid paraphrasing the user's intent in ways that lose the
attachment signal at agent generation time.
- Preserve the existing pass-through rules.
Tests assert the new phrases appear when capability is active and
are absent when it is not.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent f603cae commit e242bb5
2 files changed
Lines changed: 57 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
462 | 462 | | |
463 | 463 | | |
464 | 464 | | |
465 | | - | |
| 465 | + | |
466 | 466 | | |
467 | | - | |
| 467 | + | |
468 | 468 | | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
469 | 475 | | |
470 | | - | |
| 476 | + | |
471 | 477 | | |
472 | | - | |
| 478 | + | |
| 479 | + | |
473 | 480 | | |
474 | 481 | | |
475 | 482 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
98 | 101 | | |
99 | 102 | | |
100 | 103 | | |
| |||
175 | 178 | | |
176 | 179 | | |
177 | 180 | | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
0 commit comments