Skip to main content

Module api_sop_author

Module api_sop_author 

Expand description

SOP authoring surface for the web node editor.

HTTP twin of the daemon’s sops/* RPC methods, backed by the same zeroclaw_runtime::sop authoring core (load/save/delete, graph projection, wire edits, trigger registry). All routes require gateway auth. Draft endpoints (wire-draft, graph-draft) are pure: they transform the submitted SOP and never touch disk.

Structs§

GraphDraftRequest
Body for graph-draft: a full draft SOP to project without saving.
ParamOptionsBody
Body for POST /api/tools/param-options: resolve selectable values for a domain-typed tool parameter. args carries sibling arguments already chosen so cascading domains (e.g. peer targets narrowing on a channel) can filter.
RunsQuery
SopRunBody
Body for POST /api/sops/{name}/run: fire a Manual trigger. payload is an optional JSON string handed to the run as the step-1 input. Deserializes from the shared SopRunRequest shape (minus name, which comes from the path).
WireDraftRequest
Body for wire-draft: a full draft SOP plus one edit to apply.

Functions§

handle_sop_create
handle_sop_decide
Resolve a gated live run. Body carries the raw ApprovalDecision wire value. Waiting approvals and deterministic checkpoints both resolve through the broker-backed chokepoint with an HTTP principal, so named approval policies, membership, and quorum are enforced before a gate or checkpoint can clear. Returns the refreshed overlay.
handle_sop_delete
handle_sop_full
handle_sop_graph
handle_sop_graph_draft
handle_sop_graph_legend
handle_sop_run
Fire a Manual run for the named SOP and return its run_id.
handle_sop_run_overlay
handle_sop_runs
handle_sop_save
handle_sop_trigger_sources
handle_sop_wire_draft
handle_sops_list
handle_tools_param_options