Skip to content

release v0.63.22 - #39

Merged
tabladrum merged 2 commits into
mainfrom
release/v0.63.22
Oct 16, 2026
Merged

tabladrum merged 2 commits into
mainfrom
release/v0.63.22

Conversation

@tabladrum

Copy link
Copy Markdown
Contributor

TypeScript receivers typed through a property's declarations, and member references as change-impact sites.

  • Property-typed receivers: for X.prop.member with X untyped (zod: inst is a callback parameter typed only through a generic), X.prop takes 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.
  • Member references: 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.
  • zod _$ZodTypeInternals.parse: 1 → 61 sites (gold 61: 5 calls, 52 writes, 5 reads, the declaration).
  • Resolver v41.

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

tabladrum and others added 2 commits October 16, 2026 10:48
`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
@tabladrum
tabladrum merged commit 56e1222 into main Oct 16, 2026
12 checks passed
@tabladrum
tabladrum deleted the release/v0.63.22 branch October 16, 2026 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant