Skip to content

fix(recall): 将插件的召回超时预算传给 Proxy - #104

Merged
forrestlinfeng merged 1 commit into
EvoMap:mainfrom
imxyanua:fix/recall-hub-timeout
Nov 29, 2026
Merged

forrestlinfeng merged 1 commit into
EvoMap:mainfrom
imxyanua:fix/recall-hub-timeout

Conversation

@imxyanua

@imxyanua imxyanua commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

将阻塞式提示和失败检查已有的召回等待预算传给 Proxy 的 /recipe/search 和 /asset/fetch,覆盖 Recipe 步骤的批量抓取。正数预算向上取整,限制在 100–30000 毫秒。允许迟到的召回和未指定预算的请求继续使用默认设置。

Scope and cuts

改动仅涉及插件召回请求。本地等待及取消逻辑沿用原有设置。Hub 限时要求运行中的 Proxy 支持 timeout_ms,待对应版本正式发布后再做安装包冒烟测试。

Evidence

  • 修改前,插件请求体未向 Proxy 传递 timeout_ms,Hub 请求使用 Proxy 的默认限时。
  • Linux 上 Node 22.23.4 和 Node 26.13.1 均完成全量测试和打包。每轮 1,205 项通过、9 项跳过、0 项失败。
  • 使用源码构建的 Proxy 和回环 Hub 验证两个接口的 8 个正常请求,覆盖取整、上下限以及缺省预算。另验证一次 Recipe 请求超时返回 504 hub_timeout,且上游连接已关闭。

Merge Danger

影响范围为带明确预算的召回请求。可回退本 PR 的单个提交。

阻塞式召回和失败检查召回携带有界的 timeout_ms。迟到结果和无明确预算的调用仍使用 Proxy 默认值。

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

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

Copy link
Copy Markdown

Sentinel 已审核此变更,未发现需要报告的问题。

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

由 Sentinel 审核 · 目标提交 aa809a9b2a89

@forrestlinfeng

Copy link
Copy Markdown
Contributor

Left as a draft. Merged into current main (70d0464) it adds one failing test, packed ZCode prompt hook injects a Recipe in step order and skips duplicate prompt delivery, on the new timeout_ms budget assertion in test/hosts/zcode/hooks.test.js. The description also says the Proxy side of timeout_ms is not released yet, so this should wait for that version either way.

@forrestlinfeng

Copy link
Copy Markdown
Contributor

Reviewed: Sentinel found nothing on this head. Merged into current main, one assertion in test/hosts/zcode/hooks.test.js failed (it capped the Hub budget at ZCode's bare 10 s wait, while ZCode defers a missed recall and so sends wait + 1 s grace, as the local transport does). The code is right; I moved the test's bound to 11 000 in the carrier PR #128 and kept your commits unchanged. Not checked: how a Proxy older than the timeout_ms support treats the extra field.

forrestlinfeng added a commit that referenced this pull request Nov 29, 2026
chore: land draft fork PRs #104 and #102 behind the full CI matrix
@forrestlinfeng
forrestlinfeng merged commit 55f89d9 into EvoMap:main Nov 29, 2026
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.

2 participants