sessionbudget diverges from the documented Configure pattern
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
docs/plugin-reference.md の Configure パターンを読み、次に core/plugins/sessionbudget/plugin.go の143行目付近と167-170行目の回避策を確認してください。strict-decode → applyDefaults → validate → state の順序にすでに従っているプラグインのひとつと比較し、同じ形になるように Configure を作り直してください。誤字のある設定キーが拒否され、既存の sessionbudget のテストがすべて通れば完了です。
索引モデルが issue の本文から書いたものです。
説明
What
docs/plugin-reference.md mandates the Configure pattern: strict decode (DisallowUnknownFields) → applyDefaults → validate → state. 11 of the 13 Configurable plugins follow it (verified). sessionbudget is the one that doesn't:
core/plugins/sessionbudget/plugin.go:143 — plain json.Unmarshal (no strict decode), defaults set before decode, then the "explicit 0 (or unset via struct-marshal) — restore default" workaround at :167-170 — the exact bug applyDefaults-after-decode exists to prevent — plus ~90 lines of validation inlined into Configure.
Fix
A mechanical re-shape to the documented pattern. No behavior change for correct configs; misspelled config keys start being rejected like every other plugin's.
Found in the 2026-10-29 structural audit of code organization.
- 主要言語
- Go
- スター
- 21
- フォーク
- 43
- 平均マージ
- 13時間 8分
- マージ済み PR(30日)
- 267
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
rossoctl/cortex のほかの issue
-
UI shows costs for all sessions even when drilled into a session対応中かも @esnible が 16 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
rossoctl/cortex#1116 · コメント 2 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 半日 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 1週間以上 初心者へのやさしさ 18/100
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 半日 初心者へのやさしさ 45/100
メンテナーはふだん 1 日以内に返信
rossoctl/cortex の issue をすべて見る
似ている issue
-
automation doc-healer documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
tsukumogami/tsuku#2804 ·
メンテナーはふだん 1 日以内に返信
-
Anthropic /v1/messages: only the last thinking block of an assistant message is kept対応中かも @Shayan12456 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
ollama/ollama#19415 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
raised-by:verifier
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
medici-finance/assay#5039 ·
メンテナーはふだん 1 日以内に返信
-
metax CheckHealth reads Status.Capacity, so unhealthy Metax-GPU nodes are never cleaned up対応中かも @barbierajput378-pixel が今日担当しました。 オープンkind/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
Project-HAMi/HAMi#3343 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信