# Process definition

URL: /code/project-structure/process-definition · Id: `convention:process-definition`

> A Process definition is a keyed step map with a prose body, naming the Verb Functions and Trigger actions that run it.

A [Process](/business/nouns/process) definition is a keyed step map with a prose body, naming the [Verb](/business/nouns/verb) [Functions](/business/nouns/function) and [Trigger](/business/nouns/trigger) actions that run it.

| Property | Value |
| --- | --- |
| Path | `workflows/[process]/index.mdx` |
| Holds | [Process](/business/nouns/process) |
| Kind | file |
| Leaders | db-first, git-first |
| Team | [Operations Team](/agents/operations) |
| Written by | [Change.merge](/business/nouns/change/merge) |
| Compiled by | [StartupBuilder](/code/builders/startup) |

### Example
`workflows/close/index.mdx` in a Startup repository.

```mdx title="workflows/close/index.mdx"
---
owner: finance/controller
metric: days-to-close
target: 3
stakes: high
---
Every client's month is reconciled, reviewed and closed within three business days of month end.
```

### Props
The frontmatter keys the file takes. The body is its prose.

| Prop | Type | Required | Description |
| --- | --- | --- | --- |
| `owner` | [Role](/business/nouns/role) | Yes | The Role accountable for it, by path in `agents/`. |
| `team` | [Team](/business/nouns/team) | No | The Team it belongs to; the owner’s by default. |
| `metric` | [Metric](/business/nouns/metric) | No | The Metric it moves. |
| `target` | `number` | No | The value the owner is judged on. |
| `stakes` | `string` | No | Default stakes for its Workflows: `low` or `high`. |

### Generates
[StartupBuilder](/code/builders/startup) compiles it into these records, Verbs and routes.

| Kind | What |
| --- | --- |
| Records | [Process](/business/nouns/process) |
| Verbs | [Process.enable](/business/nouns/process/enable) |
| Routes | None. |