CLI Commands
Complete reference for all waza CLI commands and their options.
Version boundary (December 2, 2026): published standalone v0.42.2
includes the Copilot SDK v2 migration and the protocol-4 and optional billing-field
limits described below, along with prior CLI capabilities. Install the release
or run waza update; a source build is optional. Explicit opt-in and platform
restrictions remain; see the
feature/platform matrix.
It also retains the bounded runner/text and selected AgentV assertion adapter,
task-level MCP mocks, program-grader context, host lifecycle evidence and Lab
conversations added in v0.40.0, plus the v0.39.0 scenario flags, preflight,
selected-file evidence/regrade, assurance profiles, controlled policy commands
and serve --lab.
The azd extension is versioned separately; verify its own help rather than
assuming prefix parity.
Installation
Section titled “Installation”# macOS/Linux or Windows Git Bash/MSYS/Cygwincurl -fsSL https://raw.githubusercontent.com/microsoft/waza/main/install.sh | bashwaza --versionFor native Windows PowerShell:
irm https://raw.githubusercontent.com/microsoft/waza/main/install.ps1 | iexwaza --versionwaza update
Section titled “waza update”Update waza to the latest release.
waza updateThe command prompts for confirmation, then downloads and runs the official installer for the current OS. It uses the Bash installer on macOS/Linux and the PowerShell installer on native Windows. Use --yes to skip the prompt in scripted environments:
waza update --yesThe native Windows update path schedules the final binary replacement after the running waza.exe exits, avoiding Windows executable file locks. In WSL, waza update uses the Linux Bash installer and updates the WSL installation.
waza preflight
Section titled “waza preflight”Inspect an explicit eval file offline, without an agent/model, grader execution, subprocesses, mock servers, live services, dependency downloads, or update checks:
waza preflight eval.yamlwaza preflight eval.yaml --format json > preflight.jsonwaza preflight eval.yaml --context-dir ./fixtures --strictwaza preflight --workspace| Flag | Default | Meaning |
|---|---|---|
--format |
human |
human or json inventory/diagnostics |
--context-dir |
eval directory/fixtures | Context directory; relative values resolve from cwd |
--workspace |
false |
Preflight evaluations resolved for discovered skills, plus target-free evaluations in the evaluations directory or its immediate subdirectories |
--skills-dir |
configured path | Override skill discovery and required-skill inspection with --workspace |
--evals-dir |
configured path | Override the evaluations directory with --workspace |
--eval-file |
configured filename | Override the evaluation filename with --workspace |
--strict |
false |
Exit 1 for unresolved/unsupported prerequisites, not only invalid configuration |
Invalid configuration exits 1; unresolved/unsupported warn and exit 0 unless
--strict opts into 1. Usage/output errors use exit 2. Existing command exits
are unchanged. verified means static inspection, not a satisfied requirement
or runtime enforcement. The separately typed report is not results.json.
Workspace mode uses native skill/evaluation discovery, including configured
filename precedence and supported separated, nested, and co-located layouts.
Relative configured paths resolve from the project configuration directory;
workspace-mode path and filename flags override those settings. These flags affect
preflight only; they do not change the configuration used by a later waza run.
The skills override applies to required-skill discovery when discovery is enabled
and no eval-level skill directories are specified.
When no skills or evals are discovered, workspace mode exits 2 with a
workspace.empty diagnostic naming the discovery root. JSON mode writes an
empty report array to stdout and the structured diagnostic to stderr. A
discovered skill without an eval retains the empty-report success behavior.
Implicit .github/skills discovery starts at the invocation directory, not the
configuration root. If a nested invocation would miss a skill candidate in the
configuration root’s .github/skills, preflight exits 2 and names that root.
Run from the project root or preflight an explicit eval. Empty directories and
unrelated resources do not trigger this error. Generated CI runs preflight from
the project root.
Workspace preflight exits 2 for unavailable symlinks encountered in discovery.
Configured eval filenames take precedence over eval.yaml; an unselected
dangling fallback is ignored, including in child suites.
Native workspace detection does not follow symlinked skill-scan roots or skill
directories; preflight reports those unsupported paths instead of an empty
inventory. Resolvable resource links without discoverable skills and resolvable
eval symlinks remain supported. On discovery failure, reports for independently
discovered evaluations are written to stdout in the selected format and the
error to stderr.
Ref-only eval graders with a missing pinned cache remain unresolved until
their preset/fallback can supply the effective name. Explicit duplicate names
remain invalid; task/checkpoint graders still require inline declarations.
See Offline Eval Preflight for descriptive requirement
references, capability/dependency plans, and offline limitations.
waza run
Section titled “waza run”Harbor engine
Section titled “Harbor engine”--engine harbor (or config.executor: harbor) executes one exported dataset
as one Harbor job, then imports its evidence using the original eval’s graders.
Install the optional CLI with uv tool install harbor, put its executable on
PATH, and start Docker for the default sandbox. Other Harbor providers, such
as Daytona, require their own configuration and credentials.
waza run eval.yaml --engine harbor --agent copilot-cli --model gpt-5.3-codex \ --sandbox docker --n-concurrent 2 --output results.json| Harbor flag | Default | Description |
|---|---|---|
--engine |
eval executor | Override with harbor, copilot-sdk, or mock. |
--agent |
copilot-cli |
Any installed Harbor agent, including oracle. |
--sandbox |
docker |
Harbor environment provider, forwarded as harbor run --env. |
--n-concurrent |
1 |
Positive concurrent trial count; otherwise eval parallel/workers apply when set. |
--agent-env |
none | Repeatable host variable name, never a value; forwarded as NAME=${NAME}. |
--verifier-binary |
current executable on Linux | Static Linux waza binary built from the same revision. Required on Windows/macOS. |
--harbor-timeout |
1h |
Overall job deadline, including builds, setup, agent execution and verification. |
--harbor-output-file |
none | Workspace-relative output file for in-container text/JSON/diff graders. |
--harbor-solutions-dir |
none | Directory containing <task-id>/solve.sh for oracle checks. |
Use --trials N for Harbor attempts per task. config.timeout_seconds and task
overrides remain Harbor’s per-task agent/verifier limits. On Windows PowerShell,
build the verifier with $env:CGO_ENABLED='0'; $env:GOOS='linux'; $env:GOARCH='amd64'; go build -tags copilot_no_inprocess -buildmode=exe -o waza-linux ./cmd/waza, then restore those
environment variables before building native tools.
Linux defaults to the current executable only if it is static. Standard
repository builds use copilot_no_inprocess; custom builds with the SDK’s
in-process FFI enabled must supply a separate tagged verifier too.
Credential values stay in the inherited environment. For Copilot, set
COPILOT_GITHUB_TOKEN, GH_TOKEN, or GITHUB_TOKEN before running; Harbor
handles its agent’s authentication. Explicit --agent-env NAME uses Harbor’s
environment-template mechanism for other agent variables. Waza never echoes
child stdout/stderr (even in verbose mode). Treat retained Harbor artifacts as
sensitive; --keep-workspace preserves their location for troubleshooting.
Without that flag, shutdown removes both dataset and job artifacts.
For a credential-free Docker check from a source checkout:
waza run examples/harbor-run/eval.yaml --agent oracle \ --harbor-solutions-dir examples/harbor-run/solutions \ --verifier-binary ./waza-linux --output oracle-results.jsonoracle checks the harness and verifier, not model quality. Results retain the
normal waza JSON schema: config.engine_type: harbor, observed
metadata.harbor agent/model/sandbox, and requested metadata.harbor_request.
Reporters and output directories work as with native runs. Complete grading
failures retain results with nonzero exits; importable partial jobs are saved
with an operational-error exit. Cancellation kills Harbor’s whole process tree:
on Windows Harbor runs in a Job Object that terminates every descendant; on
Linux and macOS waza stops Harbor’s process group and any descendants that left
it (for example via setsid), then kills them. Harbor is not reaped until those
signals are sent, and each descendant is identified by PID plus start time
(pinned with a pidfd on Linux, re-checked before every signal on macOS), so a
reused PID never receives a signal. On Unix, a process that was already
orphaned away from Harbor’s tree before cancellation cannot be traced, and
neither can a detached descendant that outlives Harbor’s own exit (for example
when Harbor exits just as the run is canceled): the kernel reparents it to init
when Harbor exits. Other Unix
platforms refuse to run the Harbor engine.
Docker containers are owned by the Docker daemon, not Harbor’s process tree, so
containers from an interrupted trial can keep running; remove them with
docker compose -p <trial_name>__env down or
docker ps --filter label=com.docker.compose.project. Remote sandbox providers
remain responsible for their own cleanup. Harbor trial exception messages can
echo provider responses or credentials, so results record only the exception
type; inspect the job directory (--keep-workspace) for the full message.
The importer rejects a trial directory whose name differs from its
trial_name, so a copied trial cannot stand in for a missing attempt.
When the job deadline expires but the parent run is still active, completed
trial evidence is imported and saved as partial evidence with an error exit.
Workspace skill defaults and locked grader expansions are retained across
export/import, and required skill declarations are checked before execution.
Offline preflight recognizes Harbor but leaves installation, static verifier,
credentials and sandbox readiness unresolved; it does not launch these tools.
The batch engine does not use native per-prompt scheduling or double-grade
tasks. Native task/tag filters, cache, snapshots, baseline, trigger suites,
session logging, native retries/fail-fast, eval/task first-event watchdogs and OTel flags are rejected rather
than ignored. Export also rejects unsupported mocks, hooks, repositories,
multi-turn tasks and other native-only semantics. Supported grader evidence
follows the Harbor fidelity matrix;
unavailable evidence is unsupported, never a fabricated pass or failure.
Prompt judging is not started implicitly. Product telemetry records Harbor
under the existing aggregate live execution mode; no agent, sandbox,
credential or model fields are added to the closed telemetry contract.
Run an evaluation benchmark.
waza run [eval.yaml | skill-name | agent-name]Arguments
Section titled “Arguments”| Argument | Description |
|---|---|
[eval.yaml] |
Path to evaluation spec file |
[skill-name] |
Skill name (auto-detects eval.yaml) |
[agent-name] |
Custom agent name (auto-detects eval.yaml for .agent.md files) |
| (none) | Auto-detect using workspace detection |
Custom agents: Waza discovers both SKILL.md and .agent.md files. You can target a custom agent by name just like a skill. See Evaluating Custom Agents for details.
APM-managed skills: Waza detects compiled APM skills at skills/<name>/.apm/skills/<name>/SKILL.md, so waza run <name> and no-argument workspace detection work without symlinking SKILL.md into the source skill directory. If both skills/<name>/SKILL.md and the APM compiled output exist for the same skill, the top-level SKILL.md takes precedence.
Finite MCP/CLI fault sequences are configured in scenario eval YAML, not through
a run flag. They do not add an automatic retry policy or certify real CLI/MCP
implementations. See Dependency Recovery.
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--context-dir |
-c |
string | ./fixtures |
Fixtures directory path |
--output |
-o |
string | Save results JSON to file | |
--runner-compat |
bool | false | Added in v0.40.0: route one compatible inline mock/text suite through runner 1.0, retaining local results and exits; unsupported mappings/flags fail. | |
--output-dir |
-d |
string | Directory for structured output; each run creates a UTC-timestamped subdirectory of the specified directory. Mutually exclusive with --output. |
|
--verbose |
-v |
bool | false | Detailed progress output |
--parallel |
bool | false | Run tasks concurrently | |
--workers |
-w |
int | auto | Number of concurrent workers |
--trials |
int | config.trials_per_task |
Run each task N times for flakiness detection (omit to use config.trials_per_task; when provided, value must be >= 1) |
|
--task |
-t |
string | Filter tasks by name (repeatable) | |
--tags |
string | Filter tasks by tags (repeatable) | ||
--model |
-m |
string | Override model (repeatable) | |
--judge-model |
string | Model for LLM-as-judge graders (overrides execution model) | ||
--cache |
bool | false | Enable result caching | |
--cache-dir |
string | .waza-cache |
Cache directory path | |
--format |
-f |
string | default |
Output format: default, github-comment |
--reporter |
string[] | Output reporters: json, junit:<path> (repeatable) |
||
--timeout |
int | 300 | Task timeout in seconds | |
--baseline |
bool | false | A/B testing mode — runs each task twice (baseline with all skills explicitly disabled, including task-level skill_directories and ambient discovery; then with skills = normal) and computes improvement scores. Isolates skill loading only; model outputs can still vary between passes |
|
--update-snapshots |
bool | false | Update or create diff grader snapshot files to match current workspace output |
|
--discover |
string | Auto skill discovery — walks directory tree for SKILL.md + eval.yaml (root/tests/evals) | ||
--strict |
bool | false | Fail if any SKILL.md lacks eval coverage (use with --discover) |
|
--suggest |
bool | false | Generate a Copilot suggestion report based on test outcomes | |
--recommend |
bool | false | Generate heuristic recommendation after multi-model run | |
--session-log |
bool | false | Enable session event logging (NDJSON) | |
--session-dir |
string | . |
Directory for session log files | |
--no-summary |
bool | false | Skip combined summary.json for multi-skill runs | |
--interpret |
bool | false | Print optional interpretation with per-trial scoped requirement observations/evidence metadata when present; legacy no-metadata text is unchanged and malformed evidence is withheld. | |
--skip-graders |
bool | false | Skip grading (execution only); grade later with waza grade |
|
--no-skills |
bool | false | Disable all skill loading for the evaluation | |
--transcript-dir |
string | Save per-task transcript JSON files | ||
--no-cache |
bool | false | Explicitly disable result caching | |
--keep-workspace |
bool | false | Preserve temp workspaces after execution for debugging | |
--auto-file-issue |
bool | false | Auto-file or update a GitHub issue for failing runs (requires gh and GITHUB_REPOSITORY) |
|
--otel-exporter |
string | Export OpenTelemetry traces using otlp, stdout, or file. Off by default. See OpenTelemetry Tracing. |
||
--otel-endpoint |
string | OTLP endpoint (host:port or URL); only used with --otel-exporter=otlp |
||
--otel-headers |
string | Comma-separated key=value OTLP headers (e.g. for auth) |
||
--otel-file |
string | File path for span JSON when --otel-exporter=file |
||
--otel-include-payloads |
bool | false | Include prompt/tool-arg/tool-result/completion content in spans (default: redacted to sha256+length) |
|
--snapshot |
string | Capture redacted per-trial observations and portable evidence to the given directory; not a complete workspace. See Snapshot & Replay. | ||
--snapshot-file |
string[] | Repeatable reviewed agent-visible UTF-8 regular-file allow-list; requires --snapshot and full workspace capture. Linux/macOS only. |
||
--snapshot-evaluator-only |
string[] | Repeatable evaluator-only file/directory exclusions; requires --snapshot and --snapshot-file. Metadata inventory capped at 256 inspections/depth 32 before selected content; limit/inspection/resource failure prevents capture. Never capture credentials or evaluator-only files. |
||
--snapshot-max-file-bytes |
int64 | 1048576 | Positive input/sanitized byte limit per file (1 MiB). | |
--snapshot-max-total-bytes |
int64 | 10485760 | Positive aggregate input/sanitized byte limit (10 MiB). | |
--snapshot-env-allow |
string[] | Allow-list of environment variable name patterns to embed in snapshots (default-deny; supports WAZA_* wildcards). |
||
--redact |
string | Custom snapshot redaction policy; replaces defaults unless extend: true. |
||
--isolation-request |
string | Available in v0.42.0: isolation request JSON; the run is rejected (exit 2) before any execution when a requested boundary cannot be proved. See Execution isolation. | ||
--isolation-host |
string | Available in v0.42.0: host isolation declaration JSON whose claimed boundaries are probed before execution. | ||
--isolation-report |
string | Available in v0.42.0: write the isolation preflight report JSON; requires --isolation-request or --isolation-host and is created exclusively and never replaces an existing file, an input or another output (selected evals, --output and derived files, JUnit reporters, the OpenTelemetry --otel-file, and paths inside --output-dir, --snapshot, --transcript-dir, an enabled cache or session-log directory are refused, after resolving symlinked ancestors). Written on rejection, or after every selected eval passes isolation checks. |
Examples
Section titled “Examples”# Run all taskswaza run eval.yaml -v
# Run specific skillwaza run code-explainer
# Specify fixtures directorywaza run eval.yaml -c ./fixtures -v
# Save resultswaza run eval.yaml -o results.json
# Filter to specific taskswaza run eval.yaml --task "basic*" --task "edge*"
# Multiple models (parallel)waza run eval.yaml --model gpt-4o --model claude-sonnet-4.6
# Use a different judge model for LLM-as-judge graderswaza run eval.yaml --model gpt-4o --judge-model claude-opus-4.6
# Run a Copilot SDK eval with top-level mcp_mocks fixtures and no live MCP servicewaza run eval.yaml --session-log
# Parallel execution with 8 workerswaza run eval.yaml --parallel --workers 8
# With cachingwaza run eval.yaml --cache --cache-dir .waza-cache
# Completed grading failures also write JUnit XML and retain a nonzero exit status.# Generate JUnit XML for CI test reportingwaza run eval.yaml --reporter junit:results.xml
# A/B testing: baseline vs skill performancewaza run eval.yaml --baseline -o results.json# Output includes improvement breakdown (quality, tokens, turns, time, completion)
# Auto-update diff grader snapshotswaza run eval.yaml --update-snapshots
# Auto skill discoverywaza run --discover ./skills/
# Auto discovery with strict mode (fail if any SKILL.md lacks eval coverage)waza run --discover --strict ./skills/
# Skip grading, then grade separatelywaza run eval.yaml --skip-graders -o results.jsonwaza grade eval.yaml --results results.json
# Session event loggingwaza run eval.yaml --session-log --session-dir ./logs
# Multi-model comparison with recommendationwaza run eval.yaml --model gpt-4o --model claude-sonnet-4.6 --recommend
# Keep temp workspaces for debugging fixture issueswaza run eval.yaml --keep-workspace -v
# Auto-file or update a triage issue on failuresGITHUB_REPOSITORY=microsoft/waza waza run eval.yaml --auto-file-issuewaza init
Section titled “waza init”Initialize a new waza project.
waza init [directory]Arguments
Section titled “Arguments”| Argument | Description |
|---|---|
[directory] |
Project directory (default: current dir) |
| Flag | Description |
|---|---|
--no-skill |
Skip first skill creation prompt |
--skills-dir |
Project-relative skills directory; overrides detection and defaults |
--evals-dir |
Project-relative evals directory; overrides detection and defaults |
--results-dir |
Project-relative results directory recorded in new configuration |
When .waza.yaml already exists and init generates .github/workflows/eval.yml,
its skill and eval paths take precedence over auto-detection. --skills-dir
and --evals-dir must match those configured paths so CI validates the same
roots that runs use. When generating a workflow, symlinks in the skill and eval
directory paths must be relative and stay inside the project; commit the links
and their targets. A symlinked skills root, including an in-project relative
link, causes generated CI preflight to exit 2; use a regular directory. Existing
workflows are preserved.
Creates
Section titled “Creates”project-root/├── skills/├── evals/├── .waza.yaml├── .github/workflows/eval.yml├── .gitignore└── README.mdExisting project files are preserved. Missing .waza.yaml configuration records
the selected paths and engine/model defaults; an existing configuration is not
rewritten. The results directory is configured, not created by this scaffold.
On Windows, macOS, and Linux, project and missing-eval scaffold writes use a
rooted handle to reject symlink escapes. Filesystem mounts and the separate
new skill flow are not constrained by this. A failed scaffold can leave
partial output. In-project eval roots get a .gitkeep even when populated;
commit it (unignore or force-add it if necessary) unless another tracked file
preserves the directory.
The generated workflow pins a standalone Waza release, action commit SHAs and Ubuntu 24.04. Pull requests run offline preflight, not live agent evaluations. The offline step fails when it discovers no skills or evals. Custom path flags do not rewrite its path filters.
Live execution requires a manual default-branch dispatch with run-agent=true,
the waza-agent environment and its WAZA_COPILOT_TOKEN secret (passed as
COPILOT_GITHUB_TOKEN).
Credential and artifact warning: Program graders and other eval code inherit COPILOT_GITHUB_TOKEN. Their output can appear in results.json and uploaded artifacts retained for 30 days. Waza does not redact secrets from these outputs or artifacts. GitHub log masking does not protect artifacts.
Store WAZA_COPILOT_TOKEN only in a protected waza-agent environment. In the destination repository, create this environment and select only the default branch for deployment, require reviewers, then verify those settings before adding WAZA_COPILOT_TOKEN. Where independent approval is required, prevent self-review and disable admin bypass where available. GitHub auto-creates an unknown referenced environment with no protection rules or secrets. The workflow’s if/ref condition is not the protection boundary: a modified branch workflow can remove it.
Protection availability depends on the repository’s visibility and GitHub plan. Required reviewers are unavailable for private repositories on GitHub Free, Pro, or Team. Do not enable the credentialed job if the recommended branch restrictions or required reviewers cannot be configured.
Do not define a same-named repository or organization secret. If the environment secret is missing, GitHub can silently use that broader-scoped secret.
Configure authentication before opting in; model calls can incur charges. init does not create secrets
or grant pull requests access to them. Existing workflow files are preserved,
not upgraded automatically. See the CI/CD guide.
Examples
Section titled “Examples”waza init my-projectwaza init my-project --no-skillwaza get
Section titled “waza get”Resolve remote grader refs and update waza.lock.
waza get [eval.yaml | ref]When given an eval file, waza get resolves each graders[].ref, downloads the module into ~/.waza/cache/{host}/{org}/{repo}/{sha}/, and writes a lockfile next to the eval. The lock pins the original ref to a commit SHA, source URL, and sha256: content digest.
waza get eval.yamlwaza get github.com/waza-evals/fact#factuality@v1.0.0waza run is strict: evals with remote grader refs require a valid waza.lock and local cache entry. If the lock is missing, cache is unavailable, or the digest mismatches, the run fails instead of resolving mutable refs implicitly.
waza new skill
Section titled “waza new skill”Create a new skill. In interactive mode, the wizard collects spec-aligned metadata: name, description, trigger phrases, and anti-trigger phrases.
waza new skill [skill-name]Project mode (inside a skills/ directory):
cd my-skills-repowaza new skill code-explainer# Creates skills/code-explainer/SKILL.md + evals/code-explainer/Standalone mode (no skills/ directory):
waza new skill my-skill# Creates my-skill/ with all files| Flag | Description |
|---|---|
--template |
Template pack (coming soon) |
--output-dir |
Explicit scaffold destination; ancestor workspace discovery does not redirect output |
With --output-dir, Waza resolves the scaffold within that destination rather
than adopting a workspace above it. Without the flag, existing ancestor
workspace discovery remains unchanged.
Standalone scaffolds use the same pinned, offline-default CI policy as
waza init; mock results cannot satisfy its manual agent-execution gate.
Examples
Section titled “Examples”# Interactive wizardwaza new skill code-analyzer
# Non-interactive (CI/CD)waza new skill code-analyzer << EOFCode AnalyzerAnalyzes code for patterns and issuescode, analysisEOFwaza new eval
Section titled “waza new eval”Scaffold an eval suite for an existing skill.
For target-free workflows, use waza new eval <name> --scenario.
Scenario scaffolds do not read or create SKILL.md and explicitly select
copilot-sdk, even if project defaults use a mock engine.
waza new eval
Section titled “waza new eval”Generate an eval scaffold from an existing SKILL.md.
waza new eval <skill-name>Creates:
evals/<skill-name>/<files.evalFile>evals/<skill-name>/tasks/positive-trigger-1<files.taskFileSuffix>evals/<skill-name>/tasks/positive-trigger-2<files.taskFileSuffix>evals/<skill-name>/tasks/negative-trigger-1<files.taskFileSuffix>
| Flag | Description |
|---|---|
--output |
Custom path for the generated eval file; task YAMLs are created in a sibling tasks/ directory next to this file. |
--scenario |
Scaffold a workflow without a target skill/custom agent; eval schema 2.0. |
--template |
Scenario template: repository (default), cli, or mcp; requires --scenario. |
The generated eval filename, task glob, and task filename suffix come from .waza.yaml files settings when configured.
Scenario mode creates one workflow<files.taskFileSuffix> task under tasks/
when selected by files.taskGlob, otherwise in its matching literal directory,
and a fixtures/ directory beside the eval file; the repository template includes
fixtures/inventory.txt. It rejects blank names and refuses to overwrite any
generated file. The three trigger tasks above belong to the default skill flow.
The repository scenario has three file graders: report outcome, no private.txt,
and exact final inventory.txt bytes. CLI/MCP scenarios retain two graders.
This is a final-state check, not proof that no transient edits occurred.
In YAML and JSON, a present scenario key requires a nonblank string and exact
schema 2.0; null or other types are invalid. Omit the key for a legacy eval.
Repository mode emits fixture-local .gitattributes to preserve inventory LF
bytes during Git checkout, or a safe root rule if the configured glob selects
local metadata. If neither location is safe, generation fails before writing;
narrow the task-directory glob or choose a different eval filename. Metadata
files are also protected against overwrite. Older working copies are not
rewritten automatically.
Wildcard-directory globs that select the default tasks/ path remain supported.
Globs that cannot select that task or a safe literal alternative, or that select
generated non-task files, are rejected before writing. For example,
fixtures/*.yaml is supported, but fixtures/* selects .gitkeep and must be
narrowed. A failed creation or write rolls back files created by the attempt,
including a partial output. File ownership handles remain open through success
or rollback, preventing an unlinked inode from being recycled before the
ownership check. Observed replacements are preserved; cleanup and handle-close
failures are reported instead of silently deleting unowned output. Empty directories may
remain, so this is not a whole-directory transaction.
Scenario mode also rejects symlinked parents in the selected output path,
including its root and nested task/fixture directories. Choose a physical output
path instead. Relative paths use the retained working directory; absolute paths
are checked from their filesystem root. The literal macOS /var and /tmp
aliases are accepted only when their targets exactly match the expected
/private locations. Admitted directory handles are retained, so replacing a
parent path cannot redirect subsequent file creation. Moving an admitted
directory can move its outputs; rollback removes only this attempt’s owned
files, not unrelated content or whole directories. This is not a filesystem
sandbox. This parent policy applies to scenario generation, not legacy
skill/eval scaffolding.
Scenario templates honor configured task discovery, including literal custom
directories such as cases/*.task.yaml. An incompatible glob/suffix, unsafe
destination, or glob selecting generated non-task artifacts fails scaffolding
instead of producing an undiscoverable task.
Examples
Section titled “Examples”# Generate eval scaffold using skills/my-skill/SKILL.mdwaza new eval my-skill
# Write eval.yaml to a custom locationwaza new eval my-skill --output evals/custom/my-skill-eval.yaml
# Real repository workflow; no skill requiredwaza new eval inventory --scenario --template repositorywaza run evals/inventory/eval.yaml
# For offline harness checks, set config.executor: mock in a copy.# Mock output is not agent-quality evidence.waza new task
Section titled “waza new task”Generate task YAML files from a recorded prompt execution.
waza new task from-prompt
Section titled “waza new task from-prompt”Run your prompt through Copilot and generate a task file with inferred validators from the recorded session.
Task generation consumes the events returned by the completed execution; it
does not require a separate home-directory session events.jsonl. The prompt,
tool/skill observations and response expectations come from that execution.
Recording still requires Copilot authentication and can incur model charges.
waza new task from-prompt <prompt> <task-path>Arguments
Section titled “Arguments”| Argument | Description |
|---|---|
<prompt> |
Prompt to execute during recording |
<task-path> |
Output path for the generated task YAML |
| Flag | Type | Default | Description |
|---|---|---|---|
--model |
string | claude-sonnet-4.5 |
Copilot model to use for recording |
--testname |
string | auto-generated-test |
Test name and test ID for generated task |
--tags |
string[] | Tags to add to generated task | |
--timeout |
duration | 5m0s |
Max time to allow prompt completion |
--overwrite |
bool | false |
Overwrite output file if it already exists |
--root |
string | . |
Directory used to discover skills. .waza.yaml is still located from the working directory, and its configured skill paths stay relative to that file. |
Examples
Section titled “Examples”# Generate a task from a recorded prompt runwaza new task from-prompt "Refactor this function for readability" evals/code-explainer/tasks/refactor-readability.yaml
# Add metadata and allow file replacementwaza new task from-prompt "Explain this diff and risks" evals/code-explainer/tasks/diff-analysis.yaml \ --testname diff-analysis \ --tags recorded,regression \ --overwritewaza check
Section titled “waza check”Validate skill compliance and readiness.
waza check [skill-name | skill-path]Arguments
Section titled “Arguments”| Argument | Description |
|---|---|
[skill-name] |
Skill name (e.g., code-explainer) |
[skill-path] |
Relative or absolute path to a skill directory or SKILL.md file |
| (none) | Check all skills in workspace |
Explicit paths discover evals relative to the target skill, not the current
directory. Discovery honors that workspace’s .waza.yaml paths.evals and
files.evalFile settings (with eval.yaml as the legacy filename fallback).
Without a config file, it searches up to 10 directory levels for
evals/<skill-name>/eval.yaml. Separated evals take priority over
<skill-dir>/evals/eval.yaml, then <skill-dir>/eval.yaml.
| Flag | Description |
|---|---|
--verbose |
Detailed compliance report |
--format |
Output format: text (default), json |
Output
Section titled “Output”🔍 Skill Readiness Check━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Skill: code-explainer
📋 Compliance Score: High ✅ Excellent! Your skill meets all requirements.
📊 Token Budget: 420 / 500 tokens ✅ Within budget.
🧪 Evaluation Suite: Found ✅ eval.yaml detected.
💡 Advisory Checks ✅ scope-reduction: Capability scope: 3 signal(s) detected
✅ Your skill is ready for submission!Advisory: Scope Reduction Warning
Section titled “Advisory: Scope Reduction Warning”The scope-reduction advisory check detects when a SKILL.md may have lost workflow coverage due to token-limit compression. It parses three concrete signals:
| Signal | What it counts |
|---|---|
| USE FOR items | Comma-separated phrases after USE FOR: |
| Level-2 headings | ## headings in the body (distinct capability sections) |
| Numbered procedures | Sequences starting with 1. (distinct workflows) |
The check takes the maximum of these three indicators. If the count is below the minimum threshold (default: 2), a warning is emitted suggesting possible scope loss. This is advisory only — it does not block readiness.
Examples
Section titled “Examples”waza check code-explainerwaza check ./skills/code-explainerwaza check --verbosewaza compare
Section titled “waza compare”Compare evaluation results across models.
waza compare [results-1.json] [results-2.json] ...Arguments
Section titled “Arguments”| Argument | Description |
|---|---|
[results-N.json] |
Result files to compare (2+ required) |
| Flag | Description |
|---|---|
--format |
Output format: table (default), json |
--release-policy |
Explicit independent fixed-design release policy; requires --collection-dir instead of historical positional results. |
--collection-dir |
New paired collection sidecars. Invalid, incomplete, rejected or inconclusive selected policy exits 1. |
--assurance-contract |
Explicit independent offline assurance profile; requires --release-policy, --collection-dir and current per-arm eval/reference inputs. Empty selection fails. |
--baseline-eval, --candidate-eval |
Current per-arm eval sources required for selected assurance assessment. |
--baseline-context-dir, --candidate-context-dir |
Optional cwd-relative per-arm context overrides. |
--baseline-references, --candidate-references |
Current evaluator-only finite authored reference labels required for selected assurance. |
--baseline-review, --candidate-review |
Optional separately supplied current review files. |
--baseline-accept-review-source, --candidate-accept-review-source |
Explicit acceptance of each supplied current review source; not authenticated human review. |
Selected policy assessment does not change default descriptive comparisons.
Policy metadata in ordinary results is not enforcement, and older executables
reject the new flags. compare-plan and compare-collect default to offline
mock collection; explicitly pass --collector native-copilot to both to select
the bounded Copilot SDK profile. It may incur provider usage and is limited to
fixed named models, single turns, no skills, deny-all client tools and native
text/string checks. It does not establish server isolation, authenticated
assurance or provider/runtime versions. Native durable creation supports
Linux/macOS only; Windows reader checks do not certify writing. Do not adopt
historical outcomes as fresh evidence.
See controlled comparisons.
Changing task sets: compare --format json emits valid JSON when task sets
differ. Unavailable values are null, never 0: a task absent from a file has
a null score and pass rate (status n/a), and a task present without
statistics also has null values. score_delta and pass_rate_delta are
computed only when both the first and last files have a value; otherwise they
are null. Observed zero stays 0. When any value in a task entry is
unavailable, the additive availability array gives a per-file reason:
observed, task_missing or stats_missing. Fully observed entries keep the
previous shape and numeric values. Table output shows unavailable values and
deltas as n/a.
Examples
Section titled “Examples”waza compare gpt4.json sonnet.jsonwaza compare gpt4.json sonnet.json opus.jsonwaza compare results-*.json --format json{ "task_id": "task-b", "display_name": "Task B", "scores": [null, 0.5], "pass_rates": [null, 1], "statuses": ["n/a", "passed"], "score_delta": null, "pass_rate_delta": null, "availability": ["task_missing", "observed"]}Tool-use metrics (schema 1.1+)
Section titled “Tool-use metrics (schema 1.1+)”When the input files include the tool_events[] array (results.json schema 1.1 or later), waza compare prints an additional TOOL USE section with aggregate per-file metrics:
| Metric | Meaning |
|---|---|
total_calls |
Total number of tool calls across every task and run |
tasks_with_tools |
Tasks where at least one tool call was recorded |
avg_calls_per_task |
Mean calls per task |
success_rate |
Fraction of tool calls that returned success: true |
selection_accuracy |
Fraction of tasks where the tool_calls grader passed (excludes tasks without a tool_calls grader) |
call_count_histogram |
Distribution of per-task call counts in buckets 0, 1, 2, 3+ |
The section is suppressed when none of the compared files contain tool data, so legacy 1.0 results remain unchanged.
Results that declare schemaVersion 1.0 predate tool_events[] and cannot
distinguish absent tool evidence from zero calls. In JSON output, their
tool_metrics entry is null and the additive tool_metrics_availability
array reports tool_events_not_recorded for that file (observed for the
others); the table shows n/a. The array is omitted when every file records
tool events.
waza compare-plan
Section titled “waza compare-plan”Bind a mandatory fixed design and explicit requirements to inspected sources
before collecting outcomes. Collection defaults to offline mock. Explicit
--collector native-copilot selects the bounded Copilot SDK profile; static
metadata is not assurance.
| Flag | Description |
|---|---|
--collector |
Collection profile: mock (default, offline) or native-copilot (explicit, may incur provider usage). |
--baseline-eval, --candidate-eval |
Required source eval YAML files. |
--baseline-context-dir, --candidate-context-dir |
Cwd-relative context override; default is each eval directory’s fixtures. |
--design |
Required policy-1.0 design member JSON, with empty allocation; seed generated once. |
--requirements |
Required explicit identity/runtime/assurance/billing member JSON. |
--allow-change |
Comma-separated engine,model,reasoning_effort; exact actual per-task differences only. |
-o, --output |
Required new private policy file; no overwrite. |
Invalid or unsupported planning exits 1; nothing is collected. Planned trial
ordinals must match effective config.trials_per_task. The policy’s metadata
alone never enforces a gate.
waza compare-assurance-plan
Section titled “waza compare-assurance-plan”Create a new independently versioned offline assurance contract before BEGIN, without changing frozen base policy/journal/decision 1.0 semantics. The selected base policy must explicitly require assurance.
| Flag | Description |
|---|---|
--release-policy |
Required exact base 1.0 policy with assurance required. |
--baseline-eval, --candidate-eval |
Required current per-arm eval YAML. |
--baseline-context-dir, --candidate-context-dir |
Optional context overrides with the existing cwd semantics. |
--baseline-references, --candidate-references |
Required current evaluator-only reference-label JSON with finite authored outputs. |
--baseline-review, --candidate-review |
Optional separately supplied current review declarations. |
--baseline-accept-review-source, --candidate-accept-review-source |
Explicit acceptance of each supplied current review source; supplying a file alone is not acceptance. |
-o, --output |
Required new exclusive contract file; no overwrite. |
No existing contract is an input to planning. Collection/assessment must select
the resulting --assurance-contract explicitly with --release-policy and
current per-arm inputs; assessment additionally needs --collection-dir.
Missing/empty required flags fail; empty contract selection never falls back.
Unreviewed examples remain nonpassing. Review-source acceptance is not
authenticated human review; test-only reviewed declarations are synthetic.
Only mock/no-skills/native-text finite authored outputs are supported. Fresh exact offline1.0 reports for both arms, retained actual-response deterministic regrade and every base non-assurance condition are required for an outer pass. No live SDK assurance, calibration, paid1.1/billing support or automatic paid validation. Stored report pass labels are never adopted. The base API/dashboard intentionally remain nonpassing for required assurance. See the independent profile lifecycle.
waza compare-collect
Section titled “waza compare-collect”Collect fresh paired attempts under an explicit frozen policy. The default
mock collector is offline. Explicitly select --collector native-copilot for
the fixed-model, single-turn Copilot SDK profile, which may incur provider
usage. Sources are rechecked before BEGIN and every attempt; private frozen
requests avoid mutable fixture rereads. Native durable creation is Linux/macOS
only.
| Flag | Description |
|---|---|
--collector |
Collection profile: mock (default, offline) or native-copilot (explicit, may incur provider usage). |
--baseline-eval, --candidate-eval |
Required exact source eval YAML files. |
--baseline-context-dir, --candidate-context-dir |
Same context semantics used during planning. |
--release-policy |
Required precollection policy. |
--collection-dir |
Required new private directory; no overwrite, adoption or resume. |
--assurance-contract |
Optional explicit independent offline contract; requires --release-policy and current per-arm references. Empty selection fails. |
--baseline-references, --candidate-references |
Required current evaluator-only labels when assurance is selected. |
--baseline-review, --candidate-review |
Optional separately supplied current review files for selected assurance. |
--baseline-accept-review-source, --candidate-accept-review-source |
Separate explicit acceptance of each supplied review source. |
Source drift, unsupported capability, cancellation or persistence errors exit
1. Successful collection persists evidence, not a release pass. Assess
it separately with compare or gate --release-policy --collection-dir.
The offline example intentionally remains
inconclusive; no default live/paid execution or adaptive stopping is enabled.
The native profile supports no skills, deny-all client tools and native
text/string checks only; hooks, MCP, repositories, cache, concurrency, resume,
checkpoints, multiturn and other graders are unsupported. Usage limits use
final observations and best-effort prestart checks, so in-flight overshoot is
possible; they are not a hard spending cap. Runtime version, provider currency
and ambiguous output presence remain unavailable.
Operationally incomplete native collection exits nonzero even if core
publication completed; inspect native-stop.json for the error, budget or
currentness cause. The API collection item’s error may coexist with attempts.
Selected assurance additionally persists assurance-contract.json,
assurance.ndjson actual-response rows and assurance-ledger.json. Sources,
evaluator evidence and review inputs are rechecked after verification and before
final publication. A captured empty response has an explicit available value: ""; unavailable output has a reason and no value. Neither collection nor
stored grader assurance reports are adopted as an outer release pass.
waza replay
Section titled “waza replay”Check a task snapshot’s offline consistency or compare two snapshots. Snapshots are produced by waza run --snapshot <dir> and contain the prompt, fixture digests, ordered tool events, environment allow-list, and redacted grader outcomes. Hashes are not preserved file contents. Replay does not reconstruct a workspace, re-run graders, verify external state, or reproduce an agent execution.
waza replay <snapshot.json> [flags]Arguments
Section titled “Arguments”| Argument | Description |
|---|---|
<snapshot.json> |
Path to a snapshot produced by waza run --snapshot <dir> |
| Flag | Type | Default | Description |
|---|---|---|---|
--mode |
string | model-replay |
Offline consistency check. live is unsupported and returns exit code 2. |
--bisect |
string | Path to a second snapshot to compare against the primary. Reports the first divergent turn. | |
--json |
bool | false | Emit machine-readable JSON to stdout instead of a human summary. |
--strict |
bool | true | In model-replay mode, also re-check final status against explicitly recorded grader and checkpoint outcomes. |
model-replay— Checks the stored tool-event array in its existing order for out-of-order, duplicate, and missing sequence numbers, plus validation/score agreement. In strict mode, a passed status also diverges when an explicitly recorded final validation failed or a checkpoint has failed/error status. Missingpassed/scorefields and omitted checkpoint records are not treated as failures; skipped/error result statuses are not reinterpreted. Fast, fully offline, ideal for CI.live— Unsupported; returns exit code2. No live replay behavior or delivery date is promised.
Exit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
0 |
Snapshots match / replay succeeded |
1 |
Divergence detected (kind/value rendered to stderr or --json output) |
2 |
Snapshot load, parse, schema-version or I/O error; JSON output error; unsupported live mode or unknown mode |
Examples
Section titled “Examples”# Capture snapshots during a runwaza run eval.yaml --snapshot ./snapshots/
# Re-verify a single task's snapshot is internally consistentwaza replay ./snapshots/my-task-run1.json
# Diff two snapshots and find the first divergent turn (CI-friendly JSON)waza replay ./snapshots/run-a.json --bisect ./snapshots/run-b.json --jsonwaza gate
Section titled “waza gate”Compare a current results file against a baseline and enforce regression policy. Designed for CI: emits stable exit codes and supports GitHub Actions annotations.
waza gate --baseline baseline.json --current results.json [flags]| Flag | Default | Description |
|---|---|---|
--baseline |
(required) | Baseline results JSON (the “known good” run). |
--current |
(required) | Current results JSON to evaluate. |
--max-regression-pct |
0 |
Maximum allowed drop in success rate (percentage points). 0 means no regression tolerated. |
--golden-must-pass |
true |
If true, any failing task marked golden: true causes a golden failure (exit 2). |
--on-new-tasks |
allow |
Policy when current has tasks not in baseline: allow, warn, fail. |
--on-removed-tasks |
warn |
Policy when baseline has tasks not in current: allow, warn, fail. |
--format |
human |
Output format: human, json, markdown, github-actions. |
--release-policy |
(off) | Explicit independently versioned fixed-design policy assessment; selected nonpass exits 1. |
--collection-dir |
(unset) | New paired collection, required with --release-policy; no historical adoption or resume. |
--assurance-contract |
(off) | Explicit independent offline profile; requires --release-policy, --collection-dir and current per-arm inputs. Empty selection fails. |
--baseline-eval, --candidate-eval |
(unset) | Required current eval sources for selected assurance. |
--baseline-context-dir, --candidate-context-dir |
(unset) | Optional per-arm context overrides. |
--baseline-references, --candidate-references |
(unset) | Required current evaluator-only finite authored reference labels for selected assurance. |
--baseline-review, --candidate-review |
(unset) | Optional separately supplied current review declarations. |
--baseline-accept-review-source, --candidate-accept-review-source |
(unset) | Explicit per-arm acceptance of each supplied current review source, not authenticated human review. |
The default exit matrix below is unchanged. Explicit policy mode cannot be combined with legacy baseline/current/threshold/golden/task-set flags. It emits separate compatibility, completeness, assurance, golden, billing, statistical and operational states. Missing required golden evidence, unavailable final billing, missing assurance and an inconclusive comparison are not the same reason. Static preflight declarations never count as observed assurance.
An independent contract permits only an outer waza.release-assured-decision
1.0 pass when both fresh exact offline1.0 reports, retained actual-response
deterministic regrade and every base non-assurance condition pass. The embedded
base decision and API/dashboard remain nonpassing for required assurance.
Assessment rechecks current sources/evidence/review; stored report pass labels
are not adopted. Use --format json for the machine-readable outer contract or
the default human output. Selected assurance does not promise legacy
markdown/GitHub Actions layouts. Its nonpass exit is 1, not the legacy
exit matrix below. No live SDK assurance, calibration, paid1.1/billing support or automatic
paid validation is selected; old executables reject new command/unknown flags.
Exit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
0 |
Pass — within thresholds and policies. |
1 |
Regression — success rate dropped beyond --max-regression-pct, or a task-set policy with fail triggered. |
2 |
Golden failure — at least one task marked golden: true did not pass in --current. Takes precedence over regression. |
3 |
Config error — invalid flags, missing files, or unparseable JSON. |
Golden tasks
Section titled “Golden tasks”Mark a task in your eval YAML as a golden task to enforce that it must always pass:
tasks: - id: critical-flow golden: true prompt: "..." grader: type: exact_match expected: "OK"golden is propagated into results.json so waza gate can read it without re-reading the YAML. Detection is conservative: a task is treated as golden if either the baseline or the current run marks it golden.
Examples
Section titled “Examples”# Basic CI gate: no regression allowed, golden must passwaza gate --baseline baseline.json --current results.json
# Allow up to 5 percentage-point drop, fail on new taskswaza gate --baseline baseline.json --current results.json \ --max-regression-pct 5 --on-new-tasks fail
# Emit GitHub Actions annotations + step summarywaza gate --baseline baseline.json --current results.json \ --format github-actions
# Markdown report (e.g. for posting as a PR comment)waza gate --baseline baseline.json --current results.json \ --format markdown > gate-report.mdSee the CI/CD guide for full GitHub Actions and Azure DevOps snippets.
waza adversarial
Section titled “waza adversarial”Run adversarial packs with an explicit engine. Mock validates harness wiring
only; real skill evaluation requires --skill, --engine copilot-sdk,
authentication/model access and possible usage costs. See the
Adversarial harness guide.
waza adversarial [flags]Every adversarial task is marked golden: true, so unsafe outcomes also flip waza gate to exit 2. The dedicated command additionally enforces an on_unsafe_outcome policy and prints a focused safety summary.
| Flag | Default | Description |
|---|---|---|
--packs |
(all) | Comma-separated pack names. Defaults to every built-in pack. |
--list-packs |
false |
Print the pack catalog (name, task count, description) and exit. |
--spec |
(none) | Inherit adversarial:, graders, and metrics from an eval.yaml. |
--on-unsafe-outcome |
fail |
fail returns exit 2 on any unsafe outcome; warn returns 0. |
--engine |
(inferred) | mock or copilot-sdk. Defaults to copilot-sdk, or mock when --skill is unset. |
--skill |
(none) | Skill name to evaluate. Required for --engine copilot-sdk. |
--model |
claude-sonnet-4-20250514 |
Model id forwarded to the engine. |
--output |
(none) | Write the full results.json to a file. |
--workers |
0 |
Concurrent task workers (0 = sequential). |
--parallel |
false |
Enable parallel task execution. |
--keep-artifacts |
false |
Keep the temp dir holding extracted packs and the synthesized eval.yaml. |
--artifacts-dir |
(temp) | Override the artifacts root (bare relative, ./relative, or absolute path). Implies --keep-artifacts. |
-v, --verbose |
false |
Verbose progress output. |
Exit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
0 |
All adversarial tasks were refused safely (or --on-unsafe-outcome warn). |
2 |
At least one unsafe outcome was observed, and policy is fail. Matches waza gate exit 2 so a single CI step gates both signals. |
3 |
Configuration error — unknown pack, malformed spec, etc. |
Examples
Section titled “Examples”# List built-in packswaza adversarial --list-packs
# Run every pack against a real skillwaza adversarial --skill ./skills/code-review --model gpt-4o
# Run a single pack and tolerate failures (non-blocking CI smoke)waza adversarial --packs prompt-injection --on-unsafe-outcome warn
# Read pack selection + policy from eval.yamlwaza adversarial --spec eval.yaml --output adversarial.jsonwaza spec verify
Section titled “waza spec verify”Verify that eval.yaml covers the executable contract in SKILL.md.
waza spec verify [skill-path] [eval.yaml]The command parses the skill description, USE FOR triggers, DO NOT USE FOR triggers, and parameter blocks into deterministic requirement IDs with source spans. It then loads the eval task files and reports which task IDs exercise each requirement.
Arguments
Section titled “Arguments”| Argument | Description |
|---|---|
[skill-path] |
Path to SKILL.md or a skill directory |
[eval.yaml] |
Path to the eval spec |
| Flag | Description |
|---|---|
--skill |
Path to SKILL.md or a skill directory |
--eval |
Path to eval.yaml |
--format |
Output format: human (default), json, github-actions |
--warn |
Report uncovered requirements and exit 0 (default); set false to suppress GitHub Actions warning annotations |
--fail |
Exit 1 when uncovered requirements are greater than or equal to --threshold |
--threshold |
Uncovered requirement count threshold for --fail (default: 1) |
--semantic |
Opt in to LLM-assisted semantic matching after deterministic matching |
--judge-model |
Judge model for --semantic (defaults to config.judge_model, then config.model) |
Examples
Section titled “Examples”# Human-readable reportwaza spec verify skills/pr-summarizer evals/pr-summarizer/eval.yaml
# Machine-readable reportwaza spec verify --skill skills/pr-summarizer --eval evals/pr-summarizer/eval.yaml --format json
# GitHub Actions annotations and non-zero exit on any uncovered requirementwaza spec verify skills/pr-summarizer evals/pr-summarizer/eval.yaml \ --fail \ --format github-actionswaza interop (v0.40.0)
Section titled “waza interop (v0.40.0)”Offline stdin/stdout conversion of one selected AgentV contains assertion,
not an upstream task or suite:
# From the repository root, using a binary built from this source.adapter=agentv-68df6d2206cea61f721d0445b405efcb5e94aff0-contains-v1waza interop import --adapter "$adapter" --test contains-check --assertion 1 \ < internal/interop/testdata/agentv/suite.yaml > one-native-grader.yamlwaza interop export --adapter "$adapter" < one-native-grader.yaml--adapter requires the exact pin. Import requires an exact --test ID and
1-based --assertion index, outputs one native grader mapping, and explicitly
diagnoses excluded suite semantics. Export accepts one named text grader with
exactly one contains_cs check and outputs one AgentV assertion. Unknown fields
on the selected assertion/native grader fail; no silent grader substitution.
Unknown versions, malformed/ambiguous YAML and invalid selections return exit 2.
These pre-output failures emit no converted stdout. Delivery failures can leave
partial output; a broken pipe may terminate the process instead of returning
exit 2. Discard output from failed commands. Shell redirection can create or
truncate a file before failure.
Input is bounded to 4 MiB; no providers, scripts, reference reads or model calls.
See External Assertion Interoperability for supported fields, licensing, upstream oracle evidence and acceptance gaps. AgentEvals-spec, Harbor, ASSERT and whole-suite AgentV imports are unsupported.
waza migrate
Section titled “waza migrate”Check or migrate a public schema artifact.
waza migrate <file>Legacy eval/result input and reader defaults remain 1.4; task YAML has no
independent version field. Compatible legacy YAML evals use
the eval.yaml/eval.yml filename convention; JSON results are recognized by
their artifact shape, including custom .json filenames.
This legacy input/reader policy is separate from new result emission: evaluations
and regrades from current source write results 1.9 (v0.40.0 writes 1.8; published v0.39.1 writes
1.7). Historical result versions and missing reliability metadata are preserved
when reading/re-saving; migration does not upgrade them.
Compatibility reports select the executing binary’s current version by artifact
type: eval 1.4 or, for current source, result writer 1.9. Missing/1.4 result versions are explicitly labeled as
the legacy reader default alongside the current writer version, not rewritten.
A present scenario header requires a nonblank native string and exact schema
2.0, including in canonical eval.yaml/eval.yml files. Supported scenario
evals are validated without rewriting them. Custom .yaml/.yml filenames,
such as a configured files.evalFile: suite.yml or a custom --output, are
recognized only when the scenario header is present. Task/unrelated YAML and
custom-named legacy YAML are not treated as evals.
This does not extend migration recognition to scenario .json, extensionless
or metadata filenames; JSON dispatch remains results-only even though the
scaffold can emit YAML to other filenames. Use a .yaml/.yml filename when
checking a scenario with migrate. Invalid present headers, unsupported
versions and invalid scenario bodies fail without changing the file. Future
breaking changes will require explicit migration steps here.
Arguments
Section titled “Arguments”| Argument | Description |
|---|---|
<file> |
Path to a schema artifact such as eval.yaml or results.json |
Examples
Section titled “Examples”waza migrate eval.yamlwaza migrate results.jsonwaza migrate evals/inventory/suite.ymlwaza coverage
Section titled “waza coverage”Generate an eval coverage grid for discovered skills and custom agents.
waza coverage [root]Arguments
Section titled “Arguments”| Argument | Description |
|---|---|
[root] |
Root directory to scan (default: current directory) |
| Flag | Description |
|---|---|
-f, --format |
Output format: text (default), markdown, json |
--path |
Additional directories to scan for skills/agents/evals (repeatable) |
Coverage Levels
Section titled “Coverage Levels”- Full: Skill or agent has an
eval.yaml/eval.ymlwith at least one active task discovered throughtasks:or selected throughtasks_from:, and at least 2 distinct grader types. - Partial: Skill or agent has an
eval.yaml/eval.ymlbut fewer than 2 grader types or no selected tasks. Unmatched task patterns and empty CSV selections count as zero tasks. - Missing: No
eval.yaml/eval.ymlfound for the skill or agent.
Note: Coverage now reports both SKILL.md (skills) and .agent.md (custom agents) files. The reported coverage percentage reflects only fully covered items (Fully Covered / Total Skills + Agents).
Examples
Section titled “Examples”waza coveragewaza coverage --format markdownwaza coverage --format jsonwaza coverage --path custom-evals --path agentswaza suggest
Section titled “waza suggest”Generate suggested eval artifacts from a skill’s SKILL.md using an LLM.
waza suggest <skill-path>| Flag | Description |
|---|---|
--model |
Model to use for suggestions (default: project default model) |
--dry-run |
Print suggestions to stdout (default) |
--apply |
Write suggested files to disk |
--force |
Allow --apply to overwrite existing eval/task/fixture files (requires --apply) |
--count <n> |
Generate exactly N tasks (default: at least 3 diverse + 1 negative) |
--focus <category> |
Steer generation toward one of triggers, negative-triggers, edge-fixtures, do-not-use-for, parameters |
--output-dir |
Output directory (default: <skill-path>/evals) |
--format |
Output format: yaml (default), json |
Each suggested task entry carries a confidence value in [0, 1] and a rationale string citing the SKILL.md span it was derived from. Both appear in dry-run / JSON output, but are not written into the task YAML (the task schema rejects unknown fields).
Before writing files, --apply derives a missing or blank string name from the task id (for example, summarize-document becomes Summarize Document). Explicit nonblank names are preserved. Null and other invalid name values still fail task schema validation; dry-run output is unchanged.
--apply is merge-safe by default:
- An existing
eval.yamlis preserved — new task files are picked up by its existingtasks:glob pattern. - New task files refuse to overwrite existing task files (by path or by
id) and print a diff between the existing and suggested task. - New fixtures refuse to overwrite existing fixtures.
- Pass
--forceto overwrite existing eval / task / fixture files.
Examples
Section titled “Examples”# Preview suggestionswaza suggest skills/code-explainer --dry-run
# Generate exactly 5 negative-trigger tasks and merge them into the existing suitewaza suggest skills/code-explainer --focus negative-triggers --count 5 --apply
# Write eval/task/fixture fileswaza suggest skills/code-explainer --apply
# Overwrite a previously generated suitewaza suggest skills/code-explainer --apply --force
# JSON outputwaza suggest skills/code-explainer --format jsonWorked example: focused negative-trigger coverage
Section titled “Worked example: focused negative-trigger coverage”Use --focus negative-triggers when a skill’s DO NOT USE FOR section is underspecified by existing evals:
waza suggest skills/code-explainer --focus negative-triggers --count 2 --dry-runThe dry-run output keeps generation metadata outside the task YAML so the proposed case still validates against the task schema:
tasks: - path: tasks/negative-trigger-deploy.yaml confidence: 0.88 rationale: "matches SKILL.md DO NOT USE FOR: deployment" content: | id: negative-trigger-deploy name: Does not trigger for deployment help inputs: prompt: "Deploy this app to production and configure rollout rings." expected: should_trigger: falseAfter review, merge the proposals:
waza suggest skills/code-explainer --focus negative-triggers --count 2 --applyIf a generated task would replace an existing task path or id, --apply stops and prints a diff. Re-run with --force only after confirming the suggested task should replace the curated one.
waza tokens
Section titled “waza tokens”tokens count and tokens profile reject unsupported --format values with a
nonzero exit; they do not silently fall back to text output.
Token budget management.
waza tokens count
Section titled “waza tokens count”Count tokens in skill files.
waza tokens count [path]waza tokens count skills/code-explainer/SKILL.mdwaza tokens count skills/waza tokens check
Section titled “waza tokens check”Check token usage against budget.
waza tokens check [skill-name]waza tokens check code-explainer# Output:# code-explainer: 420 / 500 tokens (84%)# ✅ Within budgetToken limits are resolved in priority order: .waza.yaml tokens.limits → .token-limits.json (deprecated; migrate to .waza.yaml) → built-in defaults.
See the Token Limits guide for configuration details, pattern syntax, and migration instructions.
Budget checks are advisory (exit 0) unless --strict is supplied. Strict
over-budget checks exit 1, including multi-skill workspace checks. Invalid
explicitly selected input, such as a missing file, exits 2. A strict check
within budget still exits 0.
If a strict batch has both a budget excess and an unreadable skill, exit 2
takes precedence over the budget-only exit 1. Per-skill batch read failures
retain their existing warning-only handling when no strict budget failure is
selected; those batches can exit 0 even with --strict.
Configure per-file limits in .waza.yaml:
tokens: limits: defaults: "*.md": 2000 "skills/**/SKILL.md": 5000 overrides: "skills/complex-skill/SKILL.md": 7500waza tokens compare
Section titled “waza tokens compare”Compare markdown token counts between git refs. Supports general-purpose file-level comparison and skill-aware comparison with CI gating.
waza tokens compare [refs...]# Compare HEAD to working tree (default)waza tokens compare
# Compare a specific ref to working treewaza tokens compare main
# Skill-aware comparison with CI thresholdwaza tokens compare main --skills --threshold 10
# JSON output with strict absolute limitswaza tokens compare main --skills --threshold 10 --strict --format jsonFlags: --format table|json, --show-unchanged, --strict, --skills,
--threshold <percent>
Without --skills, compares all markdown files. With --skills, restricts
comparison to SKILL.md files under configured skill roots (skills/,
.github/skills/, APM .apm/skills/ outputs, and paths.skills from
.waza.yaml). In skills mode the default base ref is origin/main (falling
back to main).
--threshold sets a percentage-change gate for CI — newly added files are
exempt from threshold checks (no baseline to compare) but still subject to
absolute limit checks when --strict is set.
waza tokens profile
Section titled “waza tokens profile”Structural analysis of SKILL.md files — reports token count, section count, code block count, and workflow step detection.
waza tokens profile [skill-name | path]Flags: --format text|json, --tokenizer bpe|estimate
Example:
📊 my-skill: 1,722 tokens (detailed ✓), 8 sections, 4 code blocks ⚠️ no workflow steps detectedWarnings: no workflow steps, >2,500 tokens, fewer than 3 sections.
waza tokens suggest
Section titled “waza tokens suggest”Get optimization suggestions.
waza tokens suggest [skill-name]Analyzes SKILL.md and suggests:
- Sections to shorten
- Removable content
- Restructuring opportunities
waza results
Section titled “waza results”Manage evaluation results from cloud storage or local storage.
waza results list
Section titled “waza results list”List evaluation runs from configured cloud storage.
waza results listwaza results list --limit 20waza results list --format json| Flag | Description |
|---|---|
--limit <n> |
Maximum results to display (default: 10) |
--format |
Output format: table or json (default: table) |
waza results compare
Section titled “waza results compare”Compare two evaluation runs side by side.
waza results compare run-id-1 run-id-2waza results compare run-id-1 run-id-2 --format json| Flag | Description |
|---|---|
--format |
Output format: table or json (default: table) |
waza results import harbor
Section titled “waza results import harbor”Convert a Harbor job directory into waza results JSON so Harbor runs work with the dashboard, waza compare, and baselines.
waza results import harbor jobs/my-job -o results/harbor.jsonwaza results import harbor jobs/my-job --dataset harbor-dataset --skip-unsupportedwaza results import harbor jobs/my-job --eval eval.yaml --judge-model gpt-4oEach Harbor trial becomes one run of its task:
- Verifier rewards in the trial’s
result.jsonbecome grader results withdetails.source: harbor_verifier. A reward without a matching waza grader is recorded with typeharbor_reward. - ATIF trajectories in
agent/trajectory.json(ATIF v1.0–v1.8) become the transcript, tool events, final output, and skill invocations. Tool results are joined bysource_call_id, and Copilotreport_intentcalls are dropped to match native runs. - Usage comes from the trial’s
agent_resultfirst, then ATIFfinal_metrics, then complete per-step metrics. Sources are never summed. - Transcript graders (
action_sequence,behavior,tool_constraint,tool_calls,skill_invocation,text,json_schema, andprompt) run on the host against the imported evidence. Deferredprogramgraders also run there when you opt in (see below). - Tags: Harbor version, agent, model, sandbox type, and skill digests from the job lock are written to
metadata.harbor, along with per-trial verifier rewards, cost, and exception types. Exception messages are withheld because they can contain provider responses or credentials; read them from the job directory. Each trial directory name must match itstrial_name, and duplicate trials are rejected.
Grader configuration comes from --eval or --dataset (the dataset written by waza export harbor). Task paths recorded in the job lock are provenance only and are never read. Without either flag, only verifier rewards are imported and a warning is printed.
A grader is unsupported when the imported evidence cannot grade it honestly: trigger graders, workspace graders (code, file, diff) without a verifier reward, program graders without a verifier reward when neither --eval nor --programs-dir is given, graders on trials with no trajectory or multi-step results, output-dependent graders (text, json_schema, prompt, program) and task output expectations when the trajectory has no usable agent text, skill_invocation with no recorded invocation, with observed invocations that do not already satisfy required_skills, or with absence/exactness checks (forbidden_skills, exact_match, allow_extra: false) because Harbor trajectories may omit skill events, behavior limits without usage or duration, and prompt graders that are pairwise, continue the session, use evidence_context, or have no --judge-model. Unsupported graders make the run an error; --skip-unsupported lists them in metadata.harbor.skipped_graders instead. For multi-step trials, usage, cost, and agent duration are summed from Harbor’s step_results only when every step reports them, and per-step rewards appear in metadata.harbor.trials[].step_rewards.
Program graders. waza export harbor defers program graders unless you pass --filesystem-programs, because they may read the actor output or transcript. Program graders the verifier scored keep their verifier reward. Deferred ones execute local commands, so they run on the host only when you opt in with --eval (relative commands and file arguments resolve against the eval directory) or --programs-dir. They receive the imported final output on stdin and the transcript context file through WAZA_GRADING_CONTEXT. WAZA_WORKSPACE_DIR is an empty temporary directory, because Harbor does not capture the agent workspace; programs that inspect workspace files belong in the verifier.
The importer reads only regular files under the job directory and never writes absolute paths or trial URIs into the results; host paths in program grader output, including absolute commands and arguments outside the programs directory, are reduced to relative paths or basenames.
Imports flag their own gaps instead of guessing:
- A trajectory with no steps is treated as missing. Converter-synthesized ATIF steps (orphan tool results and unparsed Copilot events) are kept in the transcript as system events but never count as the prompt, agent output, turns, or usage. Failed
Skillcalls do not count as skill invocations, and tool results without a success flag stay in the transcript as progress events (counted inmetadata.harbor.trials[].tool_events_omitted). - Cached tokens are reported only when every counted step reports them.
- If the job planned more trials (
n_total_trials) than the directory contains, the import warns and setsmetadata.harbor.incompleteandexpected_trials. - A grader that reports an operational error (for example, a program that fails to launch, or a
textgrader with an invalid pattern) makes the run an error, not a failure. LLM judge usage is recorded in the run’sgrader_sessions. - Export metadata and eval schemas are decoded offline, so external
$refschemas are never fetched. Ajson_schemagrader’sschema_filemust be a relative path that resolves to a regular file inside--programs-dir(or the eval directory); absolute paths, traversal, and symlinks that leave that directory mark the grader unsupported.golden: trueis preserved for--datasetimports.
| Flag | Description |
|---|---|
--eval <path> |
Original eval.yaml that supplies grader configuration |
--dataset <dir> |
Exported Harbor dataset directory containing waza-export.json metadata |
-o, --output <file> |
Write results JSON to this file (default: stdout) |
--skip-unsupported |
Record unsupported graders as skipped instead of failing the run |
--judge-model <model> |
Model for prompt graders; enables host-side judging of the imported output |
--programs-dir <dir> |
Run program graders on the host, resolving relative commands and file arguments against this directory (default with --eval: the eval directory) |
waza cache
Section titled “waza cache”Manage evaluation result cache.
waza cache clear [--cache-dir=.waza-cache]Subcommands
Section titled “Subcommands”waza cache clear
Section titled “waza cache clear”Clear all cached evaluation results.
The cache stores test outcomes to speed up repeated evaluations with the same inputs. Cached results are keyed by spec configuration, task definition, model, fixture file contents, and the bytes of consumed inputs: every file under the configured skill directories, by relative path and content (following symlinks; skipping .git, the run’s cache, transcript and snapshot locations, the --output file and its per-model, per-skill and summary variants, JUnit reporter files, the timestamped run directories and .partial files of --output-dir, and session log files), the selected skill or agent definition and its directory, instruction files, and inputs.context.fixture contents. Editing any of them in place causes a cache miss; if one cannot be read, the task runs uncached.
waza cache clearwaza cache clear --cache-dir /path/to/cache| Flag | Description |
|---|---|
--cache-dir |
Cache directory to clear (default: .waza-cache) |
Examples
Section titled “Examples”# Clear default cachewaza cache clear
# Clear custom cache directorywaza cache clear --cache-dir .my-cachewaza registry
Section titled “waza registry”Discover shared registry artifacts and add remote grader presets to an eval.
Registry discovery uses configured index sources. The default public source is https://github.com/waza-evals; project .waza.yaml files can override sources with:
registries: - name: public url: https://github.com/waza-evals - name: company url: https://github.com/myorg/waza-registry priority: 10waza registry search
Section titled “waza registry search”Search configured registry indexes. The current implementation returns bundled sample metadata while live registry index integration is pending.
waza registry search factualwaza registry search factual --kind graderwaza registry search factual --registry companywaza registry search factual --format json| Flag | Description |
|---|---|
--kind |
Filter by artifact kind: grader, eval, or dataset |
--registry |
Search only the named registry source |
--format |
Output format: table or json (default: table) |
waza registry add
Section titled “waza registry add”Append a remote grader preset reference to eval.yaml, resolve it with the shared remote grader resolver, and update waza.lock with the pinned commit SHA and sha256: content digest.
waza registry add github.com/waza-evals/fact#factuality@v1.0.0waza registry add github.com/waza-evals/fact#factuality@v1.0.0 --eval eval.yamlwaza registry add github.com/waza-evals/fact#factuality@v1.0.0 --name factuality_strict --set config.threshold=0.9Remote program graders require --allow-exec or interactive confirmation before waza.lock marks the ref as trusted.
| Flag | Description |
|---|---|
--eval |
Eval file to update (default: eval.yaml) |
--name |
Local alias for the grader |
--set |
Add a local override as key=value; repeatable |
--allow-exec |
Allow remote program graders without interactive confirmation |
waza dev
Section titled “waza dev”Improve skill compliance iteratively.
waza dev <skill-name | skill-path>waza dev <skill-name...>waza dev --allA single target can be a workspace skill name, a directory, or a SKILL.md
file, using relative or absolute paths. Bare names resolve workspace skills
first, then fall back to existing local directories. Prefix a directory with
./ (or .\ on Windows) to select that path explicitly. Other file targets are
rejected. Multiple positional arguments remain workspace skill names.
waza dev ./skills/code-explainerwaza dev ./skills/code-explainer/SKILL.mdwaza dev SKILL.mdwaza dev .waza dev .\skills\code-explainer\SKILL.mdThe same single-target forms work with --copilot and --scaffold-triggers.
| Flag | Description |
|---|---|
--target |
Target level: low, medium, medium-high, high (default: medium-high; iterative mode only) |
--max-iterations |
Max improvement loops (default: 5) |
--auto |
Auto-apply without prompting |
--copilot |
Generate a non-interactive recommendations report without modifying the skill |
--model |
Model to use with --copilot |
--scaffold-triggers |
Generate tests/trigger_tests.yaml from frontmatter trigger phrases |
--all |
Process all skills in the workspace |
--filter |
Filter --all skills by adherence level |
--target, --max-iterations, and --auto are not valid with --copilot. The report uses trigger_tests.yaml from the workspace eval directory when present. Otherwise it reads the skill’s tests/trigger_tests.yaml, which --scaffold-triggers generates.
The --copilot report reads scaffolded tests/trigger_tests.yaml examples
alongside existing eval cases. --scaffold-triggers only writes the examples;
it does not execute them.
Workflow
Section titled “Workflow”waza dev code-explainer --target high --autoIteratively:
- Scores current compliance
- Identifies issues
- Suggests improvements
- Applies changes
- Re-scores
- Repeats until target reached
waza assure
Section titled “waza assure”Challenge scoped native file/output checks against evaluator-only references without running a task agent.
waza assure eval.yaml --references labels.jsonwaza assure eval.yaml --references labels.json \ --review current-review.json --accept-review-source selected-source \ --output assurance.json| Flag | Meaning |
|---|---|
--references |
Required strict versioned label JSON; relative snapshots are rooted at this document’s directory |
--review |
Separate current-source supplied review declaration |
--accept-review-source |
Explicit evaluator acceptance of that source; not human authentication |
-o, --output |
Write standalone waza.grader-assurance report |
--calibrate |
Currently unavailable: report not assessed with zero paid calls and null usage/credits |
Exit 1 unless the strict finite-corpus assessment passes. Missing evidence,
unknown completeness, unreviewed labels, operational failures and critical
false acceptance cannot pass. Preserved subsets cannot prove missing-path absence.
Executable provenance observes the on-disk file opened at os.Executable(),
not mapped executing bytes, RAM or authenticity. Path replacement may change
the digest or make acquisition fail; unavailable provenance cannot pass.
The portable digest algorithm and binding domain are unchanged. No assurance
cache is reused. Existing grade, run and golden-task semantics are unchanged.
See grader challenges.
The separate internal evaluator API assurance.Calibrate has no default engine
factory. Its version-1.1 report claims require separate explicit consumer
selection; the offline CLI above continues to emit
offline version 1.0. See the
evaluator boundary for selection, notice, supported
rubric modes and missing/operational evidence.
waza assure calibrate
Section titled “waza assure calibrate”This distinctly selected command can incur paid provider usage. It is not enabled
by the existing assure --calibrate flag, and bundled labels remain unreviewed.
waza assure calibrate eval.yaml --references reviewed-labels.json \ --review current-review.json --accept-review-source selected-source \ --rubric-root evaluator-rubrics --accept-paid-calls \ --timeout 10m --output calibrated-assurance.json| Flag | Meaning |
|---|---|
--references |
Required evaluator-only labels and rooted evidence |
--review |
Required separate current supplied review |
--accept-review-source |
Required explicit source acceptance, not human authentication |
--rubric-root |
Required root for original local rubric reads |
--accept-paid-calls |
Default false; explicit acknowledgment for this invocation |
--timeout |
Positive cooperative assessment duration, default 10m; not a spend cap |
-o, --output |
Unix only: atomically replace requested standalone report; also write JSON to stdout |
On other platforms, including Windows, an explicit --output exits 2 before
preflight, producer, paid notice or engine creation. Omit the flag and capture
stdout instead; default stdout remains available on every platform.
Without payment acknowledgment the admitted notice refuses execution with an
empty ledger/null billing. No interactive prompt, generic --yes, model override
or automatic review acceptance is provided. Notice failure blocks construction;
ambient custom-provider redirects are rejected. Reviewed model/protocol and
actual/maximum independent-job counts print to stderr before any owned engine;
these counts do not bound provider follow-ups, retries, credits or money.
Only a clean strict pass exits 0. Ordinary nonpass/refusal exits 1; invalid, operational, canceled, notice-I/O, output or root-close failure exits 2. A nonnil partial report is output even when the API also returns an error. Cleanup uses cooperative deadlines, not forced join. Version-1.1 inspection is explicit and does not certify server isolation, current evidence or human identity.
waza export harbor
Section titled “waza export harbor”Compile a single-turn eval into a Harbor dataset.
Each active task becomes instruction.md, task.toml, environment/Dockerfile,
tests/test.sh, and versioned waza-export.json metadata. Local skills are copied
under /skills/<directory-name> and discovered through environment.skills_dir.
This uses Harbor’s native skill discovery rather than waza’s SDK system-prompt
injection; it does not promise identical agent behavior.
waza export harbor examples/harbor-export/eval.yaml --out ./harbor-tasks \ --output-file report.json --filesystem-programs --solutions-dir examples/harbor-export/solutionsharbor run --path ./harbor-tasks -a oracleharbor run --path ./harbor-tasks -a copilot-cli| Flag | Default | Description |
|---|---|---|
--out |
Required | New dataset directory; existing paths are rejected |
--context-dir |
Task context_dir, then eval-adjacent fixtures/ |
Fixtures copied into /app |
--verifier-binary |
Current executable | Static Linux amd64/arm64 waza executable from the same revision |
--output-file |
Unset | Workspace-relative artifact used as output by text, JSON-schema and script graders |
--solutions-dir |
Unset | Copy reference solutions from <directory>/<task-id>/solve.sh and supporting files |
--filesystem-programs |
false |
Confirm program graders require no actor output or trajectory/tool context |
The verifier executable must implement waza grade harbor. On Linux the current
binary must be statically linked. Windows/macOS callers must supply a Linux
cross-build (CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -tags copilot_no_inprocess -o waza-linux ./cmd/waza, with environment assignments adapted to the shell). The Dockerfile
selects the binary’s Linux architecture. No Go toolchain is needed in the dataset.
The base image includes Bash, Python 3, Node.js and Git; additional dependencies
for custom program graders must be installed in the generated image.
Harbor 0.27 uses --path rather than the older proposed --tasks spelling;
its task loader validates configuration (there is no harbor task lint command).
Grading and isolation
Section titled “Grading and isolation”The verifier runs file and diff graders against a private regular-file copy of
the task workspace. Symlinked submissions and special files (including FIFOs)
fail explicitly; workspace reads are root-confined while capturing the copy.
Program graders normally receive actor output and trajectory context, so they
are deferred unless the author explicitly selects --filesystem-programs.
That opt-in runs them with filesystem state and no actor transcript context.
code (inline script) graders require explicit --output-file selection;
without it they are deferred instead of grading an empty actor response.
Scripts must only depend on filesystem state and,
when selected, the output artifact; there is no transcript or session context.
Text and JSON-schema graders run only with --output-file; otherwise they are
deferred. skill_invocation, behavior, tool_constraint, action_sequence,
prompt, tool_calls and other trajectory-dependent checks are deferred with
warnings. Output expectations are also preserved for host-side grading.
Harbor uploads tests/ after the agent finishes. The verifier binary, grader
definitions, schema files, diff snapshots and detected local program/script
dependencies live there, not in the agent image. Relative program arguments
that name existing eval-relative files are copied and rebased; indirect imports,
external tools, and computed paths remain the task author’s responsibility.
Bundled dependencies must use relative paths within the eval directory; absolute,
traversing and symlinked assets are rejected. Dependencies beneath the fixture
directory are rejected to prevent expected answers appearing in the agent image.
This includes sources materialized through inputs.context.fixture, whether the
source is a directory or a single file.
Private dependency identities are also checked when copying fixtures and skills,
so hardlinked aliases cannot publish verifier-only bytes in the agent image.
Context fixtures accept regular files only and are copied before inputs.files,
so explicitly supplied files override matching context-fixture paths as in native execution.
The skill directory is copied verbatim; do not put private grader inputs in it.
Fixture/skill/resource symlinks are unsupported. Sources are never modified,
and each task gets its own independent fixture copy.
Task-level skill directories override eval-level directories, including explicit
empty scenario overrides. Publication reserves a new destination exclusively
after staging and quarantines the directory under a private random sibling name
before identity-checked failure cleanup. A competing replacement is preserved.
The output parent directory must not be writable by untrusted concurrent processes.
skill_directories: [none] disables skill
discovery and copying, including for skill-free control tasks.
/logs/verifier/reward.json contains one numeric key per executed grader and
aggregate, their weighted mean (unset/nonpositive weights mean 1). The name
aggregate is reserved; duplicate grader names fail export. If all graders are
deferred, aggregate is 0, not a successful verdict. Operational grader errors
return nonzero and do not leave a reward file. Ordinary failed checks yield
numeric scores. Partial filesystem rewards are not a complete waza evaluation.
CSV tasks, multi-turn prompts/responders, checkpoints, hooks, mocks, MCP server configuration, git resources, baseline comparisons, adversarial packs, task requirements, instruction files and workdir/skill-routing overrides are rejected rather than silently dropped.
Export metadata v1
Section titled “Export metadata v1”The optional task field filesystem_programs: true records the explicit program
grader projection opt-in; its absence means program graders must remain deferred.
waza-export.json at dataset root contains schema_version: 1, source_eval
(input path with forward slashes), skill, eval_yaml (captured source),
tasks (task-ID directory names), graders: [] and deferred_graders: [].
The original source path is provenance, not a portable runtime dependency.
Each task has the same metadata at both <task>/waza-export.json and
<task>/tests/waza-export.json, adding task_id, source_task (eval-relative),
task_yaml (captured source) and optional output_file (workspace-relative).
Task manifests omit tasks. graders contains executed grader definitions using
eval YAML keys (name, type, optional weight, config), with dependency
paths rewritten under /tests/assets/. deferred_graders contains
{"grader": <original definition>, "reason": "<explanation>"} entries.
An _expectations entry of type expectations records output expectations;
their original YAML fields remain authoritative in task_yaml.
Consumers must reject unsupported schema_version values and not interpret
empty/partial filesystem rewards as all deferred checks passing.
waza grade harbor
Section titled “waza grade harbor”The generated tests/test.sh invokes this verifier, disabling usage telemetry
and update checks inside the task:
waza --no-telemetry --no-update-check grade harbor /tests/waza-export.json \ --workspace /app --reward /logs/verifier/reward.json--workspace defaults to /app; --reward defaults to the Harbor verifier reward
path. Unlike saved-result waza grade, this subcommand requires no --results
file and never invokes an agent or judge model.
waza grade
Section titled “waza grade”Re-grade previous evaluation results without re-executing the agent.
File-based graders require the actual preserved agent workspace via --workspace. Snapshot hashes and tool events cannot reconstruct those files. Prompt graders may contact the configured judge model.
Final prompt graders with config.evidence_context instead verify the persisted
judge_evidence bundle and create fresh isolated judge sessions, never resuming
saved actor/judge sessions or fetching snapshot_path. Evidence-only grading
does not inspect --workspace. Do not mix it with legacy prompt graders or
--evidence-snapshot; newly selected files must already be captured.
waza grade examples/evidence-judge/eval.yaml --results results.json --task report --output regraded.jsonThis can incur new model charges. Original execution billing is unchanged; new
sessions appear in regrade_usage. Ordinary failed judgments retain grade’s
zero exit with passed: false / status: failed. Operational evidence/judge
errors return nonzero, status: error and no overall_score; requested output
retains admitted-source run diagnostics, and output-write errors propagate.
See frozen judging configuration and prerequisites.
The narrow --evidence-snapshot mode verifies captured file contents instead.
It requires --task, exactly one assessed matching run, original manifest
SHA-256/full-origin verification, complete unredacted required files and text
digests, and no explicit --workspace. Cached source eval IDs can differ while
task/run/attempt identity must match. No snapshot_path is fetched implicitly.
Only file graders with explicit required must_exist / content_patterns paths
are supported; wildcard/absence checks, no-explicit-file-check graders, and
all non-file graders and output-based expectations are rejected before
materialization. Only required files are privately materialized; checks cover
that captured subset, not original-workspace absence. must_not_match checks
only its selected file’s complete verified text.
Older workspace grading remains unchanged.
Regrading retains source_manifest_sha256 and invalidates original
result/validation/grader-configuration/checkpoint links. Original checkpoints
do not observe new declarations. Inspection adds no automatic paid calls.
See capture and regrading limits.
waza grade <eval.yaml>| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--results |
string | Required. Path to waza run output JSON |
||
--task |
string | Grade a specific task ID only | ||
--workspace |
string | . |
Agent workspace directory for file-based graders | |
--evidence-snapshot |
string | Explicit reviewed snapshot for verified file-only regrading on Linux/macOS; requires --task and is incompatible with explicit --workspace |
||
--judge-model |
string | Model for prompt graders (overrides execution model) | ||
--output |
-o |
string | Write full EvaluationOutcome JSON | |
--verbose |
-v |
bool | false | Verbose output |
Examples
Section titled “Examples”# Grade all tasks from a previous runwaza grade eval.yaml --results results.json
# Grade a specific taskwaza grade eval.yaml --results results.json --task "basic-function"
# Use a different judge modelwaza grade eval.yaml --results results.json --judge-model claude-opus-4.6
# Save graded results for comparisonwaza grade eval.yaml --results results.json -o graded.json
# File-only regrading of one assessed run from reviewed captured contentswaza grade eval.yaml --results results.json --task report-task \ --evidence-snapshot ./reviewed-snapshot.json -o regraded.jsonwaza session
Section titled “waza session”Manage and inspect session event logs.
waza session list
Section titled “waza session list”List session event logs in a directory.
waza session list [--dir <path>]| Flag | Type | Default | Description |
|---|---|---|---|
--dir |
string | . |
Directory to search for session logs |
waza session view
Section titled “waza session view”Render a session timeline from an NDJSON event log.
waza session view <session-file>waza optimize
Section titled “waza optimize”Released in v0.41.0. Let an optimizer adapter propose skill or context candidates, which the normal harness evaluates against a pinned suite, with held-out qualification.
waza optimize capabilitieswaza optimize run examples/optimizer/eval.yaml \ --target context-overlay --seed examples/optimizer/seed \ --optimization-tag optimization --qualification-tag qualification \ --adapter fake --fake-script examples/optimizer/fake-script.json| Flag | Default | Description |
|---|---|---|
--adapter |
fake |
fake, command or copilot-reflect |
--target |
skill-directory |
skill-directory or context-overlay |
--seed |
(required) | Directory with the seed candidate files |
--optimization-tag |
(required) | Task tag(s) for the optimization split (repeatable) |
--qualification-tag |
(required) | Task tag(s) for the held-out qualification split (repeatable) |
--max-iterations |
5 |
Maximum adapter proposals |
--max-evaluations |
10 |
Maximum harness evaluations, including 2 reserved for qualification |
--timeout |
0 (none) |
Deadline for the whole run; negative values are rejected |
--min-improvement |
0 |
Required optimization-split gain over the seed (finite and non-negative) |
--output-dir |
waza-optimize-<timestamp> |
New or empty directory for report.json, evidence and candidates |
--context-dir |
<eval dir>/fixtures |
Context directory for the suite |
--model |
spec model | Override the evaluation model |
--reflect-model |
eval model | Model for copilot-reflect (required when the eval model is mock) |
--fake-script |
Strict JSON proposals for the fake adapter |
|
--adapter-command, --adapter-arg |
Executable and arguments for the command adapter |
|
--adapter-env |
Extra environment variable name passed to the command adapter (repeatable) | |
--adapter-timeout |
10m |
Per-call timeout for the command adapter |
--allow-paid-calls |
false |
Consent to paid calls. Required by command and copilot-reflect, and by any executor other than mock |
Outcomes accepted, no_improvement and rejected exit 0. Outcomes
not_qualified, failed and incomplete exit 1, and report.json names the
failure category. Waza never enforces a provider spending cap. See
Optimizer Adapters.
waza aggregate
Section titled “waza aggregate”Released in v0.41.0. Aggregate completed public manifests without agents or original worker ownership. Explicit existing local stores only.
waza aggregate --store .waza-artifacts "$MANIFEST_SHA256" -o aggregate.jsonwaza aggregate --store .waza-artifacts --inputs inputs.json -o qualified.json--inputs selects a nonempty JSON reference array (at most 128 manifest/evidence
pairs), mutually exclusive with positional digests. --store defaults to
.waza-artifacts; no ambient provider discovery occurs. -o, --output
exclusively creates a new canonical JSON file. Evaluated incomplete/conflicting
reports are saved and emitted before a nonzero exit. Existing files are never
replaced. Complete admission is not terminal success or execution attestation;
historical usage is unavailable instead of an invented partial total.
See worked examples, conflict rules and migration.
waza artifact
Section titled “waza artifact”Released in v0.41.0. Publish and verify immutable artifacts without executing a runner. Create the private local root first:
mkdir -m700 .waza-artifactswaza artifact create manifest.json --store .waza-artifactswaza artifact upload manifest.json terminal terminal.json --store .waza-artifactswaza artifact finalize "$DIGEST" --store .waza-artifactswaza artifact inspect "$DIGEST" --store .waza-artifactscreate returns the canonical manifest digest used as DIGEST; upload names
an exact declared artifact. Exit 0 means the selected operation completed;
invalid input, partial/corrupt/conflicting content, storage and output failures
exit 2. inspect can return a JSON diagnostic receipt and still exit nonzero.
Publication is unknown without a usable marker observation or after an
ambiguous finalization write; only observed marker absence is unfinalized.
Use --azure-container-url https://account.blob.core.windows.net/container
instead of --store for Azure; existing credentials are required and no login
is launched. --store defaults to .waza-artifacts and must already exist.
Neither flag changes legacy mutable result storage. Verification is content and
declared context only, not admission or execution attestation.
See manifest examples, recovery and migration.
waza isolation preflight
Section titled “waza isolation preflight”Available in v0.42.0. Probes the isolation boundaries an available
provider claims by attempting each violation, then matches them against a
request and prints the waza.execution-isolation-preflight 1.0 report. Waza
enforces no boundary itself; the Copilot-native sandbox (#544) is reported
absent. See Execution isolation.
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--request |
string | Isolation request JSON; without it every dimension is unrestricted (discovery only) | ||
--host |
string | Host isolation declaration JSON; each claimed dimension is probed | ||
--workspace |
string | fresh temp dir | Workspace used by the filesystem probe | |
--output |
-o |
string | Also write the report to this file; it must not be the request or host file and must not already exist |
Exit codes: 0 admitted, 1 a requested boundary is unavailable, 2 invalid input.
waza isolation preflight --host host.jsonwaza isolation preflight --request request.json --host host.json -o isolation.jsonwaza runner
Section titled “waza runner”runner adapt --eval <file> --task <file> --run-key <key> --shard <key> --task-id <id> --trial 1 --attempt 1 captures a compatible local mock/text suite
offline as request JSON. --timeout-ms optionally asserts its effective timeout.
To preserve local result JSON instead, use run <file> --runner-compat --output <file>. See local compatibility and migration
for the exact supported profile, rejected flags and before/after examples.
Available in v0.40.0: inspect supported runner versions/capabilities and check compatibility without starting an eval or model:
waza runner capabilitieswaza runner negotiate < examples/runner/negotiation.jsonwaza runner validate < examples/runner/unit.jsonwaza runner run < examples/runner/unit.jsonThe negotiate command takes one JSON request on stdin and writes one
waza.runner-negotiation response to stdout. Exit 0 means compatible, 5 means
unsupported version/capability, 6 means invalid request, and 2 means output
failure. These are negotiation exits, not new meanings for local waza run.
validate checks a complete captured request without a runtime; run executes
exactly one inline text attempt with no discovery, cache or retries.
Mock requests require inline.mock-text; production Copilot/text requests
require inline.copilot-text, an explicit model and allow_paid_execution: true.
Both disable ambient skills; Copilot/text also denies all tools. Validate
examples/runner/copilot-unit.json offline before explicitly running it
(each dispatch may incur charges). General native file/tool/skill workflows
remain unsupported. The receipt
is waza.runner-unit for offline validation, and waza.runner-terminal for run.
Run exits: 0 success, 1 failed checks, 2 infrastructure/output failure,
3 cancellation, 4 timeout, 5 incompatible runner requirements,
6 invalid input. Paid consent alone does not enable an unsupported profile.
See terminal outcomes, schema and migration.
For a local image build and exact mock/text stdin/stdout invocation, see the
local runner container reference.
Admitted receipts carry identity version sha256-waza-c14n-v1, canonical input
digest and logical lineage; validation alone derives it without execution.
Save stdout with > validation.json; identity is not proof of execution or
duplicate suppression. See logical identity fields and migration.
See Runner contract, schemas, API and migration.
Execution budgets (available in v0.42.0)
Section titled “Execution budgets (available in v0.42.0)”waza runner budgetswaza runner run < examples/runner/budget-unit.jsonbudgets prints this host’s waza.execution-budget-capabilities matrix (also
GET /api/v1/runner/budgets): which of wall_time_ms, model_turns,
tool_calls, cpu_time_ms, memory_bytes, disk_bytes and process_count
are enforced or measured on this OS. A request’s optional budgets.limits are
checked before execution; with the default budgets.unsupported: "reject", an
unenforceable limit exits 5 with diagnostic unsupported_budget and zero engine
calls. Wall time exceeded exits 4 and model/tool budgets exceeded exit 3, each
with diagnostic budget_exceeded. The terminal budget field reports limits,
usage and termination. See execution budgets.
Submission and lineage commands (v0.41.0+)
Section titled “Submission and lineage commands (v0.41.0+)”waza runner submit --store .waza-artifacts < submission.jsonwaza runner lineage --run RUN_ID --work WORK_ID --store .waza-artifactssubmit reads one waza.execution-submission wrapper on stdin and emits one
capture-approved waza.execution-submission-result. Policy distinct (default)
always reserves a new execution ID; add policy.parent with relationship
retry or branch to link it. Policy reuse names a verified finalized
source and makes zero engine calls. Existing records are never overwritten.
Exits follow the original terminal (0, 1, 3, 4); invalid input exits 6 and
storage failures exit 2 with raw causes on stderr only.
lineage prints one read-only waza.execution-lineage
document: attempts in parent order (not wall-clock), retry parents, reuse
decisions, and diagnostics for concurrent writers, missing parents and
dispatched attempts without completion. Each attempt carries a derived
lifecycle (state, cancellation, deadline, partial completion, advisory retry
eligibility and allowed actions). --stale-after DURATION sets when a
dispatched attempt with a silent lifecycle journal is reported as orphaned
(default: three heartbeat intervals). It exits 6 for malformed IDs or a
negative --stale-after, and 2 when
the store is unavailable, truncated or contains unreadable records.
--store and --azure-container-url behave as for checkpoint commands. See
logical work and attempts
and execution lifecycle.
Telemetry command (available in v0.42.0)
Section titled “Telemetry command (available in v0.42.0)”waza runner telemetry --terminal terminal.json --manifest manifest.json --out-dir telemetry/waza runner telemetry --terminal terminal.json --otlp-endpoint http://localhost:4318telemetry derives correlated, payload-free OpenTelemetry-shaped traces,
metrics and logs from published contract documents and prints one
waza.execution-telemetry
report. --terminal is required; --manifest, --attempt, --lineage,
--report (results JSON) and --aggregate add attempt, artifact, model, tool
and aggregation detail and must describe the same run and work.
--scheduler-work-id records an external scheduler ID as a resource attribute.
--payload-policy is exclude (default) or digest (SHA-256 and length
surrogates only; there is no raw mode). --out-dir writes
traces.otlp.json, metrics.otlp.json, logs.otlp.json and
telemetry-report.json to a new-file directory; --otlp-endpoint posts OTLP/HTTP
JSON to /v1/traces, /v1/metrics and /v1/logs with repeatable
--otlp-header key=value values that are never recorded. It exits 6 for invalid
or uncorrelated input and 2 when any export fails (the report is still printed).
See execution telemetry correlation.
Checkpoint commands (v0.41.0+)
Section titled “Checkpoint commands (v0.41.0+)”waza runner checkpoint create --store .waza-artifacts < submission.jsonwaza runner checkpoint availability CHECKPOINT_SHA256 --store .waza-artifacts < submission.jsonwaza runner checkpoint resume CHECKPOINT_SHA256 --store .waza-artifacts < submission.jsonavailability is a read-only resume preflight: it executes, reserves and repairs
nothing, and prints one waza.runner-checkpoint-availability
record. available (exit 0) includes the boundary, creation time, original
execution and resume action; unavailable or rejected (exit 6) carries a
stable code with fixed guidance; storage or build failures are operation_error
(exit 2). See the troubleshooting table.
Both require one waza.execution-submission wrapper on stdin, not a bare runner
request, and a clean VCS-stamped Waza CLI. create accepts no positional
arguments; availability and resume require one full lowercase SHA-256 checkpoint digest.
--store defaults to .waza-artifacts, an existing private local directory.
Alternatively use --azure-container-url with existing authorized credentials;
it is mutually exclusive with --store and does not initiate interactive login.
Stdout is one capture-approved waza.runner-checkpoint-result JSON record.
Stderr reports checkpoint BOUNDARY DIGEST after each published checkpoint.
Finalized restore makes zero new engine calls and preserves original terminal
exits, including failed checks 1, cancellation 3, and timeout 4. Invalid input
or rejected restore exits 6; checkpoint publication and output failures exit 2.
Store-open/close failures emit result version 1.1 with top-level status
operation_error, exit code 2, and a stable sanitized error_code; ordinary
results remain strict version 1.0. A close failure after execution preserves
the capture-approved submission, source and checkpoint references when their
linkage is valid, without changing the submission’s own status/exit. An admitted
source without valid linkage is marked source_withheld: true. Raw causes
remain on operator stderr.
Treat these levels separately: top-level exit 2 can coexist with a preserved
completed or reused submission whose nested exit is 0.
A reference can survive a failed publication and is not a success claim.
See the complete workflow and recovery limits.
Installed v0.40.x artifacts do not contain these commands.
External adapter commands (available in v0.42.0)
Section titled “External adapter commands (available in v0.42.0)”waza runner adapter translate < descriptor.jsonwaza runner adapter dispatch --store .waza-artifacts < descriptor.jsonwaza runner adapter dispatch --endpoint http://127.0.0.1:3000 < descriptor.jsonwaza runner adapter dispatch --provenance-verifier ./verify-manifest \ --provenance-verifier-arg=--offline < descriptor.jsontranslate reads one waza.adapter-work-descriptor
on stdin and prints one offline waza.adapter-translation
naming the single public call (runner submit, runner checkpoint create,
runner checkpoint resume or runner lineage) and its exact stdin. It exits 0,
or 6 when the descriptor is rejected (scheduler fields, ambiguous or incomplete
input). dispatch performs that one call and prints one
waza.adapter-result with the
status and returned manifest digest. --store and --azure-container-url are
forwarded verbatim to the public subcommand of this binary (or --waza PATH);
--endpoint URL uses the public HTTP route instead and cannot be combined with
them. Rejected descriptors exit 6 without a call; transport failures or replies
that contradict their published schema exit 2 as contract_error. The adapter
never queues, places, prioritizes or retries. The optional verifier receives
manifest_digest and the public result JSON on stdin and must return a single
JSON object with state set to verified, failed, or unavailable. The
adapter limits verifier runtime and I/O, but treats its executable as
operator-trusted and does not authenticate its assertion. See
portable external execution adapters.
Provenance commands (available in v0.42.0)
Section titled “Provenance commands (available in v0.42.0)”waza runner provenance keygen --private-key signing.pem --public-key signing.pub.pemwaza runner provenance generate --request unit.json --manifest manifest.json \ --artifacts objects/ --policy release-policy.json \ --image-reference ghcr.io/org/waza-runner:0.42.0 --image-digest sha256:<64 hex> \ --signing-key signing.pem --out provenance/waza runner provenance verify --bundle provenance/ --public-key signing.pub.pem \ --expect-image-digest sha256:<64 hex>generate writes a new bundle directory holding an in-toto v1 statement in a
DSSE envelope (provenance-statement,
provenance-bundle). The
statement binds the canonical request digest, runner API version, runner image
digest, Waza version, policy, runtime and model identity, artifact manifest and
objects, and the terminal outcome. Every claim is required; generation exits 2
rather than emit a bundle with an unavailable claim. --signer defaults to
local-ed25519 (unchanged). Opt-in sigstore-keyless uses GitHub Actions OIDC
and public-good Fulcio/Rekor v1; managed-kms remains unavailable (exit 5).
Keyless generation requires --trusted-root FILE and job permissions
id-token: write / contents: read, GitHub’s ambient OIDC URL/token and HTTPS
egress. Missing OIDC or signing-service failure exits 5; bad inputs/root exit 2.
--bind kind=path adds a member bound by digest for a registered
binding kind.
verify runs offline and prints one
waza.provenance-verification
report: exit 0 when every check passed, 1 when any check failed (altered,
missing or unbound member, untrusted key, false claim), 2 for invalid flags or
keys or trust/identity policy. Local-key trust comes from --public-key.
Keyless verification requires the trusted root, exact issuer, and exactly
one of the two identity flags:
| Flag | Keyless contract |
|---|---|
--trusted-root FILE |
Verifier-owned Sigstore trusted-root JSON acquired separately through authenticated TUF; also required for keyless generation |
--certificate-oidc-issuer ISSUER |
Exact issuer; GitHub is https://token.actions.githubusercontent.com |
--certificate-identity IDENTITY |
Exact workflow certificate SAN, including repository, workflow path and ref |
--certificate-identity-regexp REGEXP |
Alternative to exact identity, not an additional flag; must be anchored with ^ and $ and narrowly scoped |
waza runner provenance generate --signer sigstore-keyless \ --trusted-root trust/sigstore-trusted-root.json \ --request unit.json --manifest manifest.json --artifacts objects/ \ --policy release-policy.json --image-reference "$RUNNER_IMAGE_REFERENCE" \ --image-digest "$RUNNER_IMAGE_DIGEST" --waza-version "$WAZA_VERSION" \ --out provenance/waza runner provenance verify --bundle provenance/ \ --trusted-root trust/sigstore-trusted-root.json \ --certificate-oidc-issuer https://token.actions.githubusercontent.com \ --certificate-identity 'https://github.com/OWNER/REPO/.github/workflows/execution-provenance.yml@refs/heads/main' \ --expect-image-digest "$EXPECTED_RUNNER_IMAGE_DIGEST" \ --expect-waza-version "$EXPECTED_WAZA_VERSION"These commands consume the actual completed request/manifest/objects/policy;
set the image/version values from actual execution records and the verifier’s
independent expectations. Keyless generation runs in Actions, not a local
terminal. Do not combine --public-key with keyless flags (exit 2).
Waza never downloads a root or trusts one from the execution bundle.
sigstore.bundle.json retains the certificate, matching DSSE and transparency
evidence for network-free verification. Invalid evidence exits 1 with a failed
report; invalid root/flags exit 2. The exact identity rejects other repositories,
workflow paths and refs; use @refs/tags/TAG for a separately approved tag policy.
--expect-image-digest,
--expect-waza-version and --expect-policy-sha256 pin declared claims. See
execution provenance for the prerequisite
checklist, authenticated TUF acquisition commands, full workflow, scoped
regexp example and troubleshooting. Public-good signing publishes certificate
identity and digests in Rekor and sends the statement to the service; do not
sign secrets/private artifacts. Signing stays opt-in, is not a release
requirement, and adds no pipeline automatically. Lab/API verification remains
local-key only.
--bind component-inventory=runner.cdx.json binds a runner image component
inventory; verify --require-inventory fails with binding_required_missing
unless the bundle binds one for the signed image digest.
Component inventory commands (available in v0.42.0)
Section titled “Component inventory commands (available in v0.42.0)”waza runner inventory generate --name ghcr.io/org/waza-runner --digest sha256:<64 hex> \ --go-binary ./waza --embedded-dir internal/embedded --dpkg-status ./dpkg-status \ --os-release ./os-release --out runner.cdx.jsonwaza runner inventory generate --subject plugin --name example-plugin \ --subject-file example-plugin.tgz --from-cyclonedx deps.cdx.json --out plugin.cdx.jsonwaza runner inventory verify --inventory runner.cdx.json --image-digest sha256:<64 hex> \ --image-reference ghcr.io/org/waza-runnerwaza runner inventory verify --inventory plugin.cdx.json --plugin example-plugin.tgzgenerate writes a new, deterministic CycloneDX 1.6 inventory
(component-inventory)
bound to the image or plugin sha256 digest (--digest or --subject-file).
Sources are --go-binary, --embedded-dir (bundled Copilot CLI and runtime payloads
found byte-for-byte in a --go-binary), --dpkg-status, --os-release, --file and
--from-cyclonedx (all repeatable where meaningful). It exits 2 rather than
emit an inventory without an immutable digest, and never overwrites --out.
verify runs offline and prints one
waza.inventory-verification
report: exit 0 when the inventory is bound to the consumed digest, 1 when it is
missing, malformed, altered, bound to another image or plugin, or no digest was
supplied, 2 for invalid flags. See
component inventories.
Production integration assurance package (source checkout)
Section titled “Production integration assurance package (source checkout)”go run ./cmd/waza runner assurance buildgo run ./cmd/waza runner assurance build --format markdownassurance build validates the versioned
waza.production-integration-assurance 1.0 package,
its local evidence references, the referenced contract schemas, and the linked
existing Lab guides. JSON package output is the default; --format markdown
renders the published conformance matrix, threat model, readiness checklist,
verification limits, migration notes, and links to the #769–#774 evidence
views. This maintainer command is offline and requires a Waza source checkout.
--candidate-evidence INPUT --evidence-root DIR additionally requires the exact
workflow-run and uploaded artifact identity, checks the artifact’s listed file
digests and qualification outputs, and binds the generated package to that
candidate or tag-run evidence.
See the production integration assurance guide.
waza serve
Section titled “waza serve”Standalone v0.40.0 also exposes negotiation and exact-unit validation/run through HTTP. See Runner contract and API for routes and schemas.
Start the interactive dashboard.
For JSON-RPC, eval.list recursively lists canonical eval.yaml/eval.yml
files plus native-loadable scenario .yaml/.yml files with configured/custom
names. Classification and native loading determine eligibility, not full
authoring-schema or task validation.
MCP waza_eval_list uses the same handler. Custom absent or
classification/loading-invalid scenario, task, unrelated and legacy YAML
remains unlisted; use eval.get/eval.validate
for diagnostics. Canonical invalid-file fallback and caller-root traversal
are unchanged. No depth/vendor exclusions or filesystem containment are added;
HTTP dashboard result listing is unchanged.
waza serve| Flag | Description |
|---|---|
--port |
Port (default: 3000) |
--lab |
Open the experimental real-results dashboard at /#/lab; classic dashboard remains at /#/ |
--results-dir |
Directory to scan for saved result artifacts (default: .) |
--no-browser |
Print the dashboard URL without opening a browser |
--tcp |
TCP address for JSON-RPC (e.g., :9000) |
Examples
Section titled “Examples”waza serve # http://localhost:3000waza serve --port 8080 # http://localhost:8080waza serve --lab --results-dir ./results # http://localhost:3000/#/labwaza serve --tcp :9000 # JSON-RPC TCP server--lab and --tcp are mutually exclusive. The experimental lab
refreshes saved results, exposes actual task evidence, and exports reports.
Its activity stream replays artifact-derived events, not live worker state.
Unsupported readiness/coverage checks and revision metadata remain unavailable.
The synthetic demo is separate at /#/lab/demo, never an API-error fallback.
AI Credit usage
Section titled “AI Credit usage”Copilot-backed runs query the SDK’s typed session.usage.getMetrics after completion for authoritative final AI Credits (totalNanoAiu ÷ 1e9), falling back to shutdown metrics if the RPC is unavailable. Waza does not compute credits from its token rate table.
| Field | Description |
|---|---|
summary.usage.ai_credits |
Final AI Credits for the run |
summary.usage.model_metrics.<model>.ai_credits |
Final AI Credits attributed to a model |
summary.usage.model_metrics.<model>.{input,output,cache_read,cache_write}_tokens |
Token-category diagnostics |
The CLI usage summary prints AI Credits (and a per-model column) at nano-unit precision, and the classic dashboard shows AI Credits plus a Usage by model table. Totals include task, trigger, and prompt-grader sessions initiated by waza, not account-wide Copilot usage. A run or model aggregate with missing contributing metrics is unavailable, never a partial subtotal. Published standalone v0.42.2 and v0.42.1 use github.com/microsoft/copilot-sdk/go/v2 v2.0.1 with bundled CLI 1.0.114. Standalone v0.42.0 used github.com/github/copilot-sdk/go v1.0.34 with bundled CLI 1.0.112; standalone v0.40.0 used SDK v1.0.28 with bundled CLI 1.0.105; published standalone v0.39.1 used SDK v1.0.21 and CLI 1.0.85. Older result artifacts show — in the dashboard (n/a in the CLI) rather than an estimate.
waza telemetry
Section titled “waza telemetry”Manage product usage telemetry. Every subcommand is local-only, sends nothing, and is never itself collected. Released builds collect allowlisted, pseudonymous usage events on developer machines and never in CI; see Product Usage Telemetry to opt out.
waza telemetry status # Show whether collection is active and whywaza telemetry disable # Persistently disable and delete the installation IDwaza telemetry enable # Remove a persistent disable (opt-outs still win)waza telemetry reset-id # Delete the installation IDSettings are stored in ~/.waza/telemetry.json. Any opt-out
(WAZA_TELEMETRY_OPTOUT=1, --no-telemetry, waza telemetry disable,
telemetry.disabled in .waza.yaml, DO_NOT_TRACK=1, or
AZURE_DEV_COLLECT_TELEMETRY=no) wins over every other setting.
Graders
Section titled “Graders”Waza supports multiple grader types for comprehensive evaluation. See the complete Grader Reference for detailed documentation.
Built-in Graders
Section titled “Built-in Graders”| Grader | Purpose |
|---|---|
code |
Python/JavaScript assertion-based validation |
regex |
Pattern matching in output |
file |
File existence and content validation |
diff |
Workspace file comparison with snapshots |
behavior |
Agent behavior constraints (tool calls, tokens, duration) |
action_sequence |
Tool call sequence validation with F1 scoring |
skill_invocation |
Skill orchestration sequence validation |
prompt |
LLM-as-judge evaluation with rubrics |
tool_constraint |
Validate tool usage constraints (e.g., required/forbidden tools, argument patterns) |
trigger |
Prompt trigger accuracy — detects whether a prompt should activate a skill |
tool_constraint Grader
Section titled “tool_constraint Grader”Validate agent tool usage constraints during evaluation.
graders: - type: tool_constraint name: check_tools config: expect_tools: - tool: "bash" # Required tool call command_pattern: "azd\\s+up" # Optional regex on the command argument - tool: "skill" skill_pattern: "my-skill" # Optional regex on the skill argument - tool: "edit" path_pattern: "\\.go$" # Optional regex on the path argument reject_tools: - tool: "bash" # Prohibited when args match this pattern command_pattern: "rm\\s+-rf" # Optional regex on the command argument - tool: "create_file" # Always prohibitedAll config fields are optional. Omitted fields skip that constraint.
prompt Grader with Pairwise Mode
Section titled “prompt Grader with Pairwise Mode”Use the prompt grader for LLM-as-judge evaluation. In pairwise mode, compare two approaches side-by-side to reduce position bias.
graders: - type: prompt name: code_quality_judge config: mode: pairwise # Enable pairwise comparison (requires --baseline flag) rubric: "Compare these solutions for code quality and correctness" max_tokens: 500Requirements:
- Pairwise mode requires the
--baselineflag onwaza run - The skills-disabled baseline pass completes before the skills-enabled pass
- Outputs are matched by task ID and trial; the final retry attempt is compared
- A successful empty output is valid, but a missing or failed baseline output stops the comparison
- Each task is evaluated twice: once without the skill (baseline) and once with it (treatment)
- Pairwise grading is not supported by saved-result
waza grade; rerun withwaza run --baseline - Pairwise judgments decide skill impact and the exit code: judged tasks contribute
(skill_wins - baseline_wins) / judgments, other tasks their pass-rate delta, and the run exits1unless the mean is positive (counts are saved inskill_impact.pairwise_summary)
Example:
waza run eval.yaml --baseline -o results.json# Output includes pairwise judge scores comparing baseline vs treatment approacheswaza quality
Section titled “waza quality”Evaluate skill content quality using an LLM-as-Judge. Scores the skill across five dimensions: clarity, completeness, trigger precision, scope coverage, and anti-patterns.
waza quality <skill-path>| Flag | Type | Default | Description |
|---|---|---|---|
--model |
string | project default | Model to use as judge |
--format |
string | table |
Output format: table or json |
--rubric |
string | Path to custom rubric file (reserved for future use) |
Output
Section titled “Output”Displays a table with dimension scores (1-5), visual bars, and feedback:
DIMENSION SCORE FEEDBACK──────────────────────────────────────────────────────────────────────clarity ████░ Instructions are clear and well-structured.completeness ███░░ Missing some edge case documentation.trigger_precision █████ USE FOR and DO NOT USE FOR are precise.scope_coverage ████░ Scope is well-defined with clear boundaries.anti_patterns ███░░ Some steps could be more specific.──────────────────────────────────────────────────────────────────────Overall: 3.8/5.0
A solid skill with good clarity and triggers.Authentication
Section titled “Authentication”Requires Copilot authentication when using the default provider. If not authenticated, you will see:
Error: not authenticated — run "copilot login" firstExamples
Section titled “Examples”# Table output (default)waza quality skills/code-explainer
# JSON output for CI pipelineswaza quality skills/code-explainer --format json
# Use a specific judge modelwaza quality skills/code-explainer --model gpt-4owaza models
Section titled “waza models”List models available for evaluation via the Copilot SDK.
waza models [flags]| Flag | Type | Default | Description |
|---|---|---|---|
--json |
bool | false | Output as JSON |
Output
Section titled “Output”Displays a table with model ID, name, vision support, and context window size.
MODEL ID NAME VISION CONTEXT WINDOW──────────────────────────────────────────────────────────────claude-sonnet-4 Claude Sonnet 4 no 200kgpt-4o GPT-4o yes 128k
2 models availableAuthentication
Section titled “Authentication”Requires Copilot authentication. Custom provider configuration only applies when creating or resuming Copilot SDK sessions. If not authenticated, you will see:
Error: not authenticated — run "copilot login" firstExamples
Section titled “Examples”# List all models in table formatwaza models
# List models as JSON (for scripting)waza models --jsonExit Codes
Section titled “Exit Codes”| Code | Meaning |
|---|---|
0 |
Success |
1 |
One or more tasks failed |
2 |
Configuration or runtime error |
For run, an operational execution or grader error takes precedence over
completed failed judgments: the task is error, contributes to summary.errors,
and exits 2 after saving requested completed results. A passing trial does not
erase another trial’s operational error. Completed negative judgments remain
failed and exit 1; skipped trials remain neutral. This precedence also applies
across baseline passes, models, and skills. Regrading valid frozen output can
replace a failed judge setup with a new verdict without changing execution
billing; historical readers do not rewrite old classifications.
When a grader errors after earlier graders completed, those completed results
are saved in the run’s optional partial_validations map. It is incomplete
evidence, not a verdict: it is never scored or counted toward pass/fail. The run
stays error with an empty validations map, and blocked graders are absent
rather than synthesized. Checkpoint errors behave the same way:
validations holds only _checkpoint_error and completed checkpoint graders
appear in partial_validations; a later final grader error keeps those
checkpoint outcomes. waza grade reports only what it grades
itself, so partial results recorded in the source run, including its
checkpoint outcomes and runs left ungraded after an error, are not carried
over into the regraded output.
Release-policy 1.0 results artifacts omit partial_validations.
Global Flags
Section titled “Global Flags”| Flag | Description |
|---|---|
--help |
Show help |
--version |
Show version |
--verbose |
Enable debug output |
--no-update-check |
Disable automatic version update check |
--no-telemetry |
Disable product usage telemetry for this invocation and its child processes |
Automatic Update Check
Section titled “Automatic Update Check”Waza checks for newer versions in the background when you run any command. If an update is available, a one-line notice is printed after the command output:
A newer version of waza is available: v0.24.0 → v0.28.0. Run: curl -fsSL ... | bash- The check is non-blocking — it never slows down your command.
- Results are cached for 24 hours in
~/.waza/version-check.json. - Disable with
--no-update-checkor setWAZA_NO_UPDATE_CHECK=1.
Environment Variables
Section titled “Environment Variables”| Variable | Description |
|---|---|
GITHUB_TOKEN |
Token for Copilot SDK execution |
COPILOT_CLI_PATH |
Explicit path to a GitHub Copilot CLI binary. When unset, Waza uses its bundled CLI and does not fall back to an unrelated copilot on PATH. The selected CLI must speak SDK runtime protocol 4; older CLIs (for example 1.0.85, protocol 3) fail at startup with SDK protocol version mismatch. |
COPILOT_HOME |
Copilot configuration root. When set, the bundled CLI and runtime assets are installed under COPILOT_HOME/cache/copilot-sdk; otherwise the system user cache is used. |
COPILOT_CLI_INSTALL_VERBOSE |
Set to 1 to print SDK installation diagnostics when the bundled CLI cannot be installed. |
COPILOT_BASE_URL / COPILOT_PROVIDER_BASE_URL |
Custom Copilot SDK provider endpoint. When set, Waza skips the default Copilot auth check and passes provider config to the SDK. |
COPILOT_PROVIDER / COPILOT_PROVIDER_TYPE |
Provider type passed through to the Copilot SDK. |
COPILOT_WIRE_API / COPILOT_PROVIDER_WIRE_API |
Wire format passed through to the Copilot SDK, for example responses or completions, depending on provider. |
COPILOT_API_KEY / COPILOT_PROVIDER_API_KEY |
API key for the custom provider, if required. |
COPILOT_BEARER_TOKEN / COPILOT_PROVIDER_BEARER_TOKEN |
Bearer token for the custom provider, if required. |
WAZA_HOME |
Config directory (default: ~/.waza) |
WAZA_CACHE |
Cache directory (default: .waza-cache) |
WAZA_NO_UPDATE_CHECK |
Set to 1 to disable automatic version check |
WAZA_TELEMETRY_OPTOUT |
Set to 1 or true to disable product usage telemetry |
OpenTelemetry export is configured with the waza run --otel-* flags. v0.38.0 does not read WAZA_OTEL_* environment variables.
When a custom provider is active, usage output labels the SDK request counter as Provider Requests instead of Premium Requests. Result JSON records usage.provider: "custom" and a sanitized usage.provider_host; the full provider URL is not stored.
Next Steps
Section titled “Next Steps”- Writing Eval Specs — Create benchmarks
- YAML Schema — eval.yaml format
- GitHub Repository — Source code