Commit Graph

821 Commits

Author SHA1 Message Date
diegosouzapw
21a5f16608 Merge PR #20169 (feat/db-timestamp-migrations) into merge train 3b 2026-11-15 02:01:59 -03:00
diegosouzapw
600d5811fd Merge remote-tracking branch 'origin/release/v3.8.54' into feat/db-timestamp-migrations 2026-11-14 18:13:59 -03:00
diegosouzapw
8f325a2bf7 Merge remote-tracking branch 'origin/release/v3.8.54' into feat/derived-p1-gate-modes 2026-11-14 18:12:46 -03:00
diegosouzapw
7ace790127 fix(ci): align phase 1 with the merged base (snapshot, coverage sentence, tests)
- docs/reference/derived-facts.json: the base merged a provider and the `jev` strategy (394
  providers, 238 migrations, 22 strategies) and regenerated the README SVGs; the snapshot follows,
  so the generators reproduce those SVGs byte for byte.
- docs/routing/AUTO-COMBO.md: the combo-matrix sentence said "all 21 public strategies" — a test
  coverage statement, not the strategy total, but the count extractor reads it as one. The matrix
  has no `jev` test, so "22" would be false; the sentence no longer carries a number.
- validate-release-green test: the --full-ci loop of the base computes the bucket with
  `fullCiKindFor(g.id, results, g.kind)` and builds `gateEnv`; the wiring assertion follows.
- pr-mode strategy test: compares against the snapshot's strategy count instead of the fixture's.
2026-11-14 09:30:10 -03:00
diegosouzapw
2bcd5bf783 Merge remote-tracking branch 'origin/release/v3.8.54' into feat/derived-p1-gate-modes
# Conflicts:
#	package.json
#	scripts/docs/gen-readme-cli-terminal.mjs
#	scripts/docs/gen-readme-comparison-table.mjs
#	scripts/docs/gen-readme-hero.mjs
#	scripts/docs/gen-readme-promise-pillars.mjs
#	scripts/docs/gen-readme-strategies-grid.mjs
#	scripts/docs/gen-readme-tier-cascade.mjs
#	scripts/quality/validate-release-green.mjs
2026-11-14 09:15:41 -03:00
diegosouzapw
e23db27829 Merge remote-tracking branch 'origin/release/v3.8.54' into feat/db-timestamp-migrations 2026-11-14 09:14:07 -03:00
diegosouzapw
899603b2a1 Merge release/v3.8.54 into test/video-live-receipts-20261009 2026-11-14 07:53:37 -03:00
diegosouzapw
57a4c5ec2c Merge PR #19328 (feat/system-one-complements-1108) into merge train 2
# Conflicts:
#	README.md
#	docs/diagrams/comparison-table.svg
#	docs/diagrams/readme-hero.svg
#	docs/i18n/am/llm.txt
#	docs/i18n/ar/llm.txt
#	docs/i18n/az/llm.txt
#	docs/i18n/bg/llm.txt
#	docs/i18n/bn/llm.txt
#	docs/i18n/bs/llm.txt
#	docs/i18n/cs/llm.txt
#	docs/i18n/da/llm.txt
#	docs/i18n/de/llm.txt
#	docs/i18n/el/llm.txt
#	docs/i18n/es/llm.txt
#	docs/i18n/et/llm.txt
#	docs/i18n/fa/llm.txt
#	docs/i18n/fi/llm.txt
#	docs/i18n/fr/llm.txt
#	docs/i18n/ga/llm.txt
#	docs/i18n/gu/llm.txt
#	docs/i18n/ha/llm.txt
#	docs/i18n/he/llm.txt
#	docs/i18n/hi/llm.txt
#	docs/i18n/hr/llm.txt
#	docs/i18n/hu/llm.txt
#	docs/i18n/hy/llm.txt
#	docs/i18n/id/llm.txt
#	docs/i18n/ig/llm.txt
#	docs/i18n/it/llm.txt
#	docs/i18n/ja/llm.txt
#	docs/i18n/ka/llm.txt
#	docs/i18n/km/llm.txt
#	docs/i18n/kn/llm.txt
#	docs/i18n/ko/llm.txt
#	docs/i18n/lt/llm.txt
#	docs/i18n/lv/llm.txt
#	docs/i18n/ml/llm.txt
#	docs/i18n/mr/llm.txt
#	docs/i18n/ms/llm.txt
#	docs/i18n/mt/llm.txt
#	docs/i18n/my/llm.txt
#	docs/i18n/ne/llm.txt
#	docs/i18n/nl/llm.txt
#	docs/i18n/no/llm.txt
#	docs/i18n/or/llm.txt
#	docs/i18n/pa/llm.txt
#	docs/i18n/phi/llm.txt
#	docs/i18n/pl/llm.txt
#	docs/i18n/pt-BR/llm.txt
#	docs/i18n/pt/llm.txt
#	docs/i18n/ro/llm.txt
#	docs/i18n/ru/llm.txt
#	docs/i18n/si/llm.txt
#	docs/i18n/sk/llm.txt
#	docs/i18n/sl/llm.txt
#	docs/i18n/sr/llm.txt
#	docs/i18n/sv/llm.txt
#	docs/i18n/sw/llm.txt
#	docs/i18n/ta/llm.txt
#	docs/i18n/te/llm.txt
#	docs/i18n/th/llm.txt
#	docs/i18n/tr/llm.txt
#	docs/i18n/uk-UA/llm.txt
#	docs/i18n/ur/llm.txt
#	docs/i18n/uz/llm.txt
#	docs/i18n/vi/llm.txt
#	docs/i18n/yo/llm.txt
#	docs/i18n/zh-CN/llm.txt
#	docs/i18n/zh-TW/llm.txt
#	docs/reference/FEATURE_FLAGS.md
#	llm.txt
#	scripts/docs/gen-readme-comparison-table.mjs
#	scripts/docs/gen-readme-hero.mjs
#	src/i18n/messages/am.json
#	src/i18n/messages/ar.json
#	src/i18n/messages/az.json
#	src/i18n/messages/bg.json
#	src/i18n/messages/bn.json
#	src/i18n/messages/bs.json
#	src/i18n/messages/cs.json
#	src/i18n/messages/da.json
#	src/i18n/messages/de.json
#	src/i18n/messages/el.json
#	src/i18n/messages/en.json
#	src/i18n/messages/es.json
#	src/i18n/messages/et.json
#	src/i18n/messages/fa.json
#	src/i18n/messages/fi.json
#	src/i18n/messages/fr.json
#	src/i18n/messages/ga.json
#	src/i18n/messages/gu.json
#	src/i18n/messages/ha.json
#	src/i18n/messages/he.json
#	src/i18n/messages/hi.json
#	src/i18n/messages/hr.json
#	src/i18n/messages/hu.json
#	src/i18n/messages/hy.json
#	src/i18n/messages/id.json
#	src/i18n/messages/ig.json
#	src/i18n/messages/it.json
#	src/i18n/messages/ja.json
#	src/i18n/messages/ka.json
#	src/i18n/messages/km.json
#	src/i18n/messages/kn.json
#	src/i18n/messages/ko.json
#	src/i18n/messages/lt.json
#	src/i18n/messages/lv.json
#	src/i18n/messages/ml.json
#	src/i18n/messages/mr.json
#	src/i18n/messages/ms.json
#	src/i18n/messages/mt.json
#	src/i18n/messages/my.json
#	src/i18n/messages/ne.json
#	src/i18n/messages/nl.json
#	src/i18n/messages/no.json
#	src/i18n/messages/or.json
#	src/i18n/messages/pa.json
#	src/i18n/messages/phi.json
#	src/i18n/messages/pl.json
#	src/i18n/messages/pt-BR.json
#	src/i18n/messages/pt.json
#	src/i18n/messages/ro.json
#	src/i18n/messages/ru.json
#	src/i18n/messages/si.json
#	src/i18n/messages/sk.json
#	src/i18n/messages/sl.json
#	src/i18n/messages/sr.json
#	src/i18n/messages/sv.json
#	src/i18n/messages/sw.json
#	src/i18n/messages/ta.json
#	src/i18n/messages/te.json
#	src/i18n/messages/th.json
#	src/i18n/messages/tr.json
#	src/i18n/messages/uk-UA.json
#	src/i18n/messages/ur.json
#	src/i18n/messages/uz.json
#	src/i18n/messages/vi.json
#	src/i18n/messages/yo.json
#	src/i18n/messages/zh-CN.json
#	src/i18n/messages/zh-TW.json
#	src/shared/constants/featureFlagDefinitions.ts
#	tests/unit/feature-flags-settings.test.ts
#	tests/unit/server-owned-tool-loop-flag.test.ts
2026-11-14 04:01:31 -03:00
diegosouzapw
61d8566911 Merge PR #19771 (recut/18731-capability-combo-routes) into merge train 2
# Conflicts:
#	open-sse/handlers/webFetch.ts
#	src/shared/validation/schemas/apiV1.ts
2026-11-14 02:52:53 -03:00
diegosouzapw
a08e83c87a Merge PR #19641 (recut/17920-keenable-search) into merge train 2 2026-11-14 02:45:14 -03:00
diegosouzapw
4f64190242 Merge PR #19326 (feat/pii-token-vault-wiring-1108) into merge train 2 2026-11-14 02:45:12 -03:00
diegosouzapw
e712a6e011 fix(db): keep the migration gate tests green once real timestamped files exist
The final verification found that the first real timestamped migration
would have turned three of the new tests red:
- the generator test checked the real directory with a fixed clock
  (2026-11-13T12:00Z), so any real migration dated later read as "in the
  future". It now uses one second after the newest real stamp;
- two gate e2e tests copied every real migration into their synthetic
  bases, so the fixed synthetic stamps were no longer the newest. The
  synthetic bases now take only the legacy NNN_ files.
Both files honor OMNIROUTE_TEST_MIGRATIONS_SOURCE_DIR and joined the guard
test that re-runs them against a copy holding a real timestamped migration.
Without the fix that guard fails on exactly those three tests.

The self-contained gate e2e copies src with dereference, so a symlinked
checkout can never receive the test's constants.ts writes.

--base-latest-tag:
- in a repository with no pure vX.Y.Z tag (the Enterprise one only carries
  vX.Y.Z-ee.N tags) it compares with the newest -ee tag instead of failing;
- against a tag, every file since it is already merged, so the gate and the
  checker (new --merged-base flag) say "fix forward with a new migration"
  instead of "rename" or "new stamp".

MIGRATION_BASE_REF and MIGRATION_COMMUTATION_SCRIPT (test-only) are
documented in .env.example and ENVIRONMENT.md. CODEBASE_DOCUMENTATION.md
and two test messages no longer talk about sequential numbers. A stale
contract comment in migration-commutation.ts now names C1.
2026-11-13 23:46:52 -03:00
diegosouzapw
8804e34acc feat(release): npm run facts and the committed derived-facts snapshot
- scripts/release/facts.mjs: collectFacts/readCodeFactsResult classify a failed probe
  (timeout, spawn, exit, parse) as an infrastructure error, never as documentation drift.
  The 180 s hard timeout that turned a loaded host into a false red is now
  OMNIROUTE_FACTS_TIMEOUT_MS (default 600 s). readCodeFacts() and the test seams keep
  their old shape.
- The inline `node -e` probe becomes a real module (scripts/release/lib/code-facts-probe.mjs),
  run under tsx in a subprocess. It forces a throwaway DATA_DIR before any import, so loading
  the MCP tool modules can never open or migrate the operator's SQLite file.
- `npm run facts [-- --key=a.b] [--snapshot]` prints every derived number as JSON
  (exit 2 on an infrastructure error).
- docs/reference/derived-facts.json: the facts as of the last refresh, serialized in a stable,
  Prettier-identical layout. Generated artifacts and unit tests are judged against it; only
  the release refresh and the nightly refresh PR write it.
2026-11-13 14:55:30 -03:00
diegosouzapw
309cf44453 Merge remote-tracking branch 'origin/release/v3.8.54' into recut/18731-capability-combo-routes
# Conflicts:
#	open-sse/services/imageCombo.ts
#	open-sse/services/speechCombo.ts
#	src/app/api/v1/ocr/route.ts
2026-11-13 11:02:29 -03:00
diegosouzapw
0ba483246e chore(merge): merge release/v3.8.54 into feat/system-one-complements-1108
The base added the expiry-first strategy (#17829) and the
CODE_ASSIST_INELIGIBLE_ONBOARD_LEGACY_TIER flag (#18060), so both sides
had moved the same counts.

- Strategies: the code registry now has 22 public strategies (expiry-first
  and jev). AGENTS.md, open-sse/services/AGENTS.md, the bs AGENTS mirror,
  AUTO-COMBO.md (table now has both rows), RESILIENCE_GUIDE.md and llm.txt
  state 22. The other docs the expiry-first PR bumped to 21 now say 22
  (README, CONTRIBUTING, ARCHITECTURE, FEATURES, OPEN_SSE_ARCHITECTURE,
  REPOSITORY_MAP, CODEBASE_DOCUMENTATION, comparison, diagrams README,
  request-pipeline, QUOTA_SHARE, RELEASE_CHECKLIST, tier-flow images).
  README's strategy table gets a jev row. The README SVGs were regenerated
  from their generators (comparison table, hero, tier cascade, strategies
  grid).
- Flags: both sides' flags are kept (catalog total 125, Runtime 62).
  featureFlagDefinitions.ts stays under the 1440-line cap: the System One
  spread loses its comment and two blank lines are dropped.
- llm.txt i18n mirrors: same five count lines as the root (docs-sync).
- stryker.conf.json: list boundary-engine-seams.test.ts, which now covers
  auth.ts and autoStrategy.ts (check:mutation-test-coverage --strict).
- strategy-registry test: CANONICAL is 22 public + quota-share = 23.
- connectionAwareExpansion.ts, check-fabricated-docs.mjs, stryker.conf.json:
  both sides kept.
2026-11-13 10:49:43 -03:00
diegosouzapw
694c2f3f41 Merge release/v3.8.54 into recut/17920-keenable-search
Brings the recut of #17920 up to release/v3.8.54 at 2f2c1957. The base
added Hetzner, Grokified, Replicate and Cerebrium (#19206) and moved the
canonical provider count 388 -> 393 on the same lines this branch bumps.

The 93 conflicted files were count-only (verified by masking digits). Each
conflict hunk keeps the release side; the merged tree then has 394
canonical providers (check:provider-consistency), so the provider total
was replayed 393 -> 394 on the lines check:docs-counts flags, the matching
llm.txt mirrors, the tier-flow SVGs and the README diagram generators.
Digit-only edits. PROVIDER_REFERENCE.md was regenerated with
gen:provider-reference and the README diagrams with docs:readme-diagrams.

The "Catalog-Marked Free" figure (153) and the README locale mirrors
(389) are left as the base has them; neither is gated and both were
already behind the code before this merge.

Co-authored-by: Ilya Bogin <246701201+ilya-bogin-keenable@users.noreply.github.com>
2026-11-13 10:43:28 -03:00
diegosouzapw
b1106f8edb chore(merge): merge release/v3.8.54 into feat/pii-token-vault-wiring-1108
Resolve the conflicts with the base, which added the
CODE_ASSIST_INELIGIBLE_ONBOARD_LEGACY_TIER flag (#18060) next to this
branch's PII_REVERSIBLE_VAULT_ENABLED flag:

- featureFlagDefinitions.ts: keep both module imports.
- feature-flags-settings / server-owned-tool-loop-flag tests: both flags
  are counted, so the catalog total is 123.
- FEATURE_FLAGS.md: the catalog header and the API example now say 123.

PII_REDACTION_ENABLED and PII_RESPONSE_SANITIZATION still default to
"false" (Hard Rule 20).
2026-11-13 10:38:56 -03:00
diegosouzapw
28031e7f2c Merge PR #16783 (feat/16670-dmr-discovery-1015) into merge train 2026-11-13 10:01:04 -03:00
diegosouzapw
1610f2160d Merge PR #16177 (fix/qg-coverage-scope-20261010) into merge train 2026-11-13 09:35:59 -03:00
Rafa Martins
681f400bda fix(providers): remove ollama-cloud from free-tier catalog (#19512)
Validated in the full merge-train on the .113 (lot 6, 2026-11-13): typecheck, static gates and the full unit suite. Every failure from that run was re-run in isolation, both on the merged tree and on the train base. They come from the .113 root environment, load-sensitive timing, or known flakes. None trace back to this change.

Co-authored-by: Rafa Martins <rafacpti23@users.noreply.github.com>
2026-11-13 09:11:25 -03:00
Jowimila
bf8a11df15 Ccr 08edaced cfifq0 (#19206)
Validated in the full merge-train on the .113 (lot 5, 2026-11-12): typecheck, static gates and the full unit suite. Every failure from that run was re-run in isolation, both on the merged tree and on the train base. They come from the .113 root environment, load-sensitive timing, or known flakes. None trace back to this change.

Co-authored-by: Jowimila <127446097+jowimila@users.noreply.github.com>
2026-11-12 12:29:18 -03:00
Kytran
e5f726626e fix(nvidia): expose gpt-oss-20b in model catalog (#18604)
Validated in the full merge-train on the .113 (lot 5, 2026-11-12): typecheck, static gates and the full unit suite. Every failure from that run was re-run in isolation, both on the merged tree and on the train base. They come from the .113 root environment, load-sensitive timing, or known flakes. None trace back to this change.

Co-authored-by: OpenCode (host) <opencode@kytranempowerment.com>
2026-11-12 12:27:23 -03:00
Dizzle
592ebf8ec2 fix(codeassist): return legacy-tier for ineligible accounts with no allowed default tier (#18060)
Validated in the full merge-train on the .113 (lot 5, 2026-11-12): typecheck, static gates and the full unit suite. Every failure from that run was re-run in isolation, both on the merged tree and on the train base. They come from the .113 root environment, load-sensitive timing, or known flakes. None trace back to this change.

Co-authored-by: Dizzle <112548150+maxmad64bis@users.noreply.github.com>
2026-11-12 12:26:55 -03:00
serenity
c5ea248ea7 fix(usage): 3 fixes in src lib usage (#19463)
Validated in the full merge-train on the .113 (lot 3b, 2026-11-12): typecheck, static gates and the full unit suite. Every failure from that run was re-run in isolation, both on the merged tree and on the train base. The real ones trace to #18060 and #18604, which were fixed separately. The rest come from the .113 root environment, load-sensitive timing, or known flakes. None trace back to this change.

Co-authored-by: serenity <295272363+serenity-X@users.noreply.github.com>
2026-11-12 06:53:25 -03:00
Bl0ck
a5edffa0af fix(cli): allow opt-in stack traces for command failures (#19590)
Validated in the full merge-train on the .113 (lot 3c, 2026-11-11): typecheck, static gates and the full unit suite. Every failure from that run was re-run in isolation, both on the merged tree and on the train base. They come from the .113 root environment, load-sensitive timing, or known flakes. None trace back to this change.

Co-authored-by: Bl0ck <36800583+Bl0ck154@users.noreply.github.com>
2026-11-11 23:15:41 -03:00
Rafa Martins
55c0974e25 fix(images): provide image-specific direct response-start watchdog budget (#19516)
Validated in the full merge-train on the .113 (lot 3c, 2026-11-11): typecheck, static gates and the full unit suite. Every failure from that run was re-run in isolation, both on the merged tree and on the train base. They come from the .113 root environment, load-sensitive timing, or known flakes. None trace back to this change.

Co-authored-by: Rafa Martins <rafacpti23@users.noreply.github.com>
2026-11-11 23:15:16 -03:00
Cristiano Martini Bergamo
3d8c2a0b95 Feat/opencode server executor (#16995)
Validated in the full merge-train on the .113 (lot 3c, 2026-11-11): typecheck, static gates and the full unit suite. Every failure from that run was re-run in isolation, both on the merged tree and on the train base. They come from the .113 root environment, load-sensitive timing, or known flakes. None trace back to this change.

Co-authored-by: Cristiano M Bergamo <cmbergamo@outlook.com>
2026-11-11 23:11:38 -03:00
serenity
054267f1fc fix(memory): 3 fixes in src lib (misc) (#19470)
Validated in the full merge-train on the .113 (lot 2b, 2026-11-11): typecheck, static gates and the full unit suite. The remaining failures in that run come from the .113 root environment, the known base-red (#19329), or timing flakes under load. None trace back to this change.

Co-authored-by: serenity <295272363+serenity-X@users.noreply.github.com>
2026-11-11 11:39:15 -03:00
serenity
a2f4c89d9e fix(cache): 2 fixes in .env (#19460)
Validated in the full merge-train on the .113 (lot 2b, 2026-11-11): typecheck, static gates and the full unit suite. The remaining failures in that run come from the .113 root environment, the known base-red (#19329), or timing flakes under load. None trace back to this change.

Co-authored-by: serenity <295272363+serenity-X@users.noreply.github.com>
2026-11-11 11:38:44 -03:00
diegosouzapw
1874729f43 Merge remote-tracking branch 'origin/release/v3.8.54' into mp/19326 2026-11-10 18:50:54 -03:00
diegosouzapw
fb8bcf743f Merge release/v3.8.54 into feat/system-one-complements-1108 2026-11-10 14:46:23 -03:00
diegosouzapw
cbbd740d36 docs: re-sync provider count to 389 after the Sign in with ChatGPT merge
Both this branch (keenable-search) and release/v3.8.54 (#15201, chatgpt)
moved the canonical provider count 387 -> 388 on the same lines, so the merge
kept 388. The merged tree has 389 canonical providers
(check:provider-consistency). Digit-only edits on those lines (AGENTS.md,
llm.txt + mirrors, README + mirrors, skills, package.json, docs, generator
constants); PROVIDER_REFERENCE.md and the README diagrams regenerated with
gen:provider-reference and docs:readme-diagrams.
2026-11-10 14:12:52 -03:00
diegosouzapw
d6e0e62e91 Merge release/v3.8.54 into recut/17920-keenable-search
Resolve the count-only conflicts with #15201 (chatgpt): README and
ARCHITECTURE keep this branch's lines, the three generated README SVGs take
the base copy and are regenerated in the next commit.
2026-11-10 14:01:11 -03:00
Jan Leon
895c0f3571 feat(chatgpt): bring official Sign in with ChatGPT to OmniRoute (#15201)
Adds ChatGPT as its own OAuth provider through OpenAI's official Sign in with ChatGPT (SIWC) token-sharing flow and the public Responses API: a recognizable sign-in button, OpenAI's consent screen, an account-specific live model catalog, public Responses inference and usage management, without a separately created OpenAI API key or client secret.

Provider-count train, step 6: the branch was merged with the release tip after Codex Web Search (#17933). Both sides had raised the count from 386 to 387, so git kept identical lines; every count line was recounted to 388 (`gen:provider-reference`: 388 unique IDs, oauth=31): README and its 66 mirrors (Persian digits in `fa`), `llm.txt` and its 66 mirrors, AGENTS.md, skills, docs, `package.json` and the SVG generators. PROVIDER_REFERENCE and the README diagrams were regenerated. RESERVED_PREFIX_COUNT is 444 (443 on the base plus `chatgpt`). The `QuotaCard` conflict keeps the ChatGPT local-usage branch and the base's Cursor per-model usage. The PKCE challenge and the test owner fingerprints now go through `generateCodeChallenge` and `opaqueTokenFingerprint`, byte-identical to the inline SHA-256 they replace. Protected files differ from the tip only in digits. Validated with check:docs-counts, check:provider-consistency (388), the focused SIWC, usage UI, golden and count tests, lint and the full fast gates.
2026-11-10 12:47:15 -03:00
diegosouzapw
795c5d661b docs: re-sync provider count to 388 after the Codex Web Search merge
Both this branch (keenable-search) and release/v3.8.54 (#17933, codex-search)
bumped the canonical provider count 386 -> 387 on the same lines, so the merge
kept 387. The merged tree has 388 canonical providers
(check:provider-consistency). Digit-only edits on the lines either side bumped,
plus PROVIDER_REFERENCE.md regenerated with gen:provider-reference.
2026-11-10 11:54:06 -03:00
diegosouzapw
23537e032f Merge remote-tracking branch 'origin/release/v3.8.54' into mp/19326
# Conflicts:
#	tests/unit/feature-flags-settings.test.ts
#	tests/unit/server-owned-tool-loop-flag.test.ts
2026-11-10 11:34:12 -03:00
diegosouzapw
b371d9ddd0 Merge release/v3.8.54 into recut/17920-keenable-search
Resolve the Codex Web Search (#17933) collision: keep both keenable-search
and codex-search in the registry, aliases, handler imports and tests
(24 search providers, 8 fetch providers).
2026-11-10 11:31:55 -03:00
diegosouzapw
36ccef7bbb Merge remote-tracking branch 'origin/release/v3.8.54' into mp/19328
# Conflicts:
#	docs/diagrams/comparison-table.svg
#	docs/diagrams/readme-hero.svg
#	docs/reference/FEATURE_FLAGS.md
#	scripts/check/check-fabricated-docs.mjs
#	scripts/docs/gen-readme-comparison-table.mjs
#	scripts/docs/gen-readme-hero.mjs
#	src/shared/constants/featureFlagDefinitions.ts
#	tests/unit/feature-flags-settings.test.ts
#	tests/unit/server-owned-tool-loop-flag.test.ts
2026-11-10 11:25:31 -03:00
Bl0ck
e41adc327c feat(settings): hot preferred-account failover per provider and model (#19259)
## Summary
Add **Settings → Resilience → Preferred account failover** with hot controls for all chat providers. The feature remains opt-in. Operators can set:
- Global default: **20,000 ms**
- Provider-specific response-start deadline (e.g., `codex`, `antigravity`)
- Exact model or family deadline (e.g., `anthropic/claude-opus-*`), which takes precedence over provider settings
- `0` override to disable preferred fast failover for a specific provider/model

The original built-in Antigravity heuristic is retained when not overridden: **5s** ordinarily and **12s** for Gemini 3.8 Flash, which can be slow to start. These values describe *upstream response start*, not first token/TTFT.

## Implementation
- Add a validated `preferredAccountFailover` section to the existing Resilience GET/PATCH API and sparse normalized settings.
- Retain partial-update semantics for scalar fields; override maps can be explicitly replaced/cleared.
- Key, length, count and 0-or-500..120000ms validation; UI can add/edit/remove provider and model overrides.
- Existing cached settings allow new requests to pick up dashboard changes without server restart (subject to the existing cache TTL).
- Additional tests cover persistence, defaults, partial updates, map deletion, and invalid payloads.

## Dependency / release safety
Stacked on #19258 (universal runtime policy), which depends on #19162 (trusted per-request response-start timeout). Please merge in that order; overlapping parent diff will disappear. Th

Thanks @Bl0ck154.
2026-11-10 10:27:50 -03:00
shin
a2072f4253 feat(services): make the session TTL configurable via OMNIROUTE_SESSION_TTL_MIN (#18394)
## Problem and behavior

The in-memory session map's TTL is hard-coded to 15 minutes. Deployments whose agent sessions legitimately live longer lose them from the active-session views (`/api/sessions`, telemetry summary, monitoring health) after 15 minutes, and the only way to change that today is a rebuild.

## Changes

- New env `OMNIROUTE_SESSION_TTL_MIN` (minutes), registered in `.env.example` and `docs/reference/ENVIRONMENT.md` (`check:env-doc-sync` clean).
- New shared resolver `open-sse/utils/ttlFromEnv.ts`; wiring in `open-sse/services/sessionManager.ts`.
- Fully opt-in: **default stays 15 — zero behavior change unless set.** Unset/blank/NaN/`<=0` all fall back to the default, so a typo can neither disable the TTL nor make it negative.

Thanks @jjxyxsjr.
2026-11-10 10:07:58 -03:00
shin
2a2692c291 feat(combo): opt-in sub-budget for stream-readiness deadline failures (#18721)
## Problem and behavior

The global-attempts cap is calibrated for *fast* failures (429/5xx swap-outs costing seconds each). A stalled upstream that fails the stream-readiness window instead burns a full readiness window (tens of seconds to minutes) **and** a heavyweight body re-dispatch on every rotation — a handful of them multiplies user latency and gateway memory while the global cap still has plenty of headroom, and the combo keeps rotating through every remaining target against an upstream that will stall on all of them.

## Changes

- New pure helpers in `open-sse/services/combo/comboPredicates.ts`: `clampDeadlineFailureBudget` (env parse; unset/empty/`0`/invalid → `0` = disabled, the default; positive integer passes through, floored, clamped to the attempts hard cap — mirrors `clampGlobalAttempts`) and `isReadinessDeadlineFailure` (`status === 504` plus the stable `STREAM_READINESS_TIMEOUT` marker raised by `StreamReadinessReadTimeout`).
- `executeTargetAttempt.ts`: after a failed attempt is recorded, a readiness-deadline failure increments `state.deadlineFailures`; when the configured budget is exhausted the combo terminates with a clean 504 instead of rotating further.
- Counter added to `AttemptLoopState`, initialized alongside `fallbackCount`. Env documented in `.env.example` + `ENVIRONMENT.md`.

Thanks @jjxyxsjr.
2026-11-10 10:06:00 -03:00
diegosouzapw
061696aaad Merge branch 'release/v3.8.54' into codex/capability-aware-web-combos 2026-11-10 09:52:52 -03:00
小妍儿 ✨
96bf7457b0 feat(search): add Codex Web Search through connected ChatGPT accounts (#17933)
Adds `codex-search` (alias `codex_search`), a fallback-only `/v1/search` provider that uses the built-in `web_search` tool through connected OpenAI Codex (ChatGPT) accounts, so no separate search-service key is needed. Normalizes observed sources and citations into standard search rows, bounds the stream to 4 MiB with cancellation, keeps search failures in a search-specific in-memory lock so they never touch the shared Codex connection's health, and records upstream token usage in call logs. `CODEX_SEARCH_AUTO_FALLBACK_ENABLED` (default off) controls whether automatic searches may use a Codex account. Closes #17925.

Provider-count train, step 5 of 5: the branch was merged with the release tip after deAPI (#19319), ParalonCloud (#18356), MegaBrain (#18129) and RenderHour (#18103). Count-only conflicts took the base text and were recounted to 387 (`gen:provider-reference`: 387 unique IDs, search=20): README and its 66 mirrors (Persian digits in `fa`), `llm.txt` and its 66 mirrors, AGENTS.md, skills, docs, `package.json`, the SVG generators and the tier-flow SVGs. PROVIDER_REFERENCE and the README diagrams were regenerated. The feature-flag count is 121 on the merged tree. Protected files differ from the tip only in digits. Validated with check:docs-counts, check:provider-consistency (387), the focused search, flag, golden and count tests, lint and the full fast gates.
2026-11-10 07:31:37 -03:00
diegosouzapw
a03ae96195 Merge release/v3.8.54 into recut/17920-keenable-search
Brings the recut of #17920 up to release/v3.8.54 at 8943ca61, which added
RenderHour (#18103) and moved the provider count 385 -> 386 in the same
count-only files this PR bumps. For those 93 files the release side was kept
and the PR's own +1 provider / +1 hasFree was replayed on top (387 providers,
154 hasFree, 20 search providers). PROVIDER_REFERENCE.md and the four README
diagrams were regenerated. Protected files change in digits only.

Co-authored-by: Ilya Bogin <246701201+ilya-bogin-keenable@users.noreply.github.com>
2026-11-10 04:52:59 -03:00
sha367
8943ca6137 feat(providers): add RenderHour (subscription OAuth + API key) for images, video and speech (#18103)
Adds RenderHour (`renderhour`) as one dual-auth media provider for images, video and speech: subscription sign-in (authorization code + PKCE with the public client via `resolvePublicCred`, rotating refresh tokens) or an `rh_…` API key, both validated with `GET /v1/balance`. One shared client runs RenderHour's async job API (upload, `POST /v1/generations` with an Idempotency-Key, polling with back-off), with thin image, video and TTS handlers on top.

Provider-count train, step 4 of 5: the branch was merged with the release tip after deAPI (#19319), ParalonCloud (#18356) and MegaBrain (#18129). Count-only conflicts took the base text and were recounted to 386 (`gen:provider-reference`: 386 unique IDs): README and its 66 mirrors (Persian digits in `fa`), `llm.txt` and its 66 mirrors, AGENTS.md, skills, docs, `package.json`, the SVG generators and the tier-flow SVGs. PROVIDER_REFERENCE and the README diagrams were regenerated. The OAuth test-config and provider-list conflicts keep both MegaBrain and RenderHour. Protected files differ from the tip only in digits. Validated with check:docs-counts, check:provider-consistency (386), the focused provider, OAuth, refresh, public-creds, golden and count tests, lint and the full fast gates.
2026-11-10 04:36:09 -03:00
diegosouzapw
ab095d6d41 Merge release/v3.8.54 into recut/17920-keenable-search
Brings the recut of #17920 up to release/v3.8.54 at 8e72dbf5. The base added
MegaBrain (#18129), which moved the provider count 384 -> 385 in the same
count-only files this PR bumps. For those 93 files the release side was kept
and the PR's own +1 provider / +1 hasFree was replayed on top (386 providers,
154 hasFree, 20 search providers). PROVIDER_REFERENCE.md and the four README
diagrams were regenerated. Protected files change in digits only.

Co-authored-by: Ilya Bogin <246701201+ilya-bogin-keenable@users.noreply.github.com>
2026-11-10 00:51:48 -03:00
diegosouzapw
f351c01576 Merge remote-tracking branch 'origin/fix/video-promotion-evidence-20261009' into mp/16083 2026-11-10 00:10:55 -03:00
diegosouzapw
567e40c222 Merge release/v3.8.54 into feat/system-one-complements-1108
Re-resolve README generator counts: release's 385 providers, PR's 21 routing
strategies; SVGs regenerated.
2026-11-09 17:08:27 -03:00
sha367
1b2b799cf2 feat(providers): add MegaBrain (subscription OAuth + API key) (#18129)
Adds MegaBrain (`megabrain`, alias `mb`) as one dual-auth chat provider wired like `kilocode`: subscription sign-in through Kilo's device-auth flow on api.getmegabrain.com, or an `mb-v1-…` API key. Requests carry `X-KILOCODE-FEATURE: omniroute` so they count against the plan limits. Includes live model discovery, connection test and key validation via `/api/profile/limits`, Provider Limits (session and weekly quotas), and an error-classifier branch that locks the model instead of banning the connection on MegaBrain's `plan_tier_required` / `extra_usage_off` 403s.

Provider-count train, step 3 of 5: the branch was merged with the release tip after deAPI (#19319) and ParalonCloud (#18356). Count-only conflicts took the base text and were recounted to 385 (`gen:provider-reference`: 385 unique IDs, oauth=29, apikey=258): README and its 66 mirrors (Persian digits in `fa`), `llm.txt` and its 66 mirrors, AGENTS.md, skills, docs, `package.json`, the SVG generators and the tier-flow SVGs. PROVIDER_REFERENCE and the README diagrams were regenerated. The registry conflict keeps both providers with megabrain still last, and RESERVED_PREFIX_COUNT is 443 (paraloncloud/paralon plus megabrain/mb). Protected files differ from the tip only in digits. Validated with check:docs-counts, check:provider-consistency (385), the focused provider, OAuth, golden and count tests, lint and the full fast gates.
2026-11-09 16:32:37 -03:00
diegosouzapw
3398c19b72 Merge release/v3.8.54 into feat/system-one-complements-1108
Re-resolve README generator counts after new providers landed: keep the
release's 384 providers and the PR's 21 routing strategies; SVGs regenerated.
2026-11-09 14:16:06 -03:00