◢◤ DRGN/ARKTRANSMISSIONS

The harness is the product: what I learned running a 24/7 agent queue

TL;DR (ES): Todos discuten qué modelo es mejor, pero tras seis semanas con una cola de agentes funcionando 24/7 en mi Mac, lo que de verdad decide si el sistema sirve es el harness: el bucle, el sandbox, el control de cuota, los tests como puerta y una bandeja donde yo apruebo lo irreversible. Es cierto que los modelos van a absorber parte de ese andamiaje (planificación, delegación), pero los permisos, la auditoría y la decisión humana no desaparecen. Aquí van los fallos reales: un PATH de launchd, un 429 a medianoche y un cargador suelto que me costó 12 horas.

My agent queue once failed a job in 0.6 seconds and told me nothing about why.

Not a bad answer from the model, not a hallucination. The model never even started. The scheduler, running under launchd, spawned a setup step, uv sync, and it died with uv: command not found. The orchestrator marked the mission failed with an empty reason, the status beacon in my dashboard read failed: ?, and the lane log was blank. The fix was one line in a plist. Finding it took longer than writing the feature it broke.

That bug is a decent summary of what I learned building a queue that runs coding agents around the clock: the model is rarely the part that breaks. The harness is.

The week three channels said "harness"

In November my YouTube history converged on one word. CodelyTV published Agent Harness en 15 minutos, which breaks the harness into its components and, more usefully, asks how you know whether a change you made to it actually helped. Turing Post TV put out AI Models Are Eating Their Harnesses. Now What?, which starts from a coding agent of about 25 lines and then walks through what you bolt on as work gets longer: context, multi-agent coordination, state, permissions, measurement. And Jay E from RoboNuggets argued in Anthropic's Engineers Stopped Building AI Agents (Here's What They Build Instead) that the interesting unit is moving from "an agent" to reusable skills that better models can pick up and run.

I'd been living inside this argument for six weeks, so here is the practitioner's version.

What I actually built

It started on 17 October as a modest thing: a SQLite queue of goals, tasks and runs, two runners (claude -p and opencode), a small dashboard and a launchd job to keep it alive. Twenty-two commits later it is a small federation:

  • a kernel: one resident process that never reads repo content. It owns run slots, the quota ledger and a decision inbox.
  • per-project orchestrators, forked on demand. Each one has its own SQLite event log and its own git worktree, and runs plan → code → test → deterministic gates.
  • standing missions ("lanes"): YAML files the scheduler turns into work 24/7, with no interactive session open.
  • an inbox: cards that ask me to keep, retry or discard. Merge, deploy and spending are never offered to an agent.

Here is a real lane, lightly trimmed. It is the one that improves my drone choreography tool while I sleep:

name: drone-choreo-dev
requires: headless
autonomy: L2                 # branch work only; merge, push, publish and purchase are the operator's
backlog: true
budget: { max_runs: 2, per: day }
schedule: { mode: continuous, cooldown_minutes: 20 }
run:
  path: ~/…/drone-choreo
  stack: true                # next cycle builds on the last kept branch
  on_pass: keep              # kept branch -> "passed its gates" inbox card; merging is yours
  model: sonnet
  sandbox: srt
  setup:
    - uv sync --frozen --quiet --extra dev
  gates:
    - uv run --frozen pytest -q
    - node --test tests/web/

Notice what is not in there: no prompt engineering. The brief is a few lines of rules. Everything else is plumbing.

Five parts of a harness, mapped onto mine

I think of a harness as five parts. This is my own split, but it lines up with how the CodelyTV video slices it.

1. The loop. Each lane goes through plan → code → test, and the orchestrator, not the agent, runs the gates. Every commit carries an idempotency trailer (Fed-Idem), so a stage resumed after a crash doesn't commit twice. The end-to-end test kills the daemon with kill -9 mid-stage and checks that the mission resumes its own session with --resume and finishes without a duplicate commit.

2. Tools and sandbox. Every run executes inside srt with --safe-mode. Writes are allowed only in the mission worktree. Reads of other projects, .env files and the kernel's own database are blocked, and egress is limited to the model provider. I checked this live rather than trusting the config: a write outside the worktree failed, reading a sibling repo failed, and a request to example.com came back as a proxy 403.

3. Resources: slots, memory, quota. The Mac can sustain about two agent processes, so the host cap is 2. Admission also reads macOS memory pressure: at warn the cap drops to 1, at critical to 0. Quota is a resource too. Subscriptions are windowed, so the scheduler stops admitting new stages at 85% of the 5-hour window or 90% of the 7-day window.

4. Memory and state. State lives outside the repos in ~/…/federation with 0700 permissions, precisely so the sandbox can deny the code folder wholesale and re-allow only one worktree. Lanes share no memory. Each has its own event log, worktrees and orchestrator process.

5. Evals and the human. Deterministic gates come before any judgement. Anything irreversible becomes an inbox card. The first valid answer wins, and every attempt is audited.

Three failures that taught me more than any benchmark

The launchd PATH

Back to the 0.6-second failure. launchd gives daemons a minimal PATH, and ~/.local/bin, where uv lives, wasn't on it. The real bug was not the PATH, though. It was that a failure carried no reason. The fix had two halves: add the directory to the plist, and make every failed mission record a reason plus the tail of stderr in a new detail column, which also goes to the audit log and the lane log. I added tests for "setup step fails", "binary missing" and "sibling path dependency", which took the suite from 29 to 39.

Lesson: observability of failure is a harness feature. If your agent platform can fail silently, it will, and always at 3 a.m.

The 429 that should have been a pause

On 25 November my 5-hour window genuinely ran out mid-mission. Claude's result line came back with utilization 1.02, status rejected, HTTP 429, and the strange combination is_error: true with subtype: "success". If you only check subtype, that run "succeeded". So the first rule in my adapter is that is_error means failure, whatever the subtype says.

Later I found a worse case: a CLI that dies on a 429 before it prints a result line at all. That looked exactly like a crash. Now the classifier treats rate-limit text in stderr as a quota event, parses the reset time and parks the mission instead of failing it:

if (!result) {
  // a CLI that dies on a 429 before its result line is parked, not counted as a crash
  if (!signal && RATE_LIMIT_TEXT.test(stderr)) return { kind: "quota", ok: false, until: quotaUntil(stderr) };
  return { kind: signal ? "killed" : "crash", ok: false };
}

parseResetHint understands the shapes I have actually seen: an epoch after a pipe, "resets 3pm", "try again in 25 minutes", Retry-After. When the window reopens, the mission resumes its own session. A broken lane, by contrast, turns itself off and sets its beacon to blocked, so it can't burn quota in a loop.

The charger

On 27 November I lost about 12 hours of queue time because the charger had worked loose. On battery the Mac kept going until about 1%, slept, and everything stopped. No agent bug, no model issue. The watchdog now asks pmset every cycle:

const out = execFileSync("pmset", ["-g", "batt"], { encoding: "utf8" });
power.source = /'AC Power'/.test(out) ? "ac" : /'Battery Power'/.test(out) ? "battery" : null;
if (power.source === "battery") problems.push(`Mac is on battery (${power.percent ?? "?"}%) - check the charger`);

The latest addition is the same idea one level up: a liveness check. If a runner has quota headroom and a free slot while backlog work waits for 10 minutes, the kernel raises an alert. Idle capacity is now treated as an incident.

"Models eat their harnesses": what gets thinner, what never will

The Turing Post episode makes the uncomfortable point that some teams are removing instructions and orchestration as models improve. I have local evidence for that.

I keep a research ledger next to the code. Its core rule is that a claim from a secondary source stays a hypothesis until a primary doc or a local probe confirms it, and entries are never deleted, only marked superseded. It currently holds 34 verified facts against 19 open hypotheses. One of those hypotheses was that fixed plan/code/test role agents would beat a single agent that decides for itself whether to delegate.

The pilot didn't support it. On a well-specified task with 12 hidden assertions, both arms passed 12/12. The single agent did it at 0.56× the cost and 0.58× the wall time, with a smaller diff, and it chose not to delegate at all (zero subagent calls). One task is a weak sample, and the ledger marks it low confidence. But the direction matches what the videos describe: planning scaffolds and delegation logic are exactly the layer that better models absorb.

The same pilot showed what doesn't get absorbed. The fixed pipeline left 21 new tests behind, and the single agent left none. A pass/fail gate can't see that difference, so the metric is wrong, not the pipeline. I now score lanes on evidence left behind, not just on whether they passed.

My current split:

  • Gets thinner as models improve: role prompts and planner councils, explicit delegation rules, context-bundle tricks, retry heuristics.
  • Stays, or gets thicker: sandbox and egress policy, quota accounting and admission, the event log with idempotency and resume, deterministic gates, the human inbox for irreversible actions, and power, PATH and liveness supervision.

The second list is not intelligence. It is operations, and no model upgrade will plug my charger back in.

Skills, not agents, compared with my lanes

The RoboNuggets video frames the shift as climbing from doing a task by hand to packaging it as a skill that the model can reuse and that a smarter model runs better. My lanes are the operations-side twin of that idea. A mission template is a skill with a budget, a lease list and a gate. The brief is short because the model is good, while the YAML around it is strict because the machine runs unattended.

Where I differ is trust. A skill tells the model how. A lane also says how much, with what and who signs off. On a subscription, a dollar budget per run doesn't even bind; the quota ledger is the real limiter.

Three rules from running it around the clock

  1. Make failure loud and specific. Every failed run records a reason and a stderr tail. "failed: ?" is a bug in the harness, not in the agent.
  2. Treat limits as states, not errors. Quota exhaustion, memory pressure and a dead lease are pauses with a resume path. Only real breakage turns a lane off.
  3. Keep the human where it's irreversible. The federation never merges, pushes, deploys or spends. It opens a card that says "passed its gates", and I decide.

Forty-six tests guard that today, including the kill-resume, 429 auto-resume and idle-with-headroom cases. The model is the engine. The harness is the car, and the car is what I actually drive every day.

End of transmission.

← all transmissions