Prefab Reference Repair
Overview
Detect and repair broken references while avoiding unsafe auto-fixes.
Workflow
- •Run
validate refs --scope ...to identify missing assets or fileIDs. - •Use
inspect where-usedto locate and understand each broken reference. - •If a unique, deterministic replacement exists, propose a
safe_fix. - •If multiple candidates exist, mark as
decision_requiredand stop. - •For noisy missing GUIDs, use
suggest ignore-guidsand update<scope>/config/ignore_guids.txt. - •Re-run
validate refsto confirm the scope is clean.
Commands
bash
prefab-sentinel validate refs --scope "Assets/YourScope" prefab-sentinel inspect where-used --asset-or-guid "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" --scope "Assets/YourScope" prefab-sentinel suggest ignore-guids --scope "Assets/YourScope"
Guardrails
- •Do not edit YAML directly.
- •Only apply
safe_fixwhen the candidate is unique and unambiguous. - •Ignore-guid updates in CI are restricted to allowlisted branches.