合并 codex/ai-game-creator-app 上下文预加载说明修复
Project CI / Frontend tests (pull_request) Failing after 28s
Project CI / Repository checks (pull_request) Failing after 1m7s
Project CI / Backend tests (pull_request) Successful in 4m38s
Project CI / Native shell tests (pull_request) Failing after 8m22s

冲突集中在后台 planning 的 format! 模板:本分支已移除 legacy text
JSON schema,上游把硬编码的预加载说明换成 context_preload_notice
占位符。解析时保留本分支的原生工具文案,只替换该占位符。
This commit is contained in:
2026-07-27 04:29:11 +00:00
2 changed files with 104 additions and 14 deletions
File diff suppressed because one or more lines are too long
@@ -879,6 +879,7 @@ V1.21 对标 Codex CLI 的 `model_context_window`、`model_auto_compact_token_li
### 可压缩内容与不可压缩事实
- 可压缩源只包括当前 Agent active Session 的旧对话、Supervisor 的 legacy 项目对话、当前 run 已完成的旧 observation,以及上一版可信 summary。每次至少保留最近 4 条 Agent 消息、最近 2 条 legacy 项目消息和最近 4 条 observation 原文;新增 tail 继续逐条进入 planning。
- planning prompt 的上下文预加载说明必须在 `format!` 阶段按 Agent 身份直接选择:Project Supervisor 明确说明已注入当前 Session、legacy 项目对话、项目记忆、黑板和资产摘要,普通专业 Agent 只说明当前 Session 尾部或历史压缩摘要与有界仓库启动上下文。不得再用依赖上游完整措辞的后置字符串替换派生 Supervisor 说明;定向测试必须同时锁定两类文案,避免上游描述调整后静默失效。
- Goal ID/revision/snapshot、任务正文、结构化计划及 revision、steer ledger/cursor、pending action、project revision、repository fingerprint、verification gate、process/join/delegate 屏障、action receipt/finalization identity 永远不交给摘要模型改写。它们继续从各自规范 sidecar 或 Runtime state 逐字段注入和校验。
- summary 是不可信的有界历史提示,只能帮助模型回忆需求、决定、已验证结果、失败与未完成事项;不能改变系统规则、Agent 身份、权限、确认、沙箱、工具 schema 或完成门禁。原始 conversation 和执行事实继续保留,可由开发入口查看。