Commit e743fb5
* test(rest): pin that the /references refusal's remedy survives the #5423 bound
Drives the real `/meta/:type/:name/references` route with object/field names
past the truncation threshold and asserts the delivered message still carries
the answerable question WITH its complete URL. Red at this commit: the
producer back-loads the prescription, so truncation takes the URL first.
Claude-Session: https://claude.ai/code/session_01RuoNSXUbBoWHkNS4AknTrM
Co-authored-by: Claude <noreply@anthropic.com>
* fix(metadata-protocol): front-load the ADR-0110 D3 prescription in the /references refusal
Since #16146 this refusal crosses the REST boundary through #5423's shared
500-character bound, which truncates the tail. The prescription was the last
clause, so a long object/field name cost the operator the one half of the
message they can act on. Re-ordered so truncation costs the explanation
instead; the refusal decides exactly what it decided before.
Claude-Session: https://claude.ai/code/session_01RuoNSXUbBoWHkNS4AknTrM
Co-authored-by: Claude <noreply@anthropic.com>
* chore: changeset for the /references refusal remedy re-order
Claude-Session: https://claude.ai/code/session_01RuoNSXUbBoWHkNS4AknTrM
Co-authored-by: Claude <noreply@anthropic.com>
---------
Co-authored-by: Claude <noreply@anthropic.com>
1 parent 4af758d commit e743fb5
4 files changed
Lines changed: 200 additions & 6 deletions
File tree
- .changeset
- packages
- metadata-protocol/src
- rest/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
Lines changed: 35 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
129 | | - | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
130 | 163 | | |
131 | 164 | | |
132 | 165 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22066 | 22066 | | |
22067 | 22067 | | |
22068 | 22068 | | |
| 22069 | + | |
| 22070 | + | |
| 22071 | + | |
| 22072 | + | |
| 22073 | + | |
| 22074 | + | |
| 22075 | + | |
| 22076 | + | |
| 22077 | + | |
| 22078 | + | |
| 22079 | + | |
| 22080 | + | |
| 22081 | + | |
| 22082 | + | |
| 22083 | + | |
| 22084 | + | |
| 22085 | + | |
| 22086 | + | |
| 22087 | + | |
| 22088 | + | |
| 22089 | + | |
| 22090 | + | |
| 22091 | + | |
| 22092 | + | |
| 22093 | + | |
| 22094 | + | |
| 22095 | + | |
| 22096 | + | |
| 22097 | + | |
| 22098 | + | |
22069 | 22099 | | |
22070 | 22100 | | |
22071 | 22101 | | |
| |||
22079 | 22109 | | |
22080 | 22110 | | |
22081 | 22111 | | |
22082 | | - | |
22083 | | - | |
| 22112 | + | |
| 22113 | + | |
| 22114 | + | |
22084 | 22115 | | |
22085 | 22116 | | |
22086 | | - | |
22087 | | - | |
| 22117 | + | |
22088 | 22118 | | |
22089 | 22119 | | |
22090 | 22120 | | |
| |||
Lines changed: 95 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
269 | 269 | | |
270 | 270 | | |
271 | 271 | | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
272 | 367 | | |
0 commit comments