Clark Farming Company Articles
Concurrent Work

Sharing inference across local hardware swarms.

Local AI machines should not sit around like separate islands. `concurrent_work` turns them into an auditable task-level inference pool: one planned run, deterministic schedules, serial worker lanes, and a final report that says what actually happened.

run-live / scheduler workers reporting
Planner + orchestrator

One task packet becomes durable schedules.

Prompts, queues, output contracts, health checks, reset evidence, and collection rules are written before the workers start.

worker-01

Julius

Local review lane. Serial tasks, reset boundary, structured events.

worker-02

Octavius

Fast planner and high-throughput executor for heavier prompts.

worker-03

Reacher

Remote Mac lane. Receives intact tasks, never replans them.

worker-04

Cypher

Remote Mac lane. Reports status, health, result files, and incidents.

plan.json
schedule/v1
events.jsonl
reset ok
result.json
validated
final-report
residual risk

Local hardware is useful. Local hardware swarms are messy.

A single workstation is easy to understand: one model server, one agent session, one stream of output. The picture gets harder when the work is naturally split into dozens of prompts. Research packets, documentation buildouts, code audits, dataset cleanup, and article series all want the same thing: many independent tasks moving at once without losing their identity.

The naive move is to launch a few remote agents and hope. That works until it does not. One worker stalls before writing a file. Another claims success but writes the wrong output. A third carries old context into the next task. The parent agent burns another long inference window reading logs, guessing whether silence means progress, and manually deciding what to retry.

  • ?Which machine should get the next task?
  • ?Is a remote agent actually inferencing, or did it fail before startup?
  • ?Did the worker write the expected files, or only say that it did?
  • ?Can failed work move without changing the task brief?

The expensive part is not only generation. It is supervision.

`concurrent_work` exists because the parent model should not spend its context reconstructing ordinary runtime state. That job belongs to deterministic code.

Plan once. Schedule deterministically. Let workers execute serially.

`concurrent_work` does not try to split one model generation across multiple devices. Model-parallel inference is a lower-level systems problem involving weights, activations, KV cache, and synchronization. This solves the layer above it: how to make ordinary local machines behave like a coherent inference pool.

Plan once. Schedule deterministically. Run one task at a time per worker. Collect only validated artifacts.

The current fleet has four lanes. Each lane is allowed to be fast or slow, but it must be inspectable. Workers do not invent subtasks, alter the prompt, or infer the global mission from prose. They consume a schedule.

Worker
Agent / host
Decode
Prompt
worker-01
Julius / local
15 TPS
250 TPS
worker-02
Octavius / Ubuntu
25 TPS
900 TPS
worker-03
Reacher / Mac mini
10 TPS
130 TPS
worker-04
Cypher / Mac mini
10 TPS
130 TPS

Brief

Julius frames the mission and boundaries.

Plan

Octavius builds task IDs, prompts, outputs, and budgets.

Deploy

The scheduler writes queues and worker packages.

Run

Workers execute serially with reset evidence.

Audit

Outputs are collected, validated, and reported.

The scheduler turns inference into lanes.

Every run becomes a set of durable artifacts: `plan.json`, per-task prompts, versioned schedules, worker status files, health files, event logs, result manifests, collected outputs, audits, and final reports. There is no mystery packet floating between machines. The scheduler knows what was supposed to happen before the worker starts.

Context

Reset before work

Each task gets a fresh boundary. If reset cannot be confirmed, the worker blocks instead of contaminating the run.

Identity

Preserve the task

Retries and reroutes keep the original task ID, prompt hash, expected outputs, and attempt history.

Evidence

Validate the claim

A result is not trusted because a model says it is done. The wrapper checks schemas, files, paths, and status.

Serial workers are a feature, not a compromise. Local model servers are often constrained by memory bandwidth, context length, thermals, and slot behavior. One task at a time per physical lane keeps attribution clean and prevents local contention from masquerading as progress.

There is proof. There is also a boundary.

The current scheduler exposes lifecycle commands for planning, worker execution, recovery, rerouting, deployment, live status, auditing, smoke runs, and failure gauntlets. The important part is not that every run is perfect. It is that success and failure both leave evidence.

12/12

simulated medical packet tasks completed across four workers in a medium lifecycle smoke run.

3.07s

remote PID skew in that smoke run, inside a 120 second deployment budget.

4

intentional failure classes surfaced by the gauntlet: timeout, invalid JSON, missing output, executor crash.

Established

File-based lifecycle

Plans, prompts, schedules, status, events, audits, and final reports are durable artifacts rather than model memory.

Established

Deterministic failure handling

Failed and blocked work can be classified, preserved, rerouted, collected, or quarantined without changing the prompt.

Known gap

Real swarm hardening

The next acceptance step is repeated live Hermes execution across the actual Julius, Octavius, Reacher, and Cypher machines.

Known gap

Inference awareness

Host-level llama.cpp sampling and request correlation will make admission control sharper than heartbeat files alone.

Why the invalid runs matter

One packet run closed as invalid with duplicate scheduled tasks, missing reset evidence, missing outputs, and pending work. That is useful negative evidence. It is why the lifecycle now treats manual bypasses, partial outputs, and missing audit trails as real failures instead of paperwork.

From queues to a local inference fabric.

The scheduler already has enough structure to keep work honest. The next layer is host-level awareness: a local sampler writes cached llama.cpp state, sidecars read that state, and admission control decides whether a machine should accept another task before the hardware is saturated.

That is the part that turns the swarm from "several agents running nearby" into something closer to a fabric. The scheduler knows the task. The worker knows the attempt. The host knows whether inference is actually moving.

Many independent inference lanes. One durable scheduler. One report that tells the truth.

`concurrent_work` is useful because it stays clear about the boundary. It is not distributed model serving. It is the practical layer above it: getting real work through local hardware without losing control of context, retries, output paths, or evidence.