Skip to content

fix(kiro): hide unpublished models from static catalog - #6214

Closed
Ingwannu wants to merge 2 commits into
devfrom
fix/6210-kiro-sonnet55-advertisement
Closed

Ingwannu wants to merge 2 commits into
devfrom
fix/6210-kiro-sonnet55-advertisement

Conversation

@Ingwannu

@Ingwannu Ingwannu commented Sep 28, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • remove Claude Sonnet 5.5, Claude Opus 5.5, GPT-6 Sol, and GPT-6 Luna from the static Kiro picker and context map
  • preserve manual adapter handling and accounting-only price fallbacks independently from picker availability
  • add a focused catalog-contract regression, register it in both test-layout inventories, and document the provider-evidence boundary

Why

Follow-up correction to #6210 and the maintainer policy review on this PR. Kiro has liveModels disabled, so preemptive rows are always offered even when Kiro rejects them. The current official Kiro model catalog lists GPT-5.6, Claude Opus 5, and Claude Sonnet 5, but not these four newer vendor models. Static Kiro rows now require Kiro publication or successful wire observation rather than a vendor announcement alone.

Validation

  • structure SSOT check: passed
  • file-size ratchet: passed
  • test-layout inventory and focused Kiro adapter, catalog-contract, and usage-cost tests: 226 passed, 0 failed
  • git diff --check: passed

All local validation ran as ubuntu in a disposable home with CPUQuota=75%, MemoryHigh=1280M, MemoryMax=1536M, MemorySwapMax=0, and TasksMax=64. No live proxy or configuration was touched. No security scan was run.

@lidge-jun @luvs01 Please prioritize an exact-head review; this removes user-visible routes the provider does not currently publish.

Summary by CodeRabbit

  • Bug Fixes
    • Updated Kiro’s model catalog to reflect confirmed support, removing GPT-6 Sol, GPT-6 Luna, Claude Sonnet 5.5, and Claude Opus 5.5 from its available models and context-window listings.
    • Updated Kiro model availability documentation and checks to match the catalog.

@Ingwannu
Ingwannu requested a review from lidge-jun as a code owner September 28, 2026 20:04
@Ingwannu
Ingwannu requested a review from luvs01 September 28, 2026 20:04
@github-actions

Copy link
Copy Markdown
Contributor

✅ Deterministic PR hygiene checks passed.

@coderabbitai

coderabbitai Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository: lidge-jun/opencodex/.coderabbit.yaml

Review profile: ASSERTIVE

Plan: Advanced

Run ID: 8213c092-aa59-4ccc-ac9c-f5bec9ae9fef

📥 Commits

Reviewing files that changed from the base of the PR and between 98b9fe9 and 964fc23.

📒 Files selected for processing (7)
  • scripts/test-layout/layout.json
  • src/providers/kiro-models.ts
  • structure/providers/kiro.md
  • tests/fixtures/test-layout-expected.json
  • tests/providers/kiro/kiro-adapter.test.ts
  • tests/providers/kiro/kiro-catalog-contract.test.ts
  • tests/usage/usage-cost.test.ts
💤 Files with no reviewable changes (1)
  • src/providers/kiro-models.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.


📝 Walkthrough

Walkthrough

The Kiro catalog and context-window map no longer include four model IDs. Documentation and provider tests describe the static catalog admission rule and verify the exclusions. Usage-cost test text clarifies supported and accounting paths.

Changes

Kiro catalog and accounting

Layer / File(s) Summary
Update the Kiro catalog contract
src/providers/kiro-models.ts, structure/providers/kiro.md, tests/providers/kiro/*, scripts/test-layout/layout.json, tests/fixtures/test-layout-expected.json
The catalog and context-window map no longer include GPT-6 Sol, GPT-6 Luna, Claude Sonnet 5.5, or Claude Opus 5.5. Documentation describes the static catalog admission rule. Provider tests check the exclusions; the 1M-context test lists Claude Sonnet 5.
Clarify usage-cost accounting
tests/usage/usage-cost.test.ts
Test names and comments describe supported and accounting paths, including Kiro’s fallback for observed or historical dotted IDs.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~7 minutes

Change: Bug fix

Merge Risk: ⚪ Minimal · up to 964fc

The Kiro picker no longer advertises the unconfirmed models, while accounting fallbacks remain separate. No concrete merge-blocking risk is identified.

Architecture Summary

Architecture risk: 🔵 Low · up to 964fc

The change affects 4 systems.

Changed systems: tests, scripts, src, structure

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — tests (service) was modified; 4 changed files map to changed impact.
  • observed — scripts (service) was modified; 1 changed file maps to changed impact.
  • observed — src (service) was modified; 1 changed file maps to changed impact.
  • observed — structure (service) was modified; 1 changed file maps to changed impact.

Before / after behavior

  • observed — Modified behavior in scripts/test-layout/layout.json: Added kiro-catalog-contract.test.ts to the explicit test-to-group mapping under providers/kiro.
  • observed — Modified behavior in src/providers/kiro-models.ts: Removed the preemptive GPT-6 Sol/Luna and Claude Sonnet 5.5/Opus 5.5 entries and their comments from KIRO_MODELS.
  • observed — Modified behavior in src/providers/kiro-models.ts: Removed context-window entries for GPT-6 Sol/Luna (272,000 tokens each) and Claude Sonnet 5.5/Opus 5.5 (1,000,000 tokens each).
  • observed — Modified behavior in structure/providers/kiro.md: Documents Kiro’s static picker catalog and its publication-or-wire-observation admission rule, distinguishing picker availability from direct-provider catalogs and accounting-only price fallbacks.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 3…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: removing unpublished models from Kiro's static catalog.
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

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 added the bug Something isn't working label Sep 28, 2026
@Ingwannu
Ingwannu force-pushed the fix/6210-kiro-sonnet55-advertisement branch from fbaa81e to 98b9fe9 Compare September 28, 2026 20:07
@Ingwannu

Ingwannu commented Sep 28, 2026 •

Copy link
Copy Markdown
Owner Author

Rebased cleanly onto current dev 034e787. New exact head is 98b9fe9; the capped structure/file-size gates and all 210 focused tests were rerun successfully on that SHA. @lidge-jun @luvs01 please review this exact head.

@lidge-jun

Copy link
Copy Markdown
Owner

리뷰 · 우선순위 72 / 80

#6210이 Kiro 피커에 Claude Sonnet 5.5를 미리 넣어 두었는데, Kiro는 모델 목록을 서버에서 안 가져오고(liveModels: false) 지금 그 모델 ID를 거절합니다. 그래서 사용자가 고를 수 있는 줄이 보이지만 실제 호출은 실패합니다. 이 PR은 Kiro 정적 목록과 컨텍스트 창 표에서 claude-sonnet-5.5만 빼서, 아직 안 되는 길을 피커에서 숨깁니다. Anthropic 등 다른 공급자 목록과 요금 계산용 가격 매칭은 그대로 둡니다. KIRO_MODEL_REASONING_EFFORTS는 KIRO_MODELS에서 만들어지므로, 목록에서 빠지면 추론 노력 옵션도 같이 사라집니다. 회귀 테스트 하나와 structure/providers/kiro.md 경계 설명도 붙였고, base는 dev입니다. types.ts·config.ts 분할이나 미리보기 배포 이야기는 없습니다.

라인 - src/providers/kiro-models.ts — 같은 파일에 gpt-6-sol / gpt-6-luna / claude-opus-5.5는 여전히 "카탈로그에 없어도 미리 넣음, 호출은 실패할 수 있음"으로 남아 있습니다. Sonnet 5.5만 빼는 이유(실제 거절을 확인함)는 PR 본문에 맞지만, 코드·주석만 보면 "문서에 없음"과 "거절 확인"의 기준이 한눈에 갈라지지 않습니다. 앞으로 미리 넣기 규칙을 짧게라도 적어 두면 같은 실수가 줄어듭니다.

라인 - 피커만 숨김 — 이미 설정에 kiro + claude-sonnet-5.5를 저장한 사용자는 목록에서 안 보여도 그 ID로 계속 요청할 수 있습니다. 이번 범위 밖일 수 있지만, 어댑터에서 더 친절한 거절 메시지를 줄지는 별도 판단입니다.

라인 - tests/providers/kiro/kiro-catalog-contract.test.ts — 목록·컨텍스트 창·liveModels: false를 한 번에 잠그는 테스트라 방향이 좋습니다. 작아서 유지비도 낮습니다.

메인테이너의 판단이 필요한 지점

Kiro처럼 liveModels: false인 공급자에서, 문서에 없는 모델을 미리 넣을지 / 거절이 확인될 때만 뺄지 / 아예 미리 넣지 않을지. 남는 claude-opus-5.5·GPT-6 미리 넣기 줄도 같은 기준으로 지금 손볼지, 아니면 Sonnet만 교정하고 갈지.

너의 추천

방향이 맞고 범위도 작습니다. 사용자에게 보이는 잘못된 길을 바로 막는 수정이라 dev에 넣는 것을 권합니다. 머지 전에 미리 넣기 정책 한 줄만 메인테이너가 정해 주세요. 저장해 둔 옛 모델 ID까지 막을지는 후속으로 미뤄도 됩니다. 같은 주제의 다른 열린 중복 PR은 보이지 않았고, 닫을 무효 PR도 없습니다.

이 댓글은 grok-bot이 작성했습니다

@Ingwannu Ingwannu changed the title fix(kiro): hide Sonnet 5.5 until provider support fix(kiro): hide unpublished models from static catalog Sep 28, 2026
@Ingwannu

Copy link
Copy Markdown
Owner Author

Maintainer policy decision: the static Kiro picker will list a model only after Kiro publishes it or successful Kiro wire observation proves support; a vendor announcement alone is not enough. I expanded the correction to the other currently unpublished preemptive rows (GPT-6 Sol/Luna and Claude Opus 5.5) while retaining manual adapter handling and accounting fallbacks. Exact head 964fc23 passes both inventories plus 226 focused tests under the stated caps. @lidge-jun @luvs01 please review this exact head.

@Ingwannu

Copy link
Copy Markdown
Owner Author

Exact head 964fc23 is final-review ready. Independent code review found no remaining P0-P3 after the inventory fix, local capped validation is 226/226, and exact-head hosted CI is fully green: four test shards, gates/typecheck, structure, storage/API, Docker, Windows and Ubuntu npm-global, desktop shell, React Doctor, and aggregate CI. The lone cancelled label entry is a superseded metadata run with later label runs green. @lidge-jun @luvs01 please approve this exact head.

@luvs01 luvs01 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed exact head 964fc23. The static catalog/context entries are removed consistently while manual adapter handling and historical pricing fallback remain intact. No blocking finding from the current diff and catalog contract tests. Current-head hosted test shards 1–4 and aggregate CI passed; skipped Windows/macOS test matrices are not counted as validation.

@lidge-jun

Copy link
Copy Markdown
Owner

Closing: the static Kiro rows for Claude Sonnet 5.5, Claude Opus 5.5, GPT-6 Sol and GPT-6 Luna are deliberate preemptive rows (maintainer decision, labelled in src/providers/kiro-models.ts), and Kiro has since published Claude Opus 5.5 on kiro.dev/docs/models, so removing it would drop a live model. Thank you for the careful write-up; a follow-up that retires a preemptive row once Kiro confirms it will not ship that model is welcome.

@lidge-jun lidge-jun closed this Sep 29, 2026
@lidge-jun
lidge-jun deleted the fix/6210-kiro-sonnet55-advertisement branch October 3, 2026 00:15
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.

3 participants