Skip to content
Back to skills

Sac Update Step

ASecurity

Execute one deterministic reduced Soft Actor-Critic critic actor and target update for recovery evidence.

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

Security analysis

A100/100

Scanned September 9, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Sac Update Step?

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

Security grade badge for Sac Update Step
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-sac-update-step/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-sac-update-step)

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

SKILL.md
---
name: sac_update_step
description: Execute one deterministic reduced Soft Actor-Critic critic actor and target update for recovery evidence.
---

# SAC Update Step

Use this skill for bounded recovery experiments that must show the SAC update mechanism without full MuJoCo or neural-network training. It consumes a validated replay batch and scalar parameters, then emits losses, changed parameters, and mechanism flags.

## Inputs
- Replay batch with transition dictionaries.
- Scalar parameters `value`, `q1`, `q2`, `policy`, and `target_value`.
- Hyperparameters `gamma`, `alpha`, `lr`, and `tau`.

## Outputs
- `loss_before` and `loss_after`.
- `params_before` and `params_after`.
- Mechanism checks for entropy, replay use, twin Q, actor/critic update, target update, and optimizer change.

## Workflow
1. Compute soft value targets using `min(q1, q2) - alpha * log_prob`.
2. Compute Q targets from reward plus discounted target value.
3. Compute actor pressure from `alpha * log_prob - min(q1, q2)`.
4. Apply a small scalar gradient-like update to value, Q, and policy parameters.
5. Apply Polyak averaging to the target value parameter.

## Validation
Run `python tests/test_update.py` or validate the full skill tree with the Distiller validator.

## Limitations
This is a declared reduced/proxy update and must not be reported as full paper-scale SAC training.

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…