plateprocess.dev · PLATE release v0.12.0

Agent Crews Task Spec

Agent crew task spec (issue #1333 / design #1327)

Machine-readable task contracts live in .agentic/tasks/<id>.yml. They extend the narrow delegation packet from #395: the YAML is primary; hosts render a short prompt from these fields instead of copying broad policy.

Schema

Role vs level vs route

When dispatching from a GitHub issue, role may be inferred from issue type and labels (see infer_role_from_issue() in plate_core.task_spec). The spec still declares role for deterministic delegation packets. Level and route are always spec fields—do not encode them as GitHub labels for crew routing.

Validation

gh plate tasks validate [--repo-root PATH] [--json]
python -m plate_core.task_spec [--repo-root PATH] [--path FILE ...] [--json]

Validates every *.yml / *.yaml under .agentic/tasks/ (or explicit --path files). Cross-checks next.task_id references within the validated set. Enforces the level-to-tier policy table (#1355): allowed tiers per level, mapped initial start_tier, optional acceptance.ci_validates_output for junior docs/tests cheaper-first start, and optional issue_labels for risk:critical human approval when validating dispatch packets.

Escalation validation (#1381): model_policy.escalation.from must equal model_policy.start_tier, and to must be exactly one tier higher (no multi-step jumps). Hosts may use pure next_run_state() in plate_core.task_spec for run-time transitions; persist the run step before invoking a model.

Per-run state machine (#1381)

States: start(tier = s) · escalated · stopped_reported · awaiting_human (T3 escalation) · done.

From Event / guard To Side effects In code?
(none) route the task: level, route, ci_validates_output start(s = recommended_start_tier) validation only
start(s) acceptance fails, escalation.from == s, to = next tier escalated(to) ledger spend interval (metadata.tier_step) next_run_state
start(s) acceptance fails, no escalation stopped_reported report next_run_state
escalated acceptance fails again stopped_reported report; no further step next_run_state
any next tier is T3 on failed start awaiting_human human approves per task next_run_state
start / escalated acceptance passes done next_run_state
awaiting_human human approves (human_escalation_approved=True) escalated next_run_state
awaiting_human human declines (human_escalation_approved=False) stopped_reported next_run_state
done / stopped_reported any further outcome (unchanged) idempotent next_run_state
any downgrade below allowed tiers (illegal) not checked at run time

next_run_state rejects unknown run states and refuses outcome_ok from awaiting_human without an explicit human gate. Terminal: done, stopped_reported. Initial: start(s).

Examples

Shipped under src/plate_core/data/examples/:

Copy into .agentic/tasks/ as a starting point for crew pilots (DentalCoach, Happyhouses, etc.).

Out of scope for #1333

Resource registry/router runtime, new GitHub labels, label-check workflow changes, and procedure authoring are tracked under design #1327 and sibling issues (interface spec for the router is in the linked doc above). Reviewer-differs checking lives in #1334 (plate_core.pr_reviewer_model_gate).