Terminal rollout projection drops numeric dataset ID zero
メンテナーはふだん 2 日以内に返信
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 45/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
調査の方向性
Read _data_id_of in agentlightning/server/routes/rollouts.py and inspect the terminal rollout projection. Reproduce the zero-ID case with the in-process FastAPI TestClient steps in the issue, then run the focused endpoint regression tests. Done means numeric zero is returned as "0", while the existing missing, null, and empty-ID fallback cases still pass.
索引モデルが issue の本文から書いたものです。
説明
Problem
The terminal rollout projection loses numeric dataset ID 0. On main 05c7fe133175653e48c990546a3509e52dc56512, enqueueing a rollout with input={"data_id": 0}, then transitioning it to running and succeeded, makes GET /api/rollouts/terminal return data_id: "". With an instance_id also present, it returns that fallback instead of the explicit zero ID. A zero instance_id is also lost.
The source is _data_id_of in agentlightning/server/routes/rollouts.py, which uses truthiness to select and stringify the ID. The original input is intact; the bug affects the public terminal projection, not stored input or the trainer's internal UUID grouping.
Reproduction
Using an in-process FastAPI TestClient against create_app:
POST /api/rolloutswith[{"input":{"data_id":0,"instance_id":"fallback"}}].- PATCH the returned rollout's
status.statetorunning, thensucceeded. - GET
/api/rollouts/terminal.
Expected: the item's data_id is "0". Actual: "fallback".
Four endpoint regressions for zero-valued IDs fail on unchanged main; five controls for string IDs, missing/null/empty primary IDs pass. The focused correction preserves zero while retaining missing/null/empty fallback behavior. The server, client and package suites pass (58 tests) after it.
Windows, Python 3.12.7, FastAPI 0.162.0, HTTPX 0.28.1. Dependencies were installed from declared ranges, not the frozen lockfile. No GPU, Kubernetes cluster, model request or external service was used. AI assistance: Codex investigated, reproduced and prepared the fix and tests.
- 主要言語
- Python
- スター
- 18.8k
- フォーク
- 1.7k
- 平均マージ
- 3日 13時間
- マージ済み PR(30日)
- 10
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoft/agent-lightning のほかの issue
-
Low-precision rollout normalization can overflow its divisor and erase advantages対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
microsoft/agent-lightning#661 ·
メンテナーはふだん 2 日以内に返信
-
RayPPOTrainer._dump_generations() missing gts argument in _train_step call対応中かも @yunkai-yyk が 253 日前に担当しました。 オープンbug v0.x verl
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
microsoft/agent-lightning#492 ·
メンテナーはふだん 2 日以内に返信
-
enhancement store v0.x
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
microsoft/agent-lightning#372 · コメント 10 件 ·
メンテナーはふだん 2 日以内に返信
-
Gateway loses model-request events for malformed or non-object upstream JSON対応中かも @JianhaoYu-AI が 3 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 20/100
microsoft/agent-lightning#655 ·
メンテナーはふだん 2 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
microsoft/agent-lightning#650 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
microsoft/agent-lightning の issue をすべて見る
似ている issue
-
Support .aac audio uploads対応中かも @julien731 が今日担当しました。 オープンfeature
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
nimblehq/audio-transcriber#153 ·
-
help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
antonyrag/ragleap-core#1062 ·
-
needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
gke-labs/kube-agents#4321 ·
メンテナーはふだん 1 日以内に返信
-
enhancement help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
Git-Hospital/githealthcheck#61 ·
メンテナーはふだん 1 日以内に返信
-
changelog investigate
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
ramnes/notion-sdk-py#433 ·