agentrun-author
Author an AgentRun workflow
Contract
Produce one inspected workflow for the user's task, and its observed outcome only when execution was requested. A request to preview, author, edit, or change input is not a request to run. The workflow language is the language reference: the same contract every AgentRun author receives, and the vocabulary the validator admits. The host exposes AgentRun through a tool, named agentrun in hosts that ship this skill, with the actions describe, inspect and run. Do not use an outer submit tool, adapter factory, or shell-written runner. The host captures the active model for the run; do not select another. If the tool is unavailable, report the missing host instead of inventing its tools.
1. Choose a small graph
First call agentrun with action: "describe". It returns the available tool schemas, adapter readiness and authoring: language (the language reference), workflow and jev (the guides below) and host, this host's addendum. The addendum names the host's initial state, output types, node kinds and rules: its trusted-run command, SOP availability and unavailable transports. It adds to the language and never changes it; follow both.
Require only adapters the chosen graph needs. Identify the concrete input, expected output, and any independent acceptance check. The workflow output must satisfy the user's entire final output contract; include synthesis or wrapping in the graph when needed, rather than depending on the outer agent to rewrite the result after execution. Use supplied information; ask only for a missing fact that changes the task or authority. Use the complete example below for a first typed answer; read workflow format and examples for composition or unfamiliar nodes.
Prefer one extract or agent for a typed answer when every required output can be supported by valid input, or one call for a known tool operation. Add chain, map, parallel, or loop only when the task requires composition. Use Jev system one decisions when the task needs semantic selection, a probability, or a threshold gate and a judge is configured; a typed extraction alone does not need Jev. Tool-only workflows need no agent session. Never use the fictional demo search tool as repository or web search.
A mandatory category with no valid unknown value needs a missing-facts path when later input may be vague. An on-call note saying only “It broke after the change” does not support low, medium, or high severity. An uncertainty note beside a guessed severity does not fix that. Keep the semantic judgment in a typed assessment and the stop invariant in a conditional escalate; this pattern needs neither Jev nor trusted code.