[PR #1667] [CLOSED] feat: experimental persistent Responses and branch checkpoints #3597

Closed
opened 2026-11-07 15:29:26 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/1667
Author: @CC-David-CC
Created: 10/9/2026
Status: ❌ Closed

Base: main ← Head: feat/branch-checkpoints


📝 Commits (8)

  • 378f3f5 feat: extend native sessions with branch history and checkpoint retention
  • 9e7bbba Merge current main and preserve Responses and branch checkpoint controls
  • 465b20b test: end the mock server process tree after abrupt Windows restart checks
  • f980067 docs: preserve Responses disk integration evidence and consolidate earlier PRs
  • 1dd9b5a test: close the integration probe binary hash handle
  • feb00ec fix: fingerprint current engine restart metadata for branch checkpoints
  • 6f702ab docs: record refreshed cache lifecycle and checkpoint validation
  • 634a287 Merge Strata v0.1.43 into feat/branch-checkpoints

📊 Changes

37 files changed (+10963 additions, -51 deletions)

View changed files

➕ bench/results/2026-10-11-cache-refresh/README.md (+71 -0)
➕ bench/results/2026-10-11-cache-refresh/branch-32k.json (+1071 -0)
➕ bench/results/2026-10-11-cache-refresh/cache-parity-disk-temp0.7.json (+552 -0)
➕ bench/results/2026-10-11-cache-refresh/cache-parity-disk-temp0.json (+468 -0)
➕ bench/results/2026-10-11-cache-refresh/cache-parity-ram-fallback-temp0.7.json (+552 -0)
➕ bench/results/2026-10-11-cache-refresh/cache-parity-ram-fallback-temp0.json (+468 -0)
➕ bench/results/2026-10-11-cache-refresh/cache-parity-ram-temp0.7.json (+552 -0)
➕ bench/results/2026-10-11-cache-refresh/cache-parity-ram-temp0.json (+468 -0)
➕ bench/results/2026-10-11-cache-refresh/provenance.json (+16 -0)
➕ bench/results/2026-10-11-cache-refresh/responses-live.json (+1232 -0)
➕ docs/BRANCH_CHECKPOINTS_EXPERIMENTAL.md (+166 -0)
➕ docs/RESPONSES_DISK_INTEGRATION.md (+146 -0)
➕ docs/RESPONSES_EXPERIMENTAL.md (+126 -0)
➕ docs/measurements/branch-checkpoints-32k/README.md (+68 -0)
➕ docs/measurements/branch-checkpoints-32k/latency.png (+0 -0)
➕ docs/measurements/branch-checkpoints-32k/native-audit.txt (+15 -0)
➕ docs/measurements/branch-checkpoints-32k/results.json (+1071 -0)
➕ docs/measurements/branch-checkpoints-32k/summary.json (+42 -0)
➕ docs/validation/responses-disk-20261008/cuda-rtx4090.json (+441 -0)
➕ docs/validation/responses-disk-20261008/hip-rx7900xtx.json (+441 -0)

...and 17 more files

📄 Description

Adds opt-in durable Responses history, generated summaries, branch/bookmark checkpoints and native session reuse. Branches replay the selected immutable API history; invalid or evicted KV checkpoints fall back to prefill. Native checkpoint retention and API history retention remain separate.

Refreshed onto current main, preserving #1446's Responses groundwork and #1489's integration probe and historical evidence. #1810 retains the native automatic disk-cache implementation; the two surviving PRs were validated together. This supersedes #1446 and the overlapping #1489 integration branch rather than requiring their code to be merged twice.

Enable through the experimental persistence/checkpoint configuration options and a dedicated Responses store. Summaries are separately optional. Usage, branching, retention and limits. No private application profile or deployment migration is included.

Validation on current main: combined serving suite 750 tests, 12 skipped; a 30-test checkpoint/HTTP rerun after fixing the engine restart-metadata fingerprint. The isolated native disk-only Responses probe passed 33 lifecycle checks, including summaries on/off, cancellation, abrupt restart, corrupt-KV fallback and eviction. Six greedy/seeded RAM/disk/fallback token comparisons passed with MTP width 2. The 32K branch benchmark passed all 14 requests, bookmark retention and deleted-cache replay; each restored pair reused 32,761 tokens. Three fresh/restored observations had median first-token times 4.473s/1.244s, excluding startup and shutdown.

These are controlled RTX PRO 6000 Blackwell / ISTA IQ3_XXS integration measurements, not broad performance or cross-backend snapshot-portability claims. Fresh results, source/binary identities, full token records and reproduction. Historical measurements remain separately dated.


🔄 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/1667 **Author:** [@CC-David-CC](https://github.com/CC-David-CC) **Created:** 10/9/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feat/branch-checkpoints` --- ### 📝 Commits (8) - [`378f3f5`](https://github.com/Niko1221/Strata/commit/378f3f582e46c8eb734e1109ed584be60a9c9170) feat: extend native sessions with branch history and checkpoint retention - [`9e7bbba`](https://github.com/Niko1221/Strata/commit/9e7bbba300aaf7ce2ba16d678e77671fc00903bb) Merge current main and preserve Responses and branch checkpoint controls - [`465b20b`](https://github.com/Niko1221/Strata/commit/465b20be306a2c4ebef60b3d22756600663ab17b) test: end the mock server process tree after abrupt Windows restart checks - [`f980067`](https://github.com/Niko1221/Strata/commit/f98006706078a951d9754edf9e9070f1bc679909) docs: preserve Responses disk integration evidence and consolidate earlier PRs - [`1dd9b5a`](https://github.com/Niko1221/Strata/commit/1dd9b5a608ea8f1052c2c93118ffcea0f18b9d6a) test: close the integration probe binary hash handle - [`feb00ec`](https://github.com/Niko1221/Strata/commit/feb00ec07d75c137bbaef7332519693d7275290a) fix: fingerprint current engine restart metadata for branch checkpoints - [`6f702ab`](https://github.com/Niko1221/Strata/commit/6f702abd927cb59969460bda7c0627080316d433) docs: record refreshed cache lifecycle and checkpoint validation - [`634a287`](https://github.com/Niko1221/Strata/commit/634a287df00b0bc14e5e6de4d2accbbf5e5bc904) Merge Strata v0.1.43 into feat/branch-checkpoints ### 📊 Changes **37 files changed** (+10963 additions, -51 deletions) <details> <summary>View changed files</summary> ➕ `bench/results/2026-10-11-cache-refresh/README.md` (+71 -0) ➕ `bench/results/2026-10-11-cache-refresh/branch-32k.json` (+1071 -0) ➕ `bench/results/2026-10-11-cache-refresh/cache-parity-disk-temp0.7.json` (+552 -0) ➕ `bench/results/2026-10-11-cache-refresh/cache-parity-disk-temp0.json` (+468 -0) ➕ `bench/results/2026-10-11-cache-refresh/cache-parity-ram-fallback-temp0.7.json` (+552 -0) ➕ `bench/results/2026-10-11-cache-refresh/cache-parity-ram-fallback-temp0.json` (+468 -0) ➕ `bench/results/2026-10-11-cache-refresh/cache-parity-ram-temp0.7.json` (+552 -0) ➕ `bench/results/2026-10-11-cache-refresh/cache-parity-ram-temp0.json` (+468 -0) ➕ `bench/results/2026-10-11-cache-refresh/provenance.json` (+16 -0) ➕ `bench/results/2026-10-11-cache-refresh/responses-live.json` (+1232 -0) ➕ `docs/BRANCH_CHECKPOINTS_EXPERIMENTAL.md` (+166 -0) ➕ `docs/RESPONSES_DISK_INTEGRATION.md` (+146 -0) ➕ `docs/RESPONSES_EXPERIMENTAL.md` (+126 -0) ➕ `docs/measurements/branch-checkpoints-32k/README.md` (+68 -0) ➕ `docs/measurements/branch-checkpoints-32k/latency.png` (+0 -0) ➕ `docs/measurements/branch-checkpoints-32k/native-audit.txt` (+15 -0) ➕ `docs/measurements/branch-checkpoints-32k/results.json` (+1071 -0) ➕ `docs/measurements/branch-checkpoints-32k/summary.json` (+42 -0) ➕ `docs/validation/responses-disk-20261008/cuda-rtx4090.json` (+441 -0) ➕ `docs/validation/responses-disk-20261008/hip-rx7900xtx.json` (+441 -0) _...and 17 more files_ </details> ### 📄 Description Adds opt-in durable Responses history, generated summaries, branch/bookmark checkpoints and native session reuse. Branches replay the selected immutable API history; invalid or evicted KV checkpoints fall back to prefill. Native checkpoint retention and API history retention remain separate. Refreshed onto current main, preserving #1446's Responses groundwork and #1489's integration probe and historical evidence. #1810 retains the native automatic disk-cache implementation; the two surviving PRs were validated together. This supersedes #1446 and the overlapping #1489 integration branch rather than requiring their code to be merged twice. Enable through the experimental persistence/checkpoint configuration options and a dedicated Responses store. Summaries are separately optional. [Usage, branching, retention and limits](https://github.com/CC-David-CC/Strata-a5500/blob/6f702abd927cb59969460bda7c0627080316d433/docs/BRANCH_CHECKPOINTS_EXPERIMENTAL.md). No private application profile or deployment migration is included. Validation on current main: combined serving suite 750 tests, 12 skipped; a 30-test checkpoint/HTTP rerun after fixing the engine restart-metadata fingerprint. The isolated native disk-only Responses probe passed 33 lifecycle checks, including summaries on/off, cancellation, abrupt restart, corrupt-KV fallback and eviction. Six greedy/seeded RAM/disk/fallback token comparisons passed with MTP width 2. The 32K branch benchmark passed all 14 requests, bookmark retention and deleted-cache replay; each restored pair reused 32,761 tokens. Three fresh/restored observations had median first-token times 4.473s/1.244s, excluding startup and shutdown. These are controlled RTX PRO 6000 Blackwell / ISTA IQ3_XXS integration measurements, not broad performance or cross-backend snapshot-portability claims. [Fresh results, source/binary identities, full token records and reproduction](https://github.com/CC-David-CC/Strata-a5500/blob/6f702abd927cb59969460bda7c0627080316d433/bench/results/2026-10-11-cache-refresh/README.md). Historical measurements remain separately dated. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:29:26 +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#3597
No description provided.