[bug] errata-daily label stage fails with engine timeout because Audit.ts passes no…

未关闭 适合新手
#2,935 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 4 天内回复

还没有人认领这个 Issue。

评估

难度
1/5
预计耗时
1 小时以内
新手友好度
78/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
typescript

调研方向

缺失的 timeout 位于 LIFEOS/ERRATA/Audit.ts 中对 judgeMany 的调用处(大约第 473 行);请结合相邻的 LIFEOS/ERRATA/Triage4.ts:315 一起阅读该调用,后者已经传入 timeoutMs: CALL_TIMEOUT_MS。然后检查 DEFAULT_TIMEOUT_MS 在 LIFEOS/ASSAY/Engine.ts 中是如何应用的(定义在第 59 行附近,使用在第 423 行附近),以便理解被绕过的 fallback。完成意味着审计调用传入显式的每次调用 timeout,并且 Errata.ts daily 的全池夜间运行不再报告 engine timeout。注意报告者已经在本地运行此补丁,因此在打开 pull request 之前请与其确认。

由索引模型根据 Issue 内容生成。

描述

What happened

errata-daily label stage fails with engine timeout because Audit.ts passes no timeoutMs to judgeMany, so each call gets the 3 s hook default

Summary

Errata.ts daily fails its label stage with engine timeout: The operation was aborted. whenever the audit pool holds more than a handful of candidates.

Cause. LIFEOS/ERRATA/Audit.ts:473 calls judgeMany(items, questions, { caller: "errata-audit" }) with no timeoutMs. Each engine call then falls back to DEFAULT_TIMEOUT_MS = 3000 (LIFEOS/ASSAY/Engine.ts:59, applied at :423), which is sized for hooks that call the engine on every turn. The time budget Errata.ts computes reaches only the pool-level withTimeout around the call (Audit.ts:472-476), never the individual request.

Effect (present at 8.761.0, fb9aef4). All candidates go out concurrently (up to 32), and a pool of 15+ calls to @cf/cloudflare/clef-omni often exceeds 3 s per call: on one nightly run 23 candidates were sent, all 23 hit the 3 s limit, and the retry left 18 failed, so the daily run exited 1. Failed rows are retried the next night, so no labels are lost, but the run reads red and labels arrive a day late.

Suggested fix. Pass a per-call timeout the way the neighbouring LIFEOS/ERRATA/Triage4.ts:315 already does (timeoutMs: CALL_TIMEOUT_MS, 15 s):

() => (opts.judgeMany ?? judgeMany)(items, questions, { caller: "errata-audit", timeoutMs: 15_000 }),

I have this applied locally as a patch; the next nightly run with a full pool is the confirmation.

Details

  • Kind: bug
  • LifeOS version: 8.761.0

Filed with the LifeOS /feedback command. The reporter approved this exact text before it was sent; paths, secrets and personal details were stripped locally.

主要语言
TypeScript
星标
19.9k
派生
2.5k
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

danielmiessler/LifeOS 的其他 Issue

查看 danielmiessler/LifeOS 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。