Skip to content

Refresh agent model metadata after successful initialization - #408

Open
sylvesterkaczmarek wants to merge 1 commit into
google-deepmind:mainfrom
sylvesterkaczmarek:fix/agent-reinit-model
Open

sylvesterkaczmarek wants to merge 1 commit into
google-deepmind:mainfrom
sylvesterkaczmarek:fix/agent-reinit-model

Conversation

@sylvesterkaczmarek

Copy link
Copy Markdown

Update the client's task ID and model only after the Init RPC succeeds. This keeps best_trajectory() consistent with the most recently initialized model and preserves existing metadata when initialization raises.

Validation

  • New reinitialization regression fails on main and passes after the fix.
  • The test exercises trajectory state/action reshaping with real MuJoCo models and generated protobuf messages, and checks that a failed initialization retains previous metadata.
  • 1 focused test passed, 18 server-dependent tests deselected.
  • git diff --check passes.
  • Native MPC server integration was not run; the RPC boundary was mocked.

Fixes #407.

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.

Agent.init leaves stale model metadata when reinitializing the planner

1 participant