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
reinforce_training_loopRun bounded REINFORCE stochastic-policy training loops with sampled actions, scalar rewards, baselines, and optimizer traces.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this skill to recover or test Williams-style REINFORCE behavior on a small stochastic environment. It is appropriate when the evidence must show sampled stochastic actions, scalar reinforcement, score-function updates, and changed policy parameters. Do not use it for deterministic policy-gradient, Q-learning, or supervised imitation-only experiments.
score_function_estimator script for cross-checking the local score term.params_before and params_after fields suitable for Distiller recovery validation.theta += learning_rate * update and record the parameter transition.recovery/logs/training_trace.json.Run:
python scripts/train_bandit.py --episodes 128 --seed 7 --output /tmp/reinforce_trace.json
python -m pytest tests
The tests assert that the better action's probability and expected reward improve in a deterministic seeded two-action bandit.
This skill is a reduced mechanism-faithful recovery harness. It does not claim to reproduce every historical example from the paper or delayed-reinforcement variants.