Skip to content

quest: cache fairness records the parked eviction redesign - #9454

Merged
kixelated merged 1 commit into
mainfrom
quest-plan/cache-eviction-order
Nov 23, 2026
Merged

kixelated merged 1 commit into
mainfrom
quest-plan/cache-eviction-order

Conversation

@kixelated

@kixelated kixelated commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

A /quest-plan asked for the cache pool to evict a track's latest group too, and to rethink the LRU around publisher priority with no global state. The interview ended with the maintainer asking whether it was worth doing at all. Nothing recorded the answer, so the next session would ask every question again.

Approach

No new quest. quest/m4/cache-fairness.md already owns "measure how the pool shares bytes, then propose", and already names the latest-group exemption and stopped writers, so its Plan gains:

  • The verdict: no eviction redesign now, with the four reasons.
  • Two more measurements: what quiet latest groups pin against the pool's target on a relay fed by a peer link, and across many client sessions each inside its live_edges budget.
  • The settled answers for the design, if a measurement calls for one.
  • The research on eviction designs with no global ordered structure.

Decisions

  • Worth doing: ✅ park it and measure first (rejected: a redesign quest of its own; a narrower quest that only drops the latest-group exemption). The maintainer delegated this one.
  • Order: ✅ recency only (rejected: track priority first; priority as a tie-break).
  • Trigger: ✅ writes only, no new timer or sweep.
  • Producer: ✅ a track's original producer keeps its latest group (rejected: evicting everywhere).
  • moq-dev/moq#9422: ✅ lands as it is (rejected: holding it for a redesign).
  • Mechanism: a leaning, not decided. Keep the cutoff each track enforces on its own writes, plus a writer sampling a few other tracks to reach a quiet one.

Impact

None. Public API: none. Wire: none.

Alternatives

  • A redesign quest now. The target order is what pay_debt already does, and nothing measured shows the pinned latest groups matter.
  • A narrower quest dropping only the exemption. It needs a writer to evict another track's latest group, which gives up what moq-dev/moq#9308 chose a day earlier.

Follow-ups

None.

Validation

No behavior to exercise: one quest file. quest check and just ci pass.

Models

Size: XS
Implementer: Claude Code, claude-fable-5-2, unknown effort

🤖 Generated with Claude Code

(Written by Claude Fable 5.2)

Review

Rewritten by quest review after each round.

  • Head: bc65a94

  • Base: origin/main at 1fd8509

  • Risk: low, The change only adds 63 lines of design notes to one quest plan file (quest/m4/cache-fairness.md), so nothing a consumer or peer relies on can break, and reverting the commit fully undoes it.

  • Classified: low by Claude Code, claude-haiku-5-5, low effort, session f3166721-a5b2-4d63-a60f-60ce1dd98e5e

  • Reviewer: Codex, gpt-6.1-sol, medium effort

  • Session: 01a20683-08b8-7fa0-bcaf-5db8adc606a9, round 1

  • Score: 10/10, The documentation-only head is ready to land as is, with no actionable defects or dependents left on an old contract.

  • Rounds: 1; first round 0; findings 0: fixed 0, refuted 0, open 0

  • Findings: none

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@kixelated
kixelated marked this pull request as draft November 23, 2026 03:46
@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 2 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 231f36be-1d84-42ab-b60c-2e41bbab39fe
Commits

Reviewing files that changed from the base of the PR and between 1fd8509 and bc65a94.

Files selected for processing: 1

  • quest/m4/cache-fairness.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@kixelated
kixelated marked this pull request as ready for review November 23, 2026 03:46
@kixelated
kixelated enabled auto-merge November 23, 2026 03:47

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Approach: sound. It records the verdict and settled answers in the quest that already owns cache fairness, instead of opening a redesign quest with nothing measured behind it.

Reviewed changes

Reviewed the single added block in quest/m4/cache-fairness.md.

  • Verdict: no eviction redesign now, with four reasons: pay_debt already matches the target order, pinned bytes are bounded per track and per session, reclaiming them undoes #9308, and nothing measured shows a problem.
  • Two more measurements: what quiet latest groups pin on a peer-link relay, and across many sessions each inside its live_edges budget.
  • Settled answers: recency-only order, writes-only trigger, the original producer keeps its latest group, #9422 lands as is, and the mechanism is a leaning rather than a decision.
  • Research: eviction designs with no global ordered structure.

Pullfrog  | View workflow run | Using claude-sonnet-5-5 | 𝕏

@kixelated
kixelated added this pull request to the merge queue Nov 23, 2026
Merged via the queue into main with commit 343566d Nov 23, 2026
7 checks passed
@kixelated
kixelated deleted the quest-plan/cache-eviction-order branch November 23, 2026 07:47
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