Skip to content

fix: bind hydration listener staging to commit authority - #399

Merged
smiggleworth merged 1 commit into
mainfrom
fix/hydration-transaction-authority
Sep 6, 2026
Merged

fix: bind hydration listener staging to commit authority#399
smiggleworth merged 1 commit into
mainfrom
fix/hydration-transaction-authority

Conversation

@smiggleworth

@smiggleworth smiggleworth commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Hydration could stage listeners after its coordinator transaction had finished. An open listener child could also publish independently after an enclosing transaction was discarded or joined.

Derive staging eligibility from active commit ancestry, discard abandoned children before opening a fresh scope, and share commit/discard finalization. Reverse listener rollback drains through the existing owned-cleanup helper despite individual failures. Public APIs are unchanged; internal design documentation describes the transaction ownership rules.

Seven focused regressions demonstrated red against the original source and green with the fix. Final rebased head d46ae5be697f1e392d47e792d6c57f1673498b4d passes formatting, lint, build, 336 unit, 60 repository, 1639 DOM, 53 browser, public type checks, and 21 packed-consumer tests. The unchanged 256 KiB bundle limit passes. Its source tree matches the independently validated five-fix integration rehearsal.

The relevant hydration-listener benchmark passes: 57 samples, mean 31.81 ms, RME 1.01%. This is a validation measurement, not a comparative speedup claim. Hosted CI must pass on this exact head before merge.

@smiggleworth
smiggleworth force-pushed the fix/hydration-transaction-authority branch from d07be53 to ee7274a Compare September 6, 2026 20:41
@smiggleworth
smiggleworth force-pushed the fix/hydration-transaction-authority branch from ee7274a to d46ae5b Compare September 6, 2026 21:02
@smiggleworth
smiggleworth marked this pull request as ready for review September 6, 2026 21:05
@smiggleworth
smiggleworth merged commit 16b3d37 into main Sep 6, 2026
7 checks passed
@smiggleworth
smiggleworth deleted the fix/hydration-transaction-authority branch September 6, 2026 21:11
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