Skip to content

Fix: surface competing writes during deferred state updates - #338

Merged
ivory-code merged 3 commits into
mainfrom
fix/deferred-state-review-evidence
Nov 23, 2026
Merged

ivory-code merged 3 commits into
mainfrom
fix/deferred-state-review-evidence

Conversation

@ivory-code

@ivory-code ivory-code commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Surface unchanged state updates that may run while a newly instrumented callback is pending.

Behavioral Contract

For JavaScript and TypeScript, the brief links new pending-state writes around a registered callback to existing guarded calls of the same local state-update helper. It cites the pending assignment, callback registration, unchanged calls and guards, and the helper's assignment. An existing guard that excludes pending state suppresses the finding. The review question asks whether the receivers can refer to the same runtime object.

Evidence

Replayed the full Vue Core trees at 9638524427ab50b420e58102ae79ef3bc6c5ab6f and 908c6ad05e1c76ae690d2e50f3bd28278af07e22 (vuejs/core#9392). The standard brief cites both patchSuspense calls at lines 277 and 327, their guards at 258 and 300, and the shared assignment at 907. It retains the resolve guard at 573 and expect(unmountSpy).toBeCalledTimes(1) in the changed Transition.spec.ts.

With QAMAP_REPOSITORY_CACHE=off, all three runs returned identical 14,756-byte output. Elapsed times on the shared CI runner were 5.420, 5.510, and 5.346 seconds. Output SHA-256 was d43791546010b739790a55808d3f68c15773534f95bc40ce2cedc3ac1a18d885. Replay log

Fixes #337.

Checks

  • 1,099 tests, 42 long-path tests, coverage, package checks, deterministic benchmarks, and three browser execution benchmarks passed on the final commit. CI
  • The standard-brief fixtures cover both competing branches, a guard that excludes pending state, a shadowed receiver, and a guard that allows pending state.

Public OSS Check

  • All repository inputs and included evidence are public.
  • Shared inference has positive and negative fixture coverage.
  • User-facing command behavior and claims match the recorded evidence.

Review Notes

The Vue replay informed this change and reports static evidence. The final diff uses offline fixtures. Host model token usage and review quality are pending measurement.

@ivory-code
ivory-code marked this pull request as ready for review November 19, 2026 08:09
@ivory-code ivory-code added area: review Branch/PR review, risky file detection, and reviewer output type: fix Bug fix or corrective follow-up labels Nov 19, 2026 — with ChatGPT Codex Connector
@ivory-code ivory-code changed the title Link deferred state changes to existing guarded writes Fix: surface competing writes during deferred state updates Nov 19, 2026
@ivory-code
ivory-code merged commit 3a161f5 into main Nov 23, 2026
6 of 9 checks passed
@ivory-code
ivory-code deleted the fix/deferred-state-review-evidence branch November 23, 2026 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: review Branch/PR review, risky file detection, and reviewer output type: fix Bug fix or corrective follow-up

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix: surface parent-update evidence for deferred fallback mounts

1 participant