refactor(compression): replace compact prompt with structured execution-state format - #2284
Open
ArrogHie wants to merge 1 commit into
Open
refactor(compression): replace compact prompt with structured execution-state format#2284ArrogHie wants to merge 1 commit into
ArrogHie wants to merge 1 commit into
Conversation
…on-state format Replace the conversation-recap style compaction prompt in build_compact_prompt with a compression-oriented prompt that produces a durable, structured execution state (OBJECTIVE / REQUIREMENTS / EXECUTION STATE / CONTINUATION / CRITICAL EXACT DETAILS) inside a single <summary> block. The compaction-contract injection is preserved.
Contributor
Author
glm-5.2 完整上下文压缩提示词评测报告
1. 理解度评分汇总UnderstandingScore = 0.25目标理解 + 0.25进展理解 + 0.20约束保真 + 0.15失败方案召回 + 0.15*关键事实召回
3. 五维度分解
5. 压缩效率摘要长度 vs 前缀长度,反映压缩激进程度。
6. 关键发现
exp25(300K 窗口全量+v5提示词优化) vs baseline(1M 窗口全量)对比报告
1. 实验配置
2. 总体指标对比(113 任务,exp25 全部有效)
|
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.
Summary
Replace the compaction prompt in �uild_compact_prompt (src/crates/assembly/core/src/agentic/session/compression/compressor.rs) with a compression-oriented prompt that produces a durable, structured execution state.
Changes
Verification