Repository navigation
docs(env): document OMNIROUTE_CORPUS_CACHE_SIZE so Docs Gates goes green again - #11576
Merged
diegosouzapw merged 2 commits intoAug 26, 2026
Conversation
cheaper-inference#11491 added an LRU bound on the local-corpus index cache, read from `OMNIROUTE_CORPUS_CACHE_SIZE` in `src/lib/localCorpus/configured.ts`, but the variable never reached `.env.example` or `docs/reference/ENVIRONMENT.md`. `check:env-doc-sync` enforces that every env var referenced in source appears in both files, so it now exits 1 on every branch: ✗ In code but missing from .env.example: 1 - OMNIROUTE_CORPUS_CACHE_SIZE That check runs inside `check:docs-all`, which is the "Docs Gates (fast-path)" job — so the gate is red for every PR that touches docs or code, regardless of what the PR changes. Documents the variable in both files, in the Memory Optimization section it belongs to alongside the other cache-size knobs.
diegosouzapw
merged commit Aug 26, 2026
eccb660
into
cheaper-inference:release/v3.8.51
11 of 16 checks passed
muhamadgalihsaputra
pushed a commit
to niyatna/NiyatnaRoute
that referenced
this pull request
Sep 27, 2026
…een again (cheaper-inference#11576) Merged via /merge-batch (lote 2026-08-26, v3.8.51). Boarded no worktree combinado junto com outras ~30 PRs; validação única: typecheck/complexity/cognitive-complexity/changelog-integrity verdes, file-size rebaseado onde necessário (crescimento legítimo), lint com os mesmos 228 achados pré-existentes confirmados via sonda contra o tip puro (não introduzidos por este lote), e ~370 testes focados (unit + vitest) passando. Obrigado pela contribuição.
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.
The gate is red for everyone
Docs Gates (fast-path)fails on every PR right now, whatever the PR changes.From my own run on
release/v3.8.51(job):
check:env-doc-syncis the third link in thecheck:docs-allchain, so it takes thewhole Docs Gates job down with it.
Cause
#11491
(
721ee2a03, today) put an LRU bound on the local-corpus index cache:The variable is real and works; it just never reached
.env.exampleordocs/reference/ENVIRONMENT.md, and the contract checker requires both.The fix
Documents it in both files, in the Memory Optimization section next to the other
cache-size knobs (
PROMPT_CACHE_MAX_SIZE,SEMANTIC_CACHE_MAX_SIZE, …), which is wherea reader tuning a low-RAM box would look for it. Behaviour documented from the code:
default
5, LRU eviction of the least-recently-used root, clamped to a minimum of1,non-numeric falls back to the default.
No allowlist entry — the variable is a legitimate operator knob, so it belongs in the
contract rather than in the checker's exception list.
Verification
The checker's own parsers, run against the two files after the change:
Both counts land exactly one above what the failing job reported, and the only name in
the failure list is now present in both sets — so the three
runEnvDocSyncdiffs areall empty.
Docs-only; no code, no tests.