Skip to content

feat(env): add term observation histories - #209

Merged
wlgys8 merged 4 commits into
mainfrom
feat/term-history-effective-parameters
Dec 2, 2026
Merged

wlgys8 merged 4 commits into
mainfrom
feat/term-history-effective-parameters

Conversation

@wlgys8

@wlgys8 wlgys8 commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Add per-term observation history configuration and group-level overrides, including flattened term-major windows and explicit chronological (N, H, O) outputs.
  • Use one uniform per-term history path for commit, reset and preview. Concatenate unflattened term windows along the feature axis to preserve frame-major (N, H, O) outputs and metadata without a separate group-history buffer.
  • Adapt APPO observation transport and SuperMimic real/replay/imagined observation contracts to the supported history layouts.

Scope

This PR contains observation history changes only. Effective parameter queries, EffectiveParameterCache, snapshots, and write/reset invalidation have been split into the independent feat/effective-parameter-cache branch. Both branches are based directly on main and can be merged independently.

Behavior and interface notes

  • Group history settings override term settings. With flattened term histories, terms concatenate in term-major order. Uniform unflattened histories concatenate along the feature axis and preserve frame-major order when flattened at the policy boundary.
  • History reset repeat-fills only selected episode rows; preview does not advance committed history.
  • SuperMimic supports uniform frame-major multi-term histories while rejecting unsupported mixed or term-major temporal layouts. Imagined heads produce individual frames; rollout owns history advancement.
  • Flattened multi-term history ordering differs from whole-frame stacking; existing policy inputs must use a matching layout rather than relying on equal flattened dimensions.

Validation

Latest local validation after unifying per-term history storage:

  • python -m pytest -q --strict-markers --disable-warnings -m 'not slow and not integration' --ignore=motrix_deploy_unitree --ignore=runs — 2479 passed, 6 skipped, 270 deselected. Unitree hardware plugin tests are excluded because the plugin is not installed in the local environment; runs contains local experiment artifacts, not repository regression tests.
  • prek run --all-files — passed.
  • git diff --check — passed.

Regression coverage includes term/group history configuration, flattened term-major and unflattened frame-major layouts, publication/reset/preview, APPO transport, replay reconstruction, imagined rollout history advancement, and per-frame normalization before flattening. No GPU training, performance benchmark, or full integration/slow-suite validation is claimed for this cleanup.

@wlgys8
wlgys8 force-pushed the feat/term-history-effective-parameters branch from 0dd4e95 to f7312bb Compare December 2, 2026 08:58
@wlgys8
wlgys8 force-pushed the feat/term-history-effective-parameters branch from f7312bb to 56c597c Compare December 2, 2026 09:04
@wlgys8 wlgys8 changed the title feat(env): add term histories and core effective parameter snapshots feat(env): add term observation histories Dec 2, 2026
@wlgys8
wlgys8 merged commit f6e1866 into main Dec 2, 2026
12 checks passed
@wlgys8
wlgys8 deleted the feat/term-history-effective-parameters branch December 2, 2026 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant