Skip to content

docs(adr): 課金・マルチプロバイダ撤去と Haiku 無料一本化の ADR(ADR-0023 / #520)#532

Merged
yusuke0610 merged 2 commits into
mainfrom
docs/adr-0023-billing-multiprovider
Jul 21, 2026
Merged

docs(adr): 課金・マルチプロバイダ撤去と Haiku 無料一本化の ADR(ADR-0023 / #520)#532
yusuke0610 merged 2 commits into
mainfrom
docs/adr-0023-billing-multiprovider

Conversation

@yusuke0610

@yusuke0610 yusuke0610 commented Jul 21, 2026

Copy link
Copy Markdown
Owner

概要

機能整理ロードマップ #517 のサブ issue #520プリペイド課金(ADR-0012)・マルチプロバイダ(ADR-0013)・Vertex 経路(ADR-0015)を Superseded にし、本番 Agent を Claude Haiku 無料一本化 + ユーザ単位レート制限へ縮退する方針を ADR-0023 として起票する。本 PR は ADR のみ(実装は #521-523)。

決定

トレードオフ(明記済み)

設計判断: 残す Anthropic の認証

マルチプロバイダ撤去後も Anthropic-Haiku は Vertex AI(ADC) を維持(ユーザー確認済み)。ADR-0015 の PII データガバナンス(学習除外 + アジア圏データ所在)を単一プロバイダでも継承する。撤去するのは Gemini(VERTEX_LOCATION/google-genai)・OpenAI(OPENAI_API_KEY/openai)のマルチプロバイダ部分のみ。

索引更新(同一 PR)

  • ADR-0012/0013/0015 を Superseded by ADR-0023 に変更(各 ADR のステータス + 前方参照注記 + README 索引の両表 + LLM/Agent 系統図)
  • make lint-adr-index green

受け入れ条件

  • ADR が Accepted で入り索引と整合(make lint-adr-index green)
  • 撤去順序が ADR に記載され後続 3 PR の指針になる

Closes #520

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation
    • Added ADR-0023 documenting the move to a single Claude Haiku production model.
    • Documented the removal of prepaid billing and multi-provider model selection.
    • Recorded daily rate limiting and Ollama support for local development.
    • Updated the ADR index and related decisions to reflect the superseded architecture and retained Vertex AI integration.

機能整理ロードマップ #517 のサブ issue #520。プリペイド課金(ADR-0012)・
マルチプロバイダ(ADR-0013)・Vertex 経路(ADR-0015)を Superseded にし、本番
Agent を Claude Haiku 無料一本化 + ユーザ単位レート制限へ縮退する方針を記録する。

- ADR-0023 を新規作成(Accepted)。撤去順序(レート制限 → 課金撤去 → プロバイダ
  撤去)を後続 3 PR(#521-523)の指針として明記
- トレードオフ明記: Haiku コストが運営持ち → レート制限が前提条件 / 既存クレジット
  残高消失(破壊的)/ 上位モデル選択の喪失
- 残す Anthropic は Vertex AI(ADC) 維持(ADR-0015 の PII ガバナンスを単一プロバイダ
  でも継承)。撤去は Gemini/OpenAI マルチプロバイダ部分のみ
- ADR-0012/0013/0015 を Superseded by ADR-0023 に変更し索引・系統図・各 ADR の
  ステータスと前方参照注記を同一 PR で更新(lint-adr-index green)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Jul 21, 2026
@coderabbitai

coderabbitai Bot commented Jul 21, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@yusuke0610, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 50 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: c045dcf5-6908-4efb-961f-321b2dea7e08

📥 Commits

Reviewing files that changed from the base of the PR and between 40abd8e and 9f11e6e.

📒 Files selected for processing (3)
  • docs/adr/0012-agent-model-switching-and-prepaid-billing.md
  • docs/adr/0013-multi-provider-llm-selection.md
  • docs/adr/0015-vertex-ai-for-gemini-anthropic.md
📝 Walkthrough

Walkthrough

This documentation change introduces ADR-0023 for removing prepaid billing and multi-provider LLM selection, consolidates production on Claude Haiku, and updates superseded ADR statuses and the ADR index.

Changes

ADR architecture consolidation

Layer / File(s) Summary
Decision records and supersession history
docs/adr/0023-remove-billing-multiprovider.md, docs/adr/0012-..., docs/adr/0013-..., docs/adr/0015-...
ADR-0023 documents the consolidated architecture, deprecation sequence, retained Vertex AI path, and rate-limiting approach; ADR-0012, ADR-0013, and ADR-0015 are marked superseded.
ADR index synchronization
docs/adr/README.md
Active and historical ADR tables and the LLM/Agent Mermaid graph now reference ADR-0023 and its superseded decisions.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Possibly related issues

  • Issue 523: Implements removal of provider abstractions and model selection described by ADR-0023.
  • Issue 522: Implements removal of Stripe and prepaid billing infrastructure described by ADR-0023.

Possibly related PRs

Suggested labels: documentation, ci

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Linked Issues check ❓ Inconclusive The main ADR scope is covered, but the summary does not explicitly confirm ADR-0018 and the agent invariant requirements. Verify that ADR-0023 explicitly covers ADR-0018 billing wiring removal and the DB/error-contract/structured-output invariants.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the ADR change: retiring billing/multi-provider support and standardizing on Haiku.
Out of Scope Changes check ✅ Passed The PR stays within ADR and index documentation changes and introduces no unrelated code or product behavior changes.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/adr-0023-billing-multiprovider

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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs/adr/0012-agent-model-switching-and-prepaid-billing.md`:
- Line 119: Correct or defer the future-dated 2026-07-22 ADR history entries
consistently at
docs/adr/0012-agent-model-switching-and-prepaid-billing.md:119-119,
docs/adr/0013-multi-provider-llm-selection.md:74-74, and
docs/adr/0015-vertex-ai-for-gemini-anthropic.md:65-65, using the actual decision
or merge date and ensuring no entry remains later than the review date.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: c74dd0cc-6f00-4943-96ae-cc14eb273899

📥 Commits

Reviewing files that changed from the base of the PR and between 090daeb and 40abd8e.

📒 Files selected for processing (5)
  • docs/adr/0012-agent-model-switching-and-prepaid-billing.md
  • docs/adr/0013-multi-provider-llm-selection.md
  • docs/adr/0015-vertex-ai-for-gemini-anthropic.md
  • docs/adr/0023-remove-billing-multiprovider.md
  • docs/adr/README.md

Comment thread docs/adr/0012-agent-model-switching-and-prepaid-billing.md Outdated
CodeRabbit 指摘: ADR 履歴注記の日付がレビュー日より未来。ADR-0023 の決定は
2026-07-21(ユーザー確認)に確定したため、その決定日に揃える。

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@yusuke0610
yusuke0610 merged commit ad91c3f into main Jul 21, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Agent 整理 1/4] ADR 起票: 課金・マルチプロバイダ撤去と Haiku 無料一本化

1 participant