Files
OmniRoute/docs
Diego Rodrigues de Sa e Souza fcc63c48db feat(db): models/5004 — self-correcting model context-window overrides
A persisted per-(provider, model_id) override now wins over the static catalog /
models.dev sync in getModelContextLimit, so a model whose real context window diverges
from the catalog resolves correctly across combo routing, pre-flight compression, and
family fallback.

- migration 110_model_context_overrides + src/lib/db/modelContextOverrides.ts (CRUD,
  cacheless, defensive: null when the table is pre-migration; rejects non-positive windows).
- read-path: getModelContextLimit returns override ?? catalog; getResolvedModelCapabilities
  stays override-free so the reconciler can compare against it.
- src/lib/contextWindowResolver.ts: pure reconcileContextWindows (deps injected) +
  runContextWindowReconcile (reuses getAllSyncedAvailableModels — provider /models
  discovery, no new fetch) + periodic job. Writes auto:discovery overrides only when the
  discovered window diverges from the catalog; never touches manual overrides; self-heals.
- registered in instrumentation-node.ts (CONTEXT_WINDOW_RECONCILE_INTERVAL, 0 disables).

TDD: DB round-trip (7), read-path precedence (3), reconcile logic (6). Consumer suites
green; typecheck:core + lint + cycles + migration-numbering + env-doc-sync clean.
2026-06-30 14:55:54 -03:00
..
2026-06-29 08:40:06 -03:00
2026-06-29 08:40:06 -03:00
2026-06-29 08:40:06 -03:00
2026-06-29 08:40:06 -03:00
2026-06-30 06:54:29 -03:00
2026-06-29 08:40:06 -03:00
2026-06-29 08:40:06 -03:00
2026-06-29 08:40:06 -03:00
2026-06-17 19:26:32 -03:00
2026-06-29 08:40:06 -03:00
2026-06-29 08:40:06 -03:00
2026-06-29 08:40:06 -03:00

title, version, lastUpdated
title version lastUpdated
OmniRoute Documentation 3.8.40 2026-06-28

OmniRoute Documentation

Navigable index of the OmniRoute documentation set. Topics are grouped by intent so you can find what you need quickly.

Looking for the project overview, install steps, or release notes? See the root README.md, CHANGELOG.md, and CONTRIBUTING.md.


For Non-Tech Users

Simple guides for using OmniRoute — no technical background needed.

getting-started/

guides/


For Tech Users

Technical documentation for developers and contributors.

architecture/

How the system is put together — read these to understand the runtime, code layout, and resilience model.

reference/

Lookup material — API surface, environment variables, CLI flags, provider catalog.

frameworks/

Pluggable subsystems exposed to clients, agents, and operators.

routing/

Combo routing, scoring, and replay.

security/

Guardrails, compliance, stealth, and the mandatory patterns for handling public credentials and error messages.

compression/

Prompt compression engines, rules, and language packs.

providers/

Provider-specific integration guides.

comparison/

ops/

Release, deployment, proxies, tunnels, coverage, database, monitoring.

diagrams/

Mermaid sources and exported SVG/PNG diagrams referenced from the docs above. See diagrams/README.md.

i18n/

Translated mirrors of the documentation in 42 locales. See i18n/README.md for the supported language list.

screenshots/

Static screenshots used by the dashboard and the README. Not part of the doc body.


Auto-generated artifacts

  • reference/PROVIDER_REFERENCE.md is generated by scripts/docs/gen-provider-reference.ts from src/shared/constants/providers.ts. Do not edit by hand.
  • The /docs UI is backed by Fumadocs MDX source generation from the subfolders above.