From fc05617eccef306d2b91f8db29c510ea94b5bf2d Mon Sep 17 00:00:00 2001 From: kdletters Date: Wed, 9 Sep 2026 21:28:04 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=B0=E5=BD=95=20AGC=20=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E7=8B=AC=E7=AB=8B=20Agent=20=E5=86=85=E6=A0=B8=E7=9A=84?= =?UTF-8?q?=E8=BE=B9=E7=95=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 明确替换 Codex 执行循环而非替换二进制 保留 AGC 工具权限、Runtime 持久化和完成门 规定兼容桥、实验模式与新旧 fixture 对比顺序 --- docs/project-memory/shared-memory/decision-log.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/project-memory/shared-memory/decision-log.md b/docs/project-memory/shared-memory/decision-log.md index 9cb44fb8a..fd146cd2c 100644 --- a/docs/project-memory/shared-memory/decision-log.md +++ b/docs/project-memory/shared-memory/decision-log.md @@ -9006,3 +9006,14 @@ CI 上 `background_agent_runtime_recovers_stale_running_before_pending_task` 在 - 边界:不改变 Host 公开 API、Runtime/SQLite 合同或 Engine 接口;`finish_cancelled` 等依赖 Engine worker 的内部 helper 暂不迁移,避免为降低文件行数扩大职责边界。 - 验证:Host 单测与 Clippy 定向通过;完整 workspace、Rustdoc、编码和 diff 门禁在提交前复跑。 + +## 2026-09-09 AGC 改用独立 Agent 内核的替换边界 + +- 决策:后续目标是用独立 `rust/` workspace 的 Kernel/Engine 替换 AGC 的 Codex 执行循环, + 不是直接替换 Codex 二进制或删除 `codex_app_server`。AGC 继续拥有项目工具、权限、 + Runtime 持久化、预览和完成门。 +- 实施顺序:先建立 AGC 与独立 workspace 的兼容桥,再增加可回滚的 `agent_runtime` 实验 + 模式;新旧模式用同一 fixture 对比消息、工具调用、事件、取消、超时和终态后,才考虑 + 切换默认模式。 +- 边界:不复制 `codex-core`,不让两套 `agent-runtime-core` 类型直接泄漏,不用 standalone + AgentHost 的 SQLite 取代 AGC Runtime;同步 Engine 与 AGC Tokio 通过受控异步 facade 连接。