Repository navigation
Coalesce active persistent reads outside publication metadata - #75
Merged
Merged
Conversation
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.
Change
Share one active persistent-read promise per key and invalidation generation
within a
TieredObjectCache, except publication metadata ending in/HEAD.jsonor/current.json. Each waiter keeps its policy/invalidationchecks, hydration, metrics and independently mutable result.
The existing token drains after its last waiter. Completed reads and misses
are not retained. Different keys/instances, metadata-read progress, mutation
fences, formats, public options and encryption remain unchanged.
Preparation and evidence
The report, exact tables, graphs and original evidence
record both prospective protocol revisions, frozen source, limits and
reproduction commands.
The broad preparation prototype blocked HEAD publication behind an older held
read. Its exact patch, both executable graphs, all eight counterexample
observations and initial failures are retained. The narrowed protocol was
published before its metadata exclusion and before scored/native collection.
All existing hydration/client tests remain unchanged. No frozen input or
original capture was edited or rerun.
to 1,056. All observations independently rebuild/replay, and all 200 complete
normalised-work controls match.
independently verified observations with 168 same-runtime controls.
Per engine, exercise IndexedDB gets fall from 392 to 312 and decryptions
from 344 to 280, while explicit ownership clones rise from 288 to 320 and
logical clone-input bytes from 90,272 to 101,488.
The exact historical substitution has 38 passes and 14 targeted failures.
Types, package build, isolated packed-consumer/browser-isolation
qualification and 72 full built-entrypoint observation probes pass.
Supplemental built shared-branch invalidation probes cover both policies.
changelog and discovery text describe the shared-read boundary and costs.
Decision and limits
Merge-worthiness is 90/100 against a threshold of 85, conditional on full CI,
CodeQL and all mandatory checks passing on this publication head, followed
by the required review.
This establishes controlled per-instance work reductions with an explicit-copy
tradeoff. It establishes no production incidence, total-allocation, heap,
device-storage, CPU, throughput or latency benefit. Metadata, warm,
sequential, unrelated-key and independent-instance controls show no work
reduction. Windows WebKit does not qualify Apple Safari.
Outside the explicit metadata exclusions, custom
gethook calls followshared generations rather than caller count. Waiters share a snapshot or
failure; per-caller side effects or progressive snapshots are a poor fit.
A hung read can hold all its waiters, and resident budgets do not bound
pending work. No infrastructure, workflow, runtime, release or deployment
change is included. The separately parked range-candidate prototype remains
outside this branch.