Riviera’s DanceSwarm to harness

Litepaper · Local AI infrastructure

I tried to build a swarm. I built a test harness instead.

Nine local-LLM experiments on two home-lab machines, and why the smartest model ended up on the bench.

Hermes→Pi workers→deterministic verification→scripted correction→Hermes escalation

Local inferenceAgent orchestrationVerificationEvidence discipline

Follow-up experiment now running: see what it tests →

Executive summary

What I expected, and what happened

Most of the reliability came from a fast worker and tests it couldn’t see. Very little came from models talking to each other.

The plan was a local swarm: several models on my own hardware, checking each other’s work and doing real engineering tasks without a cloud API. Through October and into November 2026 I ran nine experiments on two home-lab machines to build it. The working assumption was the obvious one. Put the most capable model in charge, let it supervise every step, and have the others review each other.

It didn’t go that way. A fixed solve → critique → revise chain across two models scored 3.00 of 8 against 6.75 for one model alone, though its critics were starved of tokens, which I’ll come back to. Meanwhile a small coding agent, Pi, running Qwen3.8-Flash-Next (a mixture-of-experts model with about 6B active parameters) on an unlocked mining card, finished 9 of 10 engineering tasks with no help, and a pre-written retry script fixed the one it missed.

The intelligent director, Hermes on a dense 27B model, also reached 10 of 10 in a blinded trial. It got exactly one chance to show judgment, on that same failed task, and its fix there was faster and cheaper than the script’s. One event shows it can help. It doesn’t show it belongs in every loop.

I work in search, not ML infrastructure. But the question underneath this, when to trust an agent’s output and who checks it, now sits inside every workflow I build. This is what I found testing it on my own hardware, including the parts that didn’t work and the measurement mistakes I caught along the way.

01 · Execute

Pi workers

Do the coding, editing and tool calls. Never certify their own success.

02 · Verify

Validators

Hidden tests and invariants decide pass or fail. A worker’s prose isn’t proof.

03 · Correct

Scripted retry

Pre-registered feedback for familiar, clearly diagnosed failures. Cheap and bounded.

04 · Escalate

Hermes

Plans the mission, then returns only for repeated, novel or unsafe failures.

The decision, in one sentence

Give autonomous workers room to execute, let deterministic validators decide whether work is correct, handle predictable errors cheaply, and reserve an intelligent director for orchestration and difficult exceptions.

If you run local agents

Six things worth stealing

The practical findings, before the detail. Each links to the experiment it came from.

01 · Budgets

Budget the thinking, not just the answer

Thinking models with small fixed output caps fail quietly. In one experiment, 26 of 80 calls spent their whole allowance reasoning and never answered. Size budgets for reasoning plus output, or turn reasoning off. Swarm Amplification

02 · Grading

Keep the grader out of the worker’s reach

Run hidden validators outside the worker’s writable directory, and score artifacts, not the agent’s summary of its own work. Harness Matrix

03 · Sandboxing

Probe your sandbox from inside

On Ubuntu 24.04, user-scoped systemd units silently ignored ProtectHome, InaccessiblePaths and MemoryMax. System-scoped units run as the worker user, plus MemorySwapMax=0, actually held. Safety

04 · Harness

Test the harness, not just the model

The same Qwen3.8-27B passed a task inside the Pi agent and failed it when Hermes drove it directly. Agent harness, prompts and lifecycle change results. Harness Matrix

05 · Retries

Try a dumb retry before a smart supervisor

Forwarding the validator’s failure text verbatim fixed the one real bug in the final battery. Save the expensive model for the second failure. Director’s Judgment

06 · Timing

Count elapsed time, crashes included

One ~900-second worker crash turned the “faster” arm into the slower one. Log active and elapsed time separately, and never drop the crash. Director’s Judgment

Evidence at a glance

What the data supports, and how strongly

Six claims, ranked by how much weight they can carry. The weakest one is the one I most wanted to be true.

FindingEvidenceConfidence

A Pi worker on Flash-Next can finish a demanding ten-task engineering battery on its own

9/10 standalone in Director’s Judgment. One pass per task.

Promising

Validator-guided scripted retry can recover the observed failure

10/10 in Director’s Judgment, from one actual retry event.

Strong for this battery

Distributed Pi workers can be managed safely and persistently

Harness Matrix: RPC adapter, system-unit boundary tests, cancellation, resume.

Shown on current nodes

Hermes can direct a bounded correction

10/10 director arm; R1 repaired with targeted guidance, not code.

Capability, not uplift

Hermes is faster and cheaper than scripts overall

Arm totals favor Hermes (927 vs 1,204 active seconds), but nine of ten tasks had no intervention, so that gap is mostly run-to-run variance. The like-for-like comparison is one task. Crash time reverses it, and director tokens weren’t fully metered.

Provisional

A fixed critique chain on every task helps

Swarm Amplification: 3.00 vs 6.75 of 8 at 4.7× the tokens, but critics and revisers were starved of reasoning budget. Says nothing yet about well-budgeted review.

Against, as tested

The lab

Two machines, two jobs

A dense 27B model on workstation GPUs to plan and check, and a big mixture-of-experts model on a modded mining card to do the work.

Controller · verifier · audit host

Big Brain

CPU / RAM
Threadripper Pro 7965WX (24C/48T) · 128 GB DDR5 ECC
GPUs
2 × RTX A5000 24 GB, NVLinked (48 GB GDDR6)
OS
Windows 11 Pro
Model
Qwen3.8-27B: dense, multimodal, ~27.3B parameters
Quant
GGUF UD-Q6_K_XL (6-bit class)
Serving
llama.cpp b12428 (profile “E1”), MTP k=3
Context
204,800 tokens
Agent
Hermes Agent v0.23.1, the director

An RTX 3090 in the same machine drives the display and was kept out of every benchmark.

Sandboxed worker · fast inference

Megamind

CPU / RAM
Core i9-9900K (8C/16T) · 64 GB DDR4
GPU
NVIDIA CMP 170HX, unlocked to 65,536 MiB HBM2, PCIe-modded
OS
Ubuntu 24.04 LTS
Model
Qwen3.8-Flash-Next: MoE, hybrid attention, multimodal; 125B main + 51B n-gram embeddings, ~6B active per token
Quant
scorpoon’s EXL3 3.15bpw_h8 (8-bit output head), 8-bit KV cache
Serving
TabbyAPI on ExLlamaV3 1.6.6, MTP k=3
Context
262,144 tokens
Agent
Pi coding agent v1.5.2, the worker

180 W power cap with a thermal and Xid-error guard.

About that mining card. The CMP 170HX is a GA100-based card NVIDIA sold for crypto mining, and stock units ship with 8 GB of HBM2e. Mine is unlocked to 65,536 MiB and has the PCIe mod. That memory is what makes a model this size usable at all on one card, in an i9-9900K box with 64 GB of system RAM.

The pairing matters more than either machine. Flash-Next activates about 6B parameters per token, so it decodes fast for its size. The dense 27B on Big Brain is slower but steadier, and it runs on separate hardware. The director can watch, plan and check without competing with the worker for GPU time.

Choosing the worker model. The Flash-Next campaign kept my original custom quant, about 3.43 bits per weight, as a rollback and tested lighter ones against it. On November 7, scorpoon’s 3.15bpw_h8 quant was promoted. It scored 42 of 47 on a deterministic quality battery against 40 of 47 for the previous candidate, and 13 of 17 on a holdout at its best observed level. In the lab logs that model is just “Scorpoon”; here I call it Flash-Next.

It wasn’t faster everywhere. Around 16K context it decoded at about 85 to 87 tokens a second, prefilled about 2,001 tokens a second warmed, and retrieved a needle at about 260K. Some longer-context decode runs were slower than the build it replaced. Multi-token prediction at k=3 beat larger values. Validation also tracked GPU and HBM temperatures, power and Xid errors; a card that throws errors overnight isn’t usable as a worker, however fast it benchmarks.

Promoting the worker quant

3.15bpw_h8 (promoted)
42 / 47
Previous candidate
40 / 47
3.15bpw_h8, holdout
13 / 17

Deterministic quality battery and holdout, Flash-Next campaign, November 7, 2026.

~2,001

tokens/s fresh prefill, ~16K context

85–87

tokens/s decode at 16K

~260K

context needle retrieved

k = 3

best MTP setting tested

Warmed benchmark on Megamind, reported configuration. Specific test results, not guarantees.

Profile names used in the lab logs

E1Big Brain’s production profile: Qwen3.8-27B UD-Q6_K_XL on llama.cpp b12428, MTP k=3, 204,800 context.
B0The earlier frozen Big Brain profile E1 replaced.
A · B2 · B4Big Brain serving layouts: one 204,800-token slot, two ~102,400 slots, or four ~51,200 slots.
C1Qwen3.8-27B at EXL3 8.00bpw on Megamind: the high-fidelity dense option.
W2A faster vLLM / DFlash2-style serving route on Megamind, tested for throughput.
ScorpoonThe lab’s name for Qwen3.8-Flash-Next in scorpoon’s EXL3 3.15bpw_h8 quant. Called Flash-Next here.

The research path

Nine campaigns, in order

Each one answered a question and set up the next. The last three, in green, carry the architecture decision; each has its own section below.

  1. 01Flash-Next quantizationFast worker model promoted, with the ~3.43bpw build kept as a rollback.The lab →
  2. 02KingmakerFlash-Next led on real agent tasks: 0.8775 vs 0.7747, and 44/45 vs 41/45 hidden checks.Model menu →
  3. 03High FidelityC1 qualified, but could spend an 8K–12K budget thinking and never answer.Model menu →
  4. 04TokenMaxFaster serving paths came with less reliable code. Flash-Next stayed in production.Model menu →
  5. 05BigBrain-27B-Max / ParallelE1 promoted, ~2.9–7% faster than B0; B2 and B4 concurrency layouts measured.Model menu →
  6. 06Brain-OffFlash-Next 11/12, E1 11/12, C1 9/12, at very different paces.Brain-Off →
  7. 07Swarm AmplificationA two-model critique chain underperformed one model alone, under tight reasoning budgets.Swarm →
  8. 08Harness MatrixRemote Pi workers with a full lifecycle; scripted retry and live Hermes both reached 4/4.Harness →
  9. 09Director’s JudgmentStandalone 9/10, scripted 10/10, blinded director 10/10, from one rescued failure.Judgment →

Campaigns 02–05 · The model menu

Building the model menu

Before testing supervision, I needed to know which configurations were worth keeping, and what each one was actually good for.

High Fidelity

Precision isn’t the whole story

Qwen3.8-27B at EXL3 8.00bpw (C1) on Megamind qualified with matching quality tasks. It also sometimes spent most or all of an 8K–12K output budget on internal reasoning and returned no answer. Sampling changes could shift that, but capability and finishing inside a budget turned out to be different things.

TokenMax

Throughput can’t cost the output

A faster W2-style route through vLLM and DFlash2-type serving was explored as a specialist. Some paths were much faster on code-like decode, but earlier candidate tests showed coding regressions or reliability trade-offs. Flash-Next stayed the production backend.

Big Brain Max

A reliable, independent controller

Profile E1 improved throughput over the frozen B0 profile by about 2.9–7% with the same quality-anchor outcome. At the large-context test points it measured about 73.3 tokens/s at 128K and 66.2 at 200K, in that configuration.

One context budget, three ways to slice it

Profile Abaseline
204,800
B22 slots
~102,400~102,400
B44 slots
~51,200~51,200~51,200~51,200

B2 gave strong throughput for two simultaneous requests. B4 helped more with three or four busy requests and could underperform B2 at only two. Profile A, the full context in one slot, stayed the general-purpose default [BigBrain-Parallel].

BigBrain-Parallel campaign. Context per slot in tokens; slot widths to scale.

The earlier Kingmaker comparisons set the pattern. On real agent tasks, Flash-Next came out ahead of the alternatives in the compared configurations: phase-two scores of about 0.8775 against 0.7747, and 44 of 45 hidden checks against 41 of 45. The bigger, slower, more precise model wasn’t automatically the better agent.

Together these campaigns turned “which model is best?” into a menu with trade-offs: a fast MoE worker, a steady dense controller, a careful dense model that can run out of room, and a faster serving path that wasn’t reliable enough yet. None of the later experiments had Hermes choose between them; that routing is a design goal, not something I’ve tested. What the menu did settle is that the controller should run on different hardware from the worker, so it stays available whatever the workers are doing.

LessonPick models by quality, latency, context and how they fail, not by top speed.

Campaign 06 · Operation Brain-Off

Same score, half the pace

Two models tied on accuracy. One did about twice as much correct work per minute.

Verified score, 12-task battery

Flash-Next · Megamind
11 / 12
E1 Q6 · Big Brain
11 / 12
C1 · Megamind
9 / 12

Correct tasks per minute

Flash-Next · Megamind
~2.68
E1 Q6 · Big Brain
~1.31

Brain-Off report, measured settings. E1 timing may partly reflect contention. No comparable rate was reported for C1.

Brain-Off put the three serious candidates on the same 12-task battery. Flash-Next and Big Brain’s E1 both scored 11 of 12. C1, the high-precision dense model, scored 9, losing points to the same thinking-output starvation High Fidelity had flagged: on bounded tasks it ran out of room before it answered.

The accuracy tie hid a big difference in pace. Flash-Next delivered roughly 2.68 correct tasks a minute in the report; E1 delivered about 1.31, and some of that timing may reflect contention on the machine. That rate measures the whole stack, not the model alone: a ~6B-active MoE on the 170HX against a dense 27B on two A5000s, with different serving engines. For choosing a worker, the whole stack is what you buy, so the gap still matters more than the shared score.

The battery had limits I should be clear about. The tool-oriented tasks were easy enough that everyone saturated them, 3 of 3, so the run couldn’t tell me which model is the best tool orchestrator. Twelve tasks is a small sample, and the task mix shapes any ranking of “general intelligence” [Brain-Off].

Campaign 07 · Operation Swarm Amplification

Collaboration underperformed under constrained reasoning budgets

Before concluding that extra reasoning agents don’t help, make sure they had enough tokens to reason. Mine didn’t.

Aggregate score, eight frozen tasks

Flash-Next solo
6.75
E1 solo
4.71
Flash-Next self-review
4.00
Solve → E1 critique → revise
3.00

Out of 8. Aggregate task-quality points with partial credit, not counts of tasks passed. Swarm Amplification report.

The chain under test

Stage 1Flash-Next solvesWrites the first answer.
Stage 2E1 critiquesReviews it.
Cap ~2,048 tokens
Stage 3Flash-Next revisesApplies the critique.
Cap ~2,048 tokens

Amber fills as internal reasoning eats the stage budget. Six of the eight E1 critique calls ran out before writing a usable critique.

80 calls, 26 starved

Budget gone before a final answerProduced a response

One square per call. Position is illustrative; the count is from the report.

This was the experiment behind the swarm idea. Does a chain where Flash-Next solves, E1 critiques and Flash-Next revises beat Flash-Next working alone? On eight frozen tasks, the chain scored 3.00 of 8 against 6.75 for the solo model, and used about 4.7 times as many tokens per correct-equivalent result. No genuine corrections were adopted.

The reason matters more than the score. The critic and reviser stages were capped at about 2,048 generated tokens each, and internal reasoning ate part or all of that allowance. 26 of 80 calls ran out of budget before producing a useful final response, including six of the eight E1 critiques. So the run often scored half-written critiques and revisions, not a real multi-model exchange.

Two details I can’t confirm from the surviving summary, and won’t guess at. First, the exact enable_thinking setting for each arm: the logs show thinking happened, not how it was toggled. Second, the partial-credit rubric: 6.75 is 6.75 points across eight tasks, not six passes plus a three-quarter task, and the per-task rubric still needs publishing before anyone can reproduce the fractions.

What it does show: under these prompts and budgets, adding critique stages made results worse and cost far more. What it doesn’t show: whether properly budgeted collaboration would beat one model. It undermined the design I was planning, where every answer pays for a cross-model review, but the honest lesson is narrower.

LessonMulti-agent reasoning needs explicit budget for both thinking and output. Add stages without that headroom and a capable system can look much worse than it is.

The rerun this needs

  • Explicit thinking-mode settings, recorded per arm.
  • Much larger stage budgets, and a rule that every stage must return a complete response.
  • Matched total inference budgets across arms.
  • A published per-task grading rubric.
  • Failures from wrong reasoning scored separately from failures from incomplete generation.

Campaign 08 · Operation Harness Matrix

Building the worker loop

The first time the worker, the grader and the supervisor were three separate things, on two separate machines.

Four-task final matrix

TaskA · Hermes + E1 directB · Pi + E1C · Pi + Flash-NextD · Hermes-directed PiE · Scripted retry
sales1PASSPASSPASSPASSPASS
t2FAILFAILFAILPASS +1PASS +1
t5PASSPASSPASSPASSPASS
t6FAILPASSFAILPASS +1PASS +1
Total2/43/42/44/44/4
Pass first timePass after one scripted correctionPass after one directed correctionFail

One run per task per arm. Harness Matrix final report.

Harness Matrix had two jobs: stand up a distributed worker lifecycle, then compare direct execution, standalone Pi, scripted recovery and live Hermes direction on the same tasks.

The infrastructure work carried most of the value. Pi 1.5.2 ran remotely against Flash-Next on Megamind behind a structured SSH and RPC adapter, with every lifecycle step tested: start, attach and re-attach, prompt, event collection, abort, cancellation, resume and cleanup. Restarts could keep the worker’s session ID and pick up where they left off [Harness Matrix].

  • Hidden validators ran outside the worker’s writable task directory.
  • Tool execution was sandboxed: production and credential paths restricted, resource caps on, no privileged host operations.
  • One protocol detail proved essential: a prompt being accepted isn’t the agent being settled. Completion and artifacts have to be checked independently.

Worker lifecycle

start→attach→prompt→events→settled→verify→archive
side paths:abortcancelre-attachresumecleanup

Green steps are the ones the scorer trusts. Everything before “settled” is the worker’s account of itself.

Why this wasn’t a clean director win. Both supervised arms reached 4 of 4; the script matched live Hermes exactly. On t2, several standalone agents made the same mistake, free-form output where the grader wanted a strict three-line format, and the director had acceptance information the worker didn’t see at first. That’s partly a contract-design problem, not a reasoning contest. Worse for any claim, the scripted retry text was written after watching the director’s successful fix, so the match isn’t blind.

t6 had an ambiguously worded scheduling contract, and the harness mattered: Pi with E1 passed where Hermes with E1 directly failed, on the same base model. An interim t6 failure was also retracted once the finished artifact, the settled state and the independent validator all showed a pass. I took that as a rule: score the evidence, not the first report.

LessonFour tasks proved the machinery worked, not how often supervision helps. The next test had to separate judgment from mechanical feedback.

Campaign 09 · Operation Director’s Judgment

Can a director do anything a script can’t?

Same worker, same model, same tests, same retry budget. The only variable was who wrote the correction.

Director’s Judgment was built to fix what Harness Matrix couldn’t. Ten new engineering tasks were frozen before anything was scored: four repository tasks (R1 ledger, R2 configkit, R3 LRU cache, R4 CSV tool), three diagnostic tasks (D1 pipeline, D2 vendor API fix, D3 BOM and line bug) and three stateful tasks (S1 build DAG, S2 checkpoint migration, S3 journaled job scheduler). Each had independent hidden cases and a reference solution that had to pass its own validator, checked on Windows and Linux. The original frozen manifest covered 208 files [Director’s Judgment].

Three arms ran against them:

  • Arm 1, standalone: Pi on Flash-Next, one attempt, no outside correction.
  • Arm 2, scripted: the same worker plus a pre-frozen, generic retry policy that forwards the validator’s failure output verbatim, up to two corrections.
  • Arm 3, directed: a blinded Hermes director on E1 steering the same Pi worker, with the same acceptance criteria, validators and correction budget.

One contamination question carries over from Harness Matrix, where the retry text was written after seeing the director’s fix. Director’s Judgment didn’t reuse those post-hoc, task-specific corrections; it used the separately frozen generic policy above. My prior exposure to the earlier results is still a possible source of conceptual priming in how I designed it.

Hermes did its directing in fresh subagent contexts, instructed away from reference solutions, hidden inputs and earlier arms’ scorecards. The audit found no forbidden access. That’s a process boundary, not hardware-enforced isolation, and I’d want stronger walls before making a formal causal claim. Each attempt had a 900-second hard wall and a 200K-token soft flag; some successful runs crossed the flag without being disqualified.

Ten tasks, three arms

Pass first timeFailScripted fixDirected fix⚡ Infra crash

Canonical runs after the S1/S3 validator repair. Director’s Judgment final report and run ledger.

Final results

ArmSuccessesAttemptsActive wallRecorded tokens
1 · Standalone Pi9/1010854 s945.6K
2 · Scripted retry10/10111,204 s1.439M
3 · Blinded director10/1011927 s*1.095M

*Excluding a ~900 s crash. 30 scored task–arm pairs, 32 worker attempts. One console summary’s “30 scored attempts” conflates the two.

Arm totals: what you count changes the answer

Arm 1standalone
854 s
Arm 2scripted
1,204 s
Arm 3director
927 s

Measured active time: the director arm totals 23.0% less than scripted retry, but nine of its ten tasks had no intervention, so most of that gap is run-to-run variance.

Bars to scale, 0–1,900 s. Hatched red: the R4 worker-unit crash, ~900 s of elapsed time outside the active-time figures.

R1 correction time, director vs script (approx.)−29%The one like-for-like comparison
R1 correction tokens, director vs script−37%Same single event
Arm totals, incl. crash+51.7%~1,827 s vs 1,204 s

The arm totals look like a director win: about 24% fewer recorded tokens and 23% less active time than the script. I don’t think they mean much. On nine of the ten tasks, neither the script nor the director did anything; both arms just ran the same unsupervised worker. So most of the 344K-token and 277-second gap between the arms comes from how differently the same worker happened to run those nine tasks, not from supervision. Arm 1, which never corrected anything, came in at 854 seconds, which shows how much the totals move on their own.

The only like-for-like comparison is the one task where both supervisors acted, R1. There the director’s fix took about 29% less time and 37% fewer tokens than the script’s. That’s one event. Two more things count against reading the totals as savings: the ~900-second crash on the director arm makes it about 52% slower end to end, and the token figures come from tokens_delta on worker sessions, which may not include every token Hermes itself generated.

CautionWhen supervision only touches one task in ten, compare that task. Arm totals mostly measure the worker’s own variance.

The one real recovery: R1. In the standalone arm, the worker switched the ledger to Decimal arithmetic but left a float literal in a code path only the hidden validation exercised. The visible checks passed. The hidden case crashed.

Both supervised arms repaired it. The blinded director reportedly worked out the numeric-type boundary from the operand order and the validator’s failure details, then gave the worker direction, not code. In that single head-to-head, the directed fix was about 29% faster and used 37% fewer recorded tokens than the scripted one.

R1’s first attempt failed in all three arms, which points to a systematic trap in the task rather than an unlucky sample. The write-up doesn’t record per-arm sampling settings such as temperature and seed; the next run should. On the other nine tasks the director made no substantive correction; the worker got them right first time. So the whole signal for “director judgment” rests on one event. It shows Hermes can write a better corrective instruction. It says nothing yet about how often that happens, how big the edge is, or what it’s worth across a real workload.

R1 correction, scripted = 100

Time, scripted
100
Time, director
~71
Tokens, scripted
100
Tokens, director
~63

One recovery event. Relative values from the reported ~29% and 37% reductions.

The integrity ledger

Harness defect

S1 and S3 first failed on validator path handling, not worker behavior. Fixed, revalidated, manifest versioned to v2, rerun canonically. Not counted as model failures.

False alarm

Two Python processes in the director driver looked like a duplicate launch. They were a by-design virtual-environment re-exec pair. Killing one still caused disruption.

Infra crash

A worker-unit crash on R4 added ~900 s of elapsed time outside the active-time figures. It belongs in any reliability or cost analysis.

Saturation

Both supervised arms hit 10/10. On this battery, more correctness uplift was mathematically impossible.

Low event count

The director’s corrective signal depends on one failed first attempt, R1.

Run-to-run variance

Token use varied widely by task, enough to swamp the arm totals. A soft cap flag isn’t an enforced limit either.

Artifacts over claims

Results were cross-checked against run records, validator output, decision notes and evidence directories.

Verdict

Tiered advantage, limited confidence. Useful evidence for selective direction; not proof an always-on director is the better default.

Safety and reliability

The sandbox that wasn’t enforced

The most useful security finding came from checking whether the restrictions were actually on.

What failed

User-scoped transient units

  • The unit file listed ProtectHome, InaccessiblePaths and MemoryMax.
  • On this Ubuntu 24.04 setup, they silently weren’t enforced.
  • The cause traced to restricted unprivileged user namespaces and AppArmor behavior.
  • Nothing errored. The config looked right.
What worked

System-scoped units, run as the worker user

  • Access-denial probes confirmed restricted paths were unreachable.
  • A memory stress probe hit the 6 GiB cap as designed.
  • MemorySwapMax=0 was required so host swap couldn’t quietly extend the bound.
  • Checked from inside the worker process and from the host.

Watchdogs need persistence too. After a Big Brain reboot the inference server came back, but its watchdog didn’t: it had no boot persistence. Hermes diagnosed it and restored it by hand during a later campaign. That’s a lifecycle bug, separate from model quality, and the fix for production is one verifiable, boot-persistent service and health check with no stale-PID assumptions.

Final audits reported the inference services, Megamind’s 180 W cap, its guard and Big Brain’s E1 production hash intact, with the RTX 3090 still outside test workloads. Those are clean readings at the audited moments, not uptime guarantees.

RuleA setting in a unit file proves nothing until you’ve probed it from inside the process it’s meant to restrict.

# Pattern, not the lab’s exact command. Run from a root shell.
systemd-run --wait --collect \
  --uid=piworker --gid=piworker \
  -p ProtectHome=yes \
  -p InaccessiblePaths="/srv/graders /etc/secrets" \
  -p MemoryMax=6G -p MemorySwapMax=0 \
  --working-directory=/srv/tasks/R1 \
  pi --mode rpc

# Then, from inside the worker, confirm each limit:
cat /sys/fs/cgroup$(cut -d: -f3 /proc/self/cgroup)/memory.max   # expect 6442450944
ls /home /srv/graders                                         # expect errors

Illustrative. Paths and user names are placeholders.

Evidence discipline, as practiced

  • Freeze contracts, prompts, graders, budgets, manifests and retry policies before scored runs, and hash them.
  • Keep explicit, versioned exceptions when an infrastructure defect forces a repair.
  • Never let a worker write to the hidden grader or to production secrets.
  • Preserve validator output, artifacts, settlement events, process IDs and retry provenance.
  • Keep failed, hung and crashed time visible, even when reporting active time separately.
  • Count attempts and task–arm pairs separately; meter controller tokens apart from worker tokens.
  • Disclose any rerun caused by a grader defect. Don’t silently replace inconvenient scores.

The recommended architecture

Hermes → Pi → verify → retry → escalate

Hermes appears twice because it plays two roles: mission planner at the start, exception handler at the end. Same service, different mode of intervention.

Escalation router · pick a situation

Default policies to test, not measured optima. Every row traces to a campaign finding or is marked as proposed.

Tiered supervisor architecture A user objective goes to the Hermes director, which writes frozen task contracts to a queue. Pi workers lease tasks and execute. A deterministic verifier checks each result. Passes are archived and reported back to Hermes. Failures with retry budget go to scripted correction and back to the worker. Ambiguous, exhausted or unsafe failures go to Hermes escalation, which either sends a new bounded intervention to the worker or stops for human review. FAIL DIAGNOSTICS PASS EVIDENCE AMBIGUOUS · EXHAUSTED · UNSAFE NEW BOUNDED INTERVENTION STOP User / objectiveMISSION Hermes directorPLAN · DECOMPOSE · ROUTE Task queue · leasesFROZEN CONTRACT · BUDGET Pi worker(s)TOOLS · EDITS · ARTIFACTS Deterministic verifierTESTS · INVARIANTS Scripted correctionBOUNDED RETRY Accept and archiveEVIDENCE · PROVENANCE Hermes escalationDIAGNOSE · REDIRECT · STOP Human reviewQUARANTINE

Highlighted path follows the situation selected in the router.

PASSED

Accept and archive

Path: Hermes → queue → Pi → verifier → archive → Hermes

The validator’s outcome and the artifacts are preserved. A worker’s prose summary of its own success isn’t sufficient.

Evidence: 9 of 10 Director’s Judgment tasks passed first time with no supervision.

What each layer owns, and what it doesn’t

Layer
Owns
Deliberately not
Hermes director
Mission decomposition, worker and model selection, budgets, deadlines, intervention policy, cross-task dependencies, integrity checks
micromanaging ordinary shell commands or editing every worker’s code
Pi workers
Localized execution, coding, debugging, file edits, shell and tool calls, intermediate evidence
self-certifying success without an external check
Verifier
Testing acceptance criteria against produced artifacts; structured pass/fail diagnostics
taking the worker’s confidence as proof
Scripted correction
Pre-registered, generic feedback and retry policy for familiar, objectively diagnosed failures
inventing a new solution or changing the task’s contract
Hermes escalation
Repeated, novel or ambiguous failures; deciding to reroute, restructure or stop
spending director tokens on every first failure
Human gate
Policy, safety, ambiguous requirements, destructive operations, costly overrides
routine intervention in successful low-risk jobs

A state machine with no shortcuts

NEW→CONTRACT_FROZEN→LEASED→RUNNING→VERIFYING→
PASSEDRETRYABLEESCALATEBLOCKED
  • PASSED keeps the validator outcome and the artifacts. A worker’s summary isn’t enough.
  • RETRYABLE sends only pre-approved, sanitized diagnostics and increments the attempt count.
  • ESCALATE hands Hermes the full attempt history, the exact validator failures and the remaining budget, with the original contract intact.
  • BLOCKED quarantines dangerous actions or unresolvable requirements and asks a person.

A lease ID, task ID and attempt ID make re-attachment idempotent, so a controller restart can’t quietly launch a duplicate worker. Director’s Judgment had a scare that looked exactly like that; it turned out to be a harmless re-exec, but the design shouldn’t depend on luck.

Implementation blueprint

A minimal first version

Eight components. None of them needs a better model. Most of them need discipline.

  1. Contract builder (Hermes)Turn a mission into small task IDs with independent acceptance tests, deadlines and per-task resource budgets.
  2. Durable queueAppend-only task records: owner, lease, hash, model requirement, inputs, expected artifacts and callback state.
  3. Pi poolOne or more long-lived sandboxes per node. One active task per worker, resumable, emitting structured events.
  4. Verification runnerRuns a task-specific isolated test suite and returns PASS, FAIL, BLOCKED or INFRA_ERROR with sanitized diagnostics.
  5. Scripted retryOn FAIL: exact failing assertions, a constrained remediation prompt, bounded retries. Never rewrite the spec.
  6. Escalation to HermesOn repeated failures, conflicting tests, unsafe state changes, partial completion or runaway cost, hand Hermes the trace for a new, recorded intervention.
  7. Evidence archiveFrozen prompt, model ID, code revision, wall time, input and output tokens, tool calls, validator state, artifacts and every intervention.
  8. Operator panelQueue, active leases, node health, outcomes by task, cost per verified task and an audit timeline.

One event per attempt

{
  "task_id": "R1",
  "attempt_id": "R1-002",
  "contract_sha256": "<digest>",
  "worker_id": "node-a/pi-01",
  "model_id": "<configured-model>",
  "controller": "scripted-retry",
  "state": "VERIFYING",
  "started_at": "<ISO-8601>",
  "active_wall_ms": 0,
  "elapsed_wall_ms": 0,
  "worker_input_tokens": 0,
  "worker_output_tokens": 0,
  "director_input_tokens": 0,
  "director_output_tokens": 0,
  "validator_version": "<digest>",
  "result": "PASS|FAIL|BLOCKED|INFRA_ERROR",
  "intervention_id": null,
  "artifact_manifest_sha256": "<digest>"
}

Illustrative schema. Not a claim that the current adapter emits these exact fields.

The retry policy, in shape

# Shape of the generic policy, not its exact wording
Your last attempt failed these acceptance checks:

<validator output, verbatim and sanitized>

Fix the failures. Don’t change the task contract,
the tests or the expected output format.
Attempt 2 of 3.

The point is what it leaves out: no hints, no diagnosis, no task-specific advice.

Two fields in that schema exist because of things that went wrong. elapsed_wall_ms sits next to active_wall_ms because of the R4 crash: the arm that looked faster wasn’t, once real time was counted. The director_*_tokens fields exist because Director’s Judgment couldn’t prove its token savings without them.

The same thinking shapes what an operator dashboard should show.

Primary

  • Verified correct tasks per hour
  • Cost or tokens per verified task
  • Median and tail completion time
  • First-pass rate and recovery rate
  • Crash-inclusive end-to-end makespan

Secondary

  • Orchestration time vs tool execution time
  • Tasks escalated; director intervention adoption rate
  • Duplicate-worker prevention; retries per pass
  • System stability; confidence in grader correctness

Never hide

  • Crash time and failed attempts
  • Model and context differences
  • Hidden test bugs and manifest changes
  • Incomplete token accounting

What remains unproven

The next experiment needs more failures

One failure in ten is good news for the worker and too little data to tell a director from a script. A lean version of this plan is already running.

  1. Use a prospectively frozen pool of new, hard tasks chosen for plausible but verifiably wrong first solutions, without picking tasks where the director already succeeded.
  2. Include at least three failure classes: a clear deterministic bug, an ambiguous multi-cause bug and a structural or design error that needs a change of strategy.
  3. Compare standalone, scripted, Hermes-directed and tiered escalation arms with identical starting information and the same hidden tests.
  4. Separate script-generated diagnostics from director-generated diagnosis, and meter everything: worker and director tokens, prefill, elapsed time, crashes, tool overhead.
  5. Use fresh blinded controllers and enforce directory-level boundaries around references and hidden grader data.
  6. Run repeated trials and report paired task-level differences with confidence intervals, not one aggregate win rate.
  7. Inject infrastructure failures, such as a worker crash, an SSH disconnect, a stale lease or a verifier false negative, and check for exactly-once or idempotent execution.
  8. Test the cost of escalating only after a script fails against using Hermes every time.

Plausible, not proven

  • Intelligent direction is broadly cheaper than scripting once all controller compute and real elapsed time are counted.
  • Hermes will materially improve success on hard, novel failures.
  • The stack scales reliably from a few local workers to dozens.
  • The rankings hold across other coding domains, tasks, context lengths and model updates.
Decision threshold, proposed, not yet measured

A director earns a routine place in the loop only when its extra verified completions or saved total cost exceed its own cost across a representative workload, infrastructure failures included. If it doesn’t, the better operating model is script first, Hermes by exception.

In The AI Parity Trap I argued that when everyone has the same models, the advantage goes to whoever brings knowledge the model doesn’t have. This research ended up somewhere similar. In my lab, the biggest reliability gains came from hidden tests the worker couldn’t see or edit, written by someone who knew what “correct” meant for the task, not from a smarter supervisor.

Takeaway

Most of the reliability came from the tests.The director earns its tokens on the exceptions.

Working principle: optimize for verified work completed per unit of total system cost, not for the number of models involved, raw tokens per second or how sophisticated the agents look.

Now running · update to follow

Operation Fork in the Road

The follow-up experiment is designed around this paper’s biggest gap: one failure isn’t enough to tell a director from a script.

Director’s Judgment compared supervisors by running each arm from scratch, so most of the differences between arms came from the worker, not the supervisor. The new design fixes that. The worker makes its first attempts alone. Every attempt that genuinely fails is frozen, workspace, Pi session and validator output, and that same snapshot is handed to each recovery approach in turn. Any difference in outcome comes from who wrote the correction.

It also tests something this paper recommends but never measured: the tiered pipeline, where the script goes first and Hermes is only called when the script’s fix fails.

  • Same stack: Pi v1.5.2 on Flash-Next (Megamind) as the worker, Hermes v0.23.1 on E1 (Big Brain) as the director. No model, quant or serving changes.
  • Battery: 8 new tasks × 3 solo attempts, aiming for 10 or more real failures. Two reserve tasks run only under a pre-registered rule if failures come up short.
  • Three recovery arms per failure: script only, director only, and tiered. Each gets up to two corrections and a 600-second limit per attempt.
  • Independent tests: tasks and hidden tests come from a model outside every arm, and each hidden test is checked against plausible wrong solutions before anything is scored.
  • Full metering: worker and director tokens counted separately at a proxy, plus GPU power sampled once a second on both machines for watt-hours per rescue.
  • Pre-registered: tasks, prompts, budgets, run order, hypotheses and analysis frozen and hashed before the first scored attempt. A disposable rehearsal task keeps the dry run away from scored tasks.

One failure, three ways to fix it

Failed first attemptfrozen snapshot
Scriptscript fix 1script fix 2
Tieredshared script fix 1Hermes fix 2
DirectorHermes fix 1Hermes fix 2

Script and tiered share their first correction. Tiered only costs extra when that fix fails, which is exactly when it’s supposed to earn its keep.

The battery

V1Bicycle drivetrainA V3Falling-block replayA V4Messy-data chartD V5Collision physicsS V8Weighted pathfinderS C2Multi-currency ledgerA C5Exactly-once job queueS C8Rate limiter with clock skewD

Failure class assigned before any run. D: one clear bug the validator points at. A: ambiguous or interacting causes. S: structural, where the first approach can’t pass. The five visual tasks are graded only on state and geometry checks; screenshots are for showing the results, not grading them.

What the update will show

A gallery of every visual failure fixed (or not) by each approach, side by side; the actual correction messages each arm sent; rescue rates by failure class; and tokens, time and watt-hours per rescue.

What it’s testing

Whether the director fixes ambiguous and structural failures more often than a script, and whether tiered recovery gets most of that benefit for fewer director tokens.

What to expect

Ten to fifteen paired failures will show direction and rough size, not settle it. If the director only wins by a little, the result will say so. A tie, or a tiered stage that never fires, gets published as plainly as a win.

Method

How to read this evidence

What the record supports, and where it stops.

  • This is a synthesis of Hermes console transcripts, campaign summaries and the run records they cite. It isn’t an independent re-execution of every benchmark. Where a number is contested, the on-host evidence is the authority.
  • Campaigns used different tasks, budgets and model configurations. High Fidelity, TokenMax and Kingmaker scores don’t form one leaderboard and shouldn’t be compared as if they did.
  • Director’s Judgment ran one pass per task per arm. Its director signal rests on one recovery event, its arm totals are dominated by run-to-run variance on unsupervised tasks, and its token comparison doesn’t yet include audited director-side generation.
  • Swarm Amplification’s per-arm thinking setting and its partial-credit rubric aren’t in the surviving summary. The scores stand as reported; the fractions can’t yet be reproduced.
  • Its manifest needed a documented v2 after the grader-path fix. Both versions are preserved.
  • An earlier Harness Matrix control used Pi 0.85.1 on Big Brain; the later arms used Pi 1.5.2 on Megamind. That control isn’t a clean model-only comparison.
  • Director blinding was a process and context boundary, not hardware-enforced information-flow isolation.
  • Throughput figures are specific test results in specific configurations, not guarantees.

Supported by the evidence

  • A properly configured local Pi worker solved most tested engineering tasks unsupervised.
  • Independent deterministic verification is indispensable; workers and harnesses both produced misleading self-reports.
  • A generic scripted retry repaired the kind of deterministic failure observed.
  • Hermes can direct a successful repair without replacing the worker as coder.
  • Distributed execution, persistent sessions, cancellation, resume and sandbox enforcement are feasible on these nodes.
  • A fixed critique chain with tight reasoning budgets can make outcomes worse.

References

Sources and records

The lab records are local research artifacts, not public downloads. They contain no credentials, and none are reproduced here.

Lab records

  1. Operation Director’s Judgment, final report, run ledger, progress log, frozen manifests (v1 and v2) and metric code: Operation-Directors-Judgment-2026-11-16/FINAL_REPORT.md, results/runs.jsonl, PROGRESS.md, FROZEN_MANIFEST.md, analysis/metrics.py.
  2. Operation Harness Matrix, final report, arm results, Pi RPC adapter and worker lifecycle and security notes: Operation-Harness-Matrix-2026-11-16/FINAL_REPORT.md, evidence/matrix/arm_results.jsonl, PI_RPC_ADAPTER.md, WORKER_LIFECYCLE.md.
  3. Operation Swarm Amplification, campaign directory: Operation-Swarm-Amplification-2026-11-16/.
  4. Operation Brain-Off, campaign directory: Operation-Brain-Off-2026-11-16/.
  5. Operation BigBrain-Parallel, campaign directory: Operation-BigBrain-Parallel-2026-11-16/.
  6. Operation Pelican, report: Operation-Pelican-2026-11-12/REPORT.md. A multi-run visual and HTML generation comparison with independent motion, static and seam audits and a human-blind worksheet. Its contribution here is evaluation discipline, not director evidence.
  7. Flash-Next, Kingmaker, High Fidelity, TokenMax and BigBrain-27B-Max campaign notes, October–November 2026. Earlier exploratory model and hardware studies informed capacity tiers but aren’t in any comparison denominator.

Software referenced

  1. Hermes Agent. Nous Research. Source: github.com/NousResearch/hermes-agent. v0.23.1 in the final campaigns.
  2. Qwen3.8-27B and Qwen3.8-Flash-Next. Qwen, Hugging Face.
  3. Qwen3.8-Flash-Next EXL3, revision 3.15bpw_h8. scorpoon, Hugging Face.
  4. Pi, a minimal terminal coding agent harness with an RPC mode (pi --mode rpc, JSONL over stdin and stdout) and resumable sessions. Mario Zechner. v1.5.2 in the final campaigns.
  5. llama.cpp. ggml-org. Build b12428 serves Big Brain’s E1 profile.
  6. NVIDIA CMP 170HX stock specifications. TechPowerUp.
  7. ExLlamaV3, the EXL3 quantization format and inference library. turboderp-org. v1.6.6 on Megamind.
  8. TabbyAPI, an OpenAI-compatible server for ExLlama models. theroyallab.
  9. systemd.resource-control (MemoryMax, MemorySwapMax) and systemd.exec (ProtectHome, InaccessiblePaths). freedesktop.org.

Related on Riviera’s Dance

  1. The AI Parity Trap: why the advantage goes to whoever brings knowledge the model doesn’t have.
  2. The Patch Gap: finding flaws got faster; process and patching didn’t.
  3. Entity Search: how agents that research and act for people change what a brand needs to be.