---
title: "Fork children from a state"
method: POST
path: "/preview/rollouts/states/{st}/fork"
tags: ["rollouts"]
---

# Fork children from a state

`POST /preview/rollouts/states/{st}/fork`

## Request

- Base URL: `https://autoresearch.sfcompute.com`
- URL: `https://autoresearch.sfcompute.com/preview/rollouts/states/{st}/fork`
- Auth: HTTP bearer

Fork children from a state: N rollouts continuing from the same content-addressed parent, in the parent's environment, with per-child spec patches and seeds. Sandbox kind forks the snapshot (pinned to its host; a cold parent quotes its restore and needs confirm). Task kind appends to the parent's live pool preferring the machine that holds the state, or starts a pool when the parent's is gone. `group: true` attests the set.

## Path parameters

- `st` string, required: The parent state (st-...).

## Query parameters

- `workspace` string

## Request body

- object
  - `branches` integer, nullable: How many children (default 1; the fan-out limit bounds the total across calls).
  - `chip` string, nullable: Task kind, when a new pool is needed: the runner's chip, count, env.
  - `confirm` boolean, nullable: Accept the quoted restore cost for a cold fork.
  - `env` object
  - `evaluation` string, nullable
  - `group` boolean, nullable: Attest the children as a group.
  - `labels` unknown
  - `memo` boolean, nullable
  - `mission` string, nullable
  - `runners` integer, nullable
  - `seeds` unknown

## Response `200`

The capability's JSON result.

- Result: The capability's result: the same object the MCP tool returns as structuredContent. Resources carry an `object` type discriminator and an immutable id; money is integer micro-dollars in `*_usd_micros` fields.
  - `object` string: The resource type, when the result is one resource.

## Other responses

- `400`: Malformed request: bad JSON, a parameter that does not parse, or a value outside its range. Code `invalid`.
- `401`: No bearer token, or one this API cannot verify. Code `unauthenticated`.
- `403`: Authenticated, but the token's scopes or the account's role do not reach this operation. The message names the scope word to request. Code `forbidden`.
- `404`: No such route. Code `not_found`; the body names the OpenAPI document.
- `422`: A well-formed request the platform declined: no such node, a cap reached, a state that forbids the move. The message says which, and what to do instead. Code `refused`.
- `429`: Over this door's per-customer budget. Wait `Retry-After` seconds. Code `rate_limited`.
- `500`: Our fault. Retry; if it persists, quote the request-id. Code `internal`.

---

[API](https://skmtc.dev/givemeanode/apis/autoresearch-customer-api.md) · [All operations](https://skmtc.dev/givemeanode/apis/autoresearch-customer-api/llms.txt) · [OpenAPI document](https://skmtc.dev/givemeanode/apis/autoresearch-customer-api/revisions/f88dcb70ac6c?raw)
