Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
182 commits
Select commit Hold shift + click to select a range
c54c9d2
fix(#5175): strip drifted open-tag names and mid-turn draft envelopes
Louie0806 Oct 29, 2026
c507717
fix(#5175): adjudicate the SSE lane's released spans against drift tags
Louie0806 Oct 30, 2026
4225a1e
fix(#5175): never read the kernel's own protocol tags as drift
Louie0806 Oct 30, 2026
fff60bc
fix(#5175): keep the signed-thinking channel out of the drift adjudic…
Louie0806 Oct 30, 2026
ba23a29
test(#5176): pin the #2303 retry's measured limit — streamed draft by…
Louie0806 Oct 30, 2026
7bee49a
chore(#5175): drop a dead drift-tail constant left from an abandoned arm
Louie0806 Oct 30, 2026
2ed07a4
fix(#5175): route complete drifted units past the streaming fast path
Louie0806 Oct 30, 2026
fc402db
test(#5175): drive the REAL pipeline, because a hand-rolled copy hid …
Louie0806 Oct 30, 2026
91ef058
fix(storage): name the sidecar's db path with native separators
Louie0806 Oct 30, 2026
cadbf77
docs(#4788): seed sessions.hardMaxBytes so the config guards stop fai…
Louie0806 Oct 30, 2026
d7f8489
fix(#4788): keep the debounce timer referenced while a caller waits f…
Louie0806 Oct 30, 2026
3eb22b1
test(#4666): pin the mysql lock lane to the CURRENT schema version, n…
Louie0806 Oct 30, 2026
dda8379
test(#4788): close the unified sidecar before the teardown unlink
Louie0806 Oct 30, 2026
cc418fb
test(#5140): state the unified-mode precondition instead of inheritin…
Louie0806 Oct 30, 2026
8c4f711
fix(#5175): judge each attempt on its own output; only an unfinished …
Louie0806 Oct 30, 2026
6f2f6ca
test(#5152): publish the receiver port atomically so polling cannot r…
Louie0806 Oct 30, 2026
a5a71ea
Merge upstream/master into 2026-10-30_drifted-name-leak
Louie0806 Oct 30, 2026
4ea57ea
test(#5155): await the turn's durable save instead of a fixed 20ms sleep
Louie0806 Oct 30, 2026
a1450f6
docs(#4788): regenerate CONFIGURATION.md from the backticked seed aft…
Louie0806 Oct 30, 2026
6aecc25
fix(#5175): adjudicate drifted render-tag residue on the responses wire
Louie0806 Oct 30, 2026
63bedca
Merge branch 'master' of ranxianglei/billion-context into 2026-10-30_…
Louie0806 Oct 31, 2026
e814cad
Merge remote-tracking branch 'refs/remotes/upstream/master' into 2026…
Louie0806 Oct 31, 2026
095b39b
fix(#5175): own the attribute-slot pair whose closing name disagrees
Louie0806 Oct 31, 2026
8a66c6f
Merge remote-tracking branch 'refs/remotes/upstream/master' into HEAD
Louie0806 Oct 31, 2026
5dd03ac
fix(#5175): own the bare-ref attribute pair whose closing name disagrees
Louie0806 Oct 31, 2026
3121f5a
Merge remote-tracking branch 'refs/remotes/upstream/master' into 2026…
Louie0806 Oct 31, 2026
714d69a
fix(#5175): stop convicting the anonymous empty pair — it is valid XML
Louie0806 Oct 31, 2026
aa83ef4
Merge remote-tracking branch 'refs/remotes/upstream/master' into 2026…
Louie0806 Oct 31, 2026
f24dd45
Merge remote-tracking branch 'refs/remotes/upstream/master' into 2026…
Louie0806 Oct 31, 2026
595b984
Merge remote-tracking branch 'upstream/master' into 2026-10-30_drifte…
Louie0806 Oct 31, 2026
22c5596
docs(#4125): seed the two env names the lifecycle ledger guard reads …
Louie0806 Oct 31, 2026
be9e580
Merge remote-tracking branch 'upstream/master' into 2026-10-30_drifte…
Louie0806 Oct 31, 2026
985632c
Merge remote-tracking branch 'upstream/master' into 2026-10-30_drifte…
Louie0806 Oct 31, 2026
f65dd4e
Merge remote-tracking branch 'upstream/master' into 2026-10-30_drifte…
Louie0806 Oct 31, 2026
50aef1a
Merge remote-tracking branch 'upstream/master' into 2026-10-30_drifte…
Louie0806 Oct 31, 2026
4f7fb2f
Merge remote-tracking branch 'upstream/master' into 2026-10-30_drifte…
Louie0806 Oct 31, 2026
d5c7d26
test(#5175): pin the last-mile invariant — prose is cut-independent, …
Louie0806 Oct 31, 2026
76673c3
Merge remote-tracking branch 'upstream/master' into 2026-10-30_drifte…
Louie0806 Oct 31, 2026
0bd9127
refactor(#5175): drop the dead attested parameter from stripDriftPair…
Oct 31, 2026
a7e5211
test(#5175): make the verbatim-channel assertion a real tripwire
Louie0806 Oct 31, 2026
c811264
Merge remote-tracking branch 'upstream/master' into 2026-10-30_drifte…
Louie0806 Oct 31, 2026
e154f78
fix(ci): clear the three master-red gates — two unused exports + the …
Louie0806 Oct 31, 2026
db85e78
Merge the master-red gate fixes into the drift-leak branch
Louie0806 Oct 31, 2026
f5ddd36
fix(ci): clear the two remaining master-red test shards — windows npm…
Louie0806 Oct 31, 2026
1b0726e
Merge branch '2026-10-31_master-red-gates' into 2026-10-30_drifted-na…
Louie0806 Oct 31, 2026
4e0523e
fix(#4788): a discharged content-store proxy must not turn the next t…
Louie0806 Oct 31, 2026
0d6390a
merge: upstream/master into the drifted-name-leak lane
Louie0806 Oct 31, 2026
045ac89
Merge remote-tracking branch 'upstream/master' into 2026-10-30_drifte…
Louie0806 Oct 31, 2026
8635c28
chore: drop rows master already registers and a now-dead gate allowli…
Louie0806 Oct 31, 2026
0de20ef
Merge remote-tracking branch 'upstream/master' into 2026-10-30_drifte…
Louie0806 Oct 31, 2026
b51d688
Merge remote-tracking branch 'upstream/master' into 2026-10-30_drifte…
Louie0806 Oct 31, 2026
f85de2b
Merge remote-tracking branch 'upstream/master' into 2026-10-30_drifte…
Louie0806 Oct 31, 2026
691b14c
fix(#5345): restore the {need} placeholder and teach the i18n dead-ke…
Louie0806 Oct 31, 2026
8a3a964
Merge upstream/master (0caccf29e): adopt the upstream pack-editor i18…
Louie0806 Oct 31, 2026
906ccd5
Merge remote-tracking branch 'upstream/master' into 2026-10-30_drifte…
Louie0806 Oct 31, 2026
adc94d7
Merge remote-tracking branch 'upstream/master' into 2026-10-30_drifte…
Louie0806 Oct 31, 2026
da31a09
Merge remote-tracking branch 'upstream/master' into 2026-10-30_drifte…
Louie0806 Oct 31, 2026
1050231
Merge remote-tracking branch 'upstream/master' into 2026-10-30_drifte…
Louie0806 Oct 31, 2026
7d2b5e0
Merge remote-tracking branch 'upstream/master' into 2026-10-30_drifte…
Louie0806 Oct 31, 2026
885a5f5
Merge remote-tracking branch 'upstream/master' into 2026-10-30_drifte…
Louie0806 Oct 31, 2026
b1f78da
test(#5175): pin defect A on the anthropic wire, the lane with no tri…
Louie0806 Oct 31, 2026
2a9296c
test(#5175): pin defect A on the google wire, the third independent f…
Louie0806 Oct 31, 2026
eeb7eb4
test(#5175): pin the cross-cut invariant per chat lane
Louie0806 Oct 31, 2026
e5e94de
test(#5175): pin the cross-cut invariant on the responses wire too
Louie0806 Oct 31, 2026
307b509
test(#5175): pin defect B's retraction limit on all four wires, not j…
Louie0806 Oct 31, 2026
1118f35
docs(#5175): drop the two stale DRIFT_EMPTY_MISMATCH references
Louie0806 Oct 31, 2026
6403897
docs(#5175): correct the releaseProse note — it is orphan-close clean…
Louie0806 Oct 31, 2026
a7a3657
test(#5175): cover the non-streaming JSON seam, the one lane with no …
Louie0806 Oct 31, 2026
e0e9c57
fix(#5175): strip render-tag residue on the native-compaction JSON eg…
Louie0806 Nov 1, 2026
d8629e9
Merge remote-tracking branch 'upstream/master' into 2026-10-30_drifte…
Louie0806 Nov 1, 2026
aa159c2
docs(#5175): the stripOpenaiChatText header promised a channel the co…
Louie0806 Nov 1, 2026
404aced
docs(#5175): record why the streaming filter runs three drift rules, …
Louie0806 Nov 1, 2026
b007887
docs(#5175): record why no span-local rule narrows the streaming resi…
Louie0806 Nov 1, 2026
f97fdcc
test(#5175): cover the four non-streaming JSON rewriters, the fifth seam
Louie0806 Nov 1, 2026
c70fcaf
test(#5175): drop the dead streamThrough harness left by the real-pip…
Nov 1, 2026
8d5fb80
fix(#5175): draft-dump gate wording covers the envelope form (log + c…
Nov 1, 2026
443e3b4
Merge upstream/master (c78ecb4b5): adopt #5408 frozen-envelope recove…
Louie0806 Nov 1, 2026
a5c07c2
Merge upstream/master (fad9805bc): adopt #5506 metadata-fold gate + #…
Louie0806 Nov 2, 2026
1124d97
Merge upstream master (3a2d051ec): adopt #5520 gate-local evidence ch…
Louie0806 Nov 2, 2026
76d64a4
Merge upstream/master (d5a84f165): adopt #5522 anthropic follow-side …
Louie0806 Nov 2, 2026
abea771
Merge upstream/master (00006b553): adopt #5531/#5535 turn-integrity +…
Louie0806 Nov 2, 2026
f68e894
Merge upstream/master (7f6ad2237): adopt #5469 full-resend watermark …
Louie0806 Nov 2, 2026
18c099f
Merge upstream/master (daa082ead): adopt release v0.1.212 + wm-notice…
Louie0806 Nov 2, 2026
09f26d0
Merge upstream/master (db73897a4): adopt #5518 inclusive-selfcheck re…
Louie0806 Nov 2, 2026
ef3c88d
Merge upstream/master (dec393f43): adopt #5496 unsigned-thinking repl…
Louie0806 Nov 2, 2026
33a212b
Merge upstream/master (d244ffff2): adopt #5556 false-ad copy sweep + …
Louie0806 Nov 3, 2026
cac717d
Merge upstream/master (e10c7586b): adopt #5612 Qoder model-name norma…
Louie0806 Nov 3, 2026
b9c3d19
Merge upstream/master (6a06abf2c): adopt #5559 kernel false-ad batch …
Louie0806 Nov 3, 2026
8f38748
Merge upstream/master (c29b118d1): adopt the unified notice surface (…
Louie0806 Nov 4, 2026
7961707
Merge upstream/master (5dee4850b): adopt the storage forensics, repet…
Louie0806 Nov 4, 2026
8279be4
Merge upstream/master (1b7a661a2): adopt the pi inline-posture defaul…
Louie0806 Nov 4, 2026
778eef0
Merge upstream/master (23a826d37): adopt the ref-recoverable media fo…
Louie0806 Nov 4, 2026
247e482
Merge upstream/master (c9ba48566): adopt the dsh profile refresh veri…
Louie0806 Nov 4, 2026
3c6dfbc
Merge upstream/master (0aace2f20): adopt #5683 unprompted-compress ga…
Louie0806 Nov 5, 2026
e3a5972
Merge upstream/master (6ddade163): adopt #5698 T1 harvest-stall escal…
Louie0806 Nov 5, 2026
ac4d1ae
Merge upstream/master (9a2d51d65): adopt #5718 sidecar-residual reali…
Louie0806 Nov 5, 2026
1a1c975
Merge upstream/master (bfabcd1ca): adopt #5539 FK content indexes and…
Louie0806 Nov 5, 2026
e0a1e4b
Merge upstream/master (84fa9af5f): adopt #5758 kernel tool-pair id wi…
Louie0806 Nov 6, 2026
d777320
Merge upstream/master (be611a856): adopt dsh injection-slot exclusion…
Louie0806 Nov 6, 2026
7be28fc
Merge upstream/master (be611a856 -> c3dfbe6b2): adopt #5814 authored-…
Louie0806 Nov 6, 2026
65665ab
Merge upstream/master (c3dfbe6b2 -> c2797c33b): adopt #5789 tier-dist…
Louie0806 Nov 7, 2026
c797683
Merge upstream/master (d640d0d06): adopt #4900 fork-thinking-gate, #5…
Louie0806 Nov 7, 2026
9f96c14
Merge upstream/master (ce8f92ef3): adopt fastpath-v6 identity, image-…
Louie0806 Nov 7, 2026
42cee0f
Merge upstream/master (bebc239f2): follow the #5854 revert of the fas…
Louie0806 Nov 7, 2026
41f71fe
Merge upstream/master (21c950ef0): adopt the #5843 batch + the #5719 …
Louie0806 Nov 7, 2026
d3e89c5
Merge upstream/master (df0a4023b): adopt #5842 identity-channel wirin…
Louie0806 Nov 7, 2026
1e1016b
Merge upstream/master (5af5f9fed): adopt #5756 lazy historian sweep
Louie0806 Nov 7, 2026
e43ff6a
Merge origin/ci-fixes: converge post-#5860 golden realignment (#4599 …
Nov 7, 2026
2cfb835
Merge upstream/master (2bda6b336): adopt #5882 estimate-hold backstop…
Louie0806 Nov 7, 2026
3fd455d
Merge upstream/master (6945a354d): adopt #5744 incremental refs ledge…
Louie0806 Nov 7, 2026
70b8092
Merge upstream/master (cda6e7350): adopt #5895 P2 review batch; relay…
Louie0806 Nov 7, 2026
b08915b
fix: correct stale schema-plane comment in issue4666 dedup test
bot Nov 7, 2026
5d5e795
Merge upstream/master (133f3525c): adopt #5902 P2 review fixes and th…
Louie0806 Nov 7, 2026
4e16b45
Merge upstream/master (c168d9be0): adopt the window-fallback docs fix
Louie0806 Nov 8, 2026
5a8ffa7
Merge upstream/master (6df7ae15e): adopt the #5898 review batch and t…
Louie0806 Nov 8, 2026
f158fd7
Merge upstream/master (354e21e23): adopt the dsh lane small-fixes bat…
Louie0806 Nov 8, 2026
ca477cb
Merge upstream/master (48ee6a758): adopt the docs centralization and …
Louie0806 Nov 8, 2026
99dbe9c
ci: retrigger — windows shard 4 flaked on the inherited event-loop-wa…
Louie0806 Nov 8, 2026
84bc331
ci: retrigger — two different inherited Windows flakes in consecutive…
Louie0806 Nov 8, 2026
62ed8af
Merge upstream/master (3ac3e95c0): adopt the docs hub, the slimmed AG…
Louie0806 Nov 8, 2026
f61a6d1
Merge upstream/master (fe963d7f5): adopt the measured outbound-body e…
Louie0806 Nov 8, 2026
a2816be
Merge upstream/master (f1a4af4ee): adopt first-byte replay, log-mask …
Louie0806 Nov 8, 2026
2d1752e
Merge upstream/master (82e2d53c6): adopt shredded-merge dead-end reco…
Louie0806 Nov 8, 2026
0b0e35c
Merge upstream/master (848f59b99): adopt the CI test-signal batch (gu…
Louie0806 Nov 8, 2026
267cc77
Merge upstream/master (33d495180): adopt #5963 context analysis, #594…
Louie0806 Nov 9, 2026
b76e8dc
Merge upstream/master (7d18b7ab9): adopt #5659 pi.commands, #5970 ret…
Louie0806 Nov 9, 2026
2fee6ab
Merge upstream/master (1f311dd8d): adopt #5986 degenerate whitespace …
Louie0806 Nov 9, 2026
15690d0
test(ci): register issue5955 wedged-takeover suite in LIVE_FILES (#12…
Nov 9, 2026
c7da038
Merge upstream/master (39fc2eeff): adopt #5996 empty-slot window refu…
Louie0806 Nov 9, 2026
421da3c
Merge upstream/master (5c3c2688f): adopt #6001 root README locale tra…
Louie0806 Nov 9, 2026
242b192
Merge upstream/master (406193b20): adopt #6004 Japanese README transl…
Louie0806 Nov 9, 2026
244f5e8
fix(#5179): strip the acp_tokens count-shape render-tag emission (who…
Nov 9, 2026
c6eaf1f
fix(#5179): draft-dump lane log/comment wording covers the envelope form
Nov 9, 2026
e374969
test(#5179): pin the deliberate acp-prefix width of the count-shape rule
Nov 9, 2026
ef41839
Merge upstream/master (63a40600e): adopt #6015 iot-thinking incompati…
Louie0806 Nov 9, 2026
172a7ca
Merge remote-tracking branch 'refs/remotes/origin/master' into wt-pr5…
Nov 11, 2026
6e890f0
Merge upstream master (873715d40) into drifted-name-leak lane
Louie0806 Nov 12, 2026
4987935
Merge upstream master (0d94a8a24) into drifted-name-leak lane
Louie0806 Nov 12, 2026
e378249
Merge upstream master (259cd8767) into drifted-name-leak lane
Louie0806 Nov 12, 2026
194b407
fix: promptPack TYPE column — chat is shipped, not builtin
Nov 12, 2026
b52af85
docs: sync the promptPack seed with the shipped-chat TYPE column
Louie0806 Nov 12, 2026
dc09f48
merge: sync master dd0ef22ae (japanese docs lane) into drifted-name-leak
Nov 13, 2026
7ef977a
merge: sync master 243709bef (codex compaction / image budget lane) i…
Nov 13, 2026
f4bcbf0
merge: sync master fcc2e8484 (knobs / env-only docs lane) into drifte…
Nov 13, 2026
96bbb41
merge: sync master 99c22d283 (remote announcements lane) into drifted…
Nov 13, 2026
c3a445b
merge: sync master a00797468 (pure-SQLite default lane) into drifted-…
Louie0806 Nov 13, 2026
9bc1671
test(#6480): pin the pure-sqlite default in the notice-registry suite
Louie0806 Nov 13, 2026
86ed00a
test(#6480): close the dual-write store before deleting its temp dir
Louie0806 Nov 13, 2026
aeebfad
Merge commit 'e1f31ad9d5b47500362699a9867819b861c7de96' into HEAD
Louie0806 Nov 13, 2026
41eca24
Merge commit '2153152f0' into HEAD
Louie0806 Nov 14, 2026
5e6f409
Merge remote-tracking branch 'origin/ci-fixes' into wt-pr5178-cifx
Nov 14, 2026
a9b4407
Merge commit 'e5e1647ba0f92dfc36a96220f3e5c0d454218e2f' into HEAD
Louie0806 Nov 14, 2026
20f47d0
Merge commit 'e5e1647ba0f92dfc36a96220f3e5c0d454218e2f' into HEAD
Louie0806 Nov 14, 2026
524528e
Merge remote-tracking branch 'louiefork/2026-10-30_drifted-name-leak'…
Nov 14, 2026
82e19ce
Merge remote-tracking branch 'louiefork/2026-10-30_drifted-name-leak'…
Nov 14, 2026
0923ee0
Merge commit '9495c764d' into HEAD
Louie0806 Nov 14, 2026
f57971b
Merge commit '3858b6956' into main lane head
Louie0806 Nov 14, 2026
c3f811a
Merge remote-tracking branch 'ranxianglei/master' into 2026-10-30_dri…
Louie0806 Nov 14, 2026
360ff57
Merge remote-tracking branch 'ranxianglei/master' into 2026-10-30_dri…
Louie0806 Nov 14, 2026
ea17b6f
Merge remote-tracking branch 'ranxianglei/master' into 2026-10-30_dri…
Louie0806 Nov 14, 2026
edf0b0c
merge: sync master faf0af61a (CI hold on [ework:ci-held] pushes)
Louie0806 Nov 15, 2026
85a37f9
merge: sync master 1ee510c5 (persist pre-forward dedup, kernel blocke…
Louie0806 Nov 15, 2026
8f7b162
merge: sync master e7a42bab (bili-gate CLI + containerized gate)
Louie0806 Nov 15, 2026
6f4ce13
merge: sync master 26d9bcc6 (v0.1.215 release + persist/config/gate f…
Louie0806 Nov 15, 2026
be01570
merge: sync master 3e42aae8 (gate P/R lane concurrency)
Louie0806 Nov 15, 2026
31f355c
merge: sync master 912aa672 (batch10: dsh-native registration lifetim…
Louie0806 Nov 15, 2026
095c343
merge: sync master 8c9bff202 (batch11: pi structured delegate notific…
Louie0806 Nov 16, 2026
53e20c3
merge: sync master d1ff6eaab (batch12: declared auxiliary purpose, si…
Louie0806 Nov 16, 2026
07ceb25
merge: sync master 4a24c2635 (batch13: shared responses system-sectio…
Louie0806 Nov 16, 2026
fc9a73e
merge: sync master 301e1a545 (nudge-debug pi lane + arch map row)
Louie0806 Nov 16, 2026
83af78a
merge: sync master 6a641378 (schedule-independent #2929 probe, releas…
Louie0806 Nov 17, 2026
5e9500a
merge: sync master 6b07dff18 (batch afloat16 + pi purpose declaration)
Louie0806 Nov 18, 2026
2c4c43d
merge: sync master 0e475ceb4 (afloat16-2026-11-18-b2)
Louie0806 Nov 18, 2026
2b5377d
merge: sync master 548e39602 (p1-batch + wire-client sidecars)
Louie0806 Nov 18, 2026
0e4774a
merge: sync master a446a3c1c (batch11-wave11)
Louie0806 Nov 18, 2026
f257207
Merge master 04ecbb42d into 2026-10-30_drifted-name-leak
Louie0806 Nov 19, 2026
7c98222
Merge master 1e357bf2d into 2026-10-30_drifted-name-leak
Louie0806 Nov 20, 2026
3936456
Merge master f7621b130 into 2026-10-30_drifted-name-leak
Nov 20, 2026
2c91c02
Merge master b10c1a0d4 into 2026-10-30_drifted-name-leak
Louie0806 Nov 20, 2026
02e9b6a
Merge master e691e6e3c into 2026-10-30_drifted-name-leak
Louie0806 Nov 21, 2026
cf5c918
Merge master ba2e81982 into 2026-10-30_drifted-name-leak
Louie0806 Nov 21, 2026
0a6ccf2
Merge master 98fa9575f into 2026-10-30_drifted-name-leak
Louie0806 Nov 21, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/configuration.ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@
| `compress.maxSummaryLength` | number | kernel 20000 | — | 1つの生成サマリーに対する文字数のハード上限。これを超える返信は全体として拒否される(切り詰めもリトライもされない)。外部サマライザーにはこの正確な上限が事前に通知される(#3635)。0 = 無制限。 |
| `compress.minSummaryLength` | number | kernel 50 | — | 生成サマリーの文字数下限:単一範囲はこれに単独で達する必要がある。複数範囲のバッチは、その結合サマリーがこれに達した場合に合格する(#5894)。0 = 無効。外部サマライザーはサマリーごとの下限に引き続き従う(#3635)。 |
| `compress.reconcile` | "off" \| "warn" \| "repair" | "repair" | BILI_FOLD_RECONCILE | クライアントがターン間で履歴を巻き戻しまたは書き換えた場合、フォールド状態を調整する。 |
| `compress.promptPack` | string (builtin: "default", "lean") | builtin "default" | — | 圧縮プロンプトパック。解決順序はプロジェクトパック → ユーザーパック → ビルトイン。`acknowledgePromptsRisk` によるゲートはされない。 |
| `compress.promptPack` | string (builtin: "default", "lean"; shipped: "chat") | builtin "default" | — | 圧縮プロンプトパック。解決順序はプロジェクトパック → ユーザーパック → 同梱パック(chat)→ ビルトイン。`acknowledgePromptsRisk` によるゲートはされない。 |
| `compress.tiers` | boolean | true | — | T1→T3 の階層型蒸留により、フォールドコストを世代間で分散する。 |
| `compress.protectedTools` | string[] | none | — | 全履歴に対するハード除外:リストされたツールの結果は決してフォールドされない。パスパターン(`skill/<name>`)は名前でスキルを選択する(#1947)。 |
| `compress.protectedLatestTools` | string[] | none | — | 最新の結果が古いものを上書きする累積スナップショット型ツールの最新インスタンスのみを保護する(例:todo リスト)。パスパターンはスキルごとに最新インスタンスを保持する(`skill/*`, #1947)。 |
Expand Down
2 changes: 1 addition & 1 deletion docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ This index is generated from `website/config-reference/*.yaml` — edit the seed
| `compress.maxSummaryLength` | number | kernel 20000 | — | Hard character cap on ONE generated summary; longer replies are rejected whole (no truncation, no retry). External summarizers are told this exact cap up front (#3635). 0 = unbounded. |
| `compress.minSummaryLength` | number | kernel 50 | — | Character floor for generated summaries: a single range must meet it alone; a multi-range batch passes when its combined summaries reach it (#5894). 0 = disabled. External summarizers remain held to the per-summary floor (#3635). |
| `compress.reconcile` | "off" \| "warn" \| "repair" | "repair" | BILI_FOLD_RECONCILE | Reconcile folded state when the client rewinds or rewrites history between turns. |
| `compress.promptPack` | string (builtin: "default", "lean") | builtin "default" | — | Compression prompt pack, resolved project pack → user pack → builtin; not gated by acknowledgePromptsRisk. |
| `compress.promptPack` | string (builtin: "default", "lean"; shipped: "chat") | builtin "default" | — | Compression prompt pack, resolved project pack → user pack → shipped pack → builtin; not gated by acknowledgePromptsRisk. |
| `compress.tiers` | boolean | true | — | Tiered T1→T3 distillation spreads folding cost across generations. |
| `compress.protectedTools` | string[] | none | — | Hard exclusion across all history: results of listed tools never fold. Path patterns (skill/<name>) select skills by name (#1947). |
| `compress.protectedLatestTools` | string[] | none | — | Protects only the LATEST instance of cumulative-snapshot tools whose newest result supersedes older ones (e.g. todo lists). Path patterns keep the latest instance per skill (skill/*, #1947). |
Expand Down
2 changes: 1 addition & 1 deletion docs/configuration.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@
| `compress.maxSummaryLength` | number | kernel 20000 | — | 单条生成摘要的硬字符上限;超长的回复被整段拒绝(不截断、不重试)。外部摘要模型会被提前告知这个确切上限(#3635)。0 = 不限制。 |
| `compress.minSummaryLength` | number | kernel 50 | — | 生成摘要的字符下限:单段压缩按自身判定;批量压缩按合计判定——一段偷懒不再拖垮整批(#5894)。0 = 禁用。外部摘要模型仍受逐段下限约束(#3635)。 |
| `compress.reconcile` | "off" \| "warn" \| "repair" | "repair" | BILI_FOLD_RECONCILE | 客户端在轮次之间回退或改写历史时校准已折叠状态。 |
| `compress.promptPack` | string (builtin: "default", "lean") | builtin "default" | — | 压缩提示词包,按 项目包 → 用户包 → 内置 解析;不受 acknowledgePromptsRisk 门控。 |
| `compress.promptPack` | string (builtin: "default", "lean"; shipped: "chat") | builtin "default" | — | 压缩提示词包,按 项目包 → 用户包 → 随包附带(chat)→ 内置 解析;不受 acknowledgePromptsRisk 门控。 |
| `compress.tiers` | boolean | true | — | T1→T3 分级蒸馏把折叠成本摊到多代。 |
| `compress.protectedTools` | string[] | none | — | 全历史硬排除:列出工具的结果永不折叠。路径模式(skill/<name>)可按名指定 skill(#1947)。 |
| `compress.protectedLatestTools` | string[] | none | — | 只保护累积快照类工具「最新一次」实例(新结果覆盖旧结果的工具,如 todo 列表)。路径模式按 skill 分组各保最新(skill/*,#1947)。 |
Expand Down
35 changes: 35 additions & 0 deletions src/degenerate-turn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,44 @@ export function degenerateTurnWarning(o: TurnOutcome): string | null {
// different defect class — #1755/#2190 — and stay out of scope), case-
// insensitive (#1731 case drift), trailing whitespace allowed.
const DRAFT_CLOSE_TAIL = /\x3c\/(?:summary|analysis)\x3e\s*$/i;
// #5175: the envelope form. When the model writes the WHOLE draft as prose the
// close above is not at the end of the text — `</analysis>` is followed by the
// `<summary>` BODY, tens of thousands of characters of it, so the `$` anchor can
// never match and the turn slipped through as an ordinary answer. The envelope
// signature is exactly the ordering the client's compaction contract describes
// ("an <analysis> block followed by a <summary> block"): an analysis close
// IMMEDIATELY followed by a summary open, whitespace between them. Corpus census
// (8225 fields, 462 sessions): 25 fields carry it, 5 carry the full open…close
// envelope, and only ONE — the already-handled tail form — ends with it. Nothing
// else in the corpus produces that adjacency, so it cannot false-positive on
// prose that merely mentions the words.
const DRAFT_ENVELOPE = /\x3c\/analysis\x3e\s*\x3csummary\x3e/i;
const SUMMARY_CLOSE = /\x3c\/summary\x3e/i;
export function endsWithDraftClose(text: string): boolean {
return text.length > 0 && DRAFT_CLOSE_TAIL.test(text);
}
/** #5175: the draft-envelope shape — a handoff/compression draft written as
* prose in either of its two observable forms: the closing tag at the very end
* (#2303), or the analysis→summary envelope (#5175). Both mean the model
* narrated the action instead of issuing it, so both are non-converged.
*
* The envelope counts only while the draft is UNFINISHED. A complete
* `</analysis><summary>…</summary>` followed by substantive prose delivered
* BOTH the draft and an answer — the turn converged, and re-issuing it appends
* a duplicate answer on the real chat pipe (measured: pristine master keeps a
* single answer, the unconditional envelope rule produced answer + retry
* answer). The reported dumps are always open-ended — the model stops inside
* the summary body (#5175) or right at the analysis close (#2303) — so recall
* is unchanged: the only hits this gives up are complete drafts that kept
* writing, which are exactly the false positives. */
export function isDraftDump(text: string): boolean {
if (text.length === 0) return false;
if (DRAFT_CLOSE_TAIL.test(text)) return true;
const env = DRAFT_ENVELOPE.exec(text);
if (env === null) return false;
// Still inside the draft: the summary body is truncated mid-flight.
return !SUMMARY_CLOSE.test(text.slice(env.index + env[0].length));
}

// #3905: the announcement-tail shape. Unlike #2303 there is no draft tag: the
// ENTIRE visible output of the turn is a short promise of the next action
Expand Down
15 changes: 8 additions & 7 deletions src/loop/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ import { isStrictReasoningEcho, modelIdOf, normalizeStrictEchoBody } from "../st
import { log as loggerLog } from "../logger.js";
import { promptInputTotal, type WireProtocol } from "../util.js";
import { DEGENERATE_RETRY_NUDGE } from "../degenerate-retry.js";
import { endsWithAnnouncement, endsWithDraftClose, lastUserSummaryInstruction, requestExpectsProseSummary } from "../degenerate-turn.js";
import { endsWithAnnouncement, isDraftDump, lastUserSummaryInstruction, requestExpectsProseSummary } from "../degenerate-turn.js";
import { safePrefix, safeSuffix, scrubLoneSurrogateEscapesOnJson } from "../text-safe.js";

export const MAX_LOOP_ROUNDS = 10;
Expand Down Expand Up @@ -1297,14 +1297,15 @@ export async function* runCompressLoop(
const stalledTail: "draft" | "announce" | null =
assistantText.length === 0 || calls.length > 0
? null
: endsWithDraftClose(assistantText)
: isDraftDump(assistantText)
? "draft"
: endsWithAnnouncement(assistantText)
? "announce"
: null;
// #2303: a terminal turn that DID deliver visible prose but ends with a
// compression-draft closing tag (summary/analysis close forms) and no
// tool call — the model wrote a handoff/compression draft in prose
// #2303: a terminal turn that DID deliver visible prose but carries a
// compression-draft dump (tail close form, or the analysis-to-summary
// envelope mid-text, #5175) and no tool call — the model wrote a
// handoff/compression draft in prose
// instead of issuing the action it described, most often after the
// upstream cut the final tool call out of the step (149 silent stops /
// 70 sessions, DSH native). Same non-convergence as the zero-visible
Expand All @@ -1327,7 +1328,7 @@ export async function* runCompressLoop(
!ctx.textProtocol &&
assistantText.length > 0 &&
calls.length === 0 &&
(stalledTail === "draft" || stalledTail === "announce") &&
stalledTail !== null &&
// #2612: the client's own compaction request instructs the
// model to answer with a plain-text summary block and no
// tool call — that compliant reply is a draft tail by
Expand All @@ -1341,7 +1342,7 @@ export async function* runCompressLoop(
ctx.log(`[acp-loop] round ${round}: terminal turn is a bare announcement (ends mid-promise, no tool call); retrying once with continuation nudge (#3905)`);
loggerLog("warn", `[acp-loop] announcement-tail auto-retry round ${round} (session ${ctx.session.id})`);
} else {
ctx.log(`[acp-loop] round ${round}: terminal turn ends with a compression-draft closing tag and no tool call; retrying once with continuation nudge (#2303)`);
ctx.log(`[acp-loop] round ${round}: terminal turn carries a compression-draft dump (tail or mid-text envelope) and no tool call; retrying once with continuation nudge (#2303)`);
loggerLog("warn", `[acp-loop] draft-tail auto-retry round ${round} (session ${ctx.session.id})`);
}
const nudge: CoreMessage = {
Expand Down
Loading
Loading