Running the approved lll DX cases
The run owner coordinates the evaluation. The controller provisions fixtures, captures audits and judges artifacts; workers are the agents testing the CLI. A fresh reviewer assesses their reports against the captured evidence.
Choose the run scope
For a release, follow docs/release-checklist.md: five fresh workers across
the cases touched by that release, with at most three active workers. Record
the chosen cases and worker count on the release issue before provisioning.
Pair cases need even counts; the total can mix independent and paired cases.
The older ten-worker runs in plan.md are a research baseline (historical
cases 01 and 05, now cases 01 and 06),
not the size or case restriction for every release. Explicit user scope wins.
Use fresh agents, not follow-up tasks that have already learned the CLI. Use the configured cheap worker model when available; otherwise record an available equivalent before launching, never claim the unavailable model ran. A new parent-model reviewer reads every raw report, call audit and REST result. Keep release evidence on its release issue; historical research evidence belongs to its original issue.
Prepare the build and controller
Build the intended source revision and record the commit and binary SHA256.
Run python3 scripts/test_agent_dx_fleet.py and mise run fleet-test before
provisioning: the second runs every case’s seed and judge against scratch
boards with a scripted correct worker (must pass) and a scripted wrong worker
(must fail for the named reason). Start
scripts/agent_dx_fleet.py with --root pointing to an absent temporary
path, --binary pointing to the built binary, and its exact --commit and
--sha256. Keep this process alive; it owns all children. It copies the
binary and wrapper/startup code and records their fingerprints before accepting
JSON lines on stdin. Worktree edits cannot change code beneath live workers.
Provision and launch workers
For a five-worker single-case release run, send
{"action":"provision","case":"01","run":1,"workers":5}. Always name the
worker count: the controller default of ten exists for historical research.
Launch workers only after the controller reports them all ready. Give each
worker only its case rules (docs/agent-dx-fleet/rules/NN-<slug>.md, named in
the provision reply), number, directory and lll wrapper path. In the pair
cases (16, 17, 18) workers 01+02, 03+04 and so on share one board, each with
its own bot and wrapper; also give each worker its partner’s number. The odd
worker is role A, the even worker role B. Workers invoke that wrapper from
their own directory. It supplies the isolated environment and audits exact
arguments, exit status and redacted output under the controller, outside worker
directories. Workers never create/edit calls.jsonl; their deliverables are
report.json and report.md. Never print conn.txt or paste a
token into a prompt. The wrapper permits the CLI only. Task rules prohibit
source access, raw HTTP, the UI and operations outside the named case.
Cases 14, 15 and 19 explicitly permit their specified configuration or identity
operations; they do not permit starting servers.
Wrappers leave LLL_AGENT unset rather than guessing the worker’s runtime or
inheriting the controller’s label. CLI --agent remains available when the
case permits an explicit session label.
Collect and judge evidence
After every worker has written report.json and report.md, send
{"action":"judge"}. It validates and publishes the authoritative audits into
worker evidence directories, preserving any worker-supplied file separately.
Missing/malformed instrumentation means unavailable counts and a fresh rerun,
not reconstruction from worker claims. The controller snapshots every member-writable
collection, invites and issue counters over REST, compares every seeded record, counts every new record
and verifies the exact expected author/creator, fields and relations. Any
change the case does not name fails it. Read-only cases also check the
answer object in report.json; case 13 checks the worker’s script, case 14 its
saved config, case 15 its env files (then redacts them), case 18 role A’s
watch log. Pair cases are judged per board. In case 20 a missing
error_rating is reported but does not fail the artifact.
Durable snapshots redact webhook secrets. A fresh reviewer writes review.json,
review.md and summaries.json. Assemble run.json with summaries, review,
checker results and fingerprint. Record the closing tally from the judge’s
artifact totals and the reviewer’s classification of failed calls in the
captured audits, including the number of workers with tool-owned failures.
The run owner bases the result on the audits and ground truth.
Review results and rerun if needed
Pass requires every provisioned artifact and fewer than two workers with a tool-owned failed invocation. Repeated tool failure classes get their own claimed issue and verified fix. Then stop the old case and rerun the same case with fresh instances and agents before advancing. Record harness/task-design corrections separately. A new binary requires a new controller and fresh root; never replace the binary beneath live workers. Repeat the chosen release cases on the final build if the binary changes.
Stop the controller and retain evidence
Send {"action":"stop"} after review, then {"action":"exit"} when changing
builds or finishing. Stop waits/reaps owned children, verifies every owned
listener is gone, removes connections and private controller data. Scan
sanitized evidence for credentials. Remove disposable worker HOME/cache and
case-created credential files and configuration directories. Retain only
reports, audits, snapshots, reviews, tally, fingerprints and cleanup
receipts. Attach the evidence bundle and closing table to the run’s tracking issue.
A provision request while a case is live returns an error and leaves that case
and its private audit copies intact. Review it and send stop before asking
for the next case; a refused request does not end the controller.
Pair-edit coordination
Case 17 has two independent reader barriers, fleet-ready append and
fleet-ready guarded. Each pair reads before either starts writing; the
second exercise requires full replacements with --if-unchanged-since and
checks that one stale initial write is refused, then safely retried. That
expected exit 4 is part of the task, not tool-owned friction. This
coordinates agent starts, not the server’s internal transaction scheduling.
Barriers wait at most ten minutes and isolate each case/run, pair and stage.
Missing partners are harness blockers. Keep their non-secret arrival/release
receipts with the controller evidence.
Wrapper modes
Most cases use the default wrapper: URL, token and team from conn.txt. Four
cases differ. Case 12 gets no team, so a command without --team must be
refused. Case 14 gets nothing from conn.txt: the CLI reads a seeded, broken
config (wrong URL, expired token) in the worker’s HOME, which the worker
repairs. Its supplied fleet-login sends the token to the audited CLI over
stdin; fleet-as-helper ENV_FILE in case 15 runs audited whoami using the
saved helper token without evaluating exports as shell code. These helpers
preserve CLI exit codes and never print credentials. Cases 15 and 19 honor a worker-set LLL_TOKEN or LLL_CONFIG_HOME
(inside the worker directory) so a worker can act as a second identity; the
URL always comes from conn.txt.
Before launching cases 15 and 19, clear ambient LLL_TOKEN and
LLL_CONFIG_HOME from the worker environment. These override-mode wrappers
honor inherited credentials as intentional identity switches; an operator’s
valid token for another board will therefore cause authentication failures.
If the agent runner cannot set its tool environment, launch each shell call
through a clean child, for example:
env -u LLL_TOKEN -u LLL_CONFIG_HOME sh -c './lll member access bot-helper-01'
# For an intentional helper identity, set its exports inside the clean child:
env -u LLL_TOKEN -u LLL_CONFIG_HOME sh -c 'sh as-helper.sh ./helper-01.env'
Keep using the supplied wrapper from the worker directory. Do not print token files or silently fall back to the fixture identity after a rejected helper token: the revoked-token check must still fail. Record and retain a contaminated launch as harness evidence, then use a fresh instance and worker. This changes the launch environment, not lll’s credential precedence or the wrapper’s server/config boundaries.
Cases 15 and 19 use a person identity: case 15 exercises human-owned token provisioning, and case 19 invites a person. A bot must never provision a person account; that would evade its owner’s access boundary.