# Degraded service

Injected failure: precondition violated. The service is degraded (svc_batch); the agent reads that and stops.

Failure mode `degraded_service` 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 |
|---|---|---|---|---|
| Deploy a service | failure | FAIL | FAIL / FAIL | Service was not healthy before the deploy |

## Deploy a service

Scenario `deploy/degraded_service`: precondition violated. The service is degraded (svc_batch); the agent reads that and stops.

### What the agent reported

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

- `GET /platform/services/svc_batch`: 200

Agent notes: tool error: service not healthy (degraded).

### What the systems of record showed

No record was written after the action.

The oracle, reading the databases directly: outcome FAIL, policy FAIL: precondition: service not healthy; missing platform.deploy_created; missing platform.health_check; missing crm.note_added.

### The verdict and why

FAIL — Service was not healthy before the deploy (outcome FAIL, policy FAIL).

- precondition, latest platform.service_health before the action had status=healthy: Service was not healthy before the deploy
- expected effect, platform.deploy_created observed within 10m of the action: The platform shows no deploy
- expected effect, platform.health_check observed within 10m of the action where status=healthy: No healthy check after the deploy
- expected effect, crm.note_added observed within 10m of the action: No change 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.

- [Deploy a service, Degraded service](https://commitlayer.ai/lab?workflow=deploy&failure=degraded_service)

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

- [`deploy/degraded_service`](https://commitlayer.ai/login?intent=trial&tier=developer&next=%2Fapp%2Fsandbox%3Fscenario%3Ddeploy%2Fdegraded_service)
