---
title: "surface_drift"
url: https://services.dev/docs/reference/check/surface_drift
---
# surface_drift

URL: https://services.dev/docs/reference/check/surface_drift

> A surface serves a call with no row, or lacks a live row.

| Fix | Fails in | Exit |
|---|---|---|
| Add the row, or render it. | the brand: `check` prints it under every Service | 1 |

**Owned by** [The contract](https://services.dev/docs/surfaces/contract.md): the page that explains what this gate holds.

## What check says

```txt title="npx services.dev check"
  ✗ A surface serves a call with no row, or lacks a live row. Add the row, or render it. cli listen is service.order's command, and the CLI has none.
    https://services.dev/docs/reference/check/surface_drift
✗ 1 to fix
```

## The failing file

```ts title="services/listen.ts"
import { Service } from 'services.dev'

export default Service({
  name: 'Transcript',
  input: { recording: 'file', to: 'language: a BCP 47 tag, such as fr-CA' },
  output: { transcript: 'file' },
  price: 19,
})
```

## The fix

```diff title="git add -A && git diff --staged"
diff --git a/services/listen.ts b/services/transcript.ts
similarity index 100%
rename from services/listen.ts
rename to services/transcript.ts
```

```txt title="npx services.dev check"
✓ ready to sell · 1 Service · AI delivers it alone · it keeps at least 80% of every job
```

## Explained in

- [The contract](https://services.dev/docs/surfaces/contract.md)
- [Service()](https://services.dev/docs/service.md)
- [In CI](https://services.dev/docs/cli/ci.md)
- [The CLIs](https://services.dev/docs/cli.md)

## What an agent reads

```json title="npx services.dev check --json · the surface_drift failure"
{
  "code": "surface_drift",
  "reason": "A surface serves a call with no row, or lacks a live row.",
  "next": "Add the row, or render it. cli listen is service.order's command, and the CLI has none.",
  "doc_url": "https://services.dev/docs/reference/check/surface_drift"
}
```

<details>
<summary>The whole document check --json prints</summary>

```json title="npx services.dev check --json"
{
  "ai": {
    "cents_per_call": 42,
    "simulated": true
  },
  "mcp": {
    "tools": 13,
    "tokens": 4487,
    "sandbox": 9,
    "budget": 8000
  },
  "services": [
    {
      "path": "services/listen.ts",
      "lines": 4,
      "steps": "draft · ai → review · ai · adversarial",
      "ok": false,
      "price": "$19 per job, within 48 hours, charged on delivery.",
      "who": "AI delivers every job.",
      "agent": {
        "tool": "order_listen",
        "words": 24,
        "job": "job_7Hq2",
        "status": "accepted",
        "on": null,
        "charged": 1900,
        "person": false,
        "why": ""
      },
      "ledger": "+$19.00 · AI $0.84 (example) · you $18.16",
      "approved_ledger": null,
      "outcome": null,
      "margin": {
        "floor": {
          "cents": 1520,
          "pct": 80
        },
        "own": 1520,
        "stop": 380,
        "nested": []
      },
      "apps": [
        "customer portal",
        "owner console"
      ],
      "failures": [
        {
          "code": "surface_drift",
          "reason": "A surface serves a call with no row, or lacks a live row.",
          "next": "Add the row, or render it. cli listen is service.order's command, and the CLI has none.",
          "doc_url": "https://services.dev/docs/reference/check/surface_drift"
        }
      ]
    }
  ]
}
```

</details>

---

- Up: [check’s gates](https://services.dev/docs/reference/check.md)
- Previous: [brand_credential_missing](https://services.dev/docs/reference/check/brand_credential_missing.md)
- Next: [service_id_reserved](https://services.dev/docs/reference/check/service_id_reserved.md)
