[PR #1559] [CLOSED] serve: retire stale pins when selecting a new shared prefix #3531

Closed
opened 2026-11-07 14:42:09 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/1559
Author: @W1nge
Created: 10/8/2026
Status: ❌ Closed

Base: main ← Head: codex/shared-prefix-pin-replacement


📝 Commits (2)

  • 7a8f2b2 serve: retire older shared-prefix pins before cache lookup
  • ee03403 Merge remote-tracking branch 'upstream/main' into codex/shared-prefix-pin-replacement

📊 Changes

3 files changed (+71 additions, -0 deletions)

View changed files

📝 include/strata/core/conversation_cache.hpp (+19 -0)
📝 src/core/conversation_cache_test.cpp (+44 -0)
📝 src/program/generate.cpp (+8 -0)

📄 Description

Summary

Replacing a shared prefix can leave older parked conversations pinned, exhausting cache slots. Release stale pins before lookup so the selected prefix stays protected and older snapshots become normally evictable.

What changed

Retire pins across live checkpoints, batch slots and parked conversations. Retain a pin only when its token prefix, boundary, images and steering mode match. No new settings or cache-budget defaults.

Validation

Updated to main 61b3fb5d: 4,227 conversation-cache checks and all 17 retention checks pass on MSVC. CUDA integration build also passes (sm60;sm75). Earlier model evidence is unchanged; full-model inference was not repeated on this revision.

Draft until the affected HIP/SYCL builds satisfy the repository's backend coverage requirement.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/1559 **Author:** [@W1nge](https://github.com/W1nge) **Created:** 10/8/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `codex/shared-prefix-pin-replacement` --- ### 📝 Commits (2) - [`7a8f2b2`](https://github.com/Niko1221/Strata/commit/7a8f2b292255c089322f3ef97cc4fc5117229e52) serve: retire older shared-prefix pins before cache lookup - [`ee03403`](https://github.com/Niko1221/Strata/commit/ee0340355664db84fd5199046834923a8e277faa) Merge remote-tracking branch 'upstream/main' into codex/shared-prefix-pin-replacement ### 📊 Changes **3 files changed** (+71 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `include/strata/core/conversation_cache.hpp` (+19 -0) 📝 `src/core/conversation_cache_test.cpp` (+44 -0) 📝 `src/program/generate.cpp` (+8 -0) </details> ### 📄 Description ## Summary Replacing a shared prefix can leave older parked conversations pinned, exhausting cache slots. Release stale pins before lookup so the selected prefix stays protected and older snapshots become normally evictable. ## What changed Retire pins across live checkpoints, batch slots and parked conversations. Retain a pin only when its token prefix, boundary, images and steering mode match. No new settings or cache-budget defaults. ## Validation Updated to main `61b3fb5d`: 4,227 conversation-cache checks and all 17 retention checks pass on MSVC. CUDA integration build also passes (`sm60;sm75`). Earlier model evidence is unchanged; full-model inference was not repeated on this revision. Draft until the affected HIP/SYCL builds satisfy the repository's backend coverage requirement. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 14:42:09 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#3531
No description provided.