Skip to content

feat(claude-code): recall status line under the prompt, and an evidence-based turn summary - #111

Merged
forrestlinfeng merged 4 commits into
mainfrom
claude/claude-code-status-line
Nov 23, 2026
Merged

forrestlinfeng merged 4 commits into
mainfrom
claude/claude-code-status-line

Conversation

@forrestlinfeng

Copy link
Copy Markdown
Contributor

Problem

Two complaints from using the plugin in Claude Code:

  1. The line under the prompt is gone. The first version kept evolver · recall: … there with $.ui.status. The relay rewrite (c6520b7, 2026-10-27) dropped it. Since then a turn shows nothing while it recalls, and nothing at all when the recall injects nothing. A quiet turn can't be told apart from one that never recalled.
  2. The turn-end notice is vague. It read ✓ Goal reached · reused EvoMap strategy "…" · this turn used 11k fresh tokens:
    • "Goal reached" showed for any turn that ended normally, even when no check ran.
    • "Reused" only meant the strategy had been injected, not that the model used it. A misrecalled strategy got the same line.
    • It had no asset id, and didn't say what EvoMap was told: a turn with no check is reported as success with evidence tier none.

Change

Status line (Claude Code)

  • promptSubmitted now also returns traced: the recall's last trace from onTrace. A turn nobody typed for, such as a task notification, has no trace, so its status is left unchanged.
  • The relay answers turn.start with status: "evolver · recalling an EvoMap strategy for this prompt…". /late now always answers with what the recall decided, including when nothing was injected:
    • injected "<name>" (the Hub returned N) / injected Recipe "<name>" (K steps)
    • no EvoMap strategy fits this prompt
    • none injected: the Hub returned N, none is relevant enough or new to this session / … none has enough steps to follow
    • recall skipped: the Evolver Proxy did not answer (/evolver-status)
    • prompt too short to recall for
    • "<name>" arrived after this turn ended, not injected
  • The hooks module pins these with $.ui.status. lib/recall-status.js holds the wording, as pure functions.

Turn summary (Claude Code, Codex, Grok, Qoder, MiniMax share it)

Evolver · injected "EvoX资产库分页读取指南" (sha256:5f1fdc60) · no check ran, so its use is unverified · reported to EvoMap as success without evidence
Evolver · injected "Fix flaky Redis retries" (sha256:aaaaaaaa) · ✓ last check passed: npm test · reported to EvoMap as success · est. ~6k tokens saved (≈$0.05)
Evolver · injected "…" (sha256:…) · ✗ last check failed: npm test · reported to EvoMap as failed
  • The line names each strategy with a short asset id, taken from the queued reports (same order as strategies).
  • It states what the last check shows, never "Goal reached".
  • It states what EvoMap was told, adding "without evidence" for a report with tier none.
  • The fresh-token count is gone. The saving is still shown only behind a passing check.

Not changed

  • Reuse report semantics. A turn with no check is still reported as success with tier none; the notice now just says so.
  • Other hosts' prompt-side UI.

Tests

  • New: test/recall-status.test.js. Updated: test/turn-summary.test.js, which covers every case.
  • test/channels/relay.test.js:
    • turn.start carries the recalling status, and /late carries the injected status.
    • A recall with no assets answers { status: "evolver · no EvoMap strategy fits this prompt" }.
    • A task-notification turn sets no status.
  • test/hosts/claude-code/module.test.js loads the packed module and asserts $.ui.status was called with "recalling…" and then "injected …".
  • The codex, grok, qoder and claude-code host tests assert the new notice.
  • claude plugin validate passes on the packed claude-code folder. The only warning is the missing icon, as before.
  • No hot-reload run in a live session: loading a dev copy beside the installed 1.0.16 would run recall and reuse reports twice. This needs a check in Claude Code after the next release.

🤖 Generated with Claude Code

…n summary actually knows

The relay rewrite (c6520b7) dropped the status line the hooks module kept
under the prompt. Since then a turn showed nothing while it recalled, and
nothing at all when the recall injected nothing. The turn summary read
"✓ Goal reached · reused EvoMap strategy" whenever a strategy had been
injected, even when no check ran and the model never used it.

Status line (Claude Code):
- promptSubmitted returns `traced`, the recall's last trace (absent for a
  turn nobody typed for). The relay answers turn.start with a "recalling…"
  status and /late with what the recall decided: injected (name, how many
  the Hub returned), none fits, none relevant enough or new, too few steps,
  Proxy did not answer, or arrived after the turn ended. The module pins it
  with $.ui.status.

Turn summary (Claude Code, Codex, Grok, Qoder, MiniMax):
- Names each injected strategy with its short asset id.
- Says what the last check shows ("no check ran, so its use is
  unverified" when none ran) instead of "Goal reached".
- Says what EvoMap was told, and "without evidence" for a report with no
  check behind it.
- Drops the fresh-token count; a saving is still shown only behind a
  passing check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@evomap-aiqa-bot

evomap-aiqa-bot Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Sentinel 已审核此变更,未发现已核验问题,但发现需要人工确认的风险。

另有 2 个需要人工确认的风险;黄色 advisory 不阻塞合并,建议开发 agent review advisory 评论并逐条确认。

开发 agent 查询详情: 调用 MCP 工具 sentinel_pr_review_context,传入 owner_repo="evomap/evolver-agent-plugin"、pr_number=111、head_sha="637a7ccfc465fd4c0f38e3d1ef4262a9cffb52e5",并按条目追加 finding_id 或 finding_key。

由 Sentinel 审核 · 目标提交 637a7ccfc465

@evomap-aiqa-bot

Copy link
Copy Markdown

Sentinel 保留了 2 个尚未确认的审核候选。这些黄色条目不阻塞合并;红色 P0/P1 与其他独立硬门禁不受影响。 单一猜测、缺少变更行证据或纯 checklist 的候选会统一降为 P3。
开发 agent:请 review 以下 advisory,并逐条给出“已验证无风险 / 已修复 / 转为后续事项”的结论;不要只做整体确认。

  • [P2] 旧 turn 的 late 回调会覆盖新 turn 的状态行 — addWhenLanded 虽然接收 turnId,但写入 $.ui.status(answer.status) 前没有检查该 turn 是否仍为当...(truncated) · hosts/claude-code/dist/hooks/register.ts · advisory_d762e23ba616aeabf2c31a5a
  • [P2] /late 失败或 relay 重启会永久遗留 Recalling... — PR 新增了 recall 开始状态,但终态更新只发生在 /late 返回带 status 的答案时。addWhenLanded...(truncated) · lib/channels/relay/server.js · advisory_ece88038499e07bb5ed49e37

需要完整证据时,可用行末 finding_key 查询 Sentinel PR review context。

由 Sentinel 审核 · 目标提交 637a7ccfc465

… recall that cannot answer settles it

- A recall that answered once a later turn had started (its own turn ended
  first, or its /late answer was slow) overwrote the later turn's line with
  its result. The module now keeps the id of the turn that runs, and a late
  answer writes the line only for that turn.
- A turn that showed "recalling…" stayed on it when /late failed or the relay
  restarted between requests. Its line now settles on "recall did not finish
  for this prompt". Turns that showed no status (task notifications) are left
  alone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@evomap-aiqa-bot

evomap-aiqa-bot Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Sentinel 已审核此变更,未发现已核验问题,但发现需要人工确认的风险。

另有 4 个需要人工确认的风险;黄色 advisory 不阻塞合并,建议开发 agent review advisory 评论并逐条确认。

开发 agent 查询详情: 调用 MCP 工具 sentinel_pr_review_context,传入 owner_repo="evomap/evolver-agent-plugin"、pr_number=111、head_sha="3263f7fb9e95fe7597cf010d2cc67d8822a81625",并按条目追加 finding_id 或 finding_key。

由 Sentinel 审核 · 目标提交 3263f7fb9e95

@evomap-aiqa-bot

Copy link
Copy Markdown

Sentinel 保留了 4 个尚未确认的审核候选。这些黄色条目不阻塞合并;红色 P0/P1 与其他独立硬门禁不受影响。 单一猜测、缺少变更行证据或纯 checklist 的候选会统一降为 P3。
开发 agent:请 review 以下 advisory,并逐条给出“已验证无风险 / 已修复 / 转为后续事项”的结论;不要只做整体确认。

  • [P3] 已结束 turn 的 late 回调仍可写入状态行 — 本次 PR 用 statusTurnId 防止旧 turn 覆盖“后续新 turn”,但只在 startTurn 中赋值,没有在当...(truncated) · hosts/claude-code/dist/hooks/register.ts · advisory_ff022a381fddf9c01d8c32b4
  • [P3] 新增 recall 状态函数没有接入运行时 — 本 PR 新增了 RECALLING_STATUS、recallStatusOf 和 arrivedLateStatusOf,但当前完整 diff 中没有任何...(truncated) · lib/recall-status.js · advisory_fdd3d342d9a387c3eff7cdf3
  • [P3] 同步完成的 recall 不会返回终态状态行 — /event 先从 channel.handle() 的结果中移除 traced,但仅在存在 late 时序列化 status: RECALLING_...(truncated) · lib/channels/relay/server.js·advisory_c3b55629b0ff0bd7293be3c7`
  • [P3] /late 的仅状态响应破坏旧版客户端兼容性 — /late 过去只返回 null 或 { id, text },本次新增 { status } 响应。基线客户端把任何非空结...(truncated) · lib/channels/relay/server.js · advisory_601b6603523f0e520a4b8f34

需要完整证据时,可用行末 finding_key 查询 Sentinel PR review context。

由 Sentinel 审核 · 目标提交 3263f7fb9e95

A hooks module older than the status line, running beside a newer relay
(e.g. while the plugin is updated under a running session), read any
non-null /late answer as a landed strategy, so a status-only answer would
have appended `undefined` to the conversation. The current module now asks
with `withStatus: true`. Without it, the relay answers as before: a strategy
or null.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@evomap-aiqa-bot

evomap-aiqa-bot Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Sentinel 已审核此变更,未发现已核验问题,但发现需要人工确认的风险。

另有 10 个需要人工确认的风险;黄色 advisory 不阻塞合并,建议开发 agent review advisory 评论并逐条确认。

开发 agent 查询详情: 调用 MCP 工具 sentinel_pr_review_context,传入 owner_repo="evomap/evolver-agent-plugin"、pr_number=111、head_sha="0011814edc1962c9d06a3e5d8dc960d4097149ed",并按条目追加 finding_id 或 finding_key。

由 Sentinel 审核 · 目标提交 0011814edc19

@evomap-aiqa-bot

Copy link
Copy Markdown

Sentinel 保留了 10 个尚未确认的审核候选。这些黄色条目不阻塞合并;红色 P0/P1 与其他独立硬门禁不受影响。 单一猜测、缺少变更行证据或纯 checklist 的候选会统一降为 P3。
开发 agent:请 review 以下 advisory,并逐条给出“已验证无风险 / 已修复 / 转为后续事项”的结论;不要只做整体确认。

  • [P2] 同步 recall 的终态 status 被 /event 丢弃 — /event 从结果中解构并移除了 traced,却只在存在 late 时生成 status: RECALLING_STATUS;同步...(truncated) · lib/channels/relay/server.js · advisory_e626a899d39a8523ecde6881
  • [P2] 同步完成的 recall 不会发布终态状态 — /event 从 channel.handle() 的结果中取出并移除 traced,但只在存在 late 时返回 status: RECALLI...(truncated) · lib/channels/relay/server.js·advisory_1b189e64573b566de5be0be3`
  • [P3] 已结束 turn 的 late recall 仍可写入状态行 — statusTurnId 只在新 turn 启动时更新,没有在当前 turn 的 complete、fail、cancel 或结束路径失效...(truncated) · hosts/claude-code/dist/hooks/register.ts · advisory_69fda40fa3b35df80acf41be
  • [P3] 新增 recall 状态函数未接入运行时,状态行功能不会生效 — 本次新增了 RECALLING_STATUS、recallStatusOf 和 arrivedLateStatusOf,但当前 PR 的运行时代码没有...(truncated) · lib/recall-status.js · advisory_f31d695a3ec8330b9911b969
  • [P3] 无终态文本的正常 recall 被误报为未完成 — recallStatusOf({ outcome: 'passed_over' }) 被明确设计为返回 null;relay 因而让 /late 返回 null,...(truncated) · hosts/claude-code/dist/hooks/register.ts · advisory_8be0249a9e4dddd3a409a1f4
  • [P3] Recall 状态函数未接入实际运行链路 — lib/recall-status.js 提供了新增状态函数,各 host profile 也发生了相关变更,但 service orchestrati...(truncated) · hosts/*/profile.js`, `lib/recall-status.js`, `lib/agent/driver.js · advisory_5027aa6b82645911561ce586
  • [P3] Turn 结束后 Late Recall 仍可改写状态 — Turn 生命周期结束后,late recall 的回调仍可进入状态更新路径;结束状态没有形成写入屏障...(truncated) · lib/turn-summary.js`, `lib/app/prompt.js`, `lib/channels/relay/server.js · advisory_0c0abaf0b95cc6672f831c1e
  • [P3] turn 结束后 late recall 仍可能改写状态行 — 当前补丁验证了“新 turn 已开始”时通过 turnId 阻止旧回调写状态,也验证了 /late 请求...(truncated) · hosts/claude-code/dist/hooks/register.ts · advisory_6b3e786ca9180e5f44da31d4
  • [P3] 同步 Recall 的终态状态在 Relay 边界被丢弃 — 同步 recall 的生产端会产生终态 status,但 /event 消费端没有保留或发布该字段,导致同步...(truncated) · lib/channels/relay/server.js`, `lib/turn-summary.js · advisory_b3f01a443c6f4a18a8eb938a
  • [P3] 无终态文本的成功 Recall 被判定为未完成 — 完成状态的消费逻辑似乎以“存在终态文本”代替明确的完成标记。合法成功但没有终态文...(truncated) · lib/turn-summary.js`, `lib/recall-status.js · advisory_ef3e65b51fdd1c2f6476e818

需要完整证据时,可用行末 finding_key 查询 Sentinel PR review context。

由 Sentinel 审核 · 目标提交 0011814edc19

…ot finish" means only a failed request

A trace with no line of its own (or a recall with no trace) made /late answer
null, which the module showed as "recall did not finish". Any finished recall
with a trace now answers a status, with "no EvoMap strategy injected" for
decisions the line names nothing else for. The module keeps "did not finish"
for a /late request that failed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@evomap-aiqa-bot

evomap-aiqa-bot Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Sentinel 已审核此变更,未发现已核验问题,但发现需要人工确认的风险。

另有 8 个需要人工确认的风险;黄色 advisory 不阻塞合并,建议开发 agent review advisory 评论并逐条确认。

开发 agent 查询详情: 调用 MCP 工具 sentinel_pr_review_context,传入 owner_repo="evomap/evolver-agent-plugin"、pr_number=111、head_sha="660dd35555151d34d8a00735a76c3102c20ad457",并按条目追加 finding_id 或 finding_key。

由 Sentinel 审核 · 目标提交 660dd3555515

@evomap-aiqa-bot

Copy link
Copy Markdown

Sentinel 保留了 8 个尚未确认的审核候选。这些黄色条目不阻塞合并;红色 P0/P1 与其他独立硬门禁不受影响。 单一猜测、缺少变更行证据或纯 checklist 的候选会统一降为 P3。
开发 agent:请 review 以下 advisory,并逐条给出“已验证无风险 / 已修复 / 转为后续事项”的结论;不要只做整体确认。

  • [P2] 同步完成的 recall 不会显示终态状态 — /event 解构并丢弃了 traced。只有存在 late 时才返回 RECALLING_STATUS;同步完成时直接返回...(truncated) · lib/channels/relay/server.js · advisory_888183536a762d51f4539a6c
  • [P2] 已结束 turn 的 late recall 仍会写入全局状态行 — statusTurnId 只在 startTurn() 中更新,从未在 turn complete、fail、cancel 等结束路径失效。只要...(truncated) · hosts/claude-code/dist/hooks/register.ts · advisory_58c2c77ee0183f836a8d4534
  • [P3] 及时完成的 recall 会因 late 为空而崩溃 — late 在协议中是可选的,recall 在等待窗口内完成时可以没有 late。当前代码只判断 text...(truncated) · lib/app/prompt.js · advisory_55e7299f5814638bd0a2f546
  • [P3] 同步 recall 的终态状态被 relay 丢弃 — /event 从结果中解构并移除 traced,但只有存在 late 时才返回 RECALLING_STATUS 并把 trace 存...(truncated) · lib/channels/relay/server.js · advisory_f185786d57cd78983ee6f1a8
  • [P3] 新增的召回状态文案未接入运行时响应 — 新增的状态生成函数没有被运行时代码导入或调用;Claude profile 仅将原始 traced 对象附加...(truncated) · lib/recall-status.js · advisory_23b976396d3e60dacaa3e1a5
  • [P3] 无 late 能力的宿主提交普通提示时会访问 null.then — 新代码用 text ? late.then(() => lastTrace) : null 创建 traced,但 late 对不支持延迟 recall 的宿主...(truncated) · lib/app/prompt.js · advisory_9134b0ee20b11dc2b7d0fd38
  • [P3] recall 终态由生产端生成,但 relay/响应链未消费 — lib/recall-status.js 新增终态文案,turn/recall 流程也能产生同步完成状态,但 relay 或运行时响...(truncated) · lib/channels/relay/server.js · advisory_d0843ca5a10daea341ebfbb0
  • [P3] 可选 late 能力被当作 Promise 使用,导致运行时崩溃 — 提示处理链把宿主可选的 late 返回值直接用于 .then。当宿主不提供 late-recall 能力时,该...(truncated) · lib/app/prompt.js · advisory_8cdd618b0b483423240c60df

需要完整证据时,可用行末 finding_key 查询 Sentinel PR review context。

由 Sentinel 审核 · 目标提交 660dd3555515

@forrestlinfeng

Copy link
Copy Markdown
Contributor Author

Sentinel review items: conclusions at 660dd35

Head 660dd35: CI all green. Sentinel reports 0 blocking and 0 verified findings, with yellow advisories only (non_blocking). Across the rounds the advisories reduce to these points:

Advisory Conclusion
A late recall from an earlier turn overwrites a newer turn's status line Fixed (3263f7f). The module keeps the id of the running turn, and a late answer writes the line only for that turn. Tested: it fails on the old module and passes now.
/late failing or the relay restarting leaves "recalling…" forever Fixed (3263f7f). A turn that showed "recalling…" always settles, to "recall did not finish for this prompt" when the request fails. Tested the same way.
A status-only /late answer breaks an older module beside a newer relay Fixed (0011814). Status-only answers go only to a module that sends withStatus: true; any other module gets a strategy or null, as before. Tested.
A finished recall with no line of its own is shown as "did not finish" Fixed (660dd35). A traced recall always answers a status (fallback "no EvoMap strategy injected"); "did not finish" now means only a failed request.
A late recall still writes the status line after its own turn ended, before the next turn starts Intended. The line describes the last turn's recall until the next one starts; "arrived after this turn ended" exists for exactly this case. Only a newer turn blocks the write.
"The new recall-status functions are not wired into the runtime" False positive (slicing). lib/channels/relay/server.js imports RECALLING_STATUS, recallStatusOf and arrivedLateStatusOf and uses them in /event and /late. test/channels/relay.test.js and test/hosts/claude-code/module.test.js assert the lines end to end.
A recall that completes synchronously gets no final status Not reachable for this relay. The relay serves only Claude Code, whose budgets.prompt is 0, so recalled() always takes the late path; traced is produced only there.
late.then on a null late for hosts without late False positive. In lib/app/prompt.js, traced is built at line 157, after if (!keepLate) return { injection: '' } (line 150) and right after const late = recall.then(…) (line 151), so late is always a Promise there.

🤖 Generated with Claude Code

@forrestlinfeng
forrestlinfeng merged commit e0c1d5a into main Nov 23, 2026
13 checks passed
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