Skip to main content

Module job_actions

Module job_actions 

Source
Expand description

The job actions that need the server: task files a task on the Kanban as kanban.act does, spawn opens a worker through the spawn path (docs/specs/SPEC_JOBS_AND_TEMPLATES_2026_10_24.md §5.1 “Actions”). drone starts a Drone run. message is the scheduler’s own delivery.

Constants§

FILED_BY 🔒
Who files a job’s task and who its history says did.
TASK_KIND 🔒
The task’s kind.

Functions§

drone_trigger 🔒
What a job hands the drone it runs, read as {{trigger.*}}: how the run started (schedule, manual, retry, event), the job, and the slot it was due.
file_task 🔒
File the job’s task, as kanban.act create does: the queue row, its card (no review: the task isn’t the operator’s to accept), and its first history line, which names the job and the run. Returns its id and number.
file_task_as 🔒
File a task for an automation, as kanban.act create does: the queue row, its card (no review: the task isn’t the operator’s to accept) and its first history line. filed_by is who the history says did it, kind the task’s tag, and first_line the history’s first line. Returns its id and number.
file_task_by 🔒
file_task_as, with the task’s created_by_uid set to filed_by_uid: a tag the code that filed it can find it by later (a drone’s Task block, to add a note only to a task that drone filed). Nothing authorises on it.
install 🔒
Run task, spawn and drone actions in this server from now on.
operator_made 🔒
Whether the operator created job: it carries no agent’s UID.
run_action 🔒
Carry out job’s action for run run_id.
target_of 🔒
The agent a task is for, (name, uid); none for the backlog.
worker_brief 🔒
The worker’s first message: who it reports to, then the brief. As the Agents tool sends it, naming the tool exactly.