Skip to content
Back to skills

Fb Greedy Policy

ASecurity

Extract no-planning greedy policies from FB forward embeddings and a projected reward vector.

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 9, 2026
testingpython

Security analysis

A100/100

Scanned September 9, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Fb Greedy Policy?

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

Security grade badge for Fb Greedy Policy
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-fb-greedy-policy/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-fb-greedy-policy)

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

SKILL.md
---
name: fb_greedy_policy
description: Extract no-planning greedy policies from FB forward embeddings and a projected reward vector.
---

# FB Greedy Policy Extraction

Use this skill when `z_R` has already been estimated and a policy must be derived by direct FB scoring. Do not use it to plan, search, or update embeddings for the new reward.

## Inputs

- Forward embeddings `F` indexed as state-action rows.
- Task vector `z_R`.
- Number of states and actions, with deterministic row order `state * action_count + action`.

## Outputs

- Q-value table `F(s,a,z_R)^T z_R`.
- Greedy action for each state with deterministic lowest-index tie breaking.

## Workflow

1. Compute dot products for all state-action rows.
2. Group scores by state and select the maximum action.
3. Record ties and avoid any environment planning or reward-specific optimization.
4. Hand the policy to recovery or evaluation modules.

## Validation

Run `python scripts/greedy_policy.py --self-test`. Tests verify known best actions and deterministic tie handling.

## Limitations

The script assumes finite action enumeration and precomputed forward embeddings.

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…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.