Skip to main content

Module work_remote

Module work_remote 

Source
Expand description

The Kanban’s remote operations: tasks.enqueue and tasks.list on this machine’s board, for an agent of another machine (SPEC_AGENTS_OPERATE_OTHER_MACHINES_2026_10_30.md §4.3, phase P3).

The transport (remote_ops) has already proven the requesting machine and the request; these functions take the verified requester’s name (slug@machine) and the typed params, and do what the same call does locally, through the same code (work_queue::enqueue_core, list_items). They never see the envelope and write no audit row; the transport does both.

What differs from a local call, on purpose:

  • The task is asked for by that agent (slug@machine, kind agent), never by the operator, and is not held for the operator’s Accept unless the request says review: true.
  • The target is named by its slug or name and resolved here, on the machine that owns it; a name that matches nobody, or several agents, is refused with the candidates, never guessed.
  • The request’s reason isn’t a parameter: it never reaches an agent (the transport keeps it for the audit).
  • There is no target_group: a group is a local idea.

Structs§

EnqueueParams 🔒
What tasks.enqueue takes: the local tool’s fields, less target_group, created_by and the carried uid.
Failure 🔒
Why an operation didn’t run: a short snake_case code (the transport’s refused_reason) and words.
ListParams 🔒
What tasks.list takes.

Functions§

fail 🔒
params_of 🔒
The params as T, naming the field that is wrong or unknown.
target_uid 🔒
The uid of the agent here that typed names, or why none can be named.
tasks_enqueue 🔒
tasks.enqueue: file a task (or, with first, a spec and its build) on this machine’s board for one of its agents. The answer is the local call’s: {id, num}, and build_id/build_num for a pair, with a note when the target can’t work now.
tasks_list 🔒
tasks.list: this machine’s board, read-only: {items: [...]}, each with its number.
tasks_list_for 🔒
tasks_list for the agent actor (slug@machine), which sees only the boards whose agent list has it.