Skip to content

WIP: plan prefix KV reuse - #181

Draft
drunkcoding wants to merge 1 commit into
mainfrom
plan/prefix-kv-reuse
Draft

WIP: plan prefix KV reuse#181
drunkcoding wants to merge 1 commit into
mainfrom
plan/prefix-kv-reuse

Conversation

@drunkcoding

Copy link
Copy Markdown
Contributor

Description

Plan-only design for correctness-preserving prefix KV reuse in continuous serving.

Motivation

A PrefixCache scaffold exists, but the active request path performs no KV lookup, attachment, publication, or reuse.

Scope

  • Collision-safe exact prefix identity
  • Atomic leases, refcounts, COW, and eviction
  • One layered paged-KV store across cache/backend
  • Qwen3 + FlashInfer cold/warm parity and benchmarks

Dependencies / limitations

Shares canonical metadata, storage, and PrefixLeaseProvider contracts with chunked prefill. Co-enablement requires reconciliation tests.

Type of Change

  • Documentation update
  • Production implementation

Performance / support evidence

  • Not applicable — disabled/cold/warm methodology only.

Checklist

  • Active-reference safety specified
  • Reload/cancellation rollback specified
  • No production files changed

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
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