Skip to content

fix(catalog): refresh Azure vision and token metadata during discovery - #6754

Closed
x3M3x wants to merge 2 commits into
lidge-jun:devfrom
x3M3x:codex/azure-vendor-metadata
Closed

x3M3x wants to merge 2 commits into
lidge-jun:devfrom
x3M3x:codex/azure-vendor-metadata

Conversation

@x3M3x

@x3M3x x3M3x commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Custom-named providers targeting a parsed *.openai.azure.com hostname can discover known models without input modalities or token limits. Fill missing image/text/audio, context and output metadata in the shared catalog projection. Azure inference capability flags are not treated as evidence of vision.
  • Refresh the public https://models.dev/api.json Azure rows during Azure catalog discovery, including static configured models. Cache the subset for 24 hours, coalesce concurrent refreshes, and bound each refresh to two seconds and 16 MiB. Stale cache and bundled metadata remain available offline. Published Azure fields take precedence over bundled Azure/vendor fallback; generation requests do not fetch the catalog.
  • Preserve explicit declarations, reported modalities (including vision: false), configured token limits/caps and existing sidecar behavior. Match known model IDs exactly or case-insensitively; do not guess arbitrary deployment aliases or unpublished model names. New published IDs can receive vision metadata without another bundled-data release.
  • Refresh seven stale 373k OpenAI snapshot contexts to the existing canonical API registry value of 1,050,000 and add the missing GPT-6 Astra row. Record public provenance and the individual-deployment limitation; update provider documentation and directly affected translated context figures.

Verification

  • Required Bun 1.4.0: bun run typecheck — passed.
  • Focused tests for Azure metadata, the closed input-modality enum, vision sidecar behavior, gather authority/single-flight and the core/Lab boundary — 114 passed, 0 failed. Includes real discovery projection, explicit overrides, stale cache, malformed data, Azure/vendor conflicts and 5 MiB acceptance versus 17 MiB rejection.
  • Live public-metadata smoke through the implementation with an isolated temporary config root — passed: 96 Azure rows; GPT-6.1 Sol advertises text/image, 1,050,000 context and 128,000 output; Azure DeepSeek V4 Flash advertises text only, 1,000,000 context and 384,000 output.
  • bun run privacy:scan after staging, bun run structure:check and diff checks — passed. The public refresh sends no provider credentials and uses the existing bounded-body reader.
  • Docs frozen install and cd docs-site; bun run build — passed, 569 pages and 79,101 internal links.
  • Additional focused model-metadata-sync, azure-adapter and azure-model-router-tool-schema tests — 9 passed, 0 failed. Combined focused validation: 123 passed, 0 failed.
  • bun run test:changed — timed out at its 900-second lane limit (exit 124), incomplete and not green. Partial log contains 3,945 passing and 143 failing test records, not full-suite totals. The new Azure metadata regressions passed in this run. Observed failures include Windows ACL hardening (EICACLS), cleanup (EBUSY), OAuth/admission/WebSocket timeouts and killed catalog subprocesses. These failures have not all been proven pre-existing; broader validation remains open. Log retained locally in .tmp/azure-test-changed.log.
  • Earlier full bun run test with Bun 1.4.0 — incomplete and not green. Stopped its dedicated process tree after about 11.5 minutes of cascading Windows timeout/EBUSY cleanup and spend-ledger ownership failures. Partial log: 4,864 passes, 54 failures; these are observed counts, not full-suite totals. Failures also reached OAuth, spill-sweep, catalog retained-sync, Anthropic retry and WebSocket tests. This PR does not claim every failure is pre-existing; the full-suite/review-ready gate remains open.
  • Development base aeebf11e5; fetched dev is two commits newer (89cad95b6) with no implementation overlap. Live provider config and the running proxy were not changed or restarted.

Checklist

  • Scope stays focused and avoids unrelated cleanup.
  • Docs or release notes were updated when needed.
  • Security-sensitive changes were reviewed for secrets, auth, and unsafe defaults. No credential/authentication changes; public response parsing is bounded, destination matching uses the parsed hostname, and explicit declarations retain precedence.

Review readiness checklist

This PR stays in draft until every box below is ticked.

  • Required local validation passed; commands, results, and any full-suite exception are documented.
  • I pushed my PR to a recent dev commit (at most 10 behind; a maintainer may still ask for the exact tip before merge).
  • I resolved all correct Codex and CodeRabbit findings.
  • My PR is ready for review.

@coderabbitai

coderabbitai Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

✅ Deterministic PR hygiene checks passed.

@github-actions github-actions Bot added the bug Something isn't working label Oct 8, 2026
@github-actions

github-actions Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

⏳ DRAFT

  • review readiness checklist open (0/4 boxes ticked).

What to do

  • Tick all four boxes in the PR description once you're done (currently 0/4).

Review readiness checklist

  • ⬜ Required local validation passed; commands, results, and any full-suite exception are documented.
  • ⬜ I pushed my PR to a recent dev commit (at most 10 behind; a maintainer may still ask for the exact tip before merge).
  • ⬜ I resolved all correct Codex and CodeRabbit findings.
  • ⬜ My PR is ready for review.

0/4 boxes ticked.

This PR stays in draft until every box above is ticked.

@x3M3x x3M3x changed the title fix(catalog): infer missing Azure context windows from vendor metadata fix(catalog): refresh Azure vision and token metadata during discovery Oct 8, 2026
lidge-jun added a commit that referenced this pull request Oct 9, 2026
#6794)

* fix(catalog): refresh Azure metadata with captured discovery roots

Carry #6754 with all eight provider documentation locales and regenerated
OpenAI metadata. Refresh public Azure metadata during discovery with bounded
Accept-only requests that reject redirects and retain stale offline fallback.

Isolate snapshots, in-flight refreshes and retry cooldowns by resolved config
directory. Capture that directory at discovery admission and carry it through
refresh, upstream awaits, cached and retained hints, custom rows and combo members.
Include the directory in the gather flight identity so distinct roots cannot join.

Cache only upstream model evidence for Azure-enriched discovery results. Apply
root-specific metadata and configured retention after every fresh, stale and
failure-cooldown read so one upstream result serves A-to-B-to-A root switches
without leaking another root's enriched capabilities or limits.

Register the Azure regression suite in both layout tables. Cover snapshot,
flight, cooldown, pending-discovery and warm-cache root switches, plus a native
302 fixture that proves redirected loopback metadata is never requested.

Co-authored-by: x3M3x <[email protected]>

* test(catalog): place the Azure metadata suite where its layout seed resolves

The ^azure- seed resolves azure-vendor-metadata.test.ts to providers, and the
membership oracle rejects an explicit entry that disagrees with its seed. Move
the suite to tests/providers/ and register it there in both layout tables.

Co-authored-by: x3M3x <[email protected]>

---------

Co-authored-by: x3M3x <[email protected]>
@lidge-jun

Copy link
Copy Markdown
Owner

Thank you, @x3M3x! This change landed on dev through the maintainer carry #6794 (squash commit 089b15f), which credits you with a Co-authored-by trailer. The carry adds root isolation, redirect handling, and a warm-cache fix on top of your metadata refresh. Closing this PR as superseded by #6794.

@lidge-jun lidge-jun closed this Oct 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants