# pick\_fork\_point

Record the fork point of an orphaned child, the commit its own commits sit on.

writes · not idempotent · destructive · CLI only · [Agent](https://komrad.dev/latest/api/agent.md)

Komrad measures the child from that commit and the cascade rebases it again.

## Calling it

```bash
curl -X POST http://127.0.0.1:8787/komrad.agent.v1.AgentService/PickForkPoint \
  -H 'Content-Type: application/json' \
  -d '{
  "task_id": "<task_id>",
  "commit": "<commit>"
}'
```

```bash
komrad rpc pick-fork-point \
  --task-id '<uuid>' \
  --commit '<string>'
```

## Request

### PickForkPointRequest

| Field | Type | Description |
| --- | --- | --- |
| [one of](https://komrad.dev/latest/api/agent/pick-fork-point.md#komrad-agent-v1-PickForkPointRequest-task)\* |  | The child task. |
| [`task_id`](https://komrad.dev/latest/api/agent/pick-fork-point.md#komrad-agent-v1-PickForkPointRequest-task_id) | uuid | The task, by id. |
| [`task_slug`](https://komrad.dev/latest/api/agent/pick-fork-point.md#komrad-agent-v1-PickForkPointRequest-task_slug) | string not empty | The task, by slug. |
| [`commit`](https://komrad.dev/latest/api/agent/pick-fork-point.md#komrad-agent-v1-PickForkPointRequest-commit) | string\* | The commit the child's own commits sit on, which its branch must hold. Any name git reads as a commit. |

## Response

### PickForkPointResponse

| Field | Type | Description |
| --- | --- | --- |
| [`fork_point`](https://komrad.dev/latest/api/agent/pick-fork-point.md#komrad-agent-v1-PickForkPointResponse-fork_point) | string | The full name of the commit recorded. |
