komrad

pick_fork_point

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

writesnot idempotentdestructiveCLI onlyAgent

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

Calling it#

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>"
}'

Request#

PickForkPointRequest#

FieldTypeDescription
one of*

The child task.

task_iduuid

The task, by id.

task_slugstring

not empty

The task, by slug.

commitstring*

The commit the child's own commits sit on, which its branch must hold. Any name git reads as a commit.

Response#

PickForkPointResponse#

FieldTypeDescription
fork_pointstring

The full name of the commit recorded.