Repository navigation
release v0.63.22 - #39
Merged
Merged
Conversation
`inst._zod.parse(...)` inside a `$constructor<$ZodType>("$ZodType", (inst,
def) => ...)` callback: inst is typed only through a generic, so the
receiver chain died at its first hop and change_impact on
_$ZodTypeInternals.parse found 0 of 61 sites (zod, 2026-10-16).
Property rule (tspropertytypes.go), applied when a chain's prefix has no
type: collect every declaration of the property (class/interface fields,
plus property mentions in interface and type-alias bodies). Each declared
type must resolve to an indexed class or interface (generic parameter ->
constraint, else default; plain aliases followed); an untyped, external,
union or primitive declaration, or any non-field symbol of that name,
stops the rule. Declared types that cannot have the member (fully indexed
ancestry without it, or an inline object type not mentioning it) drop
out; every remaining type must reach the same nearest declaration of the
member, or nothing is decided. A private/protected target outside its
class is skipped: such access only type-checks through `any` (socket.io
adapter `socket.client.writeToEngine`, which cost 2 oracle FPs).
Non-call references to a method member through a resolved receiver
(`inst._zod.parse = ...`, `const base = inst._zod.parse`) become
reads/writes edges with reason member-ref; method change_impact accepts
them as sites like native refs, and the incremental build carries them
as call-pass output.
zod change-impact _$ZodTypeInternals.parse: 1 -> 61 edit sites (5 calls,
52 writes, 5 reads, plus the declaration). Oracles: all 21 within
baseline; socket.io/express/p-queue at exactly baseline P/R.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KXa6Cv1ZUXcdMqXcJfQFhX
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KXa6Cv1ZUXcdMqXcJfQFhX
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TypeScript receivers typed through a property's declarations, and member references as change-impact sites.
X.prop.memberwithXuntyped (zod:instis a callback parameter typed only through a generic),X.proptakes the type its project-wide declarations agree on. Each declaration's type must resolve to an indexed class or interface (generic parameter → constraint, else default; aliases followed). Anything unresolvable stops the rule. Types that cannot have the member drop out. The rest must reach one declaration of it, else nothing is decided. Private/protected members are never bound from outside their class.x.member = ...and value reads of a method member through a resolved receiver become reads/writes edges (member-ref), counted as change-impact sites and kept by incremental builds._$ZodTypeInternals.parse: 1 → 61 sites (gold 61: 5 calls, 52 writes, 5 reads, the declaration).Gate: go test green (workspace off); all 21 oracles within baseline, socket.io / express / p-queue at exactly baseline P/R; ci_invariants on a fresh corpus with the decoy invariant held; edit fuzz identical to v0.63.21 (commons-lang's 2 are the documented javac broken-file case); replay of 96 recorded sessions changes only zod parse.
🤖 Generated with Claude Code
https://claude.ai/code/session_01KXa6Cv1ZUXcdMqXcJfQFhX