Skip to content

Ask Waza

Ask about Waza commands, writing evals, or troubleshooting an error. Paste YAML below for a schema check.

AI answers can be wrong. Do not share secrets or sensitive information. History may be retained.

CLI reference | Privacy & limits

    Check pasted YAML (optional)

    Harbor Integration

    Use Harbor when you want to run the same single-turn waza tasks through different installed agents in containerized environments, while keeping waza graders, results, comparisons, and dashboard. Use the native copilot-sdk engine for SDK session semantics, multi-turn tasks, trigger evaluation, or native scheduling features. Harbor skill discovery is not identical to waza’s SDK system-prompt injection; scores are not automatically comparable across engines.

    This guide describes the source-checkout integration and Harbor 0.27.0. Build waza from a revision containing Harbor support; do not assume an older published binary has these commands. Run the examples from the repository root.

    Install the optional Harbor CLI and ensure its executable is on PATH:

    Terminal window
    uv tool install harbor==0.27.0
    harbor run --help
    docker info

    Start Docker with Linux containers for the default sandbox. The oracle agent needs no model credentials; other agents need their own authentication and may incur model/provider charges. Remote providers, such as Daytona, require their own configuration and credentials.

    The verifier must be a static Linux waza binary from the same revision as the exporting CLI, even when you run waza on Windows or macOS. From a source checkout, build it for Linux amd64 (arm64 is also supported):

    Terminal window
    CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -tags copilot_no_inprocess -o waza-linux ./cmd/waza

    In PowerShell, use a separate shell for this cross-build so its environment does not affect later native builds:

    Terminal window
    pwsh -NoProfile -Command {
    $env:CGO_ENABLED = '0'
    $env:GOOS = 'linux'
    $env:GOARCH = 'amd64'
    go build -tags copilot_no_inprocess -buildmode=exe -o waza-linux ./cmd/waza
    }

    CGO_ENABLED=0 alone is not enough: copilot_no_inprocess excludes the SDK’s dynamic FFI dependencies. On Linux, export defaults to the current executable, but that executable must still be static. The generated Dockerfile selects the verifier’s architecture; the container host must support it.

    flowchart LR
    A[Eval YAML, fixtures and skills] --> B[waza export harbor]
    B --> C[Harbor dataset and export metadata]
    C --> D[harbor run --path dataset]
    D --> E[In-sandbox waza verifier]
    E --> F[Job rewards and ATIF trajectories]
    F --> G[waza results import harbor]
    C --> G
    G --> H[Host-side evidence-aware grading]
    H --> I[Waza results, compare and dashboard]

    waza run --engine harbor automates this entire benchmark flow as one Harbor job. Use separate export/run/import commands when you want to inspect or edit the generated environment, use Harbor-specific options such as --skill, or retain a dataset for repeated runs.

    The harbor-run sample asks the agent to create report.json and checks that the file exists. First check the harness with its supplied reference solution:

    Terminal window
    waza run examples/harbor-run/eval.yaml --engine harbor --agent oracle \
    --harbor-solutions-dir examples/harbor-run/solutions \
    --verifier-binary ./waza-linux --output oracle-results.json

    The expected result is one successful write-report task with a passing report_exists verifier grade. This proves harness wiring, not model quality or the JSON content. Replace the oracle with a real agent after configuring its credentials:

    Terminal window
    waza run examples/harbor-run/eval.yaml --engine harbor --agent copilot-cli \
    --model gpt-5.3-codex --sandbox docker --n-concurrent 2 \
    --verifier-binary ./waza-linux --keep-workspace --output harbor-results.json

    config.executor: harbor in this sample makes --engine harbor optional. --trials N controls attempts per task; --harbor-timeout controls the whole job, including image builds and agent setup. Per-task agent/verifier limits come from timeout_seconds. Use --harbor-output-file report.json when in-sandbox output graders should read that artifact instead of agent text. All Harbor engine flags are in the CLI reference.

    Use a new output directory inside a parent directory trusted against concurrent writes. Existing output is never replaced:

    Terminal window
    waza export harbor examples/harbor-run/eval.yaml --out ./harbor-tasks \
    --context-dir examples/harbor-export/fixtures \
    --verifier-binary ./waza-linux --solutions-dir examples/harbor-run/solutions

    The context override supplies input.txt containing ready, which the optional report-writing skill below requires.

    Each active task gets an instruction, task.toml, Dockerfile, fixtures, and tests/test.sh. Local eval/task skills are copied under /skills and exposed through Harbor’s environment.skills_dir. Task overrides take precedence; skill_directories: [none] disables discovery/copying.

    Keep the dataset’s waza-export.json schema version 1 metadata with its task directories. It records captured eval/task YAML and executed/deferred graders for later import. Source paths are provenance, not portable runtime inputs. Harbor uploads private verifier assets under /tests after the agent finishes. Fixtures and skills are visible to the agent: never put expected answers or secrets in them. Sources are not modified; symlinked resources are unsupported.

    Run the exported reference solution without credentials:

    Terminal window
    harbor run --path ./harbor-tasks --agent oracle --jobs-dir ./jobs --job-name waza-oracle

    Harbor 0.27.0 also supports repeatable --skill (alias --skills) for a local skill directory or Git source. For example, the skill-free dataset above can be run with the repository’s report-writing skill:

    Terminal window
    harbor run --path ./harbor-tasks --agent copilot-cli --model gpt-5.3-codex \
    --skill ./examples/harbor-export/skills/write-report \
    --jobs-dir ./jobs --job-name waza-skilled

    Do not add the same skill again if it was already copied during export. Skills added at Harbor run time are not declarations captured in the export metadata; record that choice when comparing runs. Installed skills alone are not proof of invocation. Use new job names for subsequent runs.

    These are real 0.27.0 flags: local datasets use --path, not --tasks, and there is no harbor task lint command. Loading a task validates its configuration.

    Terminal window
    waza results import harbor ./jobs/waza-oracle --dataset ./harbor-tasks \
    --output oracle-imported.json

    Each trial becomes a run of its task. Named verifier rewards retain details.source: harbor_verifier; deferred graders run on the host only when the captured ATIF evidence supports them. Supply either --dataset or --eval eval.yaml for grader configuration. Without either, import warns and imports verifier rewards only; it does not reconstruct the full evaluation. Task paths in the Harbor job lock are never read as trusted inputs.

    --dataset preserves export-time verifier/deferred assignments. --eval and the one-command engine use the original grader configuration instead: a missing reward can fall back to a host-supported grader, whose output checks read ATIF text, not the --output-file artifact. --eval also authorizes host-side program execution; choose --dataset when you need to retain the exported assignments.

    For an independently configured prompt judge, explicitly opt in:

    Terminal window
    waza results import harbor ./jobs/waza-skilled --eval examples/harbor-run/eval.yaml \
    --judge-model gpt-4o --output skilled-imported.json

    --judge-model enables any configured prompt graders; it does not add a grader to the sample. Judging needs credentials and can incur charges. Then inspect the imported JSON in the dashboard or compare compatible runs with waza compare oracle-results.json oracle-imported.json.

    This is a user-facing summary of the ATIF fidelity matrix and current importer gates, not a claim of native-agent parity. Host-side grading requires original grader configuration and a usable single-step trial trajectory unless an existing verifier reward supplies the grade.

    Grader In-sandbox verifier Host-side import from ATIF
    file, diff Workspace checks supported. Keeps verifier reward; no reconstructed workspace for re-grading.
    text, json_schema Needs --output-file selecting a workspace artifact. Supported with usable agent text; referenced schema files need an authorized local base.
    code Needs --output-file; filesystem/artifact-only scripts. Keeps verifier reward; otherwise unsupported without workspace evidence.
    program Deferred by default. --filesystem-programs opts into filesystem-only programs with no actor transcript. Deferred programs need usable output plus --eval or --programs-dir to authorize local command execution.
    action_sequence Deferred. Serialized tool-call names/order, retaining duplicates; not wall-clock order of parallel execution.
    tool_calls Deferred. Recorded tool events; missing success flags are not invented as successful results.
    tool_constraint Deferred. Tool names and captured arguments; producer-specific omissions/renaming limit fidelity.
    behavior Deferred. Tool rules from recorded calls; max_tokens needs usage, max_duration_ms needs agent timing.
    skill_invocation Deferred. Explicit named invocation, excluding known failed calls, for supported positive requirements already satisfied by recorded events. Absence, exactness and forbidden-skill checks are unsupported.
    prompt Deferred. Independent output judging with --judge-model; pairwise, continue_session and frozen evidence_context modes are unsupported. ATIF cannot resume an SDK session.
    trigger Unsupported. Unsupported: no skill-routing evaluation evidence.

    Output expectations also need agent text; a workspace artifact is not a substitute for the final response. A recorded skill call with unknown outcome is not proof of successful execution. With --dataset, a grader assigned to the verifier is unsupported if its reward is missing, not silently re-graded on the host. Host-side program graders receive imported output on stdin and transcript context through WAZA_GRADING_CONTEXT. WAZA_WORKSPACE_DIR points to a new empty temporary directory, not the agent’s workspace. Put workspace-dependent programs in the verifier and install their dependencies in the generated image.

    Missing evidence produces unsupported, not a failed assertion or invented pass. By default unsupported graders make the run an error. --skip-unsupported explicitly records them in metadata.harbor.skipped_graders; it does not certify full coverage. The one-command engine does not expose that import opt-out or start a prompt judge implicitly.

    reward.json has per-grader numeric scores and aggregate, their weighted mean. If all graders were deferred, aggregate is 0, not a verdict that those graders failed. Operational verifier errors produce no reward file. A partial filesystem reward is not a complete evaluation.

    Export rejects unsupported native execution semantics rather than dropping them, including multi-turn tasks, hooks, mocks, MCP server configuration, Git resources, checkpoints and workdir overrides. The batch engine also rejects native cache, snapshots, baselines, trigger suites, task/tag filtering, retry/fail-fast and OTel flags. See the full export contract.

    For Copilot, Harbor handles COPILOT_GITHUB_TOKEN, GH_TOKEN, or GITHUB_TOKEN from the inherited environment. Waza’s repeatable --agent-env NAME accepts names only, not secrets or NAME=value; it forwards an environment template to Harbor. Harbor’s own --agent-env accepts KEY=VALUE, a different interface. Never put credential values in command-line examples or retained artifacts.

    Use --keep-workspace on the one-command engine to retain dataset/job evidence; otherwise shutdown removes it. Waza does not echo Harbor stdout/stderr, and imported results withhold exception messages (only types are recorded). Retained Harbor files can still contain provider output or secrets; inspect and protect them locally. Incomplete/importable jobs retain partial evidence with an operational-error exit, not success.

    Cancellation terminates tracked local Harbor descendants. Docker containers are daemon-owned and can survive cancellation: identify the trial’s Compose project with docker ps --filter label=com.docker.compose.project, then run docker compose -p <trial_name>__env down. On Unix, descendants already reparented to init, including detached descendants surviving Harbor’s exit, cannot be traced by the engine. Remote providers need their own cleanup.

    No new telemetry fields are introduced by this workflow: the engine uses the existing aggregate live mode, and the in-container verifier disables telemetry and update checks. See product usage telemetry.