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

skillopt-sleep: max_tokens_per_night is defaulted and documented but never enforced

オープン
#313 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

@Thanatos9404 がすでに取り組んでいます。

2026年10月14日 から。

  • #317 @Thanatos9404 による — オープン

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
55/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python

調査の方向性

Read skillopt_sleep/config.py and skillopt_sleep/budget.py, then trace the cycle entry point to see how model calls and report.md are handled. Decide whether to enforce the configured token cap through Budget or remove the unused setting and its documentation; done means the chosen behavior is consistent and the reported configuration no longer promises an unenforced cap.

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

説明

What happens

skillopt_sleep/config.py defines "max_tokens_per_night": 400_000 under the budgets section, and skillopt_sleep/budget.py has a Budget controller that "stops cleanly when exhausted and reports what it skipped". Nothing connects them on main: the key is never read outside DEFAULTS, and Budget( is never constructed. A night's spend is therefore bounded only by max_tasks_per_night, edit_budget and the number of fan-out skill groups, while the config suggests a token cap.

How to check

Version: main at 343db229dbd5ddaf9df6b1d5540d8bcdb2604d5c (uv tool install from git), Python 3.14, macOS.

P=$(python -c 'import skillopt_sleep, os; print(os.path.dirname(skillopt_sleep.__file__))')
rg -n 'max_tokens_per_night' "$P"   # only config.py DEFAULTS
rg -n 'Budget\(' "$P"               # only the class definition in budget.py

This was also noted in passing in the closed feedback issue #57 ("max_tokens_per_night exists, but no real budget enforcement"); that issue was closed for its other points, and the budget is still not enforced at 343db229.

Request

Either wire max_tokens_per_night (and optionally a wall-clock cap) into the cycle through Budget, stopping before the next model call once it is spent and saying so in report.md, or remove the key from DEFAULTS and the docs so users do not rely on it.

主要言語
Python
スター
18.2k
フォーク
1.7k
平均マージ
4日 1時間
マージ済み PR(30日)
10

環境構築

はじめの一歩

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

microsoft/SkillOpt のほかの issue

microsoft/SkillOpt の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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