Checks whether a stage sub-agent (stageName) may run given the current spec, gates, and settings. Returns null when allowed, or a descriptive refusal string naming the blocking gate when refused.
stageName
spec
gates
settings
null
Checks whether a stage sub-agent (
stageName) may run given the currentspec,gates, andsettings. Returnsnullwhen allowed, or a descriptive refusal string naming the blocking gate when refused.