Skip to content

Store rollouts posted to DevTaskLoader - #13

Merged
Yuge Zhang (ultmaster) merged 1 commit into
mainfrom
codex/store-rollouts-in-devtaskloader
Jul 24, 2025
Merged

Store rollouts posted to DevTaskLoader#13
Yuge Zhang (ultmaster) merged 1 commit into
mainfrom
codex/store-rollouts-in-devtaskloader

Conversation

@ultmaster

Copy link
Copy Markdown
Contributor

Summary

  • keep a list of posted rollouts in DevTaskLoader
  • expose the list via posted_rollouts property
  • update local client tests to assert rollouts are stored
  • revert earlier changes that skipped examples/calc_x/test_agentops.py

Testing

  • pre-commit run --files agentlightning/client.py tests/test_client.py examples/calc_x/test_agentops.py
  • pytest -q tests/test_client.py

https://chatgpt.com/codex/tasks/task_e_6882139f1b54832e87d9a5c487aec387

Copilot AI review requested due to automatic review settings July 24, 2025 11:52

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enhances the DevTaskLoader by adding functionality to track and expose posted rollouts for debugging purposes. This change provides better visibility into rollouts during local development and testing.

  • Adds a posted_rollouts property to DevTaskLoader for tracking submitted rollouts
  • Updates test assertions to verify rollouts are properly stored and accessible
  • Reverts earlier test skipping changes for examples/calc_x/test_agentops.py

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
agentlightning/client.py Adds private _posted_rollouts list and public posted_rollouts property, stores rollouts in post_rollout method
tests/test_client.py Adds test assertions to verify rollouts are stored and accessible via the new property

Comment thread agentlightning/client.py
else:
self._resources_update = ResourcesUpdate(resources_id="local", resources=resources)

# Store rollouts posted back to the loader for easy debugging of local runs

Copilot AI Jul 24, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The _posted_rollouts attribute lacks documentation. Consider adding a docstring or inline comment explaining its purpose and lifecycle.

Suggested change
# Store rollouts posted back to the loader for easy debugging of local runs
# A list to store rollouts that have been posted back to the loader.
# This is primarily used for debugging purposes during local runs.

Copilot uses AI. Check for mistakes.
@ultmaster
Yuge Zhang (ultmaster) merged commit 41b7bbe into main Jul 24, 2025
6 of 7 checks passed
@ultmaster
Yuge Zhang (ultmaster) deleted the codex/store-rollouts-in-devtaskloader branch October 28, 2025 01:18
euntaek hong (euntaek-hong) pushed a commit to wrongbutworks/agent-lightning that referenced this pull request Aug 17, 2026
…vention, ordering discussion

Decisions added:
- microsoft#11: GSM8K 30-problem subset for math-poc dataset
- microsoft#12: Image = environment, config.command = task selector
- microsoft#13: Dockerfile.agent build context = examples/
- microsoft#5 updated: unified scripts/build_images.sh (bash, minikube)
- 4a.6 updated: build_images.sh + .dockerignore
euntaek hong (euntaek-hong) pushed a commit to wrongbutworks/agent-lightning that referenced this pull request Aug 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants