Skip to main content

Work Order API

Benchmarked against: Anthropic — Using the Messages API MCP Tools: create_work_order, list_work_orders, get_work_order_detail, accept_work_order, update_work_order_status, complete_work_order, verify_work_order, patch_wo_fields Authority: Company Constitution §3 — "Work orders are the only task channel"

The Work Order system is SuperPortia's only task channel. No verbal promises, no chat-based assignments. Every task goes through a formal WO with tracked state transitions and role-based access control.


Quick start​

Create a work order​

create_work_order(
title="[SS1-Operations] Deploy MTAAA Text Subgraph to production",
assignee="Mac CLI 小克",
project="SS1",
description="Deploy the text_subgraph pipeline from dev to production...",
priority="high",
due_date="2026-03-10",
estimated_hours=4,
acceptance_criteria="Pipeline processes entries with >90% accuracy",
deliverables="Deployed pipeline + test results"
)

Response​

{
"order_id": "WO-2026-0305-001",
"status": "pending",
"title": "[SS1-Operations] Deploy MTAAA Text Subgraph to production",
"assignee": "Mac CLI 小克",
"project": "SS1",
"created_at": "2026-03-05T09:30:00Z"
}

WO ID format​

IDs are auto-generated by the system: WO-YYYY-MMDD-NNN

ComponentMeaningExample
WOWork Order prefixWO
YYYYYear2026
MMDDMonth-day0305
NNNHex sequence (per day)001, 0A3, F72

Title convention​

Titles must start with a [Project-Category] prefix:

[SS1-Operations] Deploy MTAAA Text Subgraph
[SP-Development] MTAAA P10 — Self-tuning
[EGS-CodeStandards] Research & Upgrade Ch.2
[Infrastructure-Critical] Migrate Dispatch Worker
ComponentValues
ProjectSS1, SS2, SS3, SP (SuperPortia), EGS, Infrastructure
CategoryOperations, Development, CodeStandards, DevWorkflow, Critical

Available tools​

create_work_order​

Creates a new work order. The system auto-generates the WO ID.

ParameterTypeRequiredDescription
titlestringYesMust start with [Project-Category] prefix
assigneestringYesExact agent identity (see valid identities below)
projectstringYese.g., SS1, SP, catmints-cafe
descriptionstringNoDetailed work description
prioritystringNohigh / medium (default) / low
requesterstringNoDefault: 夏哥
due_datestringNoYYYY-MM-DD format
estimated_hoursnumberNoEstimated hours to complete
acceptance_criteriastringNoWhat defines "done"
deliverablesstringNoExpected outputs
related_wo_idsstringNoJSON array of related WO IDs
parent_wo_idstringNoParent WO for sub-work-orders
tagsstringNoJSON array of tags
notesstringNoAdditional notes

Valid agent identities​

IdentityShipPlatform
Mac App 小克SS1Claude Desktop App (Code tab)
Mac CLI 小克SS1Claude Code CLI
Win App 小克SS2Windows Claude App
Win CLI 小克SS2Windows Claude CLI
Web 小克AnyWeb-based Claude
小西AnyClaude Chat (Strategist)
Mac App 小ASS1Antigravity agent (App)
Mac CLI 小ASS1Antigravity agent (CLI)
Win App 小ASS2Antigravity agent (App)
Win CLI 小ASS2Antigravity agent (CLI)
夏哥—Captain (manual tasks)
system:cron—Scheduled automation
system:webhook—External trigger

list_work_orders​

Query work orders with filtering. By default shows only in-progress orders.

ParameterTypeDefaultDescription
statusstringnullFilter by status
projectstringnullFilter by project
assigneestringnullFilter by assignee
include_completedboolfalseInclude completed/cancelled
limitnumber20Max results

get_work_order_detail​

Returns full WO details including transition history — every state change with timestamp, operator, and notes.

get_work_order_detail(order_id="WO-2026-0305-001")

accept_work_order​

Move from pending → accepted. Signals the assignee has seen and will work on the WO.

accept_work_order(order_id="WO-2026-0305-001", assignee="Mac CLI 小克")

update_work_order_status​

General status transition. Must follow the state machine rules.

update_work_order_status(
order_id="WO-2026-0305-001",
new_status="in_progress",
notes="Starting implementation"
)

complete_work_order​

Submit for review (in_progress → review). Requires a completion summary.

complete_work_order(
order_id="WO-2026-0305-001",
summary="Deployed Text Subgraph to production. 327 entries processed, 94% accuracy.",
actual_hours=3.5
)

verify_work_order (Captain only)​

Captain approves or rejects a completed WO.

# Approve
verify_work_order(order_id="WO-2026-0305-001", approved=True, notes="Verified accuracy metrics")

# Reject — returns to assignee for revision
verify_work_order(order_id="WO-2026-0305-001", approved=False, notes="Accuracy below threshold")

patch_wo_fields​

Update specific fields with role-based permissions:

RoleCan modify
Captain (夏哥/小西)All fields
PM Agentassignee, priority, due_date, estimated_hours, tags
Assigneenotes, completion_summary, actual_hours
Requesterdescription, acceptance_criteria, deliverables

Dispatch engine​

Work orders can be executed by the Dispatch Engine using different AI engines:

dispatch_work_order(
work_order_id="WO-2026-0305-001",
engine="groq" # or gemini, deepseek, claude, ingest, etc.
)

Event-driven dispatch: Only call when Captain or 小西 explicitly decides to execute. Do not dispatch proactively.


Constitution rules​

From Company Constitution:

RuleRequirement
§3Work orders are the only task channel. No verbal promises.
§8Start or report on a WO in the same session. Never say "next time."
§7All reports use format: Status (color) / timestamp / key update / next step / notes

PageRelationship
WO Status TransitionsState machine rules and transition gates
Dispatch EngineExecute WOs with AI engines
Company Constitution§3 — WOs as the only task channel
HITL/HOTLDecision boundaries for WO approvals
Features OverviewSystem overview