Repository navigation
Commit 4753ddd
The same hole, in the two places it was left: retry unsafe and chaos for
Auditing the rest of `toYaml` for fields shaped like `kTime` — written
conditionally, omitted at exactly the value the loader defaults to —
turned up `unsafe`, and it is the worst one of the set.
`unsafe: true` is what lets a retry stand on a method the `.proto` never
declared idempotent. The loader does not care: it reads the flag and
moves on. `Retry.check` is what refuses, and that runs when the scenario
runs. So a writer that stopped emitting the flag would post a file the
lab accepts, read back a draft that round-trips byte-identically, pass
every check in this file, and fail only for whoever pressed play — with
a message about idempotency for a line they never edited.
Confirmed by mutation before fixing it: dropping `unsafe` left the whole
suite green. It now reads "retry 1 unsafe: form said true, lab read
false".
Chaos was compared by length alone for the same reason and is now
compared field by field. Its `for:` was in fact caught by the text
comparison, because the loader's default of 1000 differs from what the
drafts here use — that is luck rather than coverage, and it is not
something to leave resting on a fixture's choice of numbers.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent 0a54d0f commit 4753ddd
1 file changed
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
315 | 324 | | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
316 | 337 | | |
317 | 338 | | |
318 | 339 | | |
| |||
0 commit comments