The Hook
In a hierarchical multi-agent system where parent AI flows delegate tasks to specialized sub-agents, stubbing out your stage-availability validator ( StageCheck.available? ) in unit tests guarantees that broken sub-agent capability gates will slip silently into production.
The Deep Dive
As enterprise AI systems evolve from single-turn prompts into orchestrated multi-agent graphs, GitLab's AI Catalog allows platform teams to define declarative AI flows that compose steps and invoke sub-agent definitions. Before a parent flow can execute or delegate to a referenced sub-agent—particularly when a flow definition references sub-agents directly without an explicit include block—the orchestration engine must validate stage and feature availability via StageCheck.available?…