Repository navigation
fix(agent): timeout-aborted runs skip reflection; policy-block surfaces error (#4248, #4249) - #4258
Merged
Merged
Conversation
Owner
Author
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.
#4248(#4232 Case 3 不完整修复收口)
DeadlineExceeded 分支被锁在
err == nil &&内,而 session-timeout 两条主路径返回非 nil 错误:硬停=裸哨兵 ErrSessionTimeout(不包装 ctx)、L2229=ctx.Err() 本身——均不命中,reflection/ratchet/failure-attribution 照跑。修:err 链补 DeadlineExceeded+ErrSessionTimeout 两臂(竞态臂保留)。注:与在途 PR #4239 的 isCancelled 扩展同域——#4239 rebase 时以本版为准(本版直自 main 基线,冲突面最小)。#4249(policyBlocked return nil=假成功)
#1672 同型残留:完全阻塞分支发 System 事件后 return nil——ACP 报任务完成/A2A 回空输出+成功/Knight 记绿。历史追溯(#266→#4243 五次触碰零豁免记录)排除有意。修:改返可区分错误
agent: response blocked by provider safety filter (task did not complete)(交互用户已由 System 事件告知)。钉件 TestRunStreamPolicyBlockedEmptyReportsOnce 断言翻转为含 'safety filter' 错误。验证
伴测双例+agent 全包 37.5s ok+build 绿。
Closes #4248
Closes #4249