Install
openclaw skills install @luoqianchenguni-max/a2a-market-order-state-machineDefine order lifecycle states, transition guards, and recovery paths for A2A transactions. Use when implementing order orchestration from quote acceptance through payment, fulfillment, completion, and exception handling.
openclaw skills install @luoqianchenguni-max/a2a-market-order-state-machineDefine the canonical order lifecycle and transition guard framework.
Current status: first-release scaffold for early protocol compatibility.
app/domain/order/order_state.pyapp/domain/order/order_aggregate.pyapp/application/usecases/transition_order.pyapp/application/services/order_event_publisher.pycreate_order(intent_id, accepted_quote_id) initializes order in CREATED.transition(order_id, action, actor, payload) validates and applies state move.get_order_timeline(order_id) returns ordered transition history.recover_pending_orders(now_ts) handles timeout and stuck states.CREATEDNEGOTIATINGPAYMENT_PENDINGPAIDFULFILLINGCOMPLETEDCANCELEDFAILEDORDER_CREATED at initialization.ORDER_COMPLETED when terminal success is reached.runtime/src/domain/order-state-machine.jsruntime/tests and npm test in runtime/.