Skip to content

Reject oversized memory entries before capacity eviction - #67

Merged
Jason-Doyle merged 3 commits into
mainfrom
experiment/oversized-memory-admission
Dec 3, 2026
Merged

Jason-Doyle merged 3 commits into
mainfrom
experiment/oversized-memory-admission

Conversation

@Jason-Doyle

Copy link
Copy Markdown
Owner

Change

Reject memory-cache entries larger than the entire byte budget before cloning
or insertion. The previous path evicted unrelated residents and finally the
unretainable incoming object.

The three-line production guard preserves unrelated values and LRU order while
still removing an old same-key value. Exact-fit admission, ordinary capacity
eviction, application results, persistent operations, public interfaces,
policies, default limits and stored formats are unchanged.

Evidence

Qualification report, exact tables, graph and reproduction

  • Published the prospective protocol before production edits. Froze and pushed
    source and collector before the single complete, detached-checkout capture.
  • Baseline: 144/384 correct trials. Candidate: 384/384. All 240 affected trials
    and all 384 pair gates pass. The full 768 rows and source inventory are
    retained with derived CSV and SVG.
  • Persistent calls remain 432 per arm. Clones decrease from 480 to 144,
    eliminating all 336 oversized-input clones. Logical clone-input bytes
    decrease from 584,880 to 73,272. Five ordinary-work controls preserve exact
    operations, metrics and copy work.
  • Candidate unit/control qualification: 242 passed, including 21 focused
    cases. Exact historical-cache focused qualification: six passed and 15
    expected failures.
  • Native Chromium, Firefox and WebKit: 42 passed, including six encrypted
    IndexedDB hydrations and 12 connection-factory cache-wiring cases.
  • Root/collector types, package build/exports and canonical documentation
    verification pass locally. Existing repository CI remains the merge gate.

Assessment and limits

The scoped assessment is 94/100 against the predeclared 85/100 threshold,
subject to passing CI and human review.

Memory sets add one comparison and branch after the existing size estimate.
Oversized objects still incur normal serialization, persistence and public
output-copy costs where applicable. Rejected objects no longer inflate
eviction counts; tiered write attempts retain their existing accounting.

These are local retention and logical-work results, not measured heap,
production hit rates, latency or provider savings. The change does not bound
auxiliary namespace-key bookkeeping. Factory cases configure both layouts
and policies but do not measure end-to-end queries. Windows WebKit does not
qualify Safari on Apple hardware.

@Jason-Doyle
Jason-Doyle merged commit fee8add into main Dec 3, 2026
4 checks passed
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