Repository navigation
[PR] test: pin #1387 stop-signal geometry to preserveRecentMessages 5 (#3061 follow-up) - #3074
Closed
ranxianglei wants to merge 1 commit into
Closed
ranxianglei wants to merge 1 commit into
ranxianglei wants to merge 1 commit into
Conversation
… follow-up) The two #1387 tail tests were written against the then-default preserveRecentMessages 5 (7 messages, fold m00001–m00002, the remaining 5 sit in the protected recent zone) and took that default implicitly via makeCtx(). #3058 tuned the kernel default 5 → 3, so after the fold the recent window only covers m00005–m00007 and a live range (m00003–…) stays actionable — the drained-state stop signal never fires and both tests fail on every CI lane (all 4 OS/node test lanes on #3061 and #3067 runs). The contract under test is the stop-signal semantics (#1387, pi #521), not the default tuning — the default is pinned by the wire-contract golden (kernel.json preserveRecentMessages: 3). Pin the geometry explicitly and spell out in the comments that 5 is the legacy tuning the geometry was designed under, not the owner-tuned default.
Contributor
📦 Built Package ArtifactBranch: Option A — Install this exact build (recommended)npm install -g billion-context@0.0.3487-pr.3074.ebda485This exact version is immutable and reproducible. The rolling Option B — Download artifact
tar xzf billion-context-pr3074.tgz
npm install -g packageInstall instructions are refreshed on each push. |
Owner
Author
(ai: vllm-qwen/qwen3.8-27b) PR 审核结论(独立审核,已核代码与 CI) 这个「issue」即本 PR(#3074 = GitHub 同号 PR)。我没有重做工作,而是按 PR 审核流程独立核验了 diff、机制与 CI。 核验过程(非照抄描述):
结构化八问:
判定:可合并(等人工 merge;我不合 PR)。分支命名合规、单 commit、diff 每行都与本 PR 目的相关。 |
Owner
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #3067 (merged on its 2-commit head — the third commit landed on the branch only and is not on master).
What
The two
#1387tail tests intests/compress-success-tail.test.ts— "clean success that drains every compressible range emits the stop signal (pi #521)" and "partial failure (some ranges rejected) keeps the old silent tail" — were written against the then-defaultpreserveRecentMessages: 5: 7 messages, fold m00001–m00002, the remaining 5 sit in the protected recent zone. They took that default implicitly viamakeCtx()(no overrides).Why they are red on master now
#3058 tuned the kernel default
preserveRecentMessages5 → 3. Under 3 the recent window only covers the last 3 messages, so after the fold a live range (m00003–…) stays actionable — the drained-state stop signal never fires and both tests fail deterministically (all 4 OS/node test lanes; seen as the only 2 remaining red tests on #3067's CI run 38426277025).Fix
Pin
preserveRecentMessages: 5explicitly in both tests'makeCtx()overrides and spell out in the comments that 5 is the legacy tuning the geometry was designed under, not the owner-tuned default. The contract under test is the stop-signal semantics (#1387, pi #521); the default value itself is pinned by the wire-contract golden (tests/golden/wire-contract/kernel.jsonpreserveRecentMessages: 3).Test evidence
node --import tsx --test tests/compress-success-tail.test.ts: 8 pass / 0 fail ×3 consecutive runs (6 pass / 2 fail on master before this).