Skip to content

Coalesce immutable reads through cache publication - #74

Open
Jason-Doyle wants to merge 3 commits into
mainfrom
experiment/immutable-fill-coalescing
Open

Jason-Doyle wants to merge 3 commits into
mainfrom
experiment/immutable-fill-coalescing

Conversation

@Jason-Doyle

Copy link
Copy Markdown
Owner

Change

Extend the existing per-client, per-key immutable-read promise through
lifecycle-checked cache publication. Snapshot pages, secondary-index pages and
trie nodes share the complete fill. This removes a duplicate-fetch window and
repeated publications without adding a dependency, public option, timeout,
storage format or retained-value cache.

Cache lookup still precedes joining a fill. Caller-owned results, cache
eligibility, error/retry behaviour, logout cancellation and independent
key/client scopes are preserved. Mutable HEAD and point-read bundles retain
their separate paths.

Evidence

The report, exact tables, graphs and original evidence
record the prospective protocol, frozen source, rejection criteria and
reproduction commands.

  • The scored 384-row comparison reduces exercise reader attempts from 672 to
    480 and completed publications from 624 to 432. These totals describe the
    fixed controlled recipe mix, not production incidence or performance.
  • Independent exact-Git graph rebuilding and replay validates all 384 complete
    observations, 120 full-work control pairs, 83 frozen inputs, every CSV cell,
    both graphs and all 18,832 clone events.
  • One archived native invocation passes 144 tests with zero retries, failures,
    flakes or skips: 288 independently validated observations and 90 same-engine
    full-work control pairs across Chromium, Firefox and WebKit using real Web
    Locks.
  • All 800 focused/related cases pass. The exact historical substitution has the
    nine expected focused failures. Repository and fixture types, package build,
    isolated packed-consumer qualification and 48 built public-entrypoint probes
    pass.
  • Canonical cache, architecture, protocol and evaluation documentation,
    changelog and short discovery text describe the complete fill boundary.

Scope and decision

Merge-worthiness is 93/100 against a threshold of 85, conditional on full CI,
CodeQL and all mandatory checks passing on the current publication head.

The benefit is demonstrated only for controlled same-key overlap within one
client. Warm, sequential-cold, unrelated-key and independent-client controls
show no work reduction. No latency, throughput, heap, disk, encrypted
IndexedDB or storage-network improvement is claimed. Windows WebKit does not
qualify Apple Safari.

The pending promise retains its remote value and waiters until publication
settles; a hung custom cache operation can retain them indefinitely. Custom
cache-hook invocation counts follow fills rather than callers, and waiters
share the publication outcome, including a hard hook rejection. These costs
and compatibility boundaries are documented. The separately parked
range-candidate predicate change is excluded.

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