Repository navigation
Conversation
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #416 +/- ##
=========================================
Coverage ? 58.22%
=========================================
Files ? 70
Lines ? 8865
Branches ? 0
=========================================
Hits ? 5162
Misses ? 3703
Partials ? 0 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
A Gymnasium step can report both
terminated=Trueandtruncated=True, for example when the task ends on its time limit.GymnasiumVecEnvcurrently copiestruncatedintoinfo['time_outs']. Learners usedone & ~time_outsto decide whether the transition is terminal, so this combination incorrectly bootstraps a value beyond an actual terminal state.Changes
Mark a transition as a timeout only when it is truncated and not terminated. Apply the same precedence to native vector and manual backends, including a timeout flag supplied by a manually wrapped environment. Preserve timeout-only bootstrapping and existing explicit false timeout overrides.
Regression tests cover all termination/truncation combinations, synchronous and asynchronous native vector environments, single/multiple actors, manually wrapped multi-agent environments, and supplied timeout metadata. An actual SAC training/replay test checks the resulting terminal masks used by the learner.
Validation
On Python 3.11 and 3.14, the full suite changes from 8 failed, 433 passed, 16 skipped to 441 passed, 16 skipped. All six existing CI jobs pass, including lock, lint, and Python 3.11–3.14 tests.