From 15fe6eb0e950bd5f1628888d23fdb27d07e9fbc9 Mon Sep 17 00:00:00 2001 From: awork Date: Fri, 16 Oct 2026 01:26:25 +0800 Subject: [PATCH 1/3] test: rebaseline storage-render goldens after #3295 dropped dead image-stats fields --- tests/golden/storage-render/anthropic.json | 6 +++--- tests/golden/storage-render/chat.json | 6 +++--- tests/golden/storage-render/google.json | 6 +++--- tests/golden/storage-render/responses.json | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/tests/golden/storage-render/anthropic.json b/tests/golden/storage-render/anthropic.json index 9235a12c5b..1b2b9280e7 100644 --- a/tests/golden/storage-render/anthropic.json +++ b/tests/golden/storage-render/anthropic.json @@ -80,9 +80,9 @@ "foldAt": 9, "editedAt": 12, "summaryFrom": 9, - "stateDigest": "4902c51f20262600230b2999242a418eaf748efee239154e8fb53617985b7d14", + "stateDigest": "8566f61d2f250fff9a1d67f8e129534170fc592c39c6d2b3b23ee84018c6f09c", "sectionDigests": { - "state": "db2dcb8f50f59a6f", + "state": "244a6a4356e081ec", "blockContents": "dc7d13d250c94bb4", "stats": "148538077b9c86e2", "metadata": "88215dac08f1ce62" @@ -91,7 +91,7 @@ "blocks": "1cbe172309e4490d", "messageRefs": "44a70eda324db561", "nudge": "aee17f8177e38f2d", - "stats": "aa9a993d65e1760e", + "stats": "23312f7d5a0b9e27", "nextBlockId": "d4735e3a265e16ee", "nextRunId": "d4735e3a265e16ee", "tokenSnapshot": "7c8dbc981fdfcbd6", diff --git a/tests/golden/storage-render/chat.json b/tests/golden/storage-render/chat.json index be56763953..e59cb620b6 100644 --- a/tests/golden/storage-render/chat.json +++ b/tests/golden/storage-render/chat.json @@ -80,9 +80,9 @@ "foldAt": 9, "editedAt": 12, "summaryFrom": 9, - "stateDigest": "30179062ca29d82e096c7cfef74acf2aaab007c707954f98c83c125c56694641", + "stateDigest": "7bd74bdd045445f732163e364d5bbcc1a3b775ebe8647e52a515a049922f8076", "sectionDigests": { - "state": "5db50ed9b7e6c9c5", + "state": "eb894dd403015298", "blockContents": "94a58f96d7c5cfc3", "stats": "06757c83f90796fd", "metadata": "e3e0f2cc27086e0b" @@ -91,7 +91,7 @@ "blocks": "9aa73e5fb9f93d6c", "messageRefs": "0e378dff25ad2808", "nudge": "95ab45b4ddb8bba0", - "stats": "cbb367f44be13abd", + "stats": "f85b2ad1a3b86e2f", "nextBlockId": "d4735e3a265e16ee", "nextRunId": "d4735e3a265e16ee", "tokenSnapshot": "5080181ee1a25a8c", diff --git a/tests/golden/storage-render/google.json b/tests/golden/storage-render/google.json index 2d71b43372..9e34206f6c 100644 --- a/tests/golden/storage-render/google.json +++ b/tests/golden/storage-render/google.json @@ -80,9 +80,9 @@ "foldAt": 9, "editedAt": 12, "summaryFrom": 9, - "stateDigest": "d786bbc73be74afd81813ad24275b401b6e4de206fed15ae996cfa3333906e28", + "stateDigest": "873a005e6fc02b2b9d86d4670be68c4ac5a2d811430b2555109a0698c8798171", "sectionDigests": { - "state": "4db177f49e9bb5e2", + "state": "2b4b1e64178db88f", "blockContents": "473264d9df8ba338", "stats": "46b1938d50fd6a58", "metadata": "e58a57fe06b719ef" @@ -91,7 +91,7 @@ "blocks": "8e14f0879bf7ebd7", "messageRefs": "19bfd6646b3f6f78", "nudge": "fad7619e233c76ab", - "stats": "21963a0036a8e7c0", + "stats": "e4ee14ae39539ff8", "nextBlockId": "d4735e3a265e16ee", "nextRunId": "d4735e3a265e16ee", "tokenSnapshot": "5080181ee1a25a8c", diff --git a/tests/golden/storage-render/responses.json b/tests/golden/storage-render/responses.json index b77a246c03..7efba40183 100644 --- a/tests/golden/storage-render/responses.json +++ b/tests/golden/storage-render/responses.json @@ -80,9 +80,9 @@ "foldAt": 9, "editedAt": 12, "summaryFrom": 9, - "stateDigest": "4cc8b08e4448e1f0f876d4598f124efdb0406fa485ab430a8ab334f6502d1c8d", + "stateDigest": "ec1c2d1a869c8430a12a10dc78077629dd37549f0fe68241fbeb04980168bcb9", "sectionDigests": { - "state": "87c9f1a270dc9484", + "state": "4af4b608baa6a253", "blockContents": "8460729b2654a816", "stats": "01b8752be2f61fb9", "metadata": "ea6c2c7a998723f3" @@ -91,7 +91,7 @@ "blocks": "7fff1dfb54a617cf", "messageRefs": "c229d4795a0c9ac1", "nudge": "c7f8f913b20d688d", - "stats": "9089267e3afa71ee", + "stats": "da55f309d070d963", "nextBlockId": "d4735e3a265e16ee", "nextRunId": "d4735e3a265e16ee", "tokenSnapshot": "003006fbddac1a2b", From 7d061be7ad62894e5804f0d363baaac92b401996 Mon Sep 17 00:00:00 2001 From: awork Date: Fri, 16 Oct 2026 04:02:02 +0800 Subject: [PATCH 2/3] test(#3313): stop T5 liveness filler tripping the output-side runaway guard MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The fake-model growth filler "x".repeat(360) emits a run of 360 identical codepoints per reply. Since #3289 merged the output-side runaway guard (#3260, src/runaway-guard.ts: textRun >= TEXT_RUN_THRESHOLD = 200), every synthetic reply is aborted mid-stream ("output-side runaway guard tripped (text-run; maxTextRun:200)") and the client sees an empty response, so T5's "every client turn must get a visible reply" fails deterministically on every shard-2 CI lane (run 38777578495: ubu22-s2 / ubu24-s2 / win22-s2 / win24-s2). Fix at the producer: "x ".repeat(180) — same 360 bytes per reply, max run of identical codepoints is 1, so the fixture stops emitting the degenerate symbol-loop shape the guard exists to catch (#3946). Guard untouched; no runtime code changed. Verified locally: tests/issue1086-chain-self-exemption.test.ts 21/21. --- tests/issue1086-chain-self-exemption.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/issue1086-chain-self-exemption.test.ts b/tests/issue1086-chain-self-exemption.test.ts index 6560759081..bbd3de2e5a 100644 --- a/tests/issue1086-chain-self-exemption.test.ts +++ b/tests/issue1086-chain-self-exemption.test.ts @@ -543,7 +543,9 @@ test("#1086 T5 liveness: plain-client chat session keeps compressing as it grows })); res.write(sseLine({ id: "g1", object: "chat.completion.chunk", choices: [{ index: 0, delta: {}, finish_reason: "tool_calls" }], usage: { prompt_tokens: 100, completion_tokens: 2 } })); } else { - const text = `reply ${state.bodies.length} ` + "x".repeat(360); + // "x " (alternating space), not "x": the output-side runaway guard (src/runaway-guard.ts, #3260) + // aborts any text run of >=200 identical codepoints, so a solid x-run would kill every reply here. + const text = `reply ${state.bodies.length} ` + "x ".repeat(180); res.write(sseLine({ id: "g1", object: "chat.completion.chunk", choices: [{ index: 0, delta: { role: "assistant", content: text } }] })); res.write(sseLine({ id: "g1", object: "chat.completion.chunk", choices: [{ index: 0, delta: {}, finish_reason: "stop" }], usage: { prompt_tokens: 100, completion_tokens: 50 } })); } From 158d32f14e140e45b821688bdc624cf08d4fb16c Mon Sep 17 00:00:00 2001 From: awork Date: Fri, 16 Oct 2026 04:05:29 +0800 Subject: [PATCH 3/3] =?UTF-8?q?revert(#3313):=20drop=20the=20T5=20filler?= =?UTF-8?q?=20fix=20=E2=80=94=20owned=20by=20#3317=20(first-come)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pushed as 7d061be7a before PR #3317 was discovered: it fixes the exact same line (tests/issue1086-chain-self-exemption.test.ts:546, same mechanism, same equal-length mixed-char approach) and is properly tracked under #3315 sub-defect 2. Keeping both would force a merge-conflict round between #3314 and #3317 on one line. Reverting restores the intended disjoint-file split (#3314 = golden JSONs, #3317 = the single test file); shard 2 goes green only when BOTH land, per #3315 floor 6. --- tests/issue1086-chain-self-exemption.test.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/issue1086-chain-self-exemption.test.ts b/tests/issue1086-chain-self-exemption.test.ts index bbd3de2e5a..6560759081 100644 --- a/tests/issue1086-chain-self-exemption.test.ts +++ b/tests/issue1086-chain-self-exemption.test.ts @@ -543,9 +543,7 @@ test("#1086 T5 liveness: plain-client chat session keeps compressing as it grows })); res.write(sseLine({ id: "g1", object: "chat.completion.chunk", choices: [{ index: 0, delta: {}, finish_reason: "tool_calls" }], usage: { prompt_tokens: 100, completion_tokens: 2 } })); } else { - // "x " (alternating space), not "x": the output-side runaway guard (src/runaway-guard.ts, #3260) - // aborts any text run of >=200 identical codepoints, so a solid x-run would kill every reply here. - const text = `reply ${state.bodies.length} ` + "x ".repeat(180); + const text = `reply ${state.bodies.length} ` + "x".repeat(360); res.write(sseLine({ id: "g1", object: "chat.completion.chunk", choices: [{ index: 0, delta: { role: "assistant", content: text } }] })); res.write(sseLine({ id: "g1", object: "chat.completion.chunk", choices: [{ index: 0, delta: {}, finish_reason: "stop" }], usage: { prompt_tokens: 100, completion_tokens: 50 } })); }