Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

pricing: a non-USD unit on a hostless or "*" block unprices the bundled table everywhere

クローズ 初心者向け
#1,190 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
86/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
go
領域
backend, testing

調査の方向性

既存の multiplier のみを対象とする拒否処理の横にある起動設定のバリデーションから始め、その後 TestConfig_AUnitOnAMultiplierOnlyBlockIsRefused を調べます。ホストなしまたは "*" のブロックにおける USD 以外の単位について、テーブルの行または隣接するケースを追加し、起動時に拒否されることを確認します。

索引モデルが issue の本文から書いたものです。

説明

Found by an independent review of #1153 at 80348bfc (and raised by pdettori there as a suggestion); deferred by the author's call.

After #1153 a unit is host-wide, and only rows in an endpoint's unit may price its traffic. A block with unit: and no hosts: (or hosts: ["*"]) covers every endpoint, so every endpoint no more specific block names takes that unit — and the bundled dollar table stops pricing anything there.

Measured at 80348bfc with hosts: ["*"], unit: credits, models: {premium-ide} and the bundled table on:

api.anthropic.com  claude-opus-4-1   unit=credits  prov=none

At a66911e9 the same request was unit=USD prov=bundled. The unpricing is loud (unpricedBy names every pair); the other half is silent: a charge any of those endpoints reports itself is labelled credits.

Shape of a fix

Refuse a non-USD unit: on a hostless or "*" block at startup, beside the multiplier-only refusal — a unit is a gateway's, so its hosts should be named — with one row added to TestConfig_AUnitOnAMultiplierOnlyBlockIsRefused's table or a sibling.

Assisted-By: Claude (Anthropic AI) [email protected]

主要言語
Go
スター
18
フォーク
42
平均マージ
12時間 31分
マージ済み PR(30日)
258

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

rossoctl/cortex のほかの issue

rossoctl/cortex の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。