Skip to content

Inspect cache metadata only for sampled eviction victims - #3372

Merged
matrixarkai merged 1 commit into
mainfrom
fix/sampled-cache-inspection
Nov 21, 2026
Merged

matrixarkai merged 1 commit into
mainfrom
fix/sampled-cache-inspection

Conversation

@matrixarkai

Copy link
Copy Markdown
Owner

Change

Select sampled eviction victims before inspecting cache metadata. Build cache totals only for selected owners, preserving victim order, weights and complete diagnostic inspection. Empty selections inspect no entries. Pin MatrixCache to its tested targeted-inspection and keyed LRU cleanup revision.

Validation

  • 165 focused library test executions passed, including 105 recovery tests, 26 invalidation-key tests, victim-weight equivalence and three new inspection guards; both serving binaries checked.
  • Release scheduler build and five scheduler tests passed.
  • Both local executables completed string and hash captures at 100,000 keys over eight scheduled rounds, with default and explicit memory limits and exact-value checks. Small idle/positive dump controls and nine storage guards passed.
  • MatrixCache passed 27 focused test executions on each backend in #461.

Four pre-existing diagnostic-fixture assertions fail identically on the archived unchanged baseline: two expect logical hash-cache entries that the warmup no longer produces, and two expect nonzero sweep-size measurements from those missing entries. They remain enabled and are not counted as passes. This is not a full-suite pass.

Key enumeration still scans cache keys, and whole-shard checkpoint writes remain. Observed stage timings on the shared host do not establish maintenance performance acceptance or device write amplification. No runtime deletion policy, durable format or default-setting changes.

@matrixarkai
matrixarkai merged commit d8a5f37 into main Nov 21, 2026
6 of 7 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.

2 participants