# Limits

> The hard limits the platform enforces on webhooks, events, schedules, connector actions, workflow steps, cubbies, logs, and evaluations, with what happens when you hit each and what to do.

Source: https://developers.manykind.ai/reference/limits/

These limits are enforced by the platform or the SDK. The values are the defaults the platform runs with. Each limit links to the page of the feature it belongs to, which states it too. Budgets you choose for your own workflow (steps per run, payload sizes you assert in tests) are on [Best practices](https://developers.manykind.ai/agents/workflows/best-practices/).

## Webhook triggers

| Limit | Value | When you hit it | What to do |
|---|---|---|---|
| [Request body](https://developers.manykind.ai/agents/workflows/triggers/#webhook-limits) | 1 MiB | `413 PAYLOAD_TOO_LARGE`, "webhook body too large" | Send a reference (an object path, a URL, an id) and fetch the content in a step. |
| [Body shape](https://developers.manykind.ai/agents/workflows/triggers/#call-it) | A JSON object or array | `400`. An array is delivered as `{ "body": [...] }`. | Send an object. |
| [Calls per key](https://developers.manykind.ai/agents/workflows/triggers/#webhook-limits) | 60 per minute, bursts of 10 | `429 RATE_LIMITED` with a `Retry-After` header in seconds | Honour `Retry-After`. Give each caller its own key. |
| [`Idempotency-Key` header](https://developers.manykind.ai/agents/workflows/triggers/#webhook-limits) | 255 bytes | `400` "Idempotency-Key is longer than 255 bytes" | Use a short id (a UUID or your request id). |
| [Waiting for the result](https://developers.manykind.ai/agents/workflows/triggers/#webhook-limits) | 30 s when the endpoint sets no timeout; 120 s at most | `202` with `status`, `runId`, and `statusUrl`; the run carries on | Poll `statusUrl`, or respond immediately and read the result later. |

## Events and the vault

| Limit | Value | When you hit it | What to do |
|---|---|---|---|
| [Publish request body](https://developers.manykind.ai/agents/how-agents-run/#limits) | 1 MiB | `413 PAYLOAD_TOO_LARGE`. A workflow's publish step fails the run. | Keep events small; declare each publish step's `payload`. |
| [Events per publish call](https://developers.manykind.ai/agents/how-agents-run/#limits) | 100 | `413 PAYLOAD_TOO_LARGE` | Publish in batches of 100 or fewer. |
| [Agent publish into a vault (`mk push --vault`) body](https://developers.manykind.ai/agents/ship/push-and-deploy/#push) | 64 MiB | `413`; the publish is refused | Ship large assets as objects, not in the bundle. |

## Schedules

| Limit | Value | When you hit it | What to do |
|---|---|---|---|
| [Granularity](https://developers.manykind.ai/agents/workflows/triggers/#schedule-limits) | 1 minute: a 5-field cron, or `@hourly` / `@daily`-style descriptors | An expression with a seconds field is refused | Use a standard 5-field cron. |
| [Late fire](https://developers.manykind.ai/agents/workflows/triggers/#schedule-limits) | A fire more than 4 minutes late is skipped | That tick does not run | Make each run cover "since the last run", not "the last minute". |

## Connector actions

| Limit | Value | When you hit it | What to do |
|---|---|---|---|
| [Time per attempt](https://developers.manykind.ai/agents/workflows/steps/#limits) | 20 s | The attempt fails and is retried | Keep actions small. |
| [Attempts](https://developers.manykind.ai/agents/workflows/steps/#limits) | 5, with backoff | The action step fails with `connector.action.failed` | Handle the failure path in the graph. |

## Workflow runner

| Limit | Value | When you hit it | What to do |
|---|---|---|---|
| [Input held by a waiting step](https://developers.manykind.ai/agents/workflows/steps/#limits) | 1 MiB (1,048,576 bytes) | The step fails: "the input carried by step '…' is N bytes, over the 1048576-byte limit a waiting step can hold" | Shrink the carried item before agent and human steps. |
| [Items in flight per region](https://developers.manykind.ai/agents/workflows/split-and-aggregate/#limits) | Parallel: 8 by default, up to 64 with `mode: { parallel: n }`. Sequential: 1. | Further items wait their turn | Raise `n` only when every item's steps can run at once (a participant per item). |
| [Loop bound (`loop.max`)](https://developers.manykind.ai/agents/workflows/people/#loop-back-edges) | 1 to 100 | The graph is refused at validation | Bound loops tightly and set `exhausted`. |
| [Run participants](https://developers.manykind.ai/agents/workflows/people/#participants) | 2 to 64, including the initiator | The run is refused | Split large groups. |
| [Exchanges in one step (agent asks, person answers)](https://developers.manykind.ai/agents/workflows/steps/#limits) | 12 | The step fails: "gave up after 12 exchanges without a final answer" | Ask for everything at once. |
| [Model call attempts](https://developers.manykind.ai/agents/workflows/steps/#limits) | 3 (transport failures only, 400 ms then 1600 ms apart) | The model step fails | Treat a failed model step as a normal failure path. |
| [Human step answer: note, or one value](https://developers.manykind.ai/agents/workflows/people/#limits) | 20,000 characters each | The answer is rejected (`note_too_long`, `invalid_field:<name>`) | Ask for less, or collect a document. |
| [Human step answer: values](https://developers.manykind.ai/agents/workflows/people/#limits) | 64 | The answer is rejected (`too_many_values`) | Split the form. |
| [Document saved in a step](https://developers.manykind.ai/agents/workflows/people/#limits) | 2,000,000 characters | The save is rejected (`invalid_field:body`) | Store large documents as objects. |
| [SQL in a Cubby step](https://developers.manykind.ai/agents/workflows/steps/#limits) | No `{{ $json.… }}` templates | The step fails: "SQL may not interpolate the run's data" | Use `?` and `args`. |

`defineWorkflow` refuses at build time: duplicate step ids, an unknown step kind, an agent step without `use`, a model step whose alias is not in `models`, a graph with no trigger, an edge to an unknown step, and a step nothing is wired into.

## Cubbies

| Limit | Value | When you hit it | What to do |
|---|---|---|---|
| [Size of one cubby](https://developers.manykind.ai/agents/building-blocks/cubbies/#limits) | 10 GB | Writes are refused: `413 QUOTA_EXCEEDED`, "storage quota exceeded" | Delete or archive old rows; keep large content as objects. |

## Logs and run history

| Limit | Value | When you hit it | What to do |
|---|---|---|---|
| [Task log query window](https://developers.manykind.ai/agents/workflows/monitor-runs/#limits) | 24 hours | Older logs come back empty | Record anything you need later in a cubby row. |
| [Finished Jobs and their Tasks](https://developers.manykind.ai/agents/workflows/monitor-runs/#limits) | Kept 7 days | Older runs are deleted | Capture runs worth keeping as dataset cases. |

## Evaluations

| Limit | Value | When you hit it | What to do |
|---|---|---|---|
| [Dataset name](https://developers.manykind.ai/agents/workflows/evaluate/datasets/#create-a-dataset) | `^[a-z0-9][a-z0-9-]{0,62}$` | Refused | Lowercase, digits, hyphens. |
| [Case id](https://developers.manykind.ai/agents/workflows/evaluate/datasets/#case-shape) | `[A-Za-z0-9._-]`, 1 to 80 characters | Refused | |
| [`$regex` pattern](https://developers.manykind.ai/agents/workflows/evaluate/results/#limits) | 256 characters, no nested quantifiers | The field fails: `unsafe $regex refused: …` | Simplify the pattern. |
| [**Run experiment** in ROC](https://developers.manykind.ai/agents/workflows/evaluate/experiments/#run-an-experiment-in-roc) | Repeats 1 to 20, Concurrency 1 to 16, Timeout 10 to 3600 s | The dialog refuses to start | Use `mk eval run` for other values. |


## Releases and alerts

| Limit | Value | When you hit it | What to do |
|---|---|---|---|
| [Failing](https://developers.manykind.ai/agents/workflows/status-and-alerts/#status) | 20% or more of the last hour's runs failed, judged on at least 5 runs | The status turns **Failing** and one alert is sent | Fix the cause; the workflow recovers when fewer than 10% fail. |
| [Stuck](https://developers.manykind.ai/agents/workflows/status-and-alerts/#status) | No progress for 3 × the workflow's usual step time, at least 10 minutes | The status turns **Stuck** | Open the run and check where it waits. |
| [Alert routes](https://developers.manykind.ai/agents/workflows/status-and-alerts/#alerts) | One per scope | Every workflow in the scope sends to it | Put workflows with different owners in different scopes. |
| [Run history behind the Overview charts](https://developers.manykind.ai/agents/workflows/status-and-alerts/#limits) | 35 days | Older runs are not charted | Keep runs worth keeping as dataset cases. |
| [Release version](https://developers.manykind.ai/agents/workflows/release/#release) | A new `X.Y.Z`; an existing one is refused | Release stops before publishing | Pick the next number. |

## Related

- [Best practices](https://developers.manykind.ai/agents/workflows/best-practices/)
- [Monitor runs](https://developers.manykind.ai/agents/workflows/monitor-runs/)
- [Triggers](https://developers.manykind.ai/agents/workflows/triggers/)
- [Errors](https://developers.manykind.ai/reference/errors/)
