maka-eval runs containerized Harbor benchmark trials against the native Maka Host inside Docker.
maka-eval run(src/harbor.rs) — Writes the embeddedMakaHostAgentadapter and Harbor job config into--out, bind-mounts a Linux binary bundle (maka,maka-python-worker,maka-eval) read-only at/opt/maka-agent, invokesharbor run(forwarding optional--thinking-level,--max-stepsdefaulting to unlimited,--timeout-msdefaulting totask.toml[agent].timeout_secwith separate teardown grace, and--verifier-env KEY[=${HOST_VAR}]accepting host env references only so secrets are never written to Harbor artifacts), raisesMakaInfraErroron non-zeroguest-runexit or container exec/upload failures to block verifier grading, populatesAgentContextduringrun()from the single-source Rust settlement inguest-result.json, writesrun-summary.json(metering:completeorlower_boundon evidenced trials, plus paths toguest-result.json,transcript.json, and Harbor'sresult.json), and validates trial evidence completeness.maka-eval batch(src/batch.rs) — Runs a(task × repeat × subject)matrix concurrently (--concurrency) from--task/--tasks-dirusing either single-subject CLI flags (--bundle-dir,--provider,--model,--api-key-env,--base-url,--thinking-level,--sandbox-mode,--max-steps,--timeout-ms) or a--subjects-fileJSON array, plus--repeatsand--verifier-env. Each cell runs throughrun_trial(honoring task-nativetask.tomltimeouts and writing logs undercells/<task>/<subject>/r<repeat>/), atomically commitsplan.jsonand per-cellcell.json, supports--resume(pending cells only) and--retry-infra(pending +infra_failedcells, never resamplingscoredcells), and exportssummary.jsonand (for 2+ subjects)paired.csv. Exits non-zero if any cell isinfra_failedorpendingwhile still persisting complete reports.maka-eval guest-run(src/guest.rs) — Executed inside the trial container. Initializes a fresh State Root (maka host init --settings-stdin), startsmaka host serve --root, drives the task directly overHostClient/maka-app-client, waits for terminalagent.executionstate, reconciles token usage across the root session and any spawned subagents intoguest-result.json, and exports the full transcript totranscript.json.
GuestRunResult distinguishes harness/container/metering failures (infraFailed) from model/policy stops (subjectStopped) and clean finishes (completed). infraFailed still preserves any collected raw evidence while preventing Harbor verifier grading (override_error_policy for MakaInfraError and outer AgentTimeoutError). Unless infraFailed or AgentTimeoutError occurs, Harbor proceeds to Verifier grading (ctrf.json / reward). completed trials keep the Host and State Root alive through Verifier execution so background processes started by the agent remain testable until container teardown.