You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Named flocks. [[flock]] entries in flock.toml declare them, one with default = true, and flock = "..." puts a machine in one; a machine
without it is in the default flock. A file with no [[flock]] entry is one
flock named default, so existing files load unchanged.
A task and a job target one flock and only its machines take their tasks: --flock on pastor task run, flock under a job's [dispatch], else the
pinned machine's flock, else the default. --machine outside --flock is
refused (flock_mismatch), an unknown flock too (unknown_flock). pastor task retry keeps the flock, and is refused (unknown_flock) once
it is removed. A head from before flocks is refused (head_too_old) by
every command that talks to or reloads it while flocks are in play: --flock, an edit of flock.toml, or named flocks declared there. Ping
answers the head's IPC protocol for this.
pastor flock list|add [--default]|remove|default, pastor machine move,
and --flock on machine add, machine list and task list. task list, task show and job list show the flock, and task events carry it in the
task row.
pastor task send <task> [TEXT] [--key K]... [--no-enter] types into a
live task's agent through the head, to answer what it is waiting on without
attaching. Only starting, running and blocked tasks take input
(task_not_live). Each send emits task.input, which records the key
names and the text length, never the text.
Saved repo trust. pastor task send <task> --trust presses the agent's
folder-trust keys to a task blocked on its startup prompt
(not_at_trust_prompt otherwise) and saves the task's machine and repo;
the head then answers the trust prompt of that repo's later tasks on that
machine on its own, once per task, and emits task.trusted. [agents.<name>] trust_keys
in pastor.toml sets the keys (Claude's, Down then Enter, are built
in). pastor trust list [--json] and pastor trust remove <machine> <repo> show and revoke it.
Events carry an optional detail object for what they add beyond their
ids; records without one are unchanged.
Changed
Every command that talks to or reloads the head pings it once, first, and
acts on that answer throughout. A head that holds the socket but does not
answer is an error (head_unresponsive) on all of them, where tick, job list, task list|show, flock list|remove and job enable|disable
used to take it for no head and work offline next to it, and machine add
and plugin install|link|uninstall|unlink made their change and only
warned. task prune answered daemon_unresponsive for this; it now
answers head_unresponsive like the rest.
pastor machine list opens with a line about the head (its pastor and
herdr versions, its host, the number of machines, and which machine it is
when it is one) instead of a first table row named pastor, and has a
FLOCK column after HOST. The head's own machine comes first. --json
keeps its shape, with flock on each machine.
machine add|remove and the new flock commands edit flock.toml in place,
keeping comments and layout; they used to rewrite the whole file.
The database is schema 6. Schema 4 stores each task's flock; rows from
before flocks join the default flock. Schema 5 adds the trusted_repos
table and a trust_sent flag on each task. Schema 6 stores whether the
task's agent has been seen at work since its prompt (activity_seen).
Fixed
An agent that exits between turns (a human typing /exit once the work
is done) leaves a running task done, not failed with "agent process
exited". An exit while starting, blocked or working still fails the task.
pastor task retry of a failed worktree task no longer fails with git's
"fatal: '' already exists": the retry reopens the old task's
checkout with worktree.open, on its branch, when the old task made that
checkout, it is still on disk at the same path, the old agent is gone and
no agent is in its workspace (an earlier retry may be working there).
Any other retry, a stale task's included, gets its own branch and
worktree.
A task whose agent finished its work and sat idle, waiting for input, no
longer stays running until the session ends when the daemon restarted,
or the flock or settings were reloaded, while the agent worked: whether
pastor saw the agent at work is stored with the task instead of held in
the machine actor's memory, so the new actor settles the idle agent as done.