Commit 5c46bd3
V48 Gate 3 (implementation-only): stitch repairs carry the validation error; the schema shape hint renders every field
Root-caused from the raw LLM I/O sidecar of the two deposit runs that died
on 'StitchUntilComplete exceeded maximum stitch attempts (5)' (runs
ea150f3e/02b93ba8, 2026-07-01): every option the model produced omitted
'confidence' — the structured-output shape hint truncated nested objects to
their first six fields, so the model never saw confidence/patch/
needinessSignal in the schema hint, and the stitch instruction ('Continue
and complete the previous output') never said what failed validation, so
five stitch cycles reproduced the same omission until the step threw.
- inferField now renders EVERY nested field of a ZodObject (no slice(0,6)
ellipsis hiding required fields).
- factoryStitchUntilComplete captures the last schema-validation error and
prompts the repair with it, instead of a truncation-only 'continue'.
Regression-pinned in stitch-self-repair-and-schema-shape.test.ts against
the deposit candidateSetSchema shape. agent-generics 23 tests green; tsc
clean; asset-pack 227 green.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 2b0c821 commit 5c46bd3
2 files changed
Lines changed: 79 additions & 9 deletions
File tree
- packages/agent-generics/src
- __tests__
- substeps
Lines changed: 62 additions & 0 deletions
| 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 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
561 | 561 | | |
562 | 562 | | |
563 | 563 | | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
564 | 568 | | |
565 | 569 | | |
566 | 570 | | |
| |||
583 | 587 | | |
584 | 588 | | |
585 | 589 | | |
586 | | - | |
| 590 | + | |
587 | 591 | | |
| 592 | + | |
588 | 593 | | |
589 | 594 | | |
590 | 595 | | |
| |||
599 | 604 | | |
600 | 605 | | |
601 | 606 | | |
602 | | - | |
603 | | - | |
604 | | - | |
605 | | - | |
606 | | - | |
| 607 | + | |
| 608 | + | |
607 | 609 | | |
608 | 610 | | |
609 | 611 | | |
| |||
618 | 620 | | |
619 | 621 | | |
620 | 622 | | |
621 | | - | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
622 | 627 | | |
623 | 628 | | |
624 | 629 | | |
| |||
830 | 835 | | |
831 | 836 | | |
832 | 837 | | |
833 | | - | |
834 | | - | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
835 | 843 | | |
836 | 844 | | |
837 | 845 | | |
| |||
0 commit comments