/v1/autoimprove/job.
Create a job
201 with the job, already RUNNING. Useful optional fields:
One live job per agent: creating a second returns
409.
Watch it work
logEntries, the full worklog oldest-first. The kinds worth watching for:
Poll the job until
status leaves RUNNING. The workingMemory field is Roark’s own running notes; finalReport is its closing story once concluded.
Steer and answer
Send guidance any time the job is live; it binds Roark’s next decision:status is NEEDS_INPUT, answer the open question (free text or one of the offered options). Unanswered questions proceed with Roark’s stated default after 24 hours:
409.
Promote or dismiss
A verified job (AWAITING_PROMOTE) holds its staged changes until you decide:
409 unless the job is awaiting review.
Cancel
Cross-tenant and unknown job ids are indistinguishable: both return
404.