Skip to content

feat(claude-code): end every recalled-for turn with a notice, and lead the status line with its decision - #112

Merged
forrestlinfeng merged 5 commits into
mainfrom
claude/status-line-notice
Nov 25, 2026
Merged

forrestlinfeng merged 5 commits into
mainfrom
claude/status-line-notice

fix(relay): a join still pending at a turn's end is told as still bei…

e5f33ab
Select commit
Loading
Failed to load commit list.
EvoMap-AIQA-Bot / sentinel review completed Nov 25, 2026 in 3m 33s

sentinel advisory review

Repository: evomap/evolver-agent-plugin
PR: #112
Head: e5f33abd9abbdbc6a96ab2d57b9f36314d64c176
Task: task_d91a8a86d6104289c440dca658e1d3e8
Status: verified_needs_manual_review
Blocking findings: 0
Non-blocking verified findings: 0
Yellow advisory: 4
Blocking clusters: 0
Unresolved review items: 4
Prior-head recheck obligations: 0
Invalid review item statuses: 0
Pending gate reconciliation: 0
Pending result publication: 0
Review/CI integrity blockers: 1
Lineage cutover ready: true
Agent context: /api/v1/sentinel/pr-review-context?head_sha=e5f33abd9abbdbc6a96ab2d57b9f36314d64c176&owner_repo=evomap%2Fevolver-agent-plugin&pr_number=112

Yellow advisory summary:

  • p2 Recall 与 join 失败被吞掉并映射为正常业务状态: path: POST /event (turn.start) → recall Promise 拒绝,或 POST /late/join → landed.join() 拒绝 → POST /event (turn.complete) | mechanism: started() 在 traced 拒绝时只把 isSettled 设为 true,丢弃错误并保留 trace=null,最终由 recallStatusOf(null) 输出普通的 ○ no EvoMap strategy injected。类似地,joining() 的拒绝处理器返回成功完成的 Promise,使 ended() 将其视为“已及时结束”,再输出“模型最后一步后召回、未使用”,而不是 join 失败。 | probe: 在 relay 测试中让 traced 返回 Promise.reject(new Error('proxy failed')),完成同一回合;再让 landed.join() 返回 rejected Promise,捕获 /late/join 失败后调用同一回合的 turn.complete。
  • p2 重复 turn.start 会让旧 recall 的 join 写入新一代回合: path: 同一 session 的 turn.start 因重试或重复投递而使用相同 turn_id 两次,随后旧请求执行 /late/join | mechanism: started() 对相同 [session_id, turn_id] 直接 Map.set() 覆盖记录,但旧 late 条目只保存相同的 turnKey,没有请求代次或 recall id。旧条目的 /late/join 因而会把新记录的 isJoined 置为 true,使新 recall 在自身未加入时也可能生成成功注入总结。 | probe: 对同一 session_id/turn_id 连续发送两次 turn.start,保留两个 late id;让第二个 recall 返回 injected 但不 join,再对第一个 recall 执行 /late/join,最后发送 turn.complete。
  • p3 超过 64 个活跃回合时,较早回合永久丢失结束通知: path: 多会话并发调用 /event 的 turn.start,累计 65 个尚未完成的回合,随后第一个回合发送 turn.complete | mechanism: turnRecalls.started() 在记录数超过 MAX_LATE 时直接删除最早记录,没有确认该回合已经完成、取消或转移状态。该回合之后进入 ended() 时查不到记录并返回 null;当 channel.handle() 本身也没有摘要文本时,本 PR 承诺的 recall 结束通知不会生成。 | probe: ** | facts: MAX_LATE 为 64。; started() 在 turns.size > MAX_LATE 时删除 turns.keys().next().value。; ended() 查不到记录时直接 return null。; /event 对 turn.complete 只有在 notice 存在且 answer.text 为空时才写入 text。 | uncertainty: 未提供生产环境是否允许同一 relay 同时保有超过 64 个未完成回合。; 未提供容量上限是否被设计为允...(truncated)
  • p3 缺少 session_id 时不同回合可共享并覆盖召回状态: path: 已认证客户端依次调用 /event 的 turn.start 和 turn.complete,两个事件使用相同 turn_id 且不提供 session_id | mechanism: 新增的 turnKeyOf() 在 session_id 缺失时使用 null 组成键;因此所有缺少会话 ID、且 turn_id 相同的调用共享同一个 Map 项。后到的 turn.start 会覆盖前一回合状态,前一回合的 turn.complete 随后可能消费后一回合的 trace、策略名称或 join 状态。 | probe: 启动 relay 后,使用合法 token 向 /event 提交两个 turn.start,均设置 turn_id: "t1"、省略 session_id,但使用能产生不同 recall trace 的文本;随后提交第一个回合的 turn.complete。

Large PR review:

  • Size class: normal
  • Review mode: sliced
  • Slice count: 1
  • Sentinel split this PR into review slices. This check stays in progress until the sliced review is aggregated.

Sentinel desired check mode: non_blocking.
Required-check usage is configured in GitHub Branch Protection; Sentinel reports its effective status as unknown.

Details

sentinel found non-blocking yellow advisory or P2/P3 review items. This Check remains neutral, including in required repositories; red P0/P1 and independent hard gates are unaffected.