Skip to content

Qwen3.8-Flash-Next on any consumer hardware: one-click install for Windows / Linux. Strata inference engine, OpenAI/Anthropic API on localhost, optional image input.

C++

Remove planning documents from the core PR

Jeremiah Ritchey0fca77bfe02e
diff --git a/docs/DETAILS.md b/docs/DETAILS.md
index 0d043b752..b21652cf3 100644
--- a/docs/DETAILS.md
+++ b/docs/DETAILS.md
@@ -398,11 +398,9 @@ is a cap, not a recommendation for every machine.
The shared snapshot core validates all layers and checkpoints before applying any
state. Invalid entries are discarded; transfer/synchronization failure is fatal
rather than permission to continue with partial state. Indexer spare keys and the
-moving spare row are preserved, including checkpoint rewinds. These development
-changes and the optional disk-tier boundary are described in the
-[shared-core proposal](plans/shared-conversation-snapshots.md).
+moving spare row are preserved, including checkpoint rewinds.
The engine log reports parking, restoration, bytes and evictions. Snapshots are not
-persisted across restarts. See [the design and validation gates](plans/shared-conversation-snapshots.md).
+persisted across restarts.
**Current limits (v1):** one request at a time, and one conversation cached at a time (switching between two chats
re-reads the other one unless the opt-in cache above is enabled); images only when set up with them (below); no video. **Temperature / top_p / top_k / min_p /
diff --git a/docs/plans/shared-conversation-snapshots.md b/docs/plans/shared-conversation-snapshots.md
deleted file mode 100644
index b93bf91e1..000000000
--- a/docs/plans/shared-conversation-snapshots.md
+++ /dev/null
@@ -1,78 +0,0 @@
-# Conversation snapshots and RAM cache
-
-[Issue #57](https://github.com/Niko1221/Strata/issues/57) preserves reusable state
-when independent agent conversations alternate on one server. Requests remain
-serial, require no client session markers, and restore into existing allocations.
-The shared core and RAM policy land first; the optional NVMe tier is a dependent
-integration, following the [maintainer's requested order](https://github.com/Niko1221/Strata/pull/52#issuecomment-5898176448).
-
-## Ownership and matching
-
-- `conversation_snapshot.hpp`, `conversation_snapshot.cpp`, and
- `conversation_state.cpp` define complete capture, validation and restoration.
- They contain no retention policy or filesystem operations.
-- `ConversationCache` owns inactive snapshots, selects the longest exact token
- prefix with matching image/grid identity and steering state, and evicts the
- least recently active entries. Active state wins ties.
-- The serve loop parks before a switch or checkpoint rewind overwrites state.
- A continuing request does not trigger a snapshot. Checkpoint root/LRU behavior
- from upstream is retained inside each conversation.
-
-Snapshots include live and checkpoint GDN/PLE state, page-rounded used main KV,
-indexer pooled rows/tail/spare key/block position, and used draft KV. They exclude
-scratch recomputed before use. Restoring an early checkpoint reconstructs the
-spare pooled row and PLE token history. Streamed KV uses authoritative host pools;
-restore invalidates replaceable VRAM maps and refills the draft ring. Device
-addresses remain stable for captured graphs.
-
-FP16, INT8, Q4 and identity-layout K8V4 are represented explicitly. K8V4 stores
-INT8 K/scales separately from Q4 V; it does not use the block movers' format enum.
-Hybrid streaming/ring layouts and whole-conversation layer-split parking are
-rejected. Ordinary upstream layer-split checkpoints remain available.
-
-## Capacity and failure handling
-
-`--conversation-cache-mib` defaults to zero (disabled),
-`--conversation-cache-slots` to four, and `--conversation-cache-min-free-mib` to
-2560. `--prompt-cache 0` disables parking and produces a warning when requested.
-
-The byte budget counts vector capacity, retained checkpoints, and incoming
-snapshots held during an exchange; it is additional to the active session and
-is not an exact RSS limit. Estimate before allocation, then check physical RAM
-using Linux `MemAvailable` or Windows `GlobalMemoryStatusEx`. Unknown telemetry
-rejects admission. Check the free-RAM floor again after capture. These samples
-are not reservations or cgroup/job-limit enforcement.
-
-Oversized entries and allocation/admission failures skip parking. Validate the
-entire incoming image before modifying the outgoing session; invalid images
-are discarded and ordinary prefix selection/prefill remains available. Transfer
-or synchronization failures may leave partial GPU state, so the engine reports
-an error and exits rather than continuing inference. Publish resume metadata
-only after successful restore. Validation is not a transactional GPU rollback.
-
-## NVMe integration contract
-
-The disk adapter must consume this representation and restore through this core,
-without another state-copy implementation. Spill immutable snapshots on RAM
-eviction; disabled persistence performs no filesystem operations. A disk hit
-competes with active/RAM prefixes and must reserve an explicit bounded staging
-allocation plus physical RAM headroom before reading.
-
-Persist a versioned portable envelope, not native C++ objects. Bind exact weights,
-tokenizer, steering configuration, geometry, KV format (including K8V4) and state
-schema. Read, integrity-check and validate the same staged bytes before applying
-them. Atomic publication must reject interrupted, truncated, corrupt and foreign
-entries. A failed spill may drop the already-evicted entry; it must not exceed
-RAM limits or stop inference. Eviction-only persistence does not promise that
-the latest active turn survives a crash. Files contain conversation content.
-
-The dependent adapter follows @maedoc's #52 streaming-envelope approach; its
-implementation and disk acceptance evidence belong to that dependent branch.
-Windows admission coverage includes @midhatn's contribution, preserved with its
-original authorship. See the [validation record](shared-conversation-upstream-validation.md)
-for results, commands, and hardware limits.
-
-For model validation, `STRATA_SNAPSHOT_VERIFY=1` records the draft-prefill path and
-compares restored draft KV with saved bytes, including resident ring pages. The
-read-back uses 64 KiB of workspace and emits a fingerprint only on success.
-A mismatch or read-back failure stops the test engine. It is off by default.
diff --git a/docs/plans/shared-conversation-upstream-validation.md b/docs/plans/shared-conversation-upstream-validation.md
deleted file mode 100644
index abbd680e4..000000000
--- a/docs/plans/shared-conversation-upstream-validation.md
+++ /dev/null
@@ -1,81 +0,0 @@
-# Conversation cache validation
-
-The focused core branch includes upstream 0.1.27 (`a790805`). Final Linux checks
-ran on 2026-09-30 after the user's Pi benchmark completed. This record describes
-the review binaries, not the original server restored after the test window.
-Windows admission coverage retains @midhatn's original authorship in `b319d43`.
-
-## Hardware and artifacts
-
-EPYC 7532, RTX 4090, GCC 15.2, CUDA 13.4, SM89, portable AVX2, IQ3_S.
-All model engines used `numactl --interleave=all --physcpubind=0-31` and matched
-expert residency (7,846 slots, PCIe share 0.55). INT8 streamed/ring tests used
-131,072 context and 32,768 main resident cells; batched INT8/K8V4 tests used
-16,384 context with full device KV. These are correctness gates, not a Pi speed
-comparison or measurements at the production server's 262,144 context limit.
-
-Core executable SHA-256:
-`f3eda68ad0dce9a1604345743ba5432ed73f2efeaf6b4f84f435317d7f2ba9ff`.
-Local commands, configs, raw logs and result JSON are under
-`logs/review-0.1.27/`; full-model artifacts are in its `model-window/` directory.
-Documentation-only commits after this build do not change the tested code.
-
-## Passed gates
-
-| Gate | Evidence |
-| --- | --- |
-| Components | Policy, admission, checkpoint retention, validation, injected transfers and sampler parity CTests |
-| GPU snapshot fixture | 1,298 checks; FP16/INT8/Q4/K8V4 supported layouts, partial pages, indexer spare keys, early checkpoints, zero-QSA, 256/512-expert metadata and draft ring read-back |
-| Python | 66 frontend tests (three skipped), 47 tool tests, 22 cache-harness tests under Python `-O` |
-| Transfer diagnostics | 1,188 ASan/UBSan host checks, including corrupted bytes and failed copies |
-| RAM model reuse | Streamed INT8; batched INT8 and K8V4; known answers, exact output tokens and main-state parity |
-| Long speculation | Speculation width four beyond resident KV, with output/state parity |
-| Capacity/fallback | 400 MiB pressure and exchange, 1 MiB oversized entry, impossible RAM-floor rejection in ring and batched paths |
-| Isolation | Synthetic image/grid identity and add/project steering isolation |
-| Soak | 30 returns at 2,026 / 39,985 / 119,987 tokens; exact output/state parity and bounded retention |
-| HTTP | Twelve requests passed reuse, slot eviction, disconnect and recovery on a private endpoint |
-
-The opt-in `STRATA_SNAPSHOT_VERIFY=1` diagnostic records the actual draft-prefill
-path and verifies restored authoritative bytes and resident ring pages before
-emitting a fingerprint. Main-model state hashes alone do not cover draft state.
-The GPU fixture checks the ring produced by restore without refilling it first.
-Host fault injection does not simulate recovery of a broken CUDA context.
-
-## Reproduction
-
-Configure the normal engine with `-DSTRATA_BUILD_CONVERSATION_TESTS=ON`, then:
-
-```sh
-cmake --build build --target conversation_cache_test conversation_memory_test conversation_snapshot_test conversation_validation_test conv_cache_test sampler_parity
-ctest --test-dir build -R '^(conversation_.*|conv_cache_test|sampler_parity)$' --output-on-failure
-python -m unittest tools.test_conversation_cache_parity tools.test_conversation_cache_isolation tools.test_conversation_cache_soak tools.test_conversation_cache_http_smoke
-```
-
-On GNU/Clang ELF CUDA builds also build `conversation_transfer_test` for wrapped
-copy/synchronization fault injection. Focused targets were used; this record does
-not claim the full optional upstream test configuration passes.
-
-Model tools default to dry runs. Supply `--config CONFIG --engine ENGINE --output
-NEW_DIRECTORY --run` to parity at `--spec 1` and `--spec 4`, then scenarios
-`pressure`, `oversized`, `exchange` and `admission`. Budgets must force the named
-condition. Isolation scenarios are `image`, `add` and `project`. The soak requires
-at least 30 cycles and three lengths crossing residency and approaching context.
-Use `STRATA_SNAPSHOT_VERIFY=1` and verify actual batched-prefill evidence when
-claiming that path. HTTP smoke needs an exclusive idle test endpoint. Run model
-and GPU checks only in an exclusive test window.
-
-## Limits and separate work
-
-- Windows implementation reviewed, not locally executed. Contributor reports
- concern separate Windows work and do not validate this branch.
-- HIP execution, real vision encoding and the full Coder model are untested.
- Synthetic image inputs test cache identity, not the vision encoder.
-- Whole-conversation multi-GPU parking and hybrid K8V4 streaming/rings are
- unsupported; ordinary upstream stage checkpoints remain available.
-- Optional disk persistence is a dependent change with its own acceptance record.
-
-Historical 0.1.25 evidence remains on local `feat/conversation-cache-upstream`
-at `cb8d90c`. General Pi tooling is isolated on
-`tools/conversation-cache-benchmark`. Four historical bounded Pi trials passed
-correctness, but overall timing favored opposite modes in the two pairs; no
-whole-task speedup or version-to-version performance claim follows from them.