Skip to content

refactor: 收紧 Agent 运行时边界 - #57

Merged
cacohe merged 2 commits into
mainfrom
codex/core-agent-cleanup
Oct 18, 2026
Merged

cacohe merged 2 commits into
mainfrom
codex/core-agent-cleanup

Conversation

@cacohe

@cacohe cacohe commented Oct 18, 2026

Copy link
Copy Markdown
Owner

变更\n\n- 在 run 接纳时快照排队消息、执行上下文与 signal 引用,避免跨异步边界被调用方修改\n- 拆分模型 attempt 与单次工具执行,统一 observer 通知和正整数校验\n- 在通知 observer 前复制并冻结模型流事件,防止观察者反向修改 Core 状态\n- 统一父取消与局部 deadline 的错误语义,拒绝模型或工具在超时后的迟返成功\n- 在持久化前校验、复制并冻结 ToolResult,拒绝错误 callId 与非法 JSON 载荷,并保证调用终态 observation 恰好一次\n\n## 验证\n\n- pnpm run check\n- Vitest: 31 passed / 1 skipped;352 passed / 10 skipped\n- 独立 Review Agent 已批准,无阻断项

@cacohe
cacohe merged commit 6cb7240 into main Oct 18, 2026
4 checks passed
@cacohe
cacohe deleted the codex/core-agent-cleanup branch October 18, 2026 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant