Repository navigation
Conversation
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #434 +/- ##
=========================================
Coverage ? 68.45%
=========================================
Files ? 72
Lines ? 10182
Branches ? 0
=========================================
Hits ? 6970
Misses ? 3212
Partials ? 0 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This was referenced Nov 27, 2026
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
The flattened paths in
BatchedFrameStackandBatchedFrameStackWithStatestranspose the frame buffer from (time, agent, feature) to (agent, time, feature), but then reshape the original, untransposed data. With multiple agents, each policy input consequently contains other agents' observations instead of that agent's history. This already happens on reset.create_smacandcreate_smac_v2select these wrappers when frame stacking is enabled and default toflatten=True.Change
Reshape the transposed array in both wrappers. This keeps each agent's temporal sequence contiguous. The change is two production lines.
Validation
git diff --checkpassed.This concerns numerical layout independently of #379's Gymnasium return-contract migration; that patch leaves these two reshape expressions unchanged. Checked all 34 author PRs, all-state related PR/issue and commit searches, and every one of the 39 existing fork branches. None contains this wrapper layout correction.