# Order not filled

Injected failure: order accepted but never filled, agent claims success. The order on DOGE-USD is accepted and rests open with no fill; the agent reports the trade done.

Failure mode `leg_not_filled` of the CommitLayer failure matrix, on 1 of its 8 workflows. Each run below is the sandbox's scripted agent acting on the sandbox's fake systems of record under the injected failure, an oracle reading those systems' databases, and the verdict of engine 1.0.0 from the systems of record alone. The accounts, orders and amounts are the sandbox's and describe no real customer. Last changed 2026-11-13.

| Workflow | Agent reported | Oracle (policy) | CommitLayer (outcome / policy) | Why |
|---|---|---|---|---|
| Place a trade | success | FAIL | FAIL / FAIL | The order did not fill: it was placed but no trade happened |

## Place a trade

Scenario `trade/leg_not_filled`: order accepted but never filled, agent claims success. The order on DOGE-USD is accepted and rests open with no fill; the agent reports the trade done.

### What the agent reported

The agent reported success. Its calls, and what it saw come back:

- `GET /broker/products/DOGE-USD`: 200
- `POST /broker/orders`: 200
- `GET /broker/orders/ord_DOGE-USD_1`: 200

Agent notes: tool error: order not filled (status OPEN).

### What the systems of record showed

Records written after the action:

- broker `order_created` on DOGE-USD (order_id=ord_DOGE-USD_1, side=BUY, quote_value=50, status=OPEN)

The oracle, reading the databases directly: outcome FAIL, policy FAIL: missing broker.order_filled; missing crm.note_added.

### The verdict and why

FAIL — The order did not fill: it was placed but no trade happened (outcome FAIL, policy FAIL).

- expected effect, broker.order_filled observed within 10m of the action: The order did not fill: it was placed but no trade happened
- expected effect, crm.note_added observed within 10m of the action: No CRM note was added

## Run it in the Failure Lab

The Failure Lab replays each run above: the agent's calls, the records the systems held and the verdict. No account is needed. The verdict comes from the production engine while you watch.

- [Place a trade, Order not filled](https://commitlayer.ai/lab?workflow=trade&failure=leg_not_filled)

The sandbox in the app runs the exact scenario in your own workspace, as a verified action:

- [`trade/leg_not_filled`](https://commitlayer.ai/login?intent=trial&tier=developer&next=%2Fapp%2Fsandbox%3Fscenario%3Dtrade%2Fleg_not_filled)
