Local Multi-Agent Coordination with a Persistent Task Board
A persistent local task board lets AI agents coordinate long-running work without relying on fragile synchronous call chains. This article explains the task model, state machine, shared contracts, transaction semantics, and security boundaries needed for asynchronous planning, execution, and review, along with a staged implementation approach and practical recovery checks.
Why Coordinator–Worker Architectures Become Fragile
When multi-agent systems move beyond demo scripts, the first weakness is often the coordination protocol rather than model capability. A common design uses a central coordinator to connect planning, execution, and validation roles through function calls or RPC. The coordinator issues instructions, and workers return results synchronously.
This structure is clear enough for short workflows within a single session. But when tasks run for hours or days, require human intervention, or encounter a crashed agent, the call chain can break.
Three factors drive this fragility:
- Control flow and data flow live in process memory. When the process exits, its state disappears.
- Different roles operate at different speeds. A planner may generate several subtasks at once, while an executor spends considerable time using tools or waiting for external feedback. Forced synchronization makes slower work a bottleneck.
- Permissions and responsibilities overlap. When the coordinator handles both scheduling and task implementation, it becomes difficult to determine whether a failure occurred in reasoning, tool use, or orchestration.
The coordination layer therefore needs to move from direct code-level calls to a shared workspace. Instead of holding references to one another, agents read and update the same persistent task view.
A task board provides a familiar model for this workspace: columns represent states, cards represent work items, and comments and attachments carry context.
A Persistent Task Board as the Coordination Layer
A local task board uses a transactional database to record tasks, dependencies, state transitions, and participants. An embedded relational database is sufficient for a single machine or a small team. It offers a clear schema, composable queries, and straightforward backups, while keeping the assistant and its operating rules under local control rather than requiring a heavyweight cloud console.
A minimum viable data model typically includes:
- Tasks: ID, title, type such as planning, execution, or review, priority, board column, creation and update timestamps, and an optional deadline.
- Dependencies: Predecessor and successor tasks, supporting topological ordering and detection of blocked work.
- Events: State changes, assignments, comments, and attachment references, forming an audit trail whose records are not meant to be altered.
- Role bindings: The agent or human session that has claimed each card, together with its read-only or write permissions.
Keep the state machine small. For example:
- Ready
- In progress
- Blocked
- Awaiting review
- Completed
- Canceled
Columns should map directly to states. Avoid creating numerous columns with overlapping meanings. A blocked task must include a reason, such as missing context, tool failure, or waiting for a human. Without that requirement, the board can quickly become a collection of abandoned work.
Coordination shifts from synchronous calls to asynchronous claiming. A planning agent can create several subtasks and then exit. Execution agents pull runnable items by priority. Review agents subscribe only to the “Awaiting review” column.
If an agent crashes, its in-progress cards can be returned to “Ready” or marked “Blocked,” allowing other roles to continue. This is the central requirement for long-running tasks: the shared workspace must outlive any individual process.
Coordinating Heterogeneous Agents on One Board
Agents differ in both capability and latency. A research-oriented role may excel at breaking down goals, identifying assumptions, and locating information gaps. An engineering role may specialize in editing files, running tests, and producing patches. A long-term assistant may maintain user preferences, project conventions, and unresolved issues.
These roles do not need identical prompts. They need a shared task contract.
At a minimum, that contract should define:
- Where to read input context: The card description, comment thread, and linked file paths.
- What counts as completion: The location of deliverables and whether required test commands have passed.
- How to report failure: A structured blocked-reason field.
Put the contract in card templates rather than scattering it across agent system prompts. Adding a new role then does not require changing the orchestration code.
Asynchronous coordination also requires idempotency. If the same card is claimed again, the executor should consult its event history to determine whether any work has already been completed and avoid repeating side effects. External tool calls should record a request fingerprint and a result summary to support review and replay.
A digital twin or long-term assistant can serve as a board steward. It can periodically check stale blocked items, convert human comments into executable subtasks, and resolve priority conflicts according to established rules.
The steward should remain a participant on the board, not a hidden controller above it. Otherwise, the design reintroduces a single point of failure.
Local Control and Security Boundaries
Keeping control on the local machine does not remove the need for isolation. Apply boundaries at several layers:
- Storage: Restrict database file access to the runtime user, encrypt sensitive fields where appropriate, and take regular snapshots.
- Agents: Grant tool allowlists by role. An execution agent may write to the code directory, while a planning agent should be read-only by default.
- Human interaction: High-risk workflow stages, such as “Awaiting release,” must require a human to move the card to completion. Agents must not close those items themselves.
If cloud services are needed for backup or cross-device synchronization, use them for general-purpose functions: object storage for attachments, message queues for cross-node notifications, and logging and monitoring for observability.
Do not transfer scheduling semantics to an external control panel. The local database should remain the authoritative source of board state; the cloud serves as a replica or an alerting channel.
Implementation: From One Task to a Long-Running Pipeline
A practical rollout has three stages.
First, complete one complex task through the board. Have a human create the card and two agents claim the planning and execution work. Verify that the workflow can recover from a process crash.
Second, add dependencies and blocked reasons. Enforce a rule that no task can enter the review column without a definition of done.
Third, connect the event table to a logging service. Use task IDs to correlate model calls, tool outputs, and state transitions into a timeline that can be inspected after the fact.
The following pseudocode illustrates the transaction semantics for claiming a runnable task. It is not a specific product interface:
BEGIN;SELECT id FROM tasksWHERE status = 'ready' AND assignee IS NULLORDER BY priority DESCLIMIT 1FOR UPDATE SKIP LOCKED;UPDATE tasks SET status = 'in_progress', assignee = :agent_idWHERE id = :id;INSERT INTO events(task_id, type, payload) VALUES (...);COMMIT;
With multiple execution agents, row locking or skipping locked rows can prevent two agents from claiming the same task. When a planner creates subtasks, it should insert their dependencies in the same transaction. This avoids a window in which a subtask is visible before its dependencies have been recorded.
Evaluate the coordination layer on more than one-shot success rates. Ask:
- Can a task resume after its agent process is killed?
- Are blocked items handled by the steward or a human within the agreed time?
- Can a rejected review return a task to execution with its comments and context intact?
These checks reveal more about operational readiness than whether a single conversation looks impressive.
Conclusion
Reliable multi-agent coordination depends on replacing fragile in-memory call chains with a persistent shared workspace.
A local task board combines an explicit state machine, dependencies, and event auditing so that planning, execution, review, and long-term assistant roles can advance work asynchronously at their own pace. It also keeps permissions and completion criteria under user control.
Keep the number of states limited, make task contracts and blocked reasons explicit, and use transactions to support safe task claiming and idempotent execution. With those foundations, the coordination layer can become maintainable infrastructure rather than another layer of difficult-to-debug orchestration glue.
