From a889d9882dee213e8ba8b03ef62fbd4e0a90e2a0 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 8 Oct 2026 01:35:57 +0000 Subject: [PATCH 1/4] release v0.1.188 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0528f06606..b693d58f6e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "billion-context", - "version": "0.1.187", + "version": "0.1.188", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "billion-context", - "version": "0.1.187", + "version": "0.1.188", "license": "MIT", "dependencies": { "zod": "4.1.8" diff --git a/package.json b/package.json index a73efaad14..cfce96936e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "billion-context", - "version": "0.1.187", + "version": "0.1.188", "description": "A context-compression plugin — small context windows (a 100K context is enough), 5x fewer tokens, month-long single sessions (billions of tokens), and compression quality — for all agents: pi, OpenCode, Codex, Claude Code, and more. billion-context is all you need.", "type": "module", "main": "dist/index.js", From 840a6c09f651a9fff376a6b40c4b98afa9c56989 Mon Sep 17 00:00:00 2001 From: awork Date: Thu, 8 Oct 2026 10:35:56 +0800 Subject: [PATCH 2/4] fix(#2377): address v0.1.188 release-review findings Landed directly on the release branch per owner direction (#2377). Each item is a small self-contained fix from the pre-release deep review; none touches wire shape, config schema, persistence format/version, or kernel/. - lane-credentials: mask the upstream URL in the resolve-miss warn via maskUrlForLog() -- a non-public relay hostname was leaking into bili.log (the logger sink only scrubs IPs + secrets, not URL hostnames); same #255 idiom every other server.ts log site already uses. - log-mask: add the Google AIza API-key shape to redactSecretsInText free-text rules (the Header form was already covered; the free-text sink was not). - agent/pi: reportSessionName re-arms its dedup cache on any non-OK POST (was network-error-only), so a rename landing before the first model request (HTTP 404) retries instead of being silently dropped. - .claude-plugin/{plugin,marketplace}.json: bump version 0.1.186 -> 0.1.188 to match package.json (was two releases behind). - cli: drop the extra leading space on the 'bili plugin list' help line. --- .claude-plugin/marketplace.json | 2 +- .claude-plugin/plugin.json | 2 +- src/agent/pi.ts | 2 ++ src/cli.ts | 2 +- src/lane-credentials.ts | 3 ++- src/log-mask.ts | 1 + 6 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json index 65274f2439..c0f7d6d88c 100644 --- a/.claude-plugin/marketplace.json +++ b/.claude-plugin/marketplace.json @@ -12,7 +12,7 @@ "name": "billion-context", "source": "./", "description": "Context-compression plugin for Claude Code · month-long single sessions (billions of tokens) · high compression quality even in small context windows (100K is enough) · 5× fewer tokens", - "version": "0.1.186", + "version": "0.1.188", "author": { "name": "ranxianglei" }, diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json index 03829dcfec..53ab0bc046 100644 --- a/.claude-plugin/plugin.json +++ b/.claude-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "billion-context", - "version": "0.1.186", + "version": "0.1.188", "description": "Context-compression plugin for Claude Code · month-long single sessions (billions of tokens) · high compression quality even in small context windows (100K is enough) · 5× fewer tokens", "author": { "name": "ranxianglei" diff --git a/src/agent/pi.ts b/src/agent/pi.ts index 27424ae9f2..fb26db2031 100644 --- a/src/agent/pi.ts +++ b/src/agent/pi.ts @@ -267,6 +267,8 @@ function reportSessionName(ctx: Ctx | undefined, name: string): void { headers: { "content-type": "application/json" }, body: JSON.stringify({ conversationId: sid, name }), signal: AbortSignal.timeout(5000), + }).then((res) => { + if (!res.ok) lastReportedNames.delete(sid); }).catch(() => { lastReportedNames.delete(sid); }); diff --git a/src/cli.ts b/src/cli.ts index 18389f9405..dfb8bb458d 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -88,7 +88,7 @@ Usage: global install, dsh bundles refresh through dsh's channel, host-owned copies are pointed at their host's updater — never overwritten - bili plugin list show install status + installed (on-disk) version for every host + bili plugin list show install status + installed (on-disk) version for every host bili mcp run the bili MCP server standalone (stdio) bili plugin-register pre-bind a conversation to the plugin mode (--origin URL, --agent name) diff --git a/src/lane-credentials.ts b/src/lane-credentials.ts index 6658bb94c9..81304231ef 100644 --- a/src/lane-credentials.ts +++ b/src/lane-credentials.ts @@ -1,5 +1,6 @@ import { findRoute, type ProxyOptions } from "./config.js"; import { SummaryCredentialStore } from "./external-summary-credentials.js"; +import { maskUrlForLog } from "./log-mask.js"; /** * #2336 lane credential override (forward path). `providers[URL].apiKeyEnv` @@ -47,7 +48,7 @@ export function laneCredential( const fail = (reason: string): undefined => { if (!warnedLaneCredentials.has(signature)) { warnedLaneCredentials.add(signature); - warn(`[lane-credential] ${reference} for ${upstreamUrl ?? "the lane"} ${reason} — keeping the client's own headers (#2336)`); + warn(`[lane-credential] ${reference} for ${upstreamUrl ? maskUrlForLog(upstreamUrl) : "the lane"} ${reason} — keeping the client's own headers (#2336)`); } return undefined; }; diff --git a/src/log-mask.ts b/src/log-mask.ts index 792c88e0d2..4f9e5039ac 100644 --- a/src/log-mask.ts +++ b/src/log-mask.ts @@ -209,6 +209,7 @@ export function redactSecretsInText(text: string): string { return text .replace(/\b(bearer|basic)\s+([A-Za-z0-9._~+\/=-]{8,})/gi, (_m, scheme: string, tok: string) => `${scheme} `) .replace(/(?") + .replace(/(?") .replace(/eyJ[A-Za-z0-9_-]{8,}\.[A-Za-z0-9_-]{4,}\.[A-Za-z0-9_-]{4,}/g, "") .replace(/(\b(?:api[_-]?key|access[_-]?token|auth(?:orization)?|secret|passwd|password|token)\b\s*[:=]\s*)(["']?)([A-Za-z0-9._~+\/=-]{8,})\2/gi, (_m, pre: string, q: string, val: string) => `${pre}${q}${q}`); } From 9b34aa2b512576a2a33fa5c42f418a08d3b4074c Mon Sep 17 00:00:00 2001 From: ework-agent Date: Thu, 8 Oct 2026 12:38:01 +0800 Subject: [PATCH 3/4] fix(#2377): replace the expanded one-call skeleton with a static hint MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - kernel: drop oneCallPayload/oneCallTail; ONE_CALL_HINT constant — the reminder never grows with the range count - acp_status: ranges table only — a query surface carries no compress prompting - post-compress receipt: static one-call line instead of the skeleton - gentle/emergency nudges keep the one-call batch hint (lean + default) --- kernel/src/index.ts | 2 +- kernel/src/nudge-text.ts | 64 ++++++++------------------- kernel/tests/nudge-text.test.ts | 63 ++++++++++++++++----------- src/acp-status.ts | 3 +- src/stream.ts | 4 +- tests/one-call-payload.test.ts | 76 ++++++++++++++++++++------------- 6 files changed, 106 insertions(+), 106 deletions(-) diff --git a/kernel/src/index.ts b/kernel/src/index.ts index cd379e294a..bad1e6a856 100644 --- a/kernel/src/index.ts +++ b/kernel/src/index.ts @@ -53,7 +53,7 @@ export { countMessageTokens, } from "./tokenize.js"; export type { TokenCountFn } from "./tokenize.js"; -export { renderNudgeText, formatRanges, oneCallPayload, oneCallTail } from "./nudge-text.js"; +export { renderNudgeText, formatRanges, ONE_CALL_HINT } from "./nudge-text.js"; export type { NudgeVoice, RenderedNudge, diff --git a/kernel/src/nudge-text.ts b/kernel/src/nudge-text.ts index 2b97507bd9..d07548e74e 100644 --- a/kernel/src/nudge-text.ts +++ b/kernel/src/nudge-text.ts @@ -229,51 +229,21 @@ function compact(parts: string[]): string[] { return parts; } -/** #2302: serialize ranges as a ready-to-fill line-form skeleton — the - * compress tool's preferred content shape. ONE string carries the whole - * batch: one block per range, first line the refs (en dash, optional - * topic slot), remaining lines the model's summary. No JSON shells, no - * escaping. Ranges beyond maxEntries collapse into a trailing same-string - * note. Refs are ours; the wording is the model's. */ -export function oneCallPayload( - ranges: readonly CompressibleRange[], - maxEntries = 16, -): string { - const shown = ranges.slice(0, maxEntries); - const blocks = shown.map( - (r) => - `${r.startRef}–${r.endRef} \n`, - ); - const more = ranges.length - shown.length; - const tailMore = - more > 0 - ? `\n\n(+${more} more range(s) — continue the SAME string with further blocks, one per range: ${ranges - .slice(maxEntries) - .map((r) => `${r.startRef}–${r.endRef}`) - .join(", ")})` - : ""; - return blocks.join("\n\n") + tailMore; -} - -/** #2302 root-cause fix, as a nudge tail. The nudge used to hand the model - * a LIST of recommended ranges plus a batching hint — and the model - * digests the list in groups, one compress call per group. Each separate - * call resets the provider prefix cache from its fold point and re-bills - * the whole remaining history; one call carrying every range pays once - * (live incident: five single-range calls over 44s on a 555K-token - * session re-billed 1.38M tokens; one 9-range call on the same log paid - * once). Instructions about batching do not survive contact with the - * model — the arguments themselves now do. Empty when fewer than two - * ranges (nothing to batch). Keeps #1198 licensing: the gentle tip above - * stays conditional, and delete-don't-split semantics mean a model that - * still needs a range drops the block, never folds the call in halves. */ -export function oneCallTail( - ranges: readonly CompressibleRange[], -): string { - if (ranges.length < 2) return ""; - return `\n\nONE CALL, ONE STRING — copy, fill each summary, DELETE the blocks you still need (they reappear in later nudges); never split into several calls:\n${oneCallPayload(ranges)}`; -} - +/** #2302 root-cause fix, distilled to a STATIC reminder. The nudge used to + * hand the model a LIST of recommended ranges plus a batching hint — and the + * model digests the list in groups, one compress call per group. Each separate + * call resets the provider prefix cache from its fold point and re-bills the + * whole remaining history; one call carrying every range pays once (live + * incident: five single-range calls over 44s on a 555K-token session + * re-billed 1.38M tokens; one 9-range call on the same log paid once). + * Instructions about batching do not survive contact with the model — but + * the expanded ready-to-fill skeleton had its own failure mode (#2377 + * review): it grows linearly with the range count, reads like a mandatory + * to-do list (eroding the model's own judgment on WHAT to fold), and leaked + * onto query-only surfaces (acp_status). So the reminder is now ONE static + * line — never expanded, never range-aware, identical for every nudge. */ +export const ONE_CALL_HINT = + "ONE call, ONE string — fold every range you keep into a single compress call: content entries ({startId, endId, summary, topic?}) or one plain string holding one block per range ('m00150–m00220 topic' header line, then the summary). Ranges you still need can wait — they reappear in later nudges; never split the batch across separate calls."; export function renderNudgeText( decision: NudgeDecision, @@ -335,7 +305,8 @@ export function renderNudgeText( "", rangesStr, ...(blockMapStr ? ["", blockMapStr] : []), - oneCallTail(decision.compressibleRanges), + "", + ONE_CALL_HINT, ]).join("\n"), }; } @@ -354,7 +325,6 @@ export function renderNudgeText( ...(blockMapStr ? ["", blockMapStr] : []), "", `💡 If you compress, fold the ranges you keep in ONE call — pass multiple content entries (\`content: [{...}, {...}]\`) or ONE plain string holding every range, each block starting with its 'mNNNNN–mNNNNN topic' header line (most robust through lossy gateways). Ranges the task still needs can wait — they reappear in later nudges.`, - oneCallTail(decision.compressibleRanges), ]).join("\n"), }; } diff --git a/kernel/tests/nudge-text.test.ts b/kernel/tests/nudge-text.test.ts index 8397f75548..fc30f24053 100644 --- a/kernel/tests/nudge-text.test.ts +++ b/kernel/tests/nudge-text.test.ts @@ -381,50 +381,65 @@ test("no user-msg annotation when count is zero or absent", () => { ); }); -// #2302: the one-call skeleton (line form) rides both gentle and emergency -// nudges — the model gets ready-to-fill compress arguments, not a batch -// hint it will ignore. T2/T3 nudges fold block refs and never see it. -test("#2302: gentle nudge carries the one-call line-form skeleton", () => { +// #2302 as shipped in v0.1.188+: the one-call reminder is a STATIC line — +// never expanded per range, never range-aware. The expanded skeleton grew +// linearly with the range count, read like a mandatory to-do list, and leaked +// onto query-only surfaces (acp_status). T2/T3 nudges fold block refs and +// never see it. +test("#2302: gentle nudge carries the static one-call hint, no expanded skeleton", () => { const result = renderNudgeText(makeDecision({ contextUsage: 0.5 })); - assert.ok(result.text.includes("ONE CALL, ONE STRING"), "skeleton framing"); assert.ok( - result.text.includes("m00001–m00003 "), - "refs header from the recommended ranges", + result.text.includes("fold the ranges you keep in ONE call"), + "static one-call batch hint", ); assert.ok( - result.text.includes(""), - "summary slot left to the model", + !result.text.includes(""), + "no ready-to-fill skeleton", + ); + assert.ok( + !result.text.includes(""), + "no per-range skeleton headers", ); - // the old batch hint stays — the skeleton extends it, not replaces it - assert.ok(result.text.includes("fold the ranges you keep in ONE call")); }); -test("#2302: emergency nudge keeps the skeleton but stays unconditional (#1198)", () => { +test("#2302: emergency nudge carries the static hint, stays unconditional (#1198)", () => { const emergency = renderNudgeText( makeDecision({ contextUsage: 0.99, breakdown: { emergencyOverride: 1 } }), ); - assert.ok(emergency.text.includes("ONE CALL, ONE STRING"), "skeleton rides"); + assert.ok( + emergency.text.includes("ONE call, ONE string"), + "static hint rides emergency too", + ); assert.ok( !emergency.text.includes("If you compress"), "emergency stays unconditional", ); assert.ok( - emergency.text.includes("ONE CALL, ONE STRING"), - "skeleton framing has no conditional of its own (the emergency header carries the directive)", + !emergency.text.includes(""), + "no skeleton even in emergency", ); }); -test("#2302: tier-2/tier-3 nudges carry no message-ref skeleton (block refs)", () => { - const t2 = renderNudgeText( - makeDecision({ contextUsage: 0.5, tier: 2, tierTargetBlocks: [] }), +test("#2302: hint never grows with the range count", () => { + const few = renderNudgeText( + makeDecision({ contextUsage: 0.5, compressibleRanges: makeRanges(2) }), + ); + const many = renderNudgeText( + makeDecision({ contextUsage: 0.5, compressibleRanges: makeRanges(24) }), + ); + const count = (s: string) => (s.match(/ONE call, ONE string/g) ?? []).length; + assert.equal(count(few.text), 0, "gentle hint phrased conditionally"); + assert.equal(count(many.text), 0, "24 ranges — still no expanded skeleton"); + assert.ok( + many.text.length < few.text.length + 200 * 22, + "growth stays bounded by the ranges table, not a skeleton", ); - assert.ok(!t2.text.includes("ONE CALL, ONE STRING"), "T2 folds blocks"); - assert.ok(!t2.text.includes("")); }); -test("#2302: fewer than two ranges → no skeleton (nothing to batch)", () => { - const single = renderNudgeText( - makeDecision({ contextUsage: 0.5, compressibleRanges: makeRanges(1) }), +test("#2302: tier-2/tier-3 nudges carry no message-ref hint (block refs)", () => { + const t2 = renderNudgeText( + makeDecision({ contextUsage: 0.5, tier: 2, tierTargetBlocks: [] }), ); - assert.ok(!single.text.includes("ONE CALL, ONE STRING")); + assert.ok(!t2.text.includes("ONE call, ONE string"), "T2 folds blocks"); + assert.ok(!t2.text.includes("")); }); diff --git a/src/acp-status.ts b/src/acp-status.ts index b59357bfd7..7c6af1c614 100644 --- a/src/acp-status.ts +++ b/src/acp-status.ts @@ -11,7 +11,6 @@ import { conflictClientOf, conflictEventsOf, formatConflictSection } from "./con import { getBlindTunnelStats } from "./mitm.js"; import { getUnrecognizedPathStats } from "./server/observability.js"; import { ccrEnabled, ccrLoopConfig, contentStoreOf } from "./store.js"; -import { oneCallTail } from "acp-kernel"; import { coveredRefSpan } from "./decompress-shared.js"; import { preCompactionArchiveOf, statusInputBaseline, type Session } from "./session.js"; import { describeAdvisory, getAdvisoryState } from "./advisory.js"; @@ -78,7 +77,7 @@ export function handleAcpStatus(args: Record, ctx: AcpStatusCtx const protectedRanges = nudge.protectedRanges ?? []; if (ranges.length > 0 || protectedRanges.length > 0) { extra.push(""); - extra.push(formatRanges(ranges, protectedRanges) + oneCallTail(ranges)); + extra.push(formatRanges(ranges, protectedRanges)); } } } catch { diff --git a/src/stream.ts b/src/stream.ts index 045f15bb79..9d3c43b048 100644 --- a/src/stream.ts +++ b/src/stream.ts @@ -6,7 +6,7 @@ import { type Session, cacheBlockContent, markDirty, statusInputBaseline } from import { COMPRESS_TOOL_NAME, parseCompressInput, ABSORB_TOOL_NAME, type ParsedRange } from "./compress-tool.js"; import { effectiveAbsorbConfig, executeAbsorb, isProxyToolFor } from "./absorb.js"; import { executeSearchContextTarget, resolveDecompress } from "./decompress-shared.js"; -import { oneCallTail } from "acp-kernel"; +import { ONE_CALL_HINT } from "acp-kernel"; import { adoptContentStore, contentStoreOf, ccrEnabled, drainPendingRetrievals, executeRetrieve, retrieveToolName } from "./store.js"; import { IMAGE_FULL_TOOL_NAME, executeImageFull, imageCompressionEnabled } from "./image-compress.js"; import { imagePlaceholdersForSummary } from "./image-note.js"; @@ -404,7 +404,7 @@ function postCompressTail(ctx: RewriteCtx, cleanSuccess: boolean): string { const remaining = viableRanges(nudge.compressibleRanges) .filter((r) => minChars <= 0 || (r.chars ?? r.tokens * 4) >= minChars); if (remaining.length > 0) { - return `\n\nCurrent compressible ranges (use these refs exactly as listed):\n${formatRanges(remaining, [])}` + oneCallTail(remaining); + return `\n\nCurrent compressible ranges (use these refs exactly as listed):\n${formatRanges(remaining, [])}\n${ONE_CALL_HINT}`; } // A tier-distillation nudge means block-boundary compress calls (bN..bM) // are still actionable — a stop signal there would contradict the tier diff --git a/tests/one-call-payload.test.ts b/tests/one-call-payload.test.ts index a5133ee498..40b2fa7859 100644 --- a/tests/one-call-payload.test.ts +++ b/tests/one-call-payload.test.ts @@ -1,38 +1,61 @@ -// #2302: the one-call skeleton now lives in the kernel (nudge-text.ts) and -// rides every surface the model reads — renderNudgeText itself (all wire -// lanes inject its output), the post-compress receipt tail, and acp_status. -// These tests pin the kernel shape from the bili side, including a -// round-trip through the REAL compress parser: the refs we hand out must -// parse as a one-string batch once the model fills the bodies. +// #2302 as shipped in v0.1.188+: the one-call reminder is a STATIC line on +// every surface the model reads — renderNudgeText (all wire lanes), the +// post-compress receipt tail — and NOTHING on query-only surfaces +// (acp_status lists ranges, no compress prompting). The expanded skeleton +// grew linearly with the range count and read like a mandatory to-do list; +// these tests pin the static contract from the bili side, including a +// round-trip through the REAL compress parser: the plain-string form the +// hint describes must still parse as a one-string batch once the model +// writes it. import { test } from "node:test"; import assert from "node:assert/strict"; -import { oneCallPayload, oneCallTail, type CompressibleRange } from "acp-kernel"; +import { ONE_CALL_HINT, renderNudgeText } from "acp-kernel"; +import type { CompressibleRange, NudgeDecision } from "acp-kernel"; import { parseCompressInput } from "../src/compress-tool.ts"; function range(start: number, end: number): CompressibleRange { return { startRef: `m${String(start).padStart(5, "0")}`, endRef: `m${String(end).padStart(5, "0")}`, tokens: 1000 } as unknown as CompressibleRange; } -test("#2302: skeleton is line form — one string, one block per range", () => { - const payload = oneCallPayload([range(1, 42), range(50, 121)]); - assert.ok(!payload.includes("{"), "no JSON shells"); - assert.ok(payload.includes("m00001–m00042 "), "refs header line"); - assert.ok(payload.includes(""), "summary slot"); +function makeDecision(overrides: Partial = {}): NudgeDecision { + return { + shouldInject: true, + reason: "test", + compressibleRanges: [ + range(1, 42), + range(50, 121), + range(130, 201), + ], + contextUsage: 0.99, + tier: null, + breakdown: { emergencyOverride: 1 }, + ...overrides, + } as NudgeDecision; +} + +test("#2302: hint is static — no skeleton markers, fixed shape", () => { + assert.ok(ONE_CALL_HINT.includes("ONE call, ONE string"), "framing"); + assert.ok(!ONE_CALL_HINT.includes(""), "no skeleton header slot"); + assert.ok(!ONE_CALL_HINT.includes(" { - assert.equal(oneCallTail([range(1, 2)]), "", "nothing to batch"); - const tail = oneCallTail([range(1, 42), range(50, 121)]); - assert.ok(tail.includes("never split"), "delete-don't-split licensing"); - assert.ok(!tail.includes("If you compress"), "the tail carries no directive of its own — the nudge text around it does (#1198)"); +test("#2302: emergency nudge carries the hint; it never grows with range count", () => { + const few = renderNudgeText(makeDecision({ compressibleRanges: [range(1, 2)] })); + const many = renderNudgeText(makeDecision({ compressibleRanges: Array.from({ length: 24 }, (_, i) => range(i * 10 + 1, i * 10 + 9)) })); + for (const text of [few.text, many.text]) { + assert.ok(text.includes("ONE call, ONE string"), "hint rides"); + assert.ok(!text.includes(""), "no expanded skeleton"); + } + const occurrences = many.text.split("ONE call, ONE string").length - 1; + assert.equal(occurrences, 1, "hint appears exactly once regardless of range count"); }); -test("#2302: skeleton headers round-trip through the real compress parser", () => { - const payload = oneCallPayload([range(1, 42), range(50, 121)]); - // the model replaces the placeholder bodies with real summaries — - // keep the refs lines, swap in a long-enough summary - const filled = payload.replace(//g, "topic").replace(//g, "summary body long enough for the minimum length check"); - const parsed = parseCompressInput({ content: filled }); +test("#2302: the plain-string form the hint describes still round-trips through the real compress parser", () => { + // the model writes the line form itself — the hint only DESCRIBES it + const handWritten = + "m00001–m00042 topic one\nsummary body long enough for the minimum length check\n\nm00050–m00121 topic two\nanother summary body long enough for the minimum length check"; + const parsed = parseCompressInput({ content: handWritten }); assert.equal(parsed.ranges.length, 2, "one string → both ranges"); assert.equal(parsed.ranges[0]?.startRef, "m00001"); assert.equal(parsed.ranges[0]?.endRef, "m00042"); @@ -40,10 +63,3 @@ test("#2302: skeleton headers round-trip through the real compress parser", () = assert.equal(parsed.ranges[1]?.endRef, "m00121"); assert.ok(parsed.ranges.every((r) => (r.summary ?? "").includes("summary body long enough")), "line-form bodies become summaries"); }); - -test("#2302: more than maxEntries ranges collapse into a same-string note", () => { - const many = Array.from({ length: 18 }, (_, i) => range(i * 10 + 1, i * 10 + 9)); - const payload = oneCallPayload(many); - assert.equal((payload.match(//g) ?? []).length, 16, "16 headers shown as blocks"); - assert.ok(payload.includes("continue the SAME string"), "overflow note"); -}); From df2cbc3c36db458c4c2e0641c5c9c84d99830c6e Mon Sep 17 00:00:00 2001 From: ework-agent Date: Thu, 8 Oct 2026 12:41:33 +0800 Subject: [PATCH 4/4] chore(#2377): bump kernel to 0.0.107 (kernel version discipline) kernel/src changed (one-call skeleton -> static hint) so the kernel version must move so the change can ship as an acp-kernel release. --- kernel/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/package.json b/kernel/package.json index b5ec719ae3..f17311f90e 100644 --- a/kernel/package.json +++ b/kernel/package.json @@ -1,6 +1,6 @@ { "name": "acp-kernel", - "version": "0.0.106", + "version": "0.0.107", "description": "Framework-agnostic context-compression engine (model-driven, 3-tier LSM). Pure core: no host dependency.", "license": "MIT", "author": "ranxianglei",