Skip to main content

Module work

Module work 

Source
Expand description

The shared work queue (Work*).

ConstantsΒ§

MOVE_FIELDS πŸ”’
The fields each of the Kanban’s moves takes, as the tool’s description lists them (not board: with a bare id it says which board the id is on, for every move). A field that only other moves take is refused by name: answered β€œdone”, it would be dropped and the task left as it was.

FunctionsΒ§

ago_words πŸ”’
How long ago, in the words a history line uses.
attached_text πŸ”’
β€œ Attached: a.png (image), b.webm (recording).β€œ for the files an update or submit carried, else β€œβ€.
boards_text πŸ”’
What the boards answers say: the list, or the board a change left.
call πŸ”’
claimed_text πŸ”’
What a successful claim tells the agent: the task, its attempt number, and how to use them.
decision_text πŸ”’
The answer to accept or send_back: what was done, and what it set off.
finished_text πŸ”’
The answer to finishing a task (complete, submit): where it went, and the next task waiting for the caller, which it takes now (Kanban Β§6.5: an agent goes on through its backlog).
held_in πŸ”’
The tasks self_id holds in state on any board, each with its attempt.
hold_text πŸ”’
The answer to hold or unhold: where the task is now.
holds_it πŸ”’
Whether this agent holds the task the call names (claimed, or blocked on a question it asked).
is_only_a_note πŸ”’
An update that only leaves a note and/or links: the part of update that needs no claim. A checklist, files, or the UI flags are the holder’s, and still ask for the attempt.
missing_attempt πŸ”’
The refusal for a call without attempt: the tasks this agent holds, each with the attempt to pass. A weak model repeats a bare refusal; this one says what to send. It never fills the attempt in: the argument is how srv rejects a stale holder, and a default would defeat it.
move_action_name πŸ”’
The tool-facing name of a move: what the agent passes as action.
no_such_target πŸ”’
Why Tasks enqueue refuses a target no agent answers to (#1257), and which ids it may have meant.
note_on_unheld πŸ”’
Tasks update with a note or links and no attempt, on a task nobody holds: srv writes it on the card as this agent’s, with no claim and no attempt used. srv refuses it, saying what to do instead, if someone holds it.
path_seg πŸ”’
A task ref as one URL path segment (a raw # would start the URL’s fragment).
refusal_words πŸ”’
The task an action names, as it goes in a URL path: its id, or its number with or without the # the answers print (a raw # would start the URL’s fragment). Anything else that isn’t an id character is refused. What srv refused with, in words: its error when the answer is JSON that has one, else the answer as it came (a UI task handed in without media is told what to attach, or to say why it can’t).
refuse_unused_fields πŸ”’
Refuse a field this move doesn’t take, naming the moves that do.
run_work_accept πŸ”’
Any agent accepts or sends back a task in Review; srv records the agent that did it.
run_work_boards πŸ”’
The boards, and managing them (GET and POST /agentmux/work/boards).
run_work_claim πŸ”’
run_work_edit πŸ”’
The Kanban’s other moves, made by this agent (POST /agentmux/work/act).
run_work_enqueue πŸ”’
Enqueue a task. Every Work tool posts or gets /agentmux/work* on the local srv, with the same auth header as the cron tools.
run_work_get πŸ”’
One task whole (GET /agentmux/work/:id): the instruction it was filed with and everything the board holds about it.
run_work_heartbeat πŸ”’
run_work_hold πŸ”’
run_work_list πŸ”’
run_work_tokens πŸ”’
A task’s tokens (GET /agentmux/work/:id/tokens): where its tally went, as srv words it. Counts only, and only when asked.
run_work_update πŸ”’
scoped πŸ”’
The arguments with a bare task number made a ref on the board they name (board: "work", id: "12" is work#12), when the board is given as a slug. Not for move (its board is where the task goes), nor where the board is not about the id.
shown_id πŸ”’
How an answer writes the id it was given: #12, or work#12 as it is.
stages_text πŸ”’
β€œ, stages (rev 2): Needs you [amber: needs] | Done [green: merged+released]” for a board with its own stage set; nothing for the default eight (so the list stays short). An agent reads this to know what to send back with stages and stages_rev.
starts_after_text πŸ”’
What a claimed task starts after, with each one’s document: a build’s agent reads its spec there, however the build reached it. Empty when it starts after nothing.
task_id πŸ”’
task_name πŸ”’
A task as an answer names it: #12 when srv gave it a number, else its id.
task_text πŸ”’
A task as get shows it: who it is for and who holds it, its links, the instruction it was filed with, then the holder’s note, question and checklist, what it starts after, and its last history lines.