Skip to content
Back to skills

Sample Factory Appo Update

ASecurity

Compute reduced APPO update evidence with PPO clipping and V-trace-style value correction for asynchronous policy lag.

  • 247 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 9, 2026
toolspythongobash

Works with

  • cli

Security analysis

A100/100

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill sample_factory_appo_update --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Sample Factory Appo Update?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Sample Factory Appo Update
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-sample-factory-appo-update/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-sample-factory-appo-update)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
---
name: sample_factory_appo_update
description: Compute reduced APPO update evidence with PPO clipping and V-trace-style value correction for asynchronous policy lag.
---

# Sample Factory APPO Update

Use this skill when a recovery needs deterministic evidence that asynchronous trajectory data is corrected with the paper's APPO mechanisms: PPO clipping plus V-trace-style truncated-importance value targets.

Do not use the reduced scalar optimizer as proof of full neural-network training.

## Inputs
- Rewards, discounts, values, and bootstrap value.
- Behavior and target log probabilities.
- PPO clip threshold.
- V-trace rho and c truncation thresholds.
- Optional scalar policy parameter and learning rate for a tiny optimizer step.

## Outputs
- Importance ratios and clipped ratios.
- Corrected value targets.
- Policy loss and value loss.
- Optimizer trace with parameter and loss before/after.

## Workflow
1. Compute importance ratios from target minus behavior log probabilities.
2. Clip ratios for PPO surrogate loss.
3. Compute temporal-difference deltas and apply truncated rho/c weights.
4. Build value targets by backward recursion from the bootstrap value.
5. Compute policy and value losses.
6. For reduced recovery, update a scalar parameter with a deterministic gradient step and record `params_before` and `params_after`.

## Validation
Run:

```bash
python scripts/appo_update.py
python tests/test_appo_update.py
```

## Limitations
This skill validates the algorithmic contract, not production-scale GPU training or recurrent policies.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…