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

Open Beginner friendly
#2,935 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 4 days

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
78/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript

Research direction

The missing timeout is at the judgeMany call in LIFEOS/ERRATA/Audit.ts (around line 473); read that call together with the neighbouring LIFEOS/ERRATA/Triage4.ts:315, which already passes timeoutMs: CALL_TIMEOUT_MS. Then check how DEFAULT_TIMEOUT_MS is applied in LIFEOS/ASSAY/Engine.ts (defined near line 59, used near 423) so you understand the fallback being bypassed. Done means the audit call passes an explicit per-call timeout and a full-pool nightly run of Errata.ts daily no longer reports engine timeout. Note the reporter already has this patch running locally, so check with them before opening a pull request.

Written by the indexing model from the issue text.

Description

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.

Dominant language
TypeScript
Stars
19.9k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from danielmiessler/LifeOS

All issues in danielmiessler/LifeOS

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.