Skip to content

docs(tokenless): document compression-rate scenarios and standard test load - #2601

Closed
Forrest-ly wants to merge 7 commits into
agentic-os-org:mainfrom
Forrest-ly:chore/tokenless-doc-compress-rate-scenarios
Closed

Forrest-ly wants to merge 7 commits into
agentic-os-org:mainfrom
Forrest-ly:chore/tokenless-doc-compress-rate-scenarios

Conversation

@Forrest-ly

@Forrest-ly Forrest-ly commented Aug 17, 2026 •

Copy link
Copy Markdown
Collaborator

改动说明

应客户反馈,在 tokenless 用户文档中补充「压缩率适用场景」说明,并指引使用仓库内置的标准测试负载,使用户能够:1) 了解不同场景下的预期压缩率区间与影响因素;2) 用标准负载复现参考压缩率,自行验证所用版本的效果。

变更内容

8 个 Markdown 文件(+174/-2),纯文档变更,覆盖 4 个文档页面的中英文版本:

  • docs/user-guide/{zh,en}/token-saving/tokenless/measuring-savings.md
    • 新增小节「压缩率的适用场景 / Where the compression rate applies」:
      • 参考节省率表(6 个场景:单路响应压缩、单路 Schema 压缩、混合负载仅响应、Schema+响应叠加、全栈叠加、仅 TOON),全部数字为使用标准测试负载对当前代码实测所得;
      • 按场景归纳:收益高(统一结构记录 / 冗余字段 / 冗长描述)、收益中等(Shell 输出超 Layer 2 阈值部分)、收益接近零(短于最小触发长度 / 已紧凑无冗余 / 尺寸保护)、不参与压缩(内容读取类工具 / 非 JSON / Skill 文本);
      • 提示实际会话收益还需乘以工具 Payload 占比,交叉引用现有小节「正确解释节省率」;触发条件交叉引用「用户手册 · 压缩的触发条件与阈值」(锚点由本 PR 自包含提供)。
    • 新增小节「标准测试负载 / Standard test load」:
      • 说明仓库内置负载(src/tokenless/benchmark/l1-compressor/fixtures/ 下 3 个 canonical fixtures,由 python/gen_fixtures.py 生成、无随机数、字节级可复现、已提交);
      • 给出运行方式:cargo run --release --bin compression_rate(快速报告)与 ./run-benchmarks.sh --quick(完整质量/对抗测试 + 报告),均已在本地实际执行验证;
      • 注意事项:Token 为 bytes/4 启发式估算、适合版本间相对比较;引用数字需注明 commit/版本;评估业务收益应使用 dry-run 双跑对比。
  • docs/user-guide/{zh,en}/token-saving/tokenless/user-manual.md
    • 新增小节「压缩的触发条件与阈值 / Compression trigger conditions and thresholds」:触发条件清单(压缩开关、工具分类、最小响应长度、JSON 校验、严格变小保护)、tool_categories.json 类别/阈值表及阈值含义、独立 CLI / Codex / OpenClaw / TOON / AgentScope 的路径差异。该小节由本 PR 自包含新增,不依赖其他 PR 的合并顺序(本 PR 早期版本曾计划仅交叉引用 PR docs(tokenless): consolidate compression triggers, saving-rate fields, and reference workload #2600 的对应小节,现已改为本 PR 内自带)。
    • 「按任务查找」表格新增一行,指向该小节。
  • docs/user-guide/{zh,en}/token-saving/tokenless/cli-reference.md
    • 在 Adapter 默认值覆盖段落追加指向「用户手册 · 压缩的触发条件与阈值」的交叉引用。
  • docs/user-guide/{zh,en}/token-saving/tokenless/framework-integration.md
    • 追加一条指向「用户手册 · 压缩的触发条件与阈值」的交叉引用行。

与 PR #2600 的关系(合并顺序说明)

PR #2600(截至 2026-08-31 仍为 OPEN)同样在 user-manual.md(EN/ZH)相同位置新增同名小节「压缩的触发条件与阈值」,并带有相同的任务查找表行与 cli-reference.md / framework-integration.md 交叉引用。本 PR 当前 patch 已自包含该小节,交叉引用锚点全部在本 PR 内闭环,不依赖 #2600 的合并顺序,可独立合并;作者早期评论中关于锚点/合并顺序的顾虑随之失效。两个 PR 同为一人所作,无论哪个先合并,后合并一方 rebase 时删除与 main 重复的小节/交叉引用即可(两版小节文字存在少量差异,rebase 时以 main 中已合并版本为准对齐)。

测试情况

测试范围与实际执行的命令(本次为纯文档变更,共 8 个 Markdown 文件;为保证文档中的数字与操作步骤真实有效,实际运行了标准测试负载全流程):

  1. 标准测试负载实测(验证文档引用数字与运行步骤):
    • cargo build --release --bin compression_rate(l1-compressor 独立 workspace)— 成功
    • cargo run --release --bin compression_rate — 输出与文档参考节省率一致:canonical response 65.8%、canonical schema 47.3%、混合负载 response_only 61.7%、schema_response 64.7%、full_stack 62.9%、toon_only 15.8%
    • ./run-benchmarks.sh --quick(完整质量/对抗测试 + 压缩率报告)— 全部通过,退出码 0
    • cargo test --release — 96 passed、0 failed(13 个测试套件,含质量保留、对抗、worst-case、压缩率回归守护)
  2. bash scripts/docs-lint.sh(CI 文档门禁:命名规范 + en/zh 目录树镜像)— 通过
  3. python3 scripts/docs-link-check.py(相对链接检查)— 通过
  4. 文档引用的阈值与负载说明逐项对照源码核实:common/hooks/compress_response_hook.py、compress_toon_hook.py(最小 200 字符)、codex/scripts/compress-response(500/4,000 字符)、tool_categories.json(Layer 2/3 阈值)、benchmark fixtures 与 gen_fixtures.py

环境概要:Linux x86_64;Rust 1.94.1(cargo 1.94.1);Python 3.8.17;rtk 0.43.0(报告中 RTK 采样正常输出)。

结果汇总:96 个测试全部通过,0 失败;文档门禁脚本全部通过;文档参考节省率与实测值完全一致。

未运行项及原因:

  • criterion 性能基准(cargo bench):未运行 — 本次不涉及性能结论,--quick 模式按设计跳过该部分。
  • 真实业务工作负载的端到端测量:未运行 — 文档已明确标准负载用于版本间横向对比,业务收益需按双跑对比另行测量。

2026-09-08 更新:同步 main 并解决合并冲突

main 合入 feat(tokenless): compress csv and tsv output 后,该提交在 user-manual.md(中英文)中新增的「CSV/TSV 视图可能不完整 / CSV/TSV views can be incomplete」小节,与本 PR 在同一位置新增的「压缩的触发条件与阈值 / Compression trigger conditions and thresholds」小节重叠,产生内容冲突。已将 main 合并进本分支并解决冲突。

解决方式:两个小节全部保留。本 PR 的小节排在前面(其第 1 条「见上一节」指向前面的「关闭压缩只影响压缩操作」小节,顺序不能调换),main 新增的 CSV/TSV 小节原样紧随其后,未改动 main 的任何文字。

冲突文件(其余 6 个文件自动合并,无冲突):

  • docs/user-guide/en/token-saving/tokenless/user-manual.md
  • docs/user-guide/zh/token-saving/tokenless/user-manual.md

合并后验证:

  • git diff origin/main --stat 结果为 8 个 Markdown 文件、+174/-2,与本 PR 原始 patch 完全一致 —— 合并未引入任何源码/测试文件改动,也未丢失或改写 main 的内容(user-manual.md 相对 main 为纯新增 29 行、0 删除)。
  • git merge-tree --write-tree origin/main <head> 返回 0,无冲突;GitHub API 侧 mergeable 已由 CONFLICTING 恢复为 MERGEABLE。
  • 重新运行文档门禁:bash scripts/docs-lint.sh 通过(命名规范 + en/zh 目录树镜像),python3 scripts/docs-link-check.py 通过(相对链接全部可解析)。
  • 复核中英文 user-manual.md 无重复标题,#compression-trigger-conditions-and-thresholds / #压缩的触发条件与阈值 锚点在本 PR 内自包含闭环,无残留冲突标记。

本次为纯文档合并冲突解决,未触及任何 crate 源码,故未重复执行上一节记录的 cargo test / compression_rate / run-benchmarks.sh(其结论对本文档内容仍然有效,文档中的数字与源码阈值未发生变化)。

与 PR #2600 的合并顺序:#2600 目前在 user-manual.md 相同位置新增同名小节,本 PR 已自包含该小节,两者可独立合并,但后合并的一方需删除与 main 重复的小节、任务查找表行与 cli-reference.md / framework-integration.md 交叉引用(以 main 中已合入的版本为准对齐文字)。

@Forrest-ly
Forrest-ly requested a review from casparant as a code owner August 17, 2026 05:24
@github-actions github-actions Bot added the scope:documentation ./docs/|./*.md|./NOTICE label Aug 17, 2026

@qoderai qoderai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. 英文文档的“Standard test load” 小节仅在括号中写明 “Linux only”,未明确说明该 workspace 不支持 macOS/Windows,易让跨平台用户误以为可以直接运行,建议补充平台约束说明。
  2. 中文文档对应小节虽提到“仅支持 Linux”,但同样未显式声明在 macOS/Windows 上不支持运行,建议与英文版对齐,追加明确的平台限制句。

🤖 Generated by Qoder • View workflow run

Comment thread docs/user-guide/en/token-saving/tokenless/measuring-savings.md
Comment thread docs/user-guide/zh/token-saving/tokenless/measuring-savings.md

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d5f09b8e97

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread docs/user-guide/en/token-saving/tokenless/measuring-savings.md Outdated
Comment thread docs/user-guide/en/token-saving/tokenless/measuring-savings.md Outdated
@Forrest-ly

Copy link
Copy Markdown
Collaborator Author

来自同一任务的另一个并行执行:我提交的重复 PR #2602 已关闭,以本 PR 为准跟进。

一个合并顺序提示供参考:本 PR 中新增的 user-manual.md#compression-trigger-conditions-and-thresholds(中文对应锚点)交叉引用指向 PR #2600 在用户手册中新增的小节。scripts/docs-link-check.py 只校验文件存在、不校验锚点,但 Pages 构建(Docusaurus onBrokenMarkdownLinks: throw 与构建后片段校验)会校验锚点。若 #2600 先于本 PR 合并则无影响;若本 PR 先合并,Pages 检查可能因锚点尚不存在而失败,建议关注两个 PR 的合并顺序或在合并前 rebase 对齐。

Forrest-ly added a commit to Forrest-ly/anolisa that referenced this pull request Aug 17, 2026
…ore/tokenless-doc-compress-rate-scenarios

Bring in the user-manual anchor (#compression-trigger-conditions-and-thresholds)
that measuring-savings references, so PR agentic-os-org#2601 passes the website link check
before PR agentic-os-org#2600 is merged. Cross-PR dependency fix for CI.
@Forrest-ly
Forrest-ly force-pushed the chore/tokenless-doc-compress-rate-scenarios branch from cf33895 to e2f35bd Compare August 28, 2026 09:25
Forrest-ly and others added 3 commits August 29, 2026 12:19
… --json usage

- Make the Linux-only constraint of the standard test load explicit
  (unsupported on macOS/Windows) in EN and ZH docs.
- Report the deployed (gated) full-stack rate ~65% instead of the
  benchmark's ungated full_stack ~63%: the compress-toon size guard
  keeps the original input when TOON does not reduce estimated tokens,
  which is what happens for the standard fixture. The ungated
  benchmark value is kept as a note for traceability.
- Show -- --json in the compression_rate invocation; cargo consumes
  options before the binary argument separator, so the previously
  documented form errored with 'unexpected argument'.
@Forrest-ly
Forrest-ly force-pushed the chore/tokenless-doc-compress-rate-scenarios branch from e2f35bd to 0f4993d Compare August 29, 2026 04:25
@Forrest-ly

Copy link
Copy Markdown
Collaborator Author

感谢 review!关于轻微建议(P2)「全栈叠加」行 Notes 过长的处理情况:

已采纳,采用「拆为单独段落」方案(文档树中暂无脚注用法先例,为避免引入新的渲染语法风险,未使用脚注):

  • 「压缩率的适用场景」表格中「全栈叠加(Schema + 响应 + TOON,部署门控)」行的说明精简为一句话,并指引读者查看表后说明;
  • 原说明文字完整移至表格下方的引用块段落(以「全栈叠加(部署门控):」开头),技术内容一字未删,仅调整位置;
  • 中英文版本(measuring-savings.md EN/ZH)同步修改,结构一一对应。

已推送:7b1c92f — docs(tokenless): move full-stack row note below the scenario table。

本地验证(与 Pages CI 同源的门禁):

  • scripts/docs-lint.sh(命名规范 + 中英目录树对齐)通过;
  • scripts/docs-link-check.py 全部相对链接可解析;
  • Docusaurus 生产构建(en + zh 两个 locale)成功,npm run check:links 对 186 个 HTML 文件的静态链接与重复 ID 校验通过;
  • 已确认构建产物中表格新文案与表后说明段落均正常渲染。

@yummypeng
yummypeng removed their request for review August 31, 2026 03:33
@SunnyQjm

SunnyQjm commented Aug 31, 2026 •

Copy link
Copy Markdown
Collaborator

PR number: #2601
head_sha: bdf83c8
reviewed_at: 2026-08-31T15:53:27Z

Findings

未发现 blocking package/module/public API 组织问题。本 PR 仅改动 docs/user-guide/{en,zh}/token-saving/tokenless/ 下 8 个 Markdown 文件,不涉及 cosh-ng/cosh-shell crate、代码 owner 边界、public API、依赖方向或测试位置,输入中的代码组织规则无适用项。

已核对项(静态评审范围内)

  • 当前 head 与上一轮评审相同,patch 未变;本轮变化为 PR 描述更新(新增「与 PR docs(tokenless): consolidate compression triggers, saving-rate fields, and reference workload #2600 的关系」说明、文件计数更正为 8 个),描述与 patch 事实一致。
  • 交叉引用自包含闭环:user-manual.md 新增 EN ### Compression trigger conditions and thresholds / ZH ### 压缩的触发条件与阈值,cli-reference.md、framework-integration.md、measuring-savings.md 及任务查找表中的 #compression-trigger-conditions-and-thresholds / #压缩的触发条件与阈值 引用全部在本 PR 内解析,不依赖 docs(tokenless): consolidate compression triggers, saving-rate fields, and reference workload #2600 合并顺序。
  • 中英对等:4 个页面 EN/ZH 结构逐段对应(measuring-savings 两个新章节,各含 6 行场景表、表后说明、4 条场景归纳、3 个 fixture 表行、运行命令与 3 条注意事项;user-manual 5 条触发条件、3 行阈值表、5 条路径差异及任务表新行;其余两页各一条交叉引用),未发现漏译。
  • 数值自洽:参考节省率约数(66/47/62/65/65/63/16)与 PR 描述实测值(65.8/47.3/61.7/64.7/62.9,部署门控口径取 65,未门控 63 作表后说明,15.8)一致;阈值(200/500 字符、65,536/128/8、1,048,576/65,536/32、CLI 默认 4,096/32/8、Codex 4,000 字符)在三个文档间及与 cli-reference.md 既有段落一致。
  • 历史 review 意见均已落地:平台约束("Linux only — unsupported on macOS and Windows" / 「仅支持 Linux,不支持 macOS/Windows」)、cargo run ... -- --json 参数分隔符、全栈叠加按部署门控口径约 65%,EN/ZH 同步。

Validation

  • Passed(以当前 head 的 CI 指纹为准):📚 Docs Lint、Build website、🔍 PR Checks、📝 Commit Message Lint、license/cla 均 SUCCESS;各组件 Build/Test 按 Detect Changes 全部 SKIPPED,与纯文档变更范围一致。
  • Build website 通过(Docusaurus 配置 onBrokenMarkdownLinks: throw),间接覆盖本 PR 新增及引用锚点的有效性。
  • Not run(本评审为 review-only,不执行任何工具):文档参考压缩率未独立复测;docs-lint.sh、docs-link-check.py、benchmark 全流程未由本评审重跑;触发条件与阈值同源码的逐项对照以作者声明及前序人工 review 核对结论为准。

剩余风险

  • PR docs(tokenless): consolidate compression triggers, saving-rate fields, and reference workload #2600 仍为 OPEN,与本 PR 在 user-manual.md(EN/ZH)重叠新增同名小节及相同交叉引用;无论哪个先合并,后合并一方需 rebase 去重(同一作者,描述已说明方案;两版 Codex 表述存在少量差异,去重时以 main 已合并版本对齐),不影响本 PR 独立合并。
  • 参考节省率是 commit 2e7d69f1 的实测快照,随版本演进可能漂移;文档已明确要求引用时注明 commit/版本,风险可接受。
  • diff 上下文外的既有小节锚点(#interpret-the-saving-rate-correctly、#run-a-dry-run-comparison、#正确解释节省率、#用-dry-run-做双跑对比)无法从 patch 直接核验,依赖 Build website CI 覆盖。

@Forrest-ly

Copy link
Copy Markdown
Collaborator Author

回复上方 codex-auto-review(2026-08-31T06:17Z)评审意见:

[P3] PR 描述与当前 patch 存在漂移 — 已采纳,已修复。

PR 描述已更新:

Open Question — PR #2600 当前状态

Forrest-ly and others added 2 commits September 8, 2026 11:45
…ompress-rate-scenarios

Resolve the user-manual.md conflicts introduced by dcf5723
("feat(tokenless): compress csv and tsv output"), which added the
"CSV/TSV views can be incomplete" section at the same position where this
branch adds "Compression trigger conditions and thresholds".

Both sections are kept. The branch section stays first because it refers
back to the preceding "Compression off" section, and the csv/tsv section
from main follows it unchanged.

Resolved files:
- docs/user-guide/en/token-saving/tokenless/user-manual.md
- docs/user-guide/zh/token-saving/tokenless/user-manual.md

The resulting diff against main is the original docs-only patch of this
branch (8 files, +174/-2); no source or test file changed.

Verified: bash scripts/docs-lint.sh, python3 scripts/docs-link-check.py.
…ompress-rate-scenarios

Co-authored-by: multica-agent <github@multica.ai>
@Forrest-ly

Copy link
Copy Markdown
Collaborator Author

已解决与 main 的合并冲突(AGE-6950)。

做法:把 main(7d89434d,含 #3173 search path sharing 的 b8219ed9)合并进本分支,merge commit fd39a391,未使用 rebase(保留分支既有历史)。PR 现已从 CONFLICTING/DIRTY 变为 MERGEABLE。合并后 main 又前进到 e30c95f1(仅 agentsight 版本号与 CHANGELOG),已用 git merge-tree --write-tree origin/main fd39a391 复验为干净合并,不会再引入冲突。

冲突处理:只有 docs/user-guide/{en,zh}/token-saving/tokenless/user-manual.md 各 1 处冲突,双方内容全部保留:

  • 本 PR 的「Compression trigger conditions and thresholds / 压缩的触发条件与阈值」小节放在前,紧跟「"Compression off" affects only compression operations / "关闭压缩"只影响压缩操作」之后 —— 因为该小节第 1 条有「see the previous section / 见上一节」的指代,必须保持相邻;
  • main 的「Controlling search path sharing / 控制搜索路径共享」小节紧随其后;
  • 其余 6 个文件(cli-reference / framework-integration / measuring-savings 中英各 3 个)自动合并,无需人工介入。合并后 git diff origin/main HEAD 仍是本 PR 原有的 8 文件 / +174 / -2,git diff a02397b5 HEAD -- docs/.../tokenless/ 仍是 main 侧的原有改动,两侧都没有内容丢失。

校验:本地 scripts/docs-lint.sh、scripts/docs-link-check.py 均通过(含 en/zh 树对齐与 user-manual.md#compression-trigger-conditions-and-thresholds 等锚点目标存在);CI 侧 📚 Docs Lint、Build website(Docusaurus onBrokenMarkdownLinks: throw,会校验锚点)、📝 Commit Message Lint、🔍 PR Checks 全部 SUCCESS,其余 job 因无代码改动 SKIPPED。当前 mergeStateStatus=BLOCKED 仅因 REVIEW_REQUIRED,不再是冲突。

两点留给后续跟进(本次按「只解冲突、不改已评审正文」的原则未改动):

  1. 与 docs(tokenless): consolidate compression triggers, saving-rate fields, and reference workload #2600 的内容重叠且已漂移:docs(tokenless): consolidate compression triggers, saving-rate fields, and reference workload #2600 携带同名小节的更新版本(Codex/Qwen Code 在当前宿主契约下不运行响应压缩、OpenClaw 的 skip_tools/shell_tools 覆盖已移除、TOON 增加 ≥500 字符门槛等),本 PR 内是较早快照。两个 PR 后合入的一方会再次冲突,建议统一以 docs(tokenless): consolidate compression triggers, saving-rate fields, and reference workload #2600 的文本为准做一次收敛。
  2. main 引入 search path sharing 后,本 PR 小节里「Read/Glob/Grep/LSP/NotebookRead 及别名跳过响应压缩、内容保持原样」对 Grep 已不完全准确:API 搜索列表(含原生 Grep)现在会进入路径共享(保留全部命中文本与位置,但表示形式会变)。

@SunnyQjm

SunnyQjm commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator

PR number: #2601
head_sha: fd39a39
reviewed_at: 2026-09-09T14:27:48Z

Findings

未发现 blocking package/module/public API 组织问题。本 PR 仅改动 docs/user-guide/{en,zh}/token-saving/tokenless/ 下 8 个 Markdown 文件,不涉及任何 crate 源码、owner 边界、public API、依赖方向或测试位置,输入中的 cosh-ng 代码组织规则无适用项。

  • [P3] docs/user-guide/en/token-saving/tokenless/user-manual.md(新增小节第 2 条,按 diff hunk 估算约 L106)与 docs/user-guide/zh/.../user-manual.md(约 L102):「Read/Glob/Grep/LSP/NotebookRead 及别名跳过响应压缩,内容保持原样 / content stays intact」的表述,在 main 合入 search path sharing 后对 Grep 已不完全准确——作者在自己最新一条评论中明确承认:API 搜索列表(含原生 Grep)现在会进入路径共享,命中文本与位置保留但表示形式会变化。同理 measuring-savings.md(EN 约 L240 / ZH 约 L234)「不参与压缩」一条中 Read/Glob/Grep 「内容保持原样」的隐含结论也受同一漂移影响。作者已声明本次按「只解冲突、不改已评审正文」原则未修,建议合并前或紧随的文档 PR 中按 main 当前行为收敛该措辞(skip response compression 本身仍成立,需修正的是「内容原样」的绝对化表述)。

已核对项(静态评审范围内)

  • 交叉引用自包含闭环:user-manual.md 新增 EN ### Compression trigger conditions and thresholds / ZH ### 压缩的触发条件与阈值,cli-reference.md、framework-integration.md、measuring-savings.md 及任务查找表新增的 #compression-trigger-conditions-and-thresholds / #压缩的触发条件与阈值 引用全部在本 PR 内解析,不依赖 docs(tokenless): consolidate compression triggers, saving-rate fields, and reference workload #2600 合并顺序。
  • 中英对等:4 个页面 EN/ZH 结构逐段对应(6 行场景表 + 表后说明 + 4 条场景归纳 + 3 行 fixture 表 + 3 条注意事项;5 条触发条件 + 3 行阈值表 + 5 条路径差异 + 任务表新行;两页各一条交叉引用),未发现漏译。
  • 数值自洽:约数 66/47/62/65/65/16 与 PR 描述实测值(65.8/47.3/61.7/64.7/62.9、15.8)一致;阈值(200/500 字符、65,536/128/8、1,048,576/65,536/32、CLI 默认 4,096/32/8、Codex 4,000 字符)与 cli-reference.md 既有段落及三处新文档之间一致。
  • 历史 review 意见均已落地:平台约束("Linux only — unsupported on macOS and Windows" / 「仅支持 Linux,不支持 macOS/Windows」)、cargo run ... -- --json 参数分隔符、全栈叠加按部署门控口径 ~65%(未门控 ~63% 降为表后说明)、全栈行说明拆为表后引用块。
  • 合并冲突解决与 patch 一致:user-manual.md 上下文显示本 PR 小节后紧跟 main 的 ### Controlling search path sharing / ### 控制搜索路径共享,patch 对该小节零改动;全 PR 仍为 8 文件、+174/-2,未夹带源码或测试改动。

Validation

  • Passed(以当前 head 的 CI 指纹为准):📚 Docs Lint、Build website、🔍 PR Checks、📝 Commit Message Lint、Check build runtime dependencies、Check component versions、license/cla 均 SUCCESS;各组件 Build/Test 按 Detect Changes 全部 SKIPPED,与纯文档范围一致。
  • Build website 通过(Docusaurus onBrokenMarkdownLinks: throw),间接覆盖本 PR 新增及引用锚点有效性。
  • Not run(本评审为 review-only,不执行任何工具):文档参考压缩率未独立复测;docs-lint.sh、docs-link-check.py、benchmark 全流程未由本评审重跑;触发条件/阈值与源码的逐项对照以上述 P3 及前序人工 review 核对结论为准。

剩余风险

@kongche-jbw

Copy link
Copy Markdown
Collaborator

本 PR 关闭,后续统一在 #2600 跟踪和交付。关闭仅表示收敛 PR,不代表本项文档需求已经完成。

请将本 PR 的原始意图迁移至 #2600:解释压缩率适用场景与影响因素,提供可复现的标准测试负载和运行步骤,说明估算 Token、历史基准数字与实际会话收益的区别。中英文同步,并与 main 已有参考负载章节及 #2600 的触发条件章节合并去重。

迁移时请按最新 main 重新核对实现,不要带回旧版 Codex 响应压缩、OpenClaw 分类覆盖项或“非 JSON / Grep 一律不压缩”等过时表述。三个 PR 的整合内容应在 #2600 中整理为相对最新 main 的 1 个 commit,重新验证后统一复审。

完整迁移要求与本轮审查问题见: #2600 (comment)

Forrest-ly added a commit to Forrest-ly/anolisa that referenced this pull request Sep 16, 2026
…rent source

Carry the documentation intents of PRs agentic-os-org#2596 and agentic-os-org#2601 into this single
change set and re-verify every claim against current source behavior:

- user-manual: add compression trigger conditions and thresholds; describe
  OpenClaw input handling (string / single-text-block take the replaceable
  text path; other objects such as shell envelopes pass whole as structured
  JSON without text replacement) separately from Hermes (unwraps the shell
  envelope output field); correct array truncation to the head window plus
  8-item tail window with a stashed middle segment, and document the
  33-object record-reduction exception that bypasses the category caps
- measuring-savings: add saving-rate field definitions, distinguishing the
  clamped summary/compare percentages (saturating subtraction, 0% on a zero
  denominator) from stats diff, which keeps negative values; add
  compression-rate applicability scenarios; refresh the reference workload
  snapshot to 0.8.2 measurements and add the stacking configurations
- cli-reference, framework-integration: add cross-references and update the
  shared-hook routing table for the connected build-log, CSV/TSV, and
  search path sharing compressors

Docs only; en/zh mirrored. Verified with scripts/docs-lint.sh,
scripts/docs-link-check.py, the website build for both locales, and a
re-run of the l1-compressor compression_rate report on the baseline.
Forrest-ly added a commit to Forrest-ly/anolisa that referenced this pull request Sep 16, 2026
…rent source

Carry the documentation intents of PRs agentic-os-org#2596 and agentic-os-org#2601 into this single
change set and re-verify every claim against current source behavior:

- user-manual: add compression trigger conditions and thresholds; describe
  OpenClaw input handling (string / single-text-block take the replaceable
  text path; other objects such as shell envelopes pass whole as structured
  JSON without text replacement) separately from Hermes (unwraps the shell
  envelope output field); correct array truncation to the head window plus
  8-item tail window with a stashed middle segment, and document the
  33-object record-reduction exception that bypasses the category caps
- measuring-savings: add saving-rate field definitions, distinguishing the
  clamped summary/compare percentages (saturating subtraction, 0% on a zero
  denominator) from stats diff, which keeps negative values; add
  compression-rate applicability scenarios; refresh the reference workload
  snapshot to 0.8.2 measurements and add the stacking configurations
- cli-reference, framework-integration: add cross-references and update the
  shared-hook routing table for the connected build-log, CSV/TSV, and
  search path sharing compressors

Docs only; en/zh mirrored. Verified with scripts/docs-lint.sh,
scripts/docs-link-check.py, the website build for both locales, and a
re-run of the l1-compressor compression_rate report on the baseline.
kongche-jbw pushed a commit that referenced this pull request Sep 16, 2026
…rent source

Carry the documentation intents of PRs #2596 and #2601 into this single
change set and re-verify every claim against current source behavior:

- user-manual: add compression trigger conditions and thresholds; describe
  OpenClaw input handling (string / single-text-block take the replaceable
  text path; other objects such as shell envelopes pass whole as structured
  JSON without text replacement) separately from Hermes (unwraps the shell
  envelope output field); correct array truncation to the head window plus
  8-item tail window with a stashed middle segment, and document the
  33-object record-reduction exception that bypasses the category caps
- measuring-savings: add saving-rate field definitions, distinguishing the
  clamped summary/compare percentages (saturating subtraction, 0% on a zero
  denominator) from stats diff, which keeps negative values; add
  compression-rate applicability scenarios; refresh the reference workload
  snapshot to 0.8.2 measurements and add the stacking configurations
- cli-reference, framework-integration: add cross-references and update the
  shared-hook routing table for the connected build-log, CSV/TSV, and
  search path sharing compressors

Docs only; en/zh mirrored. Verified with scripts/docs-lint.sh,
scripts/docs-link-check.py, the website build for both locales, and a
re-run of the l1-compressor compression_rate report on the baseline.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope:documentation ./docs/|./*.md|./NOTICE

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants