mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #2094] [CLOSED] Draft: immutable branching contexts with validated restore and serial benchmarks #3858
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#3858
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/2094
Author: @CC-David-CC
Created: 10/12/2026
Status: ❌ Closed
Base:
main← Head:feat/branching-context-validated-prototype📝 Commits (10+)
ee96335Add immutable branching context foundation on upstream mained5c455Port optional-draft cold snapshots to current main6dd5f9dRecord bounded CUDA validation and issue scope for the upstream draft15fb044Add resumable Luna branching-context handoff harness6e651a1Preserve Luna checkpoint and host-buffer implementation work3f77d95Repair idle feeds and host view lifetime with executed regression evidenceb6dc6fcRepair native cache admission and validate exact consumed-history lookup0b96187Preserve canonical input identity through cold-to-hot checkpoint restoree10e78eImplement native RAM-cache capture and exact consumed-frontier restore8aa223aRoute canonical cache misses through native RAM and replace duplicate checkpoints📊 Changes
248 files changed (+62852 additions, -68 deletions)
View changed files
📝
CMakeLists.txt(+65 -0)➕
experimental/branching_context/.gitattributes(+2 -0)➕
experimental/branching_context/.gitignore(+4 -0)➕
experimental/branching_context/AGENTS.md(+58 -0)➕
experimental/branching_context/README.md(+185 -0)➕
experimental/branching_context/docs/acceptance.json(+517 -0)➕
experimental/branching_context/docs/architecture.md(+96 -0)➕
experimental/branching_context/docs/backend-adapter.md(+71 -0)➕
experimental/branching_context/docs/certification.md(+81 -0)➕
experimental/branching_context/docs/locked-references.json(+7 -0)➕
experimental/branching_context/docs/support-matrix.json(+76 -0)➕
experimental/branching_context/docs/test-matrix.md(+133 -0)➕
experimental/branching_context/evidence/DECISIONS.md(+517 -0)➕
experimental/branching_context/evidence/STATUS.md(+704 -0)➕
experimental/branching_context/evidence/authorization-prework.json(+105 -0)➕
experimental/branching_context/evidence/automatic-ram-validation.json(+810 -0)➕
experimental/branching_context/evidence/calibration-finalization-check.json(+80 -0)➕
experimental/branching_context/evidence/checkpoint-upgrade-prework.json(+84 -0)➕
experimental/branching_context/evidence/cold-identity-validation.json(+442 -0)➕
experimental/branching_context/evidence/corrected-prefill-validation.json(+1246 -0)...and 80 more files
📄 Description
Supersedes #2015. Foundation for #1938 and #1962; neither issue is closed by this draft.
Adds immutable histories and controllers, movable branch references, shared checkpoints, rewind/retry, evaluation and recovery. Fixes omitted GPU expert contributions in the experimental branch/fresh drivers.
Measured on RTX PRO 6000 Blackwell, Q8_0 weights / FP16 KV, one request at a time:
7695859a)All paths produced identical tokens. All eight API frontiers matched an independent fresh oracle at zero logit error. Disk reload and complete checkpoint eviction/replay passed. Reused API calls took 2.4-3.4s; initial prefix creation took 12.6s and return to the prefix took 10.9s. The complete mixed hot/cold sequence was slower.
These are single-run whole-path measurements, excluding startup and oracle checks. Prefill operators and cache budgets differ: no isolated cache-speedup claim. Separate 11-operation GPU smoke passed 14 fresh comparisons at zero error; G0 passed 51/51.
Batched-prefill equivalence remains unresolved; help diagnosing it is welcome. Full G1-G5 certification, Windows and HIP/SYCL validation remain incomplete.
Measurements, fingerprints and limitations. Reproduce with
experimental/branching_context/scripts/serial_speed.py --helpand a pinned frozen profile.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.