计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
ppo_rollout_advantage_protocol【效率与协作】Compute PPO fixed-segment rollout returns and generalized advantage estimates with auditable terminal handling.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill when implementing or checking PPO-style actor-critic recovery runs that need fixed-length rollout records and truncated generalized advantage estimation. Do not use it for off-policy replay buffers or value targets that are not derived from on-policy trajectory segments.
reward, value, and boolean done fields.last_value for bootstrapping after the final segment step.gamma and GAE parameter gae_lambda.advantages: one scalar per rollout step.returns: advantages[i] + value[i] for each step.deltas: temporal-difference residuals.diagnostics: terminal reset and input-shape checks.last_value at the boundary.next_nonterminal to zero when the current transition ends an episode.Run python tests/test_advantage.py from this skill directory, or validate the entire skill with Distiller's validate_skill_tree.py --run-tests.
This skill does not collect environment interactions and does not normalize advantages. Callers that normalize advantages must record that preprocessing separately.