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

Đang mở Phù hợp với người mới
#2,935 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 4 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
1/5
Thời gian dự kiến
Dưới một giờ
Mức phù hợp với người mới
78/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
ai-infra-agents

Hướng nghiên cứu

Timeout bị thiếu nằm ở lời gọi judgeMany trong LIFEOS/ERRATA/Audit.ts (khoảng dòng 473); hãy đọc lời gọi đó cùng với lời gọi lân cận LIFEOS/ERRATA/Triage4.ts:315, vốn đã truyền timeoutMs: CALL_TIMEOUT_MS. Sau đó kiểm tra cách DEFAULT_TIMEOUT_MS được áp dụng trong LIFEOS/ASSAY/Engine.ts (được định nghĩa gần dòng 59, được dùng gần dòng 423) để hiểu fallback đang bị bỏ qua. Hoàn tất nghĩa là lời gọi audit truyền một timeout rõ ràng cho từng lời gọi và một lần chạy ban đêm của Errata.ts daily trên toàn bộ pool không còn báo engine timeout. Lưu ý rằng người báo cáo đã chạy patch này cục bộ, nên hãy trao đổi với họ trước khi mở pull request.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
TypeScript
Star
19.9k
Fork
2.5k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của danielmiessler/LifeOS

Tất cả issue của danielmiessler/LifeOS

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.