Commit 38f53a0
runUpdateManyLoop lacked the !record.id guard #4793 gave batchData's
update branch: the same malformed row answered VALIDATION_FAILED/400 on
one by-id face and RECORD_NOT_FOUND/404 ('Record undefined not found')
on the other, with the unguarded path handing { id: undefined } to the
probe and the write — a reading each driver decides for itself. The
guard fires before any engine round-trip, both faces now give one
classification (#4620), pinned by a cross-face parity test. record.data
handling aligned to the batch branch's || {} in passing.
Dormant over REST (UpdateManyRecordSchema requires id, #3939); the
change is observable only to in-process protocol callers.
Proven red-first: both new cases fail unguarded (RECORD_NOT_FOUND where
VALIDATION_FAILED is asserted). After: metadata-protocol 348 tests,
typecheck across 82 dependent tasks all green.
Claude-Session: https://claude.ai/code/session_01BotUP49pqhvqGY393n2HfU
Co-authored-by: Claude <noreply@anthropic.com>
1 parent 7c2f7dd commit 38f53a0
3 files changed
Lines changed: 79 additions & 1 deletion
File tree
- .changeset
- packages/metadata-protocol/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 | + | |
Lines changed: 46 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
421 | 421 | | |
422 | 422 | | |
423 | 423 | | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
424 | 470 | | |
425 | 471 | | |
426 | 472 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5935 | 5935 | | |
5936 | 5936 | | |
5937 | 5937 | | |
| 5938 | + | |
| 5939 | + | |
| 5940 | + | |
| 5941 | + | |
| 5942 | + | |
| 5943 | + | |
| 5944 | + | |
| 5945 | + | |
| 5946 | + | |
| 5947 | + | |
| 5948 | + | |
5938 | 5949 | | |
5939 | 5950 | | |
5940 | 5951 | | |
| |||
5945 | 5956 | | |
5946 | 5957 | | |
5947 | 5958 | | |
5948 | | - | |
| 5959 | + | |
5949 | 5960 | | |
5950 | 5961 | | |
5951 | 5962 | | |
| |||
0 commit comments