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

Terminal rollout projection drops numeric dataset ID zero

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

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

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

2026年10月27日 から。

  • #660 @notoufa による — オープン

評価

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

調査の方向性

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:

  1. POST /api/rollouts with [{"input":{"data_id":0,"instance_id":"fallback"}}].
  2. PATCH the returned rollout's status.state to running, then succeeded.
  3. 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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

microsoft/agent-lightning のほかの issue

microsoft/agent-lightning の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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