Repository navigation
search: per-request budgets in code; quality mode redefined - #15
Merged
Merged
Conversation
Quality mode on the 2-core 4 GB box took 238 to 666 s per question with 80 to 144 page fetches and was OOM-killed. Budgets are now enforced in code for every mode (src/lib/agents/search/budgets.ts, overridable via VANE_BUDGET_<MODE>_<NAME>): fetches, browser fetches, search calls and research time, carried on the session as a RequestBudget. - Quality: 6 iterations (was 25), 8 pages per search (was 10), up to two gap rounds, prompt asks for three independent sources plus one conflicting source, then stop. - Scraper: never sends a PDF or other download to the browser; skips the browser once maxBrowserFetches is spent. - Trace: budget.exhausted event, research span stoppedBy and budgetUsed. - Docs: EVAL.md Budgets section, WORKING.md quality paragraph.
all-caps-dev
force-pushed
the
quality-mode
branch
from
November 1, 2026 21:25
d1fc14a to
83a3ddb
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Kaneo Fleet ItzCrazyKns#345 item 1. Measured 2026-11-01 on the 2-core 4 GB box: unbounded quality mode took 238 to 666 s per question, read 80 to 144 pages, ran up to 25 iterations and was OOM-killed on one question.
tsc clean, vitest 198 passed (23 new), prettier clean. docs/EVAL.md "Budgets", WORKING.md updated.
Follow-up: GAP_CHECK_BUDGET_MS is still 60 s, so slow quality runs skip both gap rounds; raise for quality if the eval shows it matters.