[PR #1813] [CLOSED] Add exact speculative-window token parity and coverage gate #3693

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

📋 Pull Request Information

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

Base: main ← Head: test/speculative-window-parity


📝 Commits (6)

  • adf9795 test: gate greedy output across speculative windows and TCP
  • 2536e9b Merge remote-tracking branch 'upstream/main' into HEAD
  • 5c84266 Refresh speculative parity evidence with exact routing controls
  • 5cdd7a7 Compare adaptive parity arms at matching request histories
  • cd4d067 Exercise adaptive-history parity through engine protocol
  • 9ea7a42 Merge Strata v0.1.43 into test/speculative-window-parity

📊 Changes

41 files changed (+33903 additions, -0 deletions)

View changed files

➕ bench/results/2026-10-10-p4-spec-window-parity/README.md (+103 -0)
➕ bench/results/2026-10-10-p4-spec-window-parity/default-engine.txt (+127 -0)
➕ bench/results/2026-10-10-p4-spec-window-parity/default-manifest.json (+121 -0)
➕ bench/results/2026-10-10-p4-spec-window-parity/default-result.json (+290 -0)
➕ bench/results/2026-10-10-p4-spec-window-parity/pipeline-engine-0.txt (+2403 -0)
➕ bench/results/2026-10-10-p4-spec-window-parity/pipeline-engine-1.txt (+663 -0)
➕ bench/results/2026-10-10-p4-spec-window-parity/pipeline-manifest.json (+276 -0)
➕ bench/results/2026-10-10-p4-spec-window-parity/pipeline-result.json (+1112 -0)
➕ bench/results/2026-10-10-p4-spec-window-parity/profile.bin (+0 -0)
➕ bench/results/2026-10-10-p4-spec-window-parity/profile.json (+1544 -0)
➕ bench/results/2026-10-10-p4-spec-window-parity/suffix-engine-0.txt (+599 -0)
➕ bench/results/2026-10-10-p4-spec-window-parity/suffix-engine-1.txt (+601 -0)
➕ bench/results/2026-10-10-p4-spec-window-parity/suffix-manifest.json (+220 -0)
➕ bench/results/2026-10-10-p4-spec-window-parity/suffix-result.json (+243 -0)
➕ bench/results/2026-10-10-p4-spec-window-parity/tcp-local-engine.txt (+111 -0)
➕ bench/results/2026-10-10-p4-spec-window-parity/tcp-local-manifest.json (+114 -0)
➕ bench/results/2026-10-10-p4-spec-window-parity/tcp-remote-engine.txt (+108 -0)
➕ bench/results/2026-10-10-p4-spec-window-parity/tcp-remote-manifest.json (+114 -0)
➕ bench/results/2026-10-10-p4-spec-window-parity/tcp-result.json (+566 -0)
➕ bench/results/2026-10-11-spec-window-refresh/1813-current1748-tcp-local/engine-0.txt (+113 -0)

...and 21 more files

📄 Description

Adds an opt-in standard-library gate comparing full token IDs and finish reasons across draft floors, serial/pipeline windows, forced rollback and repeated references. It fails on divergence, prompt reuse, incomplete requests, ignored switches or missing required coverage. It changes no engine defaults.

Refreshed to main 61b3fb5d: all 48 pipeline comparisons and 12 default-dispatch comparisons pass with exact routing controlled by STRATA_ROUTE_TAIL_SKIP=0. The separate 24-request matched local/TCP comparison passes on current PR #1748 (f2673bd2), which supplies TCP support absent from plain main. Fifteen GPU-free gate tests pass. An explicit matched-history mode compares adaptive arms at the same repeat and prompt while rejecting reordered histories; the default still requires stable repeated references.

The eight-request suffix control matches tokens but correctly fails because pipeline suffix coverage is zero. Earlier default rank-7 routing differences reflect an intentional approximation whose expert decisions depend on all rows in a window; they do not establish a rollback defect. The docs now specify tail skipping, CPU arithmetic and placement controls separately.

Fresh manifests, full outputs, engine logs and limits. Historical evidence remains separately dated. These finite P4 checks do not certify dynamic adaptation, sampled decoding, arbitrary pipeline depth, other backends or remote overlapped decode.


🔄 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/1813 **Author:** [@CC-David-CC](https://github.com/CC-David-CC) **Created:** 10/10/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `test/speculative-window-parity` --- ### 📝 Commits (6) - [`adf9795`](https://github.com/Niko1221/Strata/commit/adf979544232c18e6d90b27adf41a5ed4e9b5afe) test: gate greedy output across speculative windows and TCP - [`2536e9b`](https://github.com/Niko1221/Strata/commit/2536e9b63676a4e9b76bca4ba055d5dfa3fb7e1c) Merge remote-tracking branch 'upstream/main' into HEAD - [`5c84266`](https://github.com/Niko1221/Strata/commit/5c842666f817942c07bf817a37ed8abed9aa323a) Refresh speculative parity evidence with exact routing controls - [`5cdd7a7`](https://github.com/Niko1221/Strata/commit/5cdd7a77f613568dadfd45be511a91f116f214cd) Compare adaptive parity arms at matching request histories - [`cd4d067`](https://github.com/Niko1221/Strata/commit/cd4d0670fa0077e729710cf79058550fc0f95a6f) Exercise adaptive-history parity through engine protocol - [`9ea7a42`](https://github.com/Niko1221/Strata/commit/9ea7a42ab63bd17dcb495e273d372a0e81705fa0) Merge Strata v0.1.43 into test/speculative-window-parity ### 📊 Changes **41 files changed** (+33903 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `bench/results/2026-10-10-p4-spec-window-parity/README.md` (+103 -0) ➕ `bench/results/2026-10-10-p4-spec-window-parity/default-engine.txt` (+127 -0) ➕ `bench/results/2026-10-10-p4-spec-window-parity/default-manifest.json` (+121 -0) ➕ `bench/results/2026-10-10-p4-spec-window-parity/default-result.json` (+290 -0) ➕ `bench/results/2026-10-10-p4-spec-window-parity/pipeline-engine-0.txt` (+2403 -0) ➕ `bench/results/2026-10-10-p4-spec-window-parity/pipeline-engine-1.txt` (+663 -0) ➕ `bench/results/2026-10-10-p4-spec-window-parity/pipeline-manifest.json` (+276 -0) ➕ `bench/results/2026-10-10-p4-spec-window-parity/pipeline-result.json` (+1112 -0) ➕ `bench/results/2026-10-10-p4-spec-window-parity/profile.bin` (+0 -0) ➕ `bench/results/2026-10-10-p4-spec-window-parity/profile.json` (+1544 -0) ➕ `bench/results/2026-10-10-p4-spec-window-parity/suffix-engine-0.txt` (+599 -0) ➕ `bench/results/2026-10-10-p4-spec-window-parity/suffix-engine-1.txt` (+601 -0) ➕ `bench/results/2026-10-10-p4-spec-window-parity/suffix-manifest.json` (+220 -0) ➕ `bench/results/2026-10-10-p4-spec-window-parity/suffix-result.json` (+243 -0) ➕ `bench/results/2026-10-10-p4-spec-window-parity/tcp-local-engine.txt` (+111 -0) ➕ `bench/results/2026-10-10-p4-spec-window-parity/tcp-local-manifest.json` (+114 -0) ➕ `bench/results/2026-10-10-p4-spec-window-parity/tcp-remote-engine.txt` (+108 -0) ➕ `bench/results/2026-10-10-p4-spec-window-parity/tcp-remote-manifest.json` (+114 -0) ➕ `bench/results/2026-10-10-p4-spec-window-parity/tcp-result.json` (+566 -0) ➕ `bench/results/2026-10-11-spec-window-refresh/1813-current1748-tcp-local/engine-0.txt` (+113 -0) _...and 21 more files_ </details> ### 📄 Description Adds an opt-in standard-library gate comparing full token IDs and finish reasons across draft floors, serial/pipeline windows, forced rollback and repeated references. It fails on divergence, prompt reuse, incomplete requests, ignored switches or missing required coverage. It changes no engine defaults. Refreshed to main `61b3fb5d`: all 48 pipeline comparisons and 12 default-dispatch comparisons pass with exact routing controlled by `STRATA_ROUTE_TAIL_SKIP=0`. The separate 24-request matched local/TCP comparison passes on current PR #1748 (`f2673bd2`), which supplies TCP support absent from plain main. Fifteen GPU-free gate tests pass. An explicit `matched-history` mode compares adaptive arms at the same repeat and prompt while rejecting reordered histories; the default still requires stable repeated references. The eight-request suffix control matches tokens but correctly fails because pipeline suffix coverage is zero. Earlier default rank-7 routing differences reflect an intentional approximation whose expert decisions depend on all rows in a window; they do not establish a rollback defect. The docs now specify tail skipping, CPU arithmetic and placement controls separately. [Fresh manifests, full outputs, engine logs and limits](https://github.com/CC-David-CC/Strata-a5500/blob/cd4d0670/bench/results/2026-10-11-spec-window-refresh/README.md). Historical evidence remains separately dated. These finite P4 checks do not certify dynamic adaptation, sampled decoding, arbitrary pipeline depth, other backends or remote overlapped decode. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:30:06 +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#3693
No description provided.