Repository navigation
gateway: expose authorized single model lookup - #516
Merged
Merged
Conversation
sjungwon03-ai
approved these changes
Oct 18, 2026
sjungwon03-ai
left a comment
Member
There was a problem hiding this comment.
Review summary
Verdict: Approved
- Reviewed: authorized single-model lookup routing, IAM, audit projection, and regression coverage
- Checks: all reported CI checks passed; local
npm run checkpassed with 6,893 tests passed and one optional skip
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.
Summary
Closes #514
Refs #116; structural guard follow-up #515
Plan: docs/plans/514-single-model-discovery.md
Contract: contracts/single-model-discovery.md
TDD and validation
env -u NODE_NO_WARNINGS -u NODE_OPTIONS PATH="/home/ubuntu/.local/bin:$PATH" npm run checkpassed: 6,894 cases,6,893 passed, one optional external PostgreSQL skip, zero failures/cancellations. Strict types, lint, planning/link/contract/fixture-secret checks and all four offline pin integrity checks passed. Local evidence:/tmp/opengranter-514-check.log.Source and remaining limits
Official lookup: https://openrouter.ai/docs/api/api-reference/models/get-a-model-by-its-slug; OpenAPI: https://openrouter.ai/openapi.json, inspected2026-10-18. Installed OpenRouter1.4.18 uses actual models.get socket requests and recognizes the compatible error envelope.
Only explicitly published rich aliases can produce a complete model. Local segment limits/encoding restrictions and proxy-token IAM differ from unrestricted upstream identifiers/management-key examples. No implicit slug-alias resolution, provider endpoint inventory or live metadata refresh/certification is added. Follow-up #515 tracks the new operation/path/root envelope, which is outside the current four structural pins. Complete #116 and unresolved #7 remain open.
Assisted-by: Codex
Signed-off-by: sjungwon03 sjungwon03@gmail.com