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§
- Graph
Draft Request - Body for
graph-draft: a full draft SOP to project without saving. - Param
Options Body - Body for
POST /api/tools/param-options: resolve selectable values for a domain-typed tool parameter.argscarries sibling arguments already chosen so cascading domains (e.g. peer targets narrowing on a channel) can filter. - Runs
Query - SopRun
Body - Body for
POST /api/sops/{name}/run: fire a Manual trigger.payloadis an optional JSON string handed to the run as the step-1 input. Deserializes from the sharedSopRunRequestshape (minusname, which comes from the path). - Wire
Draft Request - 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
ApprovalDecisionwire 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