Statement of work draft
Scope, deliverables, acceptance criteria and project gates.
All action kinds · Project workflow
- Kind:
sow_draft - Availability: available
- Registry cost category:
one_call - Lifecycle stage IDs:
statement_of_work
The cost category describes model work in the registry; it is not a manufacturing price or a monetary quote. Read maglev actions kinds --json for current availability and schemas.
What this does
Section titled “What this does”Returns a draft scope and gates. It does not sign an agreement or authorize payment, engineering work or production.
Send these fields inside the request’s input object. Use only facts you have, and keep unresolved requirements explicit. Optional fields with defaults can be omitted.
| Field | Type | Required | Details |
|---|---|---|---|
scope |
string | Yes | Min length 1. Max length 6000 |
deliverables |
string[] | Yes | Min items 1. Max items 40 |
milestones |
object[] | No | Max items 20 |
milestones[].name |
string | If parent supplied | Max length 200 |
milestones[].dueHint |
string | No | Max length 200 |
paymentTerms |
string | No | Max length 2000 |
Input JSON schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "scope": { "type": "string", "minLength": 1, "maxLength": 6000 }, "deliverables": { "minItems": 1, "maxItems": 40, "type": "array", "items": { "type": "string", "maxLength": 1000 } }, "milestones": { "maxItems": 20, "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "maxLength": 200 }, "dueHint": { "type": "string", "maxLength": 200 } }, "required": [ "name" ] } }, "paymentTerms": { "type": "string", "maxLength": 2000 } }, "required": [ "scope", "deliverables" ]}Request the action
Section titled “Request the action”Prepare action.json with kind: "sow_draft" and an input object matching the schema above.
Replace PROJECT_ID with your saved project ID. Use a new idempotency key for new work and retain it for an identical retry.
maglev actions request PROJECT_ID --input action.json \ --idempotency-key example-sow-draft-001 --jsonRead action.status, action.output, deliveries and any task in the response. Model actions can take several minutes. After a timeout, check saved actions before retrying. See request and recovery behavior.
Output
Section titled “Output”The schema below describes action.output.result. The saved action.output envelope also contains draft: true and a note. It can be null while an action is running or after a failure; check the status before reading the result. Null or missing facts are unknown; preserve source references and open questions.
| Field | Type | Required | Details |
|---|---|---|---|
documentEn |
string | Yes | The statement of work in markdown |
gates |
object[] | Yes | |
gates[].name |
string | If parent supplied | |
gates[].exitEvidence |
string | If parent supplied | |
assumptions |
string[] | Yes | What was assumed in order to write this draft |
openQuestions |
string[] | Yes | What only the founder, a factory or a lab can answer |
sources |
string[] | Yes | Repo paths of the passages actually relied on |
Output JSON schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "documentEn": { "type": "string", "description": "The statement of work in markdown" }, "gates": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string" }, "exitEvidence": { "type": "string" } }, "required": [ "name", "exitEvidence" ], "additionalProperties": false } }, "assumptions": { "type": "array", "items": { "type": "string" }, "description": "What was assumed in order to write this draft" }, "openQuestions": { "type": "array", "items": { "type": "string" }, "description": "What only the founder, a factory or a lab can answer" }, "sources": { "type": "array", "items": { "type": "string" }, "description": "Repo paths of the passages actually relied on" } }, "required": [ "documentEn", "gates", "assumptions", "openQuestions", "sources" ], "additionalProperties": false}