The state machine
Every order moves through one canonical lifecycle. Wire values: order statuses.
What each state means
needs_confirmationis where you confirm an artifact before it books. Two workflows park here: the document workflow (the seller parsed your file, confirm its interpretation) and a proposal (the seller returned a plan, confirm it to book). Catalog orders skip it: you ordered what was published. Confirm withPOST /orders/{id}/confirm; a satisfied acceptance band confirms a plan for you.negotiatingappears when a seller counters at the review gate, and on proposal counters: see Negotiation.seller_reviewmeans the seller is approving: a person, or the standing rules that person set (auto-approve thresholds satisfy the same gate and land in the same audit trail). Nothing airs without that approval. It can take minutes or hours, and silence during the pause is normal.placedmeans the order is booked: the seller approved it and wrote it into their traffic system, daylocked, with aplacement_receipt(the booking receipt) carrying the seller's order ID. The schedule is committed, and the price locked at order time travels with every unit. Booked is not cleared: whether a preemptible unit clears is a post-air outcome, covered below.completedis the successful terminal: the flight has run and the order's record is closed. An order that ends with a mixed unit set completes like any other; the per-line numbers carry the mix. See partial acceptance.
Revising an order
A revision does not move an order through this machine; it replaces one order with another. The revision is a new order entering at submitted and running the lifecycle above from the start, and the order it replaces goes to canceled from wherever it was, on the same terminal edge an ordinary cancellation uses. There is no superseded state and no supersede-only substatus: the prior order carries cancellation.reason: "superseded_by_revision" and revision.superseded_by, and its cancellation block is whatever a cancellation at that moment would have produced, late_notice: true included. Both writes commit together, so one lineage has at most one live order. See revisions.
Between placed and completed
Air happens between placed and completed, and results attach to the order as they land: delivery posts in the declared currency, and per-unit outcomes. On preemptible buys, whether a unit cleared is only knowable after its air date; the posts and unit results carry that answer, and audience guarantees reconcile against them.
delivery_post artifacts carry those outcomes; switch on status and artifact.name, and treat new substatus values as additive.