Commit 784ed9f
committed
test(spec): the recursive-schema input pins stop asserting the retired FieldNode form
#4252 landed while this branch was open and pinned the INPUT half of every
recursive schema — including two probes that assert the `{ field, fields, alias }`
select entry is assignable. Both changes merge without a git conflict and are
jointly wrong: the exact shape AGENTS.md's multi-agent discipline #10 warns about.
`FieldNode` is no longer recursive, so `FieldNodeSchema` infers both halves
itself rather than carrying a `z.ZodType<Output, Input>` annotation. Its probes
stay anyway — this file's job is that the input side is CHECKED, and a
`z.string()` someone re-widens to `z.ZodType<FieldNode>` fails here exactly as a
dropped type parameter would. The positive probe becomes a dotted path (the
replacement the removal prescribes) and the object form joins the negative side.
`wiredFieldNode` needs no change: `z.input<typeof FieldNodeSchema>` is `string`,
so `42` is still the error the suppression expects.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EskBioEkCCJpGz3SvPQDxx1 parent b08e6db commit 784ed9f
1 file changed
Lines changed: 15 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
101 | 110 | | |
102 | | - | |
| 111 | + | |
103 | 112 | | |
104 | 113 | | |
105 | 114 | | |
106 | 115 | | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
107 | 119 | | |
108 | 120 | | |
109 | 121 | | |
| |||
0 commit comments