USFA Policy Conditioning
Use this skill when a USFA recovery needs to condition successor-feature predictions on a policy encoding z. Do not use it to evaluate a target task over multiple candidates; the GPI skill owns that aggregation.
Inputs
- Candidate policy encodings
z. - A successor-feature table keyed by state, action, and encoding.
- Action set and state.
Outputs
- Canonical candidate encodings.
psi(s,a,z)lookups.- Greedy action under an encoded policy:
argmax_a psi(s,a,z)^T z.
Workflow
- Build a deterministic candidate set from training, target, or sampled encodings.
- Preserve each encoding as the policy identifier.
- For Bellman bootstrapping, score each action with the same encoding
z. - Return the greedy action and score table for audit logs.
Validation
Run:
python tests/test_policy_conditioning.py
Limitations
This skill assumes tabular or already-computed successor features. It does not train neural USFA approximators.