Skip to main content

agent_jobs

Function agent_jobs 

Source
pub fn agent_jobs(files: &[(PathBuf, TaskFile)]) -> Vec<&Job>
Expand description

The jobs a set of layered files exposes to an agent or MCP surface: one per name using the nearest definition (so a nearer non-allowed job shadows a farther allowed one, matching run semantics), keeping only those whose nearest definition carries Agent: allow. This is the enforcement point for listing; run_agent is the enforcement point for running. A surface exposing jobs to an agent should list only these.