executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
trajectory_return_replayBuild Self-Imitation Learning replay records by converting completed agent episodes into discounted state-action-return tuples.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this skill when implementing or validating Self-Imitation Learning data flow from the paper "Self-Imitation Learning". It is appropriate for full RL runs and reduced proxy recoveries that need auditable replay records from the agent's own completed trajectories.
Do not use this skill for expert demonstration replay, one-step TD replay, or offline data whose episode returns cannot be reconstructed.
state, action, reward, and optional done.gamma in [0, 1].state, action, discounted return, reward, and index.Run:
python tests/test_trajectory_return_replay.py
The test checks sparse-reward return computation, terminal handling, and capacity truncation.
A terminal reward must still propagate to earlier non-terminal steps in the same episode; only a terminal boundary before a previous episode resets the backward return accumulator.