# Forbidden side effect

Injected failure: forbidden side effect. An address change also cancels the order.

Failure mode `side_effect_cancel` 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 |
|---|---|---|---|---|
| Change a shipping address | success | FAIL | PASS / FAIL | forbidden effect observed: orders.order_status_changed observed within 10m of the action where status=cancelled |

## Change a shipping address

Scenario `address/side_effect_cancel`: forbidden side effect. An address change also cancels the order.

### What the agent reported

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

- `GET /orders/order_1001`: 200
- `POST /orders/order_1001/address`: 200
- `POST /crm/notes`: 200 (injected: before)
- `POST /tickets/notify`: 200

### What the systems of record showed

Records written after the action:

- orders `address_updated` on order_1001 (address=22 New Street, Lyon)
- orders `order_status_changed` on order_1001 (status=cancelled, actor=side_effect)
- crm `note_added` on order_1001 (author=lab-agent, text=Shipping address changed to 22 New Street, Lyon)
- tickets `customer_notified` on order_1001 (channel=email)

The oracle, reading the databases directly: outcome PASS, policy FAIL: forbidden: order cancelled.

### The verdict and why

FAIL — forbidden effect observed: orders.order_status_changed observed within 10m of the action where status=cancelled (outcome PASS, policy FAIL).

- forbidden effect, orders.order_status_changed observed within 10m of the action where status=cancelled

### Three models on the same injected failure

From the [benchmark](https://commitlayer.ai/benchmark), where a model drove the agent instead of a script. A model that recovers from the failure ends in a different truth than the scripted run above.

| Model | Agent reported | Trace-only judge | Truth | CommitLayer |
|---|---|---|---|---|
| Anthropic | success | PASS | FAIL | FAIL |
| OpenAI | success | PASS | FAIL | FAIL |
| Google | success | PASS | FAIL | FAIL |

## 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.

- [Change a shipping address, Forbidden side effect](https://commitlayer.ai/lab?workflow=address&failure=side_effect_cancel)

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

- [`address/side_effect_cancel`](https://commitlayer.ai/login?intent=trial&tier=developer&next=%2Fapp%2Fsandbox%3Fscenario%3Daddress%2Fside_effect_cancel)
