Skip to content

Marianne CLI Reference

Complete reference for all Marianne CLI commands and options. Marianne provides a single entry point:

  • mzt — Score orchestration CLI (run, monitor, diagnose, learn, conductor management)

Global Options

These options apply to all mzt commands:

Option Short Description Env Var
--version -V Show version and exit
--verbose -v Show detailed output with additional information
--quiet -q Show minimal output (errors only)
--conductor-clone Route all daemon interactions to a clone conductor (see below)
--log-level -L Logging level: DEBUG, INFO, WARNING, ERROR MZT_LOG_LEVEL
--log-file Path for log file output MZT_LOG_FILE
--log-format Log format: json, console, or both MZT_LOG_FORMAT
--help Show help message

Conductor Clones

The --conductor-clone option starts or connects to a clone conductor — an isolated conductor instance with its own socket, PID file, state database, and log. This lets you test scores, CLI features, and conductor behavior without risking your production conductor.

# Start a default clone conductor
mzt --conductor-clone start

# Submit a score to the clone
mzt --conductor-clone run my-score.yaml

# Check clone status
mzt --conductor-clone status

# Named clones for parallel testing
mzt --conductor-clone=staging start
mzt --conductor-clone=staging run staging-test.yaml
mzt --conductor-clone=staging conductor-status

# Stop the clone when done
mzt --conductor-clone stop

Key behaviors: - The clone inherits your production ~/.marianne/conductor.yaml config unless overridden. - Clone paths: ~/.config/mzt/clone.sock (socket), ~/.config/mzt/clone.pid (PID file). - Named clones use the name in the path: ~/.config/mzt/clone-staging.sock. - Clone names are sanitized (64 character limit, safe characters only). - Commands that don't interact with the conductor (validate, --help) ignore this flag.


Core Commands

mzt run

Run a score from a YAML configuration file.

Usage: mzt run [OPTIONS] CONFIG_FILE

Arguments

Argument Required Description
CONFIG_FILE Yes Path to YAML score configuration file

Options

Option Short Default Description
--dry-run -n false Show what would be executed without running. The preview renders with any --var overrides merged, exactly as the conductor would run the score
--start-sheet -s Override starting sheet number
--json -j false Output result as JSON for machine parsing
--escalation -e false Pause sheets in FERMATA on retry exhaustion for a composer decision; resolve with mzt resolve. Works without --self-healing
--self-healing -H false Enable automatic diagnosis and remediation when retries are exhausted
--yes -y false Auto-confirm suggested fixes when using --self-healing
--require-lock (none) Admission gate (GH #403): path to the composition lock the composing skill's release gate wrote (check_score_release.py --write-lock). The conductor verifies the lock's score_sha256 against the exact bytes it is about to parse; a missing, stale, unreadable or malformed lock rejects the job with that reason. Omit for ordinary unlocked submission.
--fresh false Re-run a score from scratch: re-register all sheets and, when the score sets workspace_lifecycle.archive_on_fresh, archive non-preserved workspace files first. Auto-triggered for completed scores when the YAML changed. skip_when unchanged rules are evaluated on fresh runs; to force a sheet to re-run, use mzt resume --force --from-sheet 1, remove the rule, or delete <workspace>/.marianne/pass-ledger/.
--job-id (score filename) Name this run (GH #505). The job ID defaults to the score file's stem; --job-id NAME lets one shipped score serve several commissions side by side without a renamed copy. When the score omits workspace:, the auto-managed workspace follows the name too (~/workspaces/NAME); an explicit workspace: still wins. Use the same name with status, pause, resume, resolve and cancel. Must start with a letter or digit; after that letters, digits, ., _ and -, at most 100 characters. An invalid --job-id is a usage error (exit 2, reported on stderr) and nothing is submitted; with --json stdout stays empty for it. Not supported for fleet configs. A type: fleet member is named <fleet>--<stem> by the fleet itself (GH #514), so two fleets with an integration.yaml never share a job ID.
--var (none) Per-invocation template variable as key=value (repeatable). Merges into the score's prompt.variables, CLI overriding YAML on collision — point one generic score at different inputs without editing it. Values are strings (typed vars belong in YAML). Persisted across resume and inherited by every job a concert trigger chains from this one.

Auto-Fresh Detection

When you re-run a completed score after editing the YAML file, Marianne automatically detects the change and starts fresh — no --fresh flag needed. The conductor compares the score file's modification time against the previous run's completion time. If the score is newer, it starts a fresh run automatically.

This only applies to completed scores. Failed or paused scores are always resumed from their checkpoint, regardless of file changes.

Backpressure and Rate Limits

The conductor rejects new score submissions only when the system is under resource pressure (high memory usage or too many child processes). Rate limits do not cause job rejection — they are per-instrument concerns handled at the sheet dispatch level by the baton. A rate limit on one instrument does not block scores targeting different instruments.

If the system is under resource pressure, mzt run exits with an error:

Error: System under high pressure — try again later.

Recurring-score lifecycle

For a score with schedule:, mzt run score.yaml is both trigger-now and schedule registration/replacement. Use the existing lifecycle commands against the stable schedule/score ID: mzt status and mzt list show next/last due and outcome; mzt pause ID stops future ticks (and active lineage), mzt resume ID re-arms one durable next due, and mzt cancel ID removes the schedule. After a conductor restart, the registry restores one future timer or one latest catch-up; it never replays every missed interval.

Examples

# Basic run (requires running conductor: mzt start)
mzt run job.yaml

# Dry run to preview (works without conductor)
mzt run job.yaml --dry-run

# Start from sheet 3
mzt run job.yaml --start-sheet 3

# With self-healing enabled
mzt run job.yaml --self-healing --yes

# Fresh start (ignores existing state)
mzt run job.yaml --fresh

Exit Codes

Code Meaning
0 Success or graceful shutdown
1 Configuration error or score failure
2 Usage error: an invalid option value such as --job-id 'has spaces', or a CONFIG_FILE that does not exist. Reported on stderr with nothing on stdout, --json included

A score that does not load (malformed YAML, or one that fails the score schema) is checked before the conductor is contacted: exit 1, with {"error": "..."} on --json or the error and a Validate with: mzt validate FILE hint otherwise. agents run checks the score before probing the conductor too (GH #561): an invalid score is SUBMIT_REFUSED with invalid score FILE: and the score's own error as the hint, cut to 300 characters, so with the conductor down it reports the score rather than the conductor.


mzt resume

Resume a paused or failed score.

Usage: mzt resume [OPTIONS] JOB_ID

Loads the score state and continues execution from where it left off. By default, Marianne auto-reloads the config from the original YAML file if it still exists on disk. Falls back to the cached config_snapshot when the file is gone. Use --no-reload to force using the cached snapshot: the score exactly as it was admitted (or as the last reloading resume ran it), so edits made to the YAML on disk since then are ignored. The snapshot is written at submit and refreshed on every reloading resume.

Resuming a failed or cancelled score (or passing --from-sheet) also reopens loops that ended in failure (range_failed, condition_error) when the reset left member sheets pending: the loop returns to running with its in-flight iteration preserved, so templates and validations see the loop index (e.g. {{ pass_no }}) again instead of failing with E999 on an undefined variable. A loop that ended for a genuine reason — condition_met, count_reached, max_iterations, cost_limit_exceeded — stays closed, with one exception: a loop that ended at max_iterations is reopened by --from-sheet when the score it reloads (the file on disk, or --config) sets a higher max_iterations for that loop. The next pass is numbered after the spent ones, so a composer who reads a capped result can grant more passes on the same work by raising the cap and resuming from the loop's first sheet (GH #584). Resuming a paused score preserves loop state as persisted. Each reopened loop is logged (baton.resume.loops_reopened) with the count and any from_sheet bound.

Arguments

Argument Required Description
JOB_ID Yes Score ID to resume. A fleet's name resumes the fleet: every paused member, then any dependent group the fleet dropped when a dependency member failed, once that member (resubmitted under its <fleet>--<stem> ID) is complete (GH #515).

Options

Option Short Default Description
--config -c Path to config file (optional if config_snapshot exists in state)
--force -f false Force resume even if score appears completed
--escalation -e false Pause sheets in FERMATA on retry exhaustion for a composer decision; resolve with mzt resolve. Works without --self-healing
--no-reload false Use cached config snapshot instead of auto-reloading from YAML file
--from-sheet Reset every sheet >= N to pending and re-run from there, including completed or skipped sheets; loops whose span still has a pending member sheet >= N are reopened with their iteration preserved
--self-healing -H false Enable automatic diagnosis and remediation when retries are exhausted
--yes -y false Auto-confirm suggested fixes when using --self-healing

Examples

# Resume paused score
mzt resume my-job

# Resume with explicit config
mzt resume my-job --config job.yaml

# Resume with explicit config file (overrides auto-reload)
mzt resume my-job --config updated.yaml

# Resume using cached snapshot (skip auto-reload)
mzt resume my-job --no-reload

# Force resume a completed score
mzt resume my-job --force

# Re-run from sheet 5 onward
mzt resume my-job --from-sheet 5

Resumable States

Status Resumable Notes
paused Yes Continues from last sheet
failed Yes Retries from failed sheet
running Yes Continues from last sheet
completed With --force Re-runs the completed score
pending No Use run instead

mzt pause

Pause a running Marianne score gracefully.

Usage: mzt pause [OPTIONS] JOB_ID

Creates a pause signal that the score detects at the next sheet boundary. The score saves its state and can be resumed with mzt resume.

Arguments

Argument Required Description
JOB_ID Yes Score ID to pause

Options

Option Short Default Description
--wait false Wait for the score to acknowledge the pause signal
--timeout -t 60 Timeout in seconds when using --wait
--json -j false Output result as JSON
--force -f false Force-cancel the score immediately without waiting for a sheet boundary

Examples

# Pause a running score
mzt pause my-job

# Pause and wait for acknowledgment
mzt pause my-job --wait --timeout 30

# Cancel immediately without waiting for a sheet boundary
mzt pause my-job --force

mzt resolve

Resolve a sheet paused in FERMATA awaiting a composer decision (#361).

Usage: mzt resolve [OPTIONS] JOB_ID SHEET_NUM DECISION

When escalation is enabled (--escalation or --self-healing), a sheet that exhausts its retries pauses in FERMATA instead of failing. mzt status lists pending decisions; this command records yours and the score continues immediately. (Equivalent to creating a marker file markers/fermata/<job_id>/sheet-<N>.<decision> under the job workspace.)

Arguments

Argument Required Description
JOB_ID Yes Score ID with a sheet paused in FERMATA
SHEET_NUM Yes Sheet number awaiting the decision
DECISION Yes retry (re-run from scratch), skip (skip, continue dependents), accept (accept the last attempt as success), fail (fail it, propagate to dependents)

Options

Option Short Default Description
--json -j false Output result as JSON

Examples

# Re-run a FERMATA'd sheet from scratch
mzt resolve my-score 3 retry

# Accept the sheet's last attempt as success
mzt resolve my-score 3 accept

mzt modify

Modify a score's configuration and optionally resume execution.

Usage: mzt modify [OPTIONS] JOB_ID

Convenience command that combines pause + config validation. If the score is running, it will be paused first. Use --resume to immediately resume with the new configuration.

Arguments

Argument Required Description
JOB_ID Yes Score ID to modify

Options

Option Short Default Description
--config -c required New configuration file
--resume -r false Immediately resume with new config after pausing
--wait false Wait for job to pause before resuming (when --resume)
--timeout -t 60 Timeout in seconds for pause acknowledgment
--json -j false Output result as JSON

Examples

# Modify config (pauses job if running)
mzt modify my-job --config updated.yaml

# Modify and immediately resume
mzt modify my-job -c new-config.yaml --resume

# Modify, wait for pause, then resume
mzt modify my-job -c updated.yaml --resume --wait

mzt status

Show score status. With no arguments, shows an overview of all active scores. With a score ID, shows detailed status for that specific score.

Usage: mzt status [OPTIONS] [SCORE_ID]

Arguments

Argument Required Description
SCORE_ID No Score ID to check status for. Omit to see all active scores.

Options

Option Short Default Description
--json -j false Output as JSON for machine parsing
--watch -W false Continuously monitor status with live updates
--interval -i 5 Refresh interval in seconds for --watch mode
--workspace -w (hidden) Debug override: bypass conductor and read job state from filesystem

Note: mzt status routes through the conductor by default. The --workspace flag is a hidden debug override for direct filesystem access when the conductor is unavailable.

Overview Mode (No Arguments)

When called without a score ID, shows a conductor overview:

  • Conductor status — whether the conductor is running and its uptime
  • Active scores — all running, queued, and paused scores with elapsed time
  • Recent scores — the 5 most recently completed or failed scores

This is the natural first command after mzt run — like git status showing your working tree.

# Show overview of all scores
mzt status

# Overview as JSON
mzt status --json

Per-Score Mode

When given a score ID, shows detailed status for that score:

  • Score name, status, and timing
  • Progress bar with sheet counts
  • Per-sheet details with validation results
  • Cost tracking with confidence indicators (see below)
  • Error summaries with mzt diagnose suggestion on failure

For large scores (50+ sheets), a compact summary is shown instead of the full sheet table: counts by status, then only interesting sheets (running, failed, validation-failed) capped at 20 entries. Small scores retain the full detail table.

# Detailed status for a specific score
mzt status my-score

# JSON output
mzt status my-score --json

# Continuous monitoring
mzt status my-score --watch

# Watch with custom interval
mzt status my-score --watch --interval 10

Output

Standard per-score output includes: - Score name and ID - Status (running, completed, failed, paused, pending) - Progress bar with sheet counts - Timing information - Error messages (if any) - Sheet details table (or compact summary for 50+ sheets) - Instrument column — when any sheet has an assigned instrument name, the table includes an Instrument column showing which instrument each sheet uses. For large scores (50+ sheets), the summary view shows an instrument breakdown with counts. A sheet that fell to a fallback shows codex-cli (was claude-code: execution_timeout after 30m): the instrument that played, the one that fell, why, and how long the fallen one held the sheet (GH #434). The duration beside the status is the winning attempt's; the time the fallen instrument spent is in that note and in mzt diagnose. - Cost summary — always shown, including total cost, token counts, and cost limit status. The figure is the job tracker's total when one wrote it, otherwise the sum of every sheet's accumulated attempt cost (the figure loop and sheet cost caps read), marked (from sheets). Token counts are summed from every sheet's attempts (the job-level counters were never written before 2026-11-10 and read 0). When a profile declares cache_read_tokens_path, a Cache read line shows the tokens served from the provider's prompt cache and their share of input; --json carries total_cache_read_tokens and total_cache_write_tokens under cost. - Loops — one line per sheet.loops span: the current pass or the exit reason (condition_met, count_reached, max_iterations, cost_limit_exceeded, range_failed) and the spend inside the span; a loop that ended on a cap or the iteration limit left its until unmet, and the line says so because the next stage ran on an unfinished span. When an instrument returns structured token data (JSON output), costs are precise. When tokens are estimated from output character count, the display shows ~$X.XX (est.) with a warning that actual costs may be 10-100x higher. Use JSON output format on your instrument for accurate cost tracking. - Suggestion to run mzt diagnose on failure

JSON output structure:

{
  "job_id": "my-score",
  "job_name": "My Score",
  "status": "running",
  "progress": {
    "completed": 5,
    "total": 10,
    "percent": 50.0
  },
  "sheets": {
    "1": {"status": "completed", "attempt_count": 1},
    "2": {"status": "in_progress", "attempt_count": 1}
  }
}


JSON output (--json)

--json is a machine contract on every command that offers it: stdout carries only the JSON document — valid UTF-8, ASCII-escaped, emitted verbatim (no emoji or markup substitution) — so a consumer can json.load(sys.stdin) it without an errors= policy (issue #495). Hostile bytes captured from musicians or subprocesses (a stray 0x97 em dash in an output tail, lone surrogates from a mis-decoded stream) are neutralized at the capture boundary before they reach state, and the JSON writer serializes with ensure_ascii=True through a direct stdout write that bypasses Rich's rendering pipeline. JSON-format logging (--log-format json) is pinned to the same ASCII-only serialization.

Global JSON guarantees

All --json output shares these guarantees (issue #495):

  • Strict UTF-8. mzt status <job> --json | python3 -c 'import sys, json; json.load(sys.stdin)' never raises UnicodeDecodeError, whatever a musician's subprocess printed.
  • ASCII-only serialization. Output is written with ensure_ascii=True; non-ASCII characters in values appear as \uXXXX escapes.
  • Verbatim emission. The serialized text is written directly to stdout (bypassing Rich's emoji substitution), so the payload a consumer parses is the payload json.dumps produced.

Prompt receipt per sheet (GH #546)

mzt status <job> --json gives every sheet that has assembled a prompt a prompt_receipt summary: total_bytes, estimated_tokens (a character-heuristic estimate, not a tokenizer count), source_count, dropped_count and prompt_sha256. The full receipt is the sheet's prompt_receipt in the checkpoint: ordered sources (kind prelude/cadenza/technique/memory/template, path as declared, resolved_path, sha256, bytes, truncated, dropped_reason), template_bytes, total_bytes, estimated_tokens and prompt_sha256. It holds hashes and sizes, never prompt text. An optional item over its max_bytes, or one that is missing or unreadable, appears with its dropped_reason and 0 bytes. Each attempt_history entry carries that attempt's model_used, prompt_sha256 and prompt_bytes. mzt diagnose lists each sheet's three heaviest sources and every dropped one.

The guarantees are enforced by regression tests (tests/test_json_utf8_contract.py) that plant hostile bytes (raw 0x97, lone surrogates) in attempt output and assert the emitted JSON parses strictly.

mzt watch

Live-tail musician output for a running score (#352).

Usage: mzt watch [OPTIONS] JOB_ID [SHEET_NUM]

Streams each LLM's output as it generates, credential-redacted, over the conductor's job.output.stream IPC. The stream starts with the recent lines retained in the sheet's ring buffer (~256 KB per sheet, drop-oldest with an explicit [dropped N lines] marker), then follows new output until Ctrl-C. A slow terminal never slows the conductor — backpressure drops lines with a marker rather than blocking.

The ring is a live view: a conductor restart clears it. Persisted evidence lives in each sheet's recorded output tails (mzt diagnose).

Interactive sheets (the default for claude-code) stream too: the driver tails the tmux pipe-pane transcript once per poll and hands each new slice to the same sink, so what you see is the raw terminal stream (cursor-addressing included), not a parsed log. If transcript capture failed for an attempt, that sheet has nothing to stream until it ends.

Arguments

Argument Required Description
JOB_ID Yes Score ID to tail (see mzt status)
SHEET_NUM No Sheet number to tail. Omit to tail ALL sheets — lines arrive tagged [s<sheet>]

Examples

# Tail every sheet of a running score
mzt watch my-score

# Tail only sheet 3
mzt watch my-score 3

mzt list

List scores from the conductor.

Usage: mzt list [OPTIONS]

By default shows active score runs (queued, running, paused). Use --all to include completed, failed, and cancelled conductor records.

Note: This command requires a running Marianne conductor (mzt start). Use mzt status <job-id> for checking one submitted score by its conductor runtime handle.

Options

Option Short Default Description
--all -a false Show all score runs including completed, failed, and cancelled
--status -s Filter by score-run status: queued, running, completed, failed, paused
--limit -l 20 Maximum number of terminal (completed/failed/cancelled) score runs to display. Live runs (queued, running, paused) are always all shown; the footer names how many older terminal runs were hidden
--json false Output as JSON array for machine parsing

Examples

# List active score runs (default)
mzt list

# List all score runs including completed
mzt list --all

# Filter by status
mzt list --status failed

# JSON output for scripting
mzt list --json

# Limit results
mzt list --limit 10

mzt wait

Block until a score is finished or needs a human decision (GH #547).

Usage: mzt wait [OPTIONS] JOB_ID

The conductor has no per-score subscription, so the command polls it inside the process (2 s, backing off to 10 s). Rate-limit waits, retries and fallbacks happen inside the conductor and do not end the wait. Three polls in a row that cannot reach the conductor end it as conductor_down.

Options

Option Short Default Description
--max -m 1800 Seconds to wait before reporting wait_expired
--json -j false One JSON object, no ANSI

Result

{"state": "needs_you", "job_id": "my-job", "status": "paused", "outcome": "paused",
 "reason": "sheet 20 is at a fermata awaiting a decision: ...", "verdict": null}
state Exit Meaning outcome
done 0 The score finished completed or cancelled
needs_you 2 A person must decide: the score failed, is paused, or has a sheet at a fermata (mzt resolve) failed or paused
conductor_down 3 The conductor could not be reached null
wait_expired 4 --max ran out while the score was still moving null

An unknown score is the usual error envelope ({"success": false, "message", "hints"}) with exit 1. verdict is always null here; read it with mzt verdict.


mzt next

List what needs attention across scores, most urgent first (GH #547).

Usage: mzt next [OPTIONS]

Options

Option Default Description
--mine PREFIX Only scores whose run id starts with PREFIX
--since HOURS 24 Ignore finished scores that ended longer ago than this (0 = no limit)
--idle-after SECONDS score's stale-detection timeout, else its sheet timeout, else 1800 Quiet time before a running score is UNSTICK
--tasks DIR Also list TASK*.md files in DIR that no score is bound to as CAST rows (GH #555)
--json false A JSON array, no ANSI

Result

[{"job_id", "action", "why"}], ordered ESCALATE, UNSTICK, JUDGE, CAST, WAIT, DONE (older submissions first within an action). An empty queue is one DONE row with job_id: null.

action When
ESCALATE The score failed or was cancelled, is paused (including paused_at_chain: finished, holding its chain trigger until mzt resume), or has a sheet at a fermata: a person decides
UNSTICK Running, a sheet is playing, and nothing has been recorded for longer than the idle limit
JUDGE Completed and not yet judged: run mzt verdict JOB, then mzt verdict JOB --accept
CAST Only with --tasks DIR: a TASK*.md file has no score bound to it. job_id is null and the row adds task, the file's absolute path; start it with mzt agents run NAME --task PATH
WAIT Still running or queued, nothing to do (mzt wait JOB)
DONE Completed and judged

SUBMIT is not produced. CAST appears only with --tasks: a task file is bound when any score's id (any age or status) contains -task-<8 hex>- with the first 8 hex digits of the file's sha256, which is how mzt agents run names its score (targeted-work-NAME-task-<hex8>-<date>); only the hash is compared, so editing a task (a rework adds FINDINGS:) makes it unbound again. Rows are sorted by file name. Judged state is the .mzt-judged.json marker that mzt verdict --accept writes in the score's workspace, keyed to that run's submission time, so a fresh run under a reused id is judged again. Recurring-schedule anchors and pytest scratch runs are left out, as in mzt list.


mzt verdict

Read a score's review verdict as one word (GH #547).

Usage: mzt verdict [OPTIONS] JOB_ID

Finds the newest .md/.txt file in the score's workspace that has a mappable VERDICT: line (the last such line in it) and maps the word: PASS/APPROVE/ACCEPT to PASS, REWORK/REJECT to REWORK, HOLD/BLOCK to BLOCKED. The verdict word is the only interpretation; the extra keys below are read, not judged. A line that lists several verdict words (a prompt template such as VERDICT: PASS | REWORK) is skipped.

Option Description
--pattern REGEX Replace the default line pattern; group word (or group 1) is the verdict word
--workspace DIR Read this directory instead of asking the conductor for the score's workspace
--accept (--judged) Record the score as judged so mzt next stops saying JUDGE, whatever the verdict
--json One JSON object, no ANSI
{
  "verdict": "REWORK",
  "raw": "VERDICT: REWORK",
  "source_path": "/ws/cycle-state/x-inspection.md",
  "round": 1,
  "findings": ["Email validation accepts a@b with no dot in the domain (validate.py line 41)."],
  "accept": {"ran": 4, "passed": 3},
  "result_path": "/ws/result.md"
}

verdict is unknown when no file has a mappable line (raw and source_path are then null; the other keys are still filled in). Added in GH #554, so a conductor can brief a rework and quote the checks without reading files:

  • findings: the reviewer's items, verbatim (bullet markers stripped, nothing edited; at most 20 items of 500 characters). Read from the file that carries the verdict, first rule that yields items wins: (1) a section headed FINDINGS (FINDINGS: or ## Findings), its bullets; (2) else the review sheet's own labels, REQUIRED FIXES then FAILURES; (3) else, when the verdict is not PASS, the bullets after the VERDICT: line up to the next heading or UPPER-CASE label (its non-blank lines when it has no bullets). A section ends at the next heading or UPPER-CASE LABEL: line; items such as none or no issues are dropped. A PASS without a FINDINGS section has an empty list.
  • accept: {ran, passed} counted over the validation results the score's sheets recorded in the checkpoint (validation_details per sheet, or its passed/failed name lists). These are the score's validations, the checks mzt status shows as the validation column. {"ran": 0, "passed": 0} means no validation result was recorded or the conductor could not give the state; it does not mean every check passed.
  • result_path: the file named by the task's REPORT field, resolved in the workspace (its basename, as mzt agents run prints it). null when the job has no mzt agents run task file.
  • round: 2 when the task file carries a FINDINGS: line (the rework task), else 1; null when the job has no task file. The task file is the read-only task-* copy mzt agents run leaves beside the bound score in the run dir (found through the job's config_path, which names it as marianne_agent.task.copy, else any task-* file with the six task fields in the workspace).


mzt agents list and mzt agents run

Cast a persistent agent on a task and start it (SC1c; interim until the one-episode score replaces it). Two commands and a closed vocabulary, so a small model can conduct with mzt wait, mzt verdict and mzt next.

Usage: mzt agents list [OPTIONS]
Usage: mzt agents run [OPTIONS] NAME

The agents root is read, never written; run writes only under the runs directory.

Option Applies to Default Description
--for TASK.md list Rank by the task's GOAL and FILES words (see below); without it the order is by name
--free list false Only agents with no running, queued, pending or paused conductor job whose id contains -NAME-
--task TASK.md run required Six fields: GOAL FILES KIND ACCEPT DO_NOT_TOUCH REPORT; ACCEPT must not be empty
--class PHASE=CLASS run Repeatable; passed to marianne-agents engage --class
--inventory FILE run $MZT_AGENTS_INVENTORY Live-verified capability inventory. No default: run is refused with a hint when neither is set. The inventory is not invented
--runs-dir DIR both $MZT_AGENTS_RUNS_DIR, else ~/Projects/SCORES/agent-runs One directory per run; list reads it for last_outcome
--agents-dir DIR both $MZT_AGENTS_DIR, else ~/.marianne/agents Agents root
--json both false One JSON value, no ANSI

Reservations. A conductor seat that has queued work for a person writes reserved: {NAME: "why, until when"} to ~/.marianne/agents-reserved.yaml (or $MZT_AGENTS_RESERVATIONS). A reserved agent shows free: false, is left out by --free, and run refuses it with AGENT_BUSY naming the reason, so a second seat cannot add a writer or a lifecycle debt to that person. Remove the line to release them. An unreadable file reserves nobody and warns on stderr.

list prints [{"name", "role", "owns", "free", "open_debt", "last_outcome"}]. An agent is listed when it has profile.yaml and an installed scores/targeted-work.yaml. owns is the profile's owns list (empty when it has none, which is every profile today). open_debt is the pending-lifecycle-debt count that marianne-agents engage refuses on at 3. last_outcome is "PASS 2026-11-12" read from the agent's newest <runs-dir>/NAME-* directory with the mzt verdict finder, or null.

--for ranking is deterministic: score = |task words & agent words| + 3 for each owned path that is a prefix of a FILES path, highest first, ties by lower open_debt, then by name. Task words are the GOAL and FILES words; agent words are role, group, focus, owns and a fixed role-hint table (builder brings implement, fix, build...). Words are lowercase alphanumerics of three or more characters without a short stoplist; there is no stemming, no synonym handling beyond that table and no model. Limits: it ranks overlap of words, not skill; with empty owns (all current profiles) it is only role and focus words; it never excludes anyone, so combine it with --free.

run prints {"ok": true, "job_id", "workspace", "result_path"} and exits 0, or {"ok": false, "code", "hint"} and exits 1:

code Meaning
TASK_FIELD_MISSING A field is absent or empty, or the task file cannot be read; hint names them
AGENT_UNKNOWN No such agent with an installed targeted-work score
AGENT_BUSY The agent has a running, queued, pending or paused job
DEBT_REFUSED The agent has 3 or more pending lifecycle debts
SUBMIT_REFUSED No or unreadable inventory, binder refusal (stale evidence, no route), the conductor refused or is down, or the run already exists. Also printed when the conductor accepted the job and it failed immediately inside the early-failure poll — in that case the files are kept and the hint names the job (mzt diagnose JOB). Also printed when the bound score fails to load or fails the score schema (GH #561): the hint starts invalid score FILE: and carries the score's own error, and no job exists, so the files are unbound. A conductor that is alive but not answering is reported as busy in the hint, not as down (it is never one to start)

list can also print CONDUCTOR_DOWN and COMPILER_MISSING.

run calls the compiler's engage path in process (bind_engagement: shape targeted-work with --defer-lifecycle, the task copied read-only and injected into every sheet, --class passed through) and then submits through the function mzt run uses, with --escalation on, so a sheet that exhausts its retries stops at a fermata that mzt next reports and mzt resolve answers. Nothing shells out. If the conductor refuses, the bound files are removed so the same task can be run again. If the conductor accepted the job but it failed inside the early-failure poll, the files are kept — the conductor holds a registered job for that score — and the hint names the job with mzt diagnose JOB, so a retry reading already bound has a next step (mzt cancel JOB, then a new task file). The job id is targeted-work-NAME-task-<8 hex of the task file>-<date>; result_path is the REPORT name inside the workspace.

Interim. targeted-work defers consolidate, reflect, maturity and resurrect: each run adds pending lifecycle debt, which engage refuses at 3. Pay it with a lifecycle-integration engagement.


mzt validate

Validate a score configuration file.

Usage: mzt validate [OPTIONS] CONFIG_FILE

Performs comprehensive validation including YAML syntax, Pydantic schema validation, Jinja template syntax checking, path existence verification, regex pattern compilation, and configuration completeness checks.

Arguments

Argument Required Description
CONFIG_FILE Yes Path to YAML score configuration file

Options

Option Short Default Description
--json -j false Output validation results as JSON
--verbose -v false Include INFO findings and a fuller rendering preview
--strict false Exit 1 for any unsuppressed WARNING
--errors-only false Show only ERROR findings; exit behavior is unchanged
--render-prompts PATH Write every sheet's fully rendered prompt to a Markdown file (- for stdout). Sheets whose renders are byte-identical share one section headed by their numbers (## Sheets 2-3), so a thousand-sheet fan-out reads as its few distinct prompts. Rendering is static: loop indexes read as iteration 1 and {{ previous_outputs }} is empty. With --json, each sheet also carries rendered_prompt.

Exit Codes

Code Meaning
0 No ERROR findings; warnings are allowed unless --strict is set
1 ERROR findings, or unsuppressed WARNING findings with --strict
2 Cannot validate: unreadable/non-score YAML, malformed YAML, or genuine schema failure

Validation Checks

Existing checks keep their V-codes. S3 adds these findings and changes the tiers shown below. The complete emitted set is exercised by the validator's code-registry and corpus-sweep tests.

Tier Codes Meaning
ERROR V001 Score-level or sheet prompt template is not valid Jinja2 syntax
ERROR V002 Workspace parent directory does not exist
ERROR V003 prompt.template_file does not exist
ERROR V004 A validation or injection path is absolute under the current user's home directory
ERROR V007 A content_regex (or detection) pattern does not compile
ERROR V008 A validation rule is missing the field its type requires
ERROR V009 An evolved score references its previous version's paths
ERROR V012 Invalid validate.suppress entry (unknown code or ERROR-tier code)
ERROR V105, V108 Undefined validation variable (declared prompt.variables, built-ins and declared loop indices are defined); missing static prelude/cadenza input — movement cadenza items (movements.<n>.cadenzas, GH #571) are reported once per (stage, item). Cadenza outputs declared by movement produces:, sheet.stdout_to, or gated file_exists are exempt from V108; prelude inputs must already exist.
ERROR V209, V214, V216, V217 Dependency cycle; expanded-sheet incoherence; missing cadenza target — a concrete sheet.cadenzas key outside the expanded range, or a movement cadenza whose stage has no sheet or whose voice is above the movement's voice count (GH #571); missing or invalid static concert target
ERROR V210, V211 Instrument or fallback name cannot resolve to a known profile, score alias, or capability class
ERROR V221–V223, V227, V229, V233, V312–V314, V316–V317, V320 Flow load errors and invalid flow references, reported with a code and hint rather than a raw schema trace
ERROR V305 Bash '${#...}' length syntax in a prompt the Jinja engine eats as a comment
ERROR V306 A path_in_scope validation can traverse outside its declared scope
ERROR V310, V321, V323, V324 Capability classes: a class-shaped name cannot resolve on this machine (V-CLS-02: vocabulary-only, tombstoned, or a chain with no registered entry — the same chains mzt run refuses); an instrument alias names a class as its profile; instrument_config.model applied to a class primary; an invalid classes layer file while the score uses a class
ERROR V213 interactive: true set for an instrument without verified interactive support
INFO V336 A sheet (or fallback) runs on an instrument with default_model: null and a model flag, and no model is set at any scope (score, movement, per-sheet, alias/chain/class entry): it runs on the harness's own default, which follows the operator's CLI settings and is not the score's to control. Set instrument_config.model: <id> or an alias config: {model: <id>} (GH #538)
ERROR V335 instrument_config.effort the resolved profile cannot apply: the profile declares no effort: block (reasoning-effort mapping), neither the profile's effort.levels nor the sheet's model row effort_levels maps the level, the sheet has a response_format and the level is outside effort.schema_levels (claude-code refuses xhigh and max there), or the sheet runs interactively on a mapping with interactive: false (opencode). The message names the accepted levels, the model when its row decides, and the sheets; alias and class fallback entries are judged against their own profile. Dispatch refuses the same sheets (GH #535)
ERROR V337 instrument_config.tools the resolved profile cannot apply: the profile declares no tools: block, a name is outside the block's known list, or the sheet runs interactively on a mapping with interactive: false. The message names the known tools when a list is declared and the sheets; alias and class fallback entries are judged against their own profile. Dispatch refuses the same sheets (GH #534)
WARNING V010 Unknown field at ANY depth — a whole block at the root (deliver: {…}, a list) is a feature the runtime does not implement and warns as such, since the loader drops it and nothing it configures will happen; the curated hint names a working key AT THE SURFACE the mistake sits in: a bare timeout: inside instruments.<alias>.config, a movement's or a sheet's instrument_config names that surface's timeout_seconds; inside a run: trigger action it names the action's own timeout_seconds; only at the root (or beside an action with no timeout of its own) does it name instrument_config.timeout_seconds (GH #451); a key that is real elsewhere but wrong here warns too and names its real path — voice: on a sheet.prelude or sheet.cadenzas item is ignored and points to movements.cadenzas.voice (GH #571)
WARNING V208, V219–V220, V224, V226, V231–V232, V235, V315 Built-in shadowing (deprecation); advisory structure and flow risks
WARNING V234 A loopback http profile in the score's chain declares a context_window for its default model larger than the server reports on GET /props (default_generation_settings.n_ctx, which llama-server and PolyStrata share); the executor would size max_tokens to the profile and the first request would be refused with HTTP 400 (GH #494). Quiet when the server does not expose /props
WARNING V228 A loop's cost_limit_usd cannot bind because every route in the span reports no cost — the message names the route and why (raw shell profile, no token paths, no models, or a $0 price); a priced CLI route such as claude-code or codex-cli DOES report cost and the cap binds (GH #453)
ERROR V340 memory.backends.<name>.system is not a memory backend this release ships (files or cam)
ERROR V342 A memory phases entry is not all, a movement number, or a movement name the score defines
ERROR V338 A sheet.fan_out width written as a '{{ variable }}' reference cannot be resolved. One issue per failing stage, each naming one reason: the reference is not a bare {{ name }} (it carries a filter, arithmetic or surrounding text); the variable is not declared under prompt.variables (which is also how a null value reads); its value is not a whole number (it must be an integer or a string of ASCII digits with no sign, optionally padded with whitespace — a float, a boolean or other text is refused); or it is outside 1-1000. The message names the variable and, for an out-of-range value, the number it resolves to unless that number has more digits than the bound. The issue's metadata.span is the stage. The width is fixed when the score loads, so --var cannot change it; the reference goes on the count — a stage key must stay an integer (GH #569)
ERROR V351 A loop's max_iterations or count written as a '{{ variable }}' reference cannot be resolved. One issue per failing loop and field, each naming one reason: the reference is not a bare {{ name }} (it carries a filter, arithmetic or surrounding text); the variable is not declared under prompt.variables (which is also how a null value reads); its value is not a whole number (it must be an integer or a string of ASCII digits with no sign, optionally padded with whitespace — a float, a boolean or other text is refused); or it is outside 1-10000. The message names the loop, the field and the variable, and for an out-of-range value the number it resolves to unless that number has more digits than the bound. The issue's metadata.span is the loop key as written. The cap is fixed when the score loads, so --var cannot change it — while until's var.x expressions still read --var, whose values are strings (GH #568)
ERROR V344 A memory scope fails the scope grammar (<family>/<id> or <family>:<id>)
ERROR V345 memory caps out of range (recall_cap_bytes 1024 to 1048576), an attachment cap above the score default, or an unknown provenance value
INFO V349 provenance: off is deprecated and was read as optional
ERROR V346 A memory access value is neither inherit nor grant:<name>[@<version>]
ERROR V350 A system: cam attachment's settings carry anything but endpoint and timeout_seconds: base_url, api_key_env, api_key_file and allow_remote are the operator's, set under memory_backends.cam.<name> in the conductor config; also a malformed endpoint name or timeout_seconds
ERROR V347 A memory access names a grant; no grant store exists yet, so only inherit is accepted
WARNING V327 A score sets a reserved key — accepted, but no runtime code reads it; also warns when movements.<N>.voices cannot expand with the sheet's size/start settings
WARNING V328 Deprecated spelling or key: root max_wall_seconds (now schedule.max_wall_seconds), checkpoints: (now approvals:), hook-level on_failure (now if_hook_fails), root conductor
WARNING V329 A readable default-off section has settings but no enabled key; set enabled: true now or explicit enabled: false to opt out of next release's auto-enable rule
WARNING V101 Template references a variable the score never declares (and no built-in provides)
WARNING V102 \| string filter applied to a subscript of an int-keyed variable dict
WARNING V103 Sheet or instrument timeout outside the reasonable range (V103/V104)
WARNING V106 Empty pattern in a content_contains/content_regex validation, or regex syntax ([Pp]x, A\|B, \s) in a content_contains pattern, which is matched as a literal substring
WARNING V109 A cadenza reads a file without a guaranteed earlier producer (a movement cadenza is judged per voice, at most one finding per stage and item — GH #571). A cadenza path is matched to producers by its file name as written, so a per-voice path such as unit-{{ voice }}.md matches only a producer declared under that same name. For the same path, movement produces: takes precedence over sheet.stdout_to, then the gated file_exists proxy. Add a dependency on a producer; declarations do not prove that a file exists at cadenza time.
WARNING V201 Jinja {{ }} syntax inside a validation path or command (they are format strings, never rendered)
WARNING V202 Python format-string (%s, {x}) syntax inside a Jinja template
WARNING V203 No validation rules exist — nothing defines done
WARNING V206 Fan-out declared without stage dependencies
WARNING V212 A skip_when key names a sheet outside the expanded range
WARNING V339 skip_when unchanged combined with workspace_lifecycle.archive_on_fresh: true: fresh runs archive pass records and outputs, so the rule never skips
WARNING V215 No instrument in the score's chain appears installed on this machine (an installed CLI binary or a loopback HTTP server that serves the profile's model counts as installed)
WARNING V230 Flow configuration error rendered from the loader (loops/triggers/goto) with position and hint
ERROR V233 A loop until names file("{{ … }}"): Jinja braces inside a flow file path are kept verbatim, so the file never exists — write the workspace-relative or {workspace} validation form
WARNING V235 sheet.fan_out_messaging explicitly set without a fan-out group with multiple voices; remove the setting or configure concurrent siblings
WARNING V301 A skill technique's path does not exist — the agent would never receive that methodology
WARNING V302 An MCP technique targets an instrument with no MCP access path (native config or generated bridge)
WARNING V303 Folded YAML scalar on a command field (newlines collapse — usually not what the author meant)
WARNING V304 Code execution would run unsandboxed (bwrap unavailable and require_sandbox false)
WARNING V308 Partial concrete instrument coverage inside fan-out movements
WARNING V309 An exact section-label validation the prompt never teaches the agent
WARNING V330 An alias select modifier has nothing to choose between: fewer than two chain entries, or cheapest/widest found no model-table row for any entry; the score runs on the authored order
WARNING V331 A sheet sets response_format on a profile that runs interactively by default (cli.interactive.enabled_by_default: true, e.g. claude-code) and does not say interactive: false; the interactive backend cannot enforce a schema and dispatch would refuse the sheet (GH #478)
WARNING V332 A CLI schema sheet's response_format schema has a top-level oneOf/allOf/anyOf or no top-level type; Claude Code forwards it as a tool input_schema, which the API refuses with 400 (GH #486). Wrap the branches under one required property
WARNING V333 A command_succeeds command uses a {placeholder} in a shape the engine's shell-quoting defeats: a bash array literal xs=({list}) (one element — use read -r -a xs <<< {list}), or a prompt variable whose default needs quoting (~/path, a space) spliced inside an interpreter's string literal (python3 -c "...'{var}/x'..." keeps the quotes — pass it as an argument and read sys.argv). GH #477.
WARNING V334 An optional prelude/cadenza item (sheet or movement, GH #571) with max_bytes whose static path is already over the cap (measured now, once per declaration; the runtime drops it at every sheet). GH #474. For a required item the same finding is an ERROR (the sheet cannot run; GH #515).
WARNING V311, V322 Capability classes: part of a used class's chain cannot run here (binary missing, unsupported, local server not serving the profile's model, or unable to enforce the sheet's response_format). V311 also warns when a sheet bound straight to a CLI profile (no class) asks for a json_schema response_format the profile cannot enforce (no cli.command.json_schema_flag): every dispatch of those sheets would be refused, and the warning names them — the job starts at the first available entry; when no entry can run here the warning says so and names the install (availability is a fact about this machine, so the score is still admitted); a default-layer class shadowed by a same-named profile; a score alias shadowing a class name
INFO V011, V104, V110, V218, V225 Distant unknown field; timeout above 7200 seconds (2 hours); unused variable; ambiguous file reference; mixed fan-out keying (flow spans use stage keys while cadenzas, prompt_extensions and per_sheet_instruments use concrete sheets; for cadenzas the finding names the stage-keyed home, movements.<stage>.cadenzas, GH #571)
INFO V205 All validations are file_exists only — nothing checks content
INFO V207 Fan-out declared without parallel.enabled (instances still run sequentially)
INFO V325 Capability classes: per-used-class resolution summary (Instruments: strong → claude-code, … (user layer, sha256 …)); an entry with a reasoning level shows it (codex-cli (effort medium))
INFO V326 A score uses a run: trigger on a host without Linux subreaper support. Detached orphans with closed stdio may outlive the action; Linux reaps them under the per-action supervisor.

A sheet.triggers run: action executes its command in a bounded shell. On Linux a per-action subreaper keeps detached children owned until cleanup finishes, including children that close stdout and stderr. Other hosts use process-group, ancestry, and log-holder cleanup; V326 identifies the narrower orphan guarantee before execution. The subreaper is that guarantee only while it lives: if it dies by a signal the conductor did not send (an OOM kill, an operator's kill -9) after the shell has reported, its adopted children are lost to init and the action fails with run supervisor died by signal N rather than reporting the shell's clean exit (GH #444).

V210/V211 search profiles, score aliases, configured classes, and the shipped class vocabulary; their suggestions use edit distance ≤ 2 over that whole namespace. A name that is vocabulary-only or tombstoned reports under V310 with the mzt instruments classes write fix hint instead of the generic unknown-name row. The raw-shell check V307 also warns when a cli sheet's declared fallback names a class (model instruments).

mzt validate reads the three class-map layers through the same loader the conductor uses and prints every layer path it read with its sha256 — in --json under summary.classes.layers (plus used, per_sheet, and failures when a class is named), and on the terminal as Class layer lines. A broken layer file is reported (V324) only when the score names a class; scores that never touch classes stay silent about machine class state.

V107's warning on validation output paths is retired: an output need not exist before a job runs. The dead check class is deleted (GH #439); V301 and V302 (technique consistency) are registered with fixtures in the same change. INFO findings appear in terminal output only with --verbose. --json includes them by default.

validate.suppress: [Vxxx] may hide WARN and INFO findings. Suppressed findings leave issues and the visible counts and appear as {check_id, count} entries in suppressed. Suppressing an ERROR or unknown code raises V012 ERROR, so it cannot make an invalid score pass. --strict ignores suppressed warnings. The JSON keys valid, error_count, warning_count, info_count, issues, and rendering retain their meanings; summary and suppressed are additive.

Dependency-loading failures may separately log validation.profiles_unavailable_skip at WARNING level while affected checks skip or use reduced information. These log events do not themselves affect --strict, issue counts, or validate.suppress. Repair the reported failure and validate again; see validation dependency failures.

Examples

# Basic validation
mzt validate job.yaml

# Detailed output
mzt validate job.yaml --verbose

# JSON output for CI/CD
mzt validate job.yaml --json

# Fail CI on new warnings while acknowledging reviewed advisory codes
mzt validate job.yaml --strict

mzt init

Scaffold a new Marianne project with a starter score.

Usage: mzt init [OPTIONS] [SCORE_NAME]

Creates a starter score YAML and .marianne/ project directory. The generated score includes comments explaining every field — edit it with your task, then run it. This is the first-run path for an install with no repository checkout: examples/ is not in the wheel, mzt init needs nothing but the package.

The starter binds the strong class. On a machine where no CLI agent is ready and a loopback OpenAI-compatible server is (a local model server with an http profile that mzt instruments check reports ready), the starter binds that profile instead, with instrument_fallbacks: [] and cross_sheet.auto_capture_stdout, because an http profile answers but has no filesystem: its sheets pass replies forward, not files. The output says which instrument the starter was bound to (--json carries it as instrument).

Arguments

Argument Required Description
SCORE_NAME No Score name (same as --name). Default: my-score

Options

Option Short Default Description
--path -p . Directory to initialize
--name -n my-score Name for the starter score (overrides positional)
--force -f false Overwrite existing files
--json -j false Output result as JSON

Examples

# Initialize current directory with default name
mzt init

# Initialize with a custom name (positional — like git init)
mzt init data-pipeline

# Initialize with a custom name (flag)
mzt init --name data-pipeline

# Initialize in a specific directory
mzt init --path ./my-project

# Machine-readable output
mzt init --json

What It Creates

./
├── my-score.yaml        # Starter score — edit with your task
└── .marianne/             # Project configuration directory

Next steps after init: edit the score YAML, then mzt start && mzt run my-score.yaml.


mzt cancel

Cancel a running score immediately.

Usage: mzt cancel [OPTIONS] SCORE_ID

Unlike pause, this does not wait for a sheet boundary. The conductor cancels the running score, in-progress work is rolled back, and the score is marked as CANCELLED.

Arguments

Argument Required Description
SCORE_ID Yes Score to cancel

Options

Option Short Default Description
--json -j false Output result as JSON

Examples

# Cancel a running score
mzt cancel my-job

# Cancel with JSON output
mzt cancel my-job --json

Tip: Use mzt pause for graceful stops that wait for the current sheet to finish. Use cancel when the score must stop now.


mzt clear

Clear terminal scores from the conductor registry.

Usage: mzt clear [OPTIONS]

Removes completed, failed, and/or cancelled scores from the conductor's tracking. Running and queued scores are never cleared.

Options

Option Short Default Description
--score -j Specific score ID(s) to clear. Can be repeated.
--status -s all terminal Status(es) to clear: failed, completed, cancelled. Can be repeated.
--older-than Only clear scores older than this many seconds
--yes -y false Skip confirmation prompt

Examples

# Clear all terminal scores
mzt clear

# Clear a specific score
mzt clear --score conductor-fix

# Clear only failed scores
mzt clear --status failed

# Clear failed + cancelled scores
mzt clear --status failed -s cancelled

# Clear scores older than 1 hour, skip confirmation
mzt clear --older-than 3600 -y

mzt logs

Show or tail log sources for a score run.

Usage: mzt logs [OPTIONS] [JOB_ID]

Displays log entries from Marianne log sources. Daemon-managed score runs use the conductor logging root by default, with compatibility workspace aliases and rotated logs handled by the log reader where available.

Arguments

Argument Required Description
JOB_ID No Score-run ID to filter logs for; this is the conductor's runtime handle

Options

Option Short Default Description
--workspace -w . (hidden) Debug override: specify workspace for log file lookup
--file -f Explicit offline/debug log file path
--follow -F false Follow the log file for new entries (like tail -f)
--lines -n 50 Number of lines to show (0 for all)
--level -l Filter by minimum log level: DEBUG, INFO, WARNING, ERROR
--json -j false Output raw JSON log entries

Examples

# Show recent logs
mzt logs

# Filter by score run
mzt logs my-job

# Follow logs in real-time
mzt logs --follow

# Show last 100 lines of errors only
mzt logs --lines 100 --level ERROR

# Use a specific offline/debug log file
mzt logs --file ~/.marianne/logs/conductor.log

mzt errors

List all errors for a score run with detailed information.

Usage: mzt errors [OPTIONS] JOB_ID

Displays errors grouped by sheet, with color-coding by error type: - Red: Permanent errors (non-retriable, fatal) - Yellow: Transient errors (retriable with backoff) - Blue: Rate limit errors (retriable after wait)

Arguments

Argument Required Description
JOB_ID Yes Score-run ID to show errors for; this is the conductor's runtime handle

Options

Option Short Default Description
--sheet -b Filter errors by specific sheet number
--type -t Filter by error type: transient, rate_limit, or permanent
--code -c Filter by error code (e.g., E001, E101)
--verbose -V false Show full stdout/stderr tails for each error
--workspace -w (hidden) Debug override: bypass conductor for error retrieval
--json -j false Output errors as JSON

Examples

# Show all errors
mzt errors my-job

# Errors for specific sheet
mzt errors my-job --sheet 3

# Only transient errors
mzt errors my-job --type transient

# Filter by error code
mzt errors my-job --code E001

# Verbose with stdout/stderr details
mzt errors my-job --verbose

mzt diagnose

Generate a comprehensive diagnostic report for a score run.

Usage: mzt diagnose [OPTIONS] JOB_ID

The diagnostic report includes: - Score-run overview and current status - Preflight warnings from all sheets (preflight: prompt-size notes; artifact: a sheet wrote a file a later, non-ancestor sheet is declared to produce — GH #386) - Prompt metrics (token counts, line counts) - Execution timeline with timing information, and under it one line per attempt for any sheet that needed more than one or ended abnormally: 1. claude-code (claude-opus-5-5): 30m → TIMEOUT E301, 2. codex-cli: 1m 9s → ok (GH #434). A failed attempt's line is followed by the cause the classifier selected as root, redacted and trimmed to 300 characters (agent process killed by SIGKILL before signalling completion), so the category word is not the only evidence (GH #143). - All errors with full context and output tails - Log file locations, sizes, and modification times - (with --include-logs) Inline log content from each log file

Arguments

Argument Required Description
JOB_ID Yes Score-run ID to diagnose; this is the conductor's runtime handle

Options

Option Short Default Description
--workspace -w Workspace directory. When the conductor doesn't recognize a score ID, Marianne falls back to reading state directly from this workspace directory. Useful for diagnosing scores from stopped conductors or clone conductors.
--json -j false Output diagnostic report as JSON
--include-logs false Inline the last 50 lines from each sheet/hook log file
--resources false Include resource profile data such as peak memory, CPU time, syscalls, and anomalies

Examples

# Full diagnostic report
mzt diagnose my-job

# Machine-readable
mzt diagnose my-job --json

# Include inline log content
mzt diagnose my-job --include-logs

# Include resource profile data
mzt diagnose my-job --resources

# Diagnose from workspace (when conductor doesn't know the score)
mzt diagnose my-job -w ./workspaces/my-job

mzt doctor

Check Marianne environment health.

Usage: mzt doctor [OPTIONS]

Validates that your environment is ready to run Marianne scores. Checks Python version, Marianne installation, conductor status, available instruments, and safety configuration. This command works without a running conductor — it is designed to be the first thing you run after installation.

Options

Option Short Default Description
--json false Output results as JSON
--clean false Delete storage-hygiene findings after explicit confirmation
--live false Also run instruments check --live on every ready agent instrument. A failed probe becomes a warning naming the mode and classification; no instrument passing is an error. Spends model calls; use it after installing or upgrading a CLI, or before a long run

Checks Performed

Check What It Verifies
Python Version 3.11+ installed
Marianne Marianne package installed, version displayed
Conductor Whether the conductor daemon is running (PID file + process check)
Instruments Configured instruments, binary readiness, execution readiness, and runtime rate-limit state when the conductor is running
Safety Whether cost limits are configured
Storage Cleanable stale state or backup artifacts
Instrument hygiene User- and venue-layer profiles that no score the conductor has been given names and no class chain includes (GH #443). Reported only, never deleted: a seat is an alias over an existing profile, so a profile nothing names is archived by a person or kept by submitting the score that needs it. --json lists them under unreferenced_profiles. Skipped before the conductor has ever run. Reads the registry of the conductor the CLI addresses (--conductor-clone selects the clone's)
Providers For each mcp_pool.servers entry whose command runs REA (Reverse Engineer Anything, the rea-agents package), runs REA's own read-only rea doctor --json with the entry's interpreter and script and reports its verdict and each failing check in REA's words (a Ghidra release it does not accept, a Java probe past its deadline). A gap is a warning; nothing is installed or repaired. --json lists them under provider_checks (GH #499)
Musician hooks The hooks block of the user-level Claude Code settings (~/.claude/settings.json), by event and the hook command's program name only (never arguments, env or inline scripts: <inline script>, <unrecognised>). SessionStart/UserPromptSubmit hooks are flagged as adding to every sheet's context unless they check MARIANNE_SHEET; PreToolUse/PostToolUse/Stop hooks as running in musicians (intended for safety hooks). A warning when a profile sets cli.command.disable_hooks_args (all hooks off) while PreToolUse/PostToolUse hooks exist, since musicians run auto-approved. --json: musician_hooks (GH #536)
Credential exposure Ready agent profiles using the explicit cli.command.inherit_env opt-out while credential-shaped variables are set (GH #335). Profiles are named without printing values; declare required_env or remove the opt-out to clear the warning
Credentials no longer reaching a profile A ready personal/venue profile with no required_env, running an executable a shipped profile authenticates by environment (claude, codex, gemini, agy, goose), while those variables are set in this environment: since GH #335 they are filtered by default, so the instrument authenticates differently from the shell it was tested in. Declare required_env with the variables it reads, or required_env: [] if it uses its own store
Gemini auth inference A ready gemini-executable CLI profile with none of GEMINI_API_KEY (primary, GH #469), GOOGLE_API_KEY, GOOGLE_APPLICATION_CREDENTIALS, GOOGLE_CLOUD_PROJECT, CLOUDSDK_CONFIG set is reported unsupported with a message naming the variables, instead of ready: the default individual-tier OAuth path cannot run a headless prompt. An auth signal is a readiness hint, not proof — verify with mzt instruments check <profile> --live (see the instrument guide's Gemini section)

Every command that answers "can this instrument run here" — doctor, instruments list, instruments check, instruments classes check and classes write — uses one probe with four states (GH #447):

Probe state Meaning Shown as
ready Can run now: CLI binary on PATH, or a local (loopback) server that answers and serves the profile's default_model, or a native instrument ✓ (doctor ok; list ✓ ready)
unavailable Cannot run: binary missing, profile declared unsupported, no command, or the local server answers but does not serve the model (the served models are named) · (doctor optional; list ✗ not found)
unreachable A local server that does not answer · (doctor optional; list ✗ not answering)
unchecked A remote HTTP endpoint; never probed because it needs credentials ? (doctor and list unchecked)

"Marianne is ready" means at least one agent instrument is ready (the raw shell cli profile does not count). With none, doctor reports an error naming what to install or pull. Runtime rate-limit state is shown when the conductor is running.

Examples

# Check environment
mzt doctor

# JSON output for scripting
mzt doctor --json

# Review and remove cleanable storage findings
mzt doctor --clean

Sample Output

Marianne Doctor

  ✓ Python 3.12                   installed
  ✓ Marianne v1.0.0                 installed
  ✓ Conductor                     running (pid 12345)

  Instruments:
  ✓ claude-code                   /usr/local/bin/claude
  · gemini-cli                    not found (Binary 'gemini' not found on PATH for instrument 'gemini-cli')
  · ollama                        not found (model 'llama3.1:8b' is not served at http://localhost:11434/v1 …)

  Safety:
  ⚠ No cost limits configured     Recommend: cost_limits.max_cost_per_job

1 warning. Marianne is ready (1 runnable instrument(s)).

mzt history

Show execution history for a job.

Usage: mzt history [OPTIONS] JOB_ID

One row per attempt, newest first: sheet, attempt, instrument and model, outcome, exit code, duration, timestamp, and the redacted cause of a failure. The rows come from the score's checkpoint, which keeps each sheet's last 50 attempts, so history survives completion and conductor restarts. It holds no output: read a sheet's output tail with mzt status --json, and a response_format sheet's object from its structured_output.

Arguments

Argument Required Description
JOB_ID Yes Job ID to show execution history for

Options

Option Short Default Description
--sheet -b Filter by specific sheet number
--limit -n 50 Maximum number of records to show
--workspace -w (hidden) Debug override: read the registry directly when the conductor is down
--json -j false Output history as JSON

Examples

# Show all history
mzt history my-job

# History for specific sheet
mzt history my-job --sheet 3

# Show more records
mzt history my-job --limit 100

# JSON output
mzt history my-job --json

mzt recover

Recover sheets that completed work but were incorrectly marked as failed.

Usage: mzt recover [OPTIONS] JOB_ID

Runs validations for failed and cascade-skipped sheets without re-executing them, in the same context execution validates in (the sheet's stage, instance, movement, prompt variables and open loop indices), so a condition: "stage == N" rule applies to exactly the sheets it applies to in a run. A sheet is marked complete only when at least one validation applies to it and all that apply pass. A sheet no validation applies to is reset to pending and counted on the summary line (Reset to PENDING: 3 (2 with no applicable validation)): an empty pass proves nothing (GH #523). This is useful when: - Claude CLI returned a non-zero exit code but the work was done - A transient error caused failure after files were created - You want to check if a failed sheet actually succeeded

Arguments

Argument Required Description
JOB_ID Yes Score ID to recover

Options

Option Short Default Description
--sheet -s Specific sheet number to recover (default: all failed sheets)
--from-sheet -f Reset all failed sheets >= this number to pending for cascade recovery
--dry-run -n false Check validations without modifying state

Examples

# Recover all failed sheets
mzt recover my-job

# Recover specific sheet
mzt recover my-job --sheet 6

# Check without modifying (dry run)
mzt recover my-job --dry-run

# Reset cascade failures from sheet 211 onward
mzt recover my-job --from-sheet 211

mzt dashboard

Start the web dashboard.

Usage: mzt dashboard [OPTIONS]

Launches the Marianne dashboard API server for submitted scores, conductor state, logs, artifacts, and controls. API payloads still use job_id as the conductor's runtime record handle.

/orchestra is the fleet on stage: one card per score, one cell per sheet, live over /api/orchestra/stream (SSE) with a replay transport for any recorded day (/api/orchestra/replay?day=YYYY-MM-DD). It renders the conductor's public-safe projection only (names, sheets, instruments, outcomes, times), so it is the one page meant to be exposed on a public hostname.

Options

Option Short Default Description
--port -p 8000 Port to run dashboard on
--host 127.0.0.1 Host to bind to. A non-loopback host with MZT_AUTH_MODE still localhost_only (or api_key with no keys / the localhost bypass on) prints a red Exposed bind panel before the server starts: the listener would answer every interface and refuse every non-local client, or let a proxy skip the key check. The bind still happens; the warning is the operator's cue (GH #387).
--workspace -w . Workspace directory for job state
--reload -r false Enable auto-reload for development

Examples

# Start with defaults (localhost:8000)
mzt dashboard

# Custom port
mzt dashboard --port 3000

# Allow external connections — only with real keys and the localhost bypass off
MZT_AUTH_MODE=api_key MZT_API_KEYS=<keys> MZT_LOCALHOST_BYPASS=false \
  mzt dashboard --host 0.0.0.0

# Publish ONLY the orchestra view (the public fleet page); everything else
# still refuses non-local clients
MZT_PUBLIC_ORCHESTRA=true mzt dashboard --host 0.0.0.0

# Development mode with auto-reload
mzt dashboard --reload

Dashboard API Endpoints

Health
Method Endpoint Description
GET /health Service health check (status, version)
Job Management
Method Endpoint Description
GET /api/jobs List all jobs with optional status filter and pagination
GET /api/jobs/{id} Get detailed information about a specific job
GET /api/jobs/{id}/status Get focused status (lightweight polling endpoint)
POST /api/jobs Start a new job (inline config or file path)
POST /api/jobs/{id}/pause Pause a running job
POST /api/jobs/{id}/resume Resume a paused job
POST /api/jobs/{id}/cancel Cancel a running job
DELETE /api/jobs/{id} Delete a job record
Sheet Details
Method Endpoint Description
GET /api/jobs/{id}/sheets/{num} Sheet-level status, logs, validation, costs, tokens
Streaming & Logs
Method Endpoint Description
GET /api/jobs/{id}/stream Real-time job status updates via SSE
GET /api/jobs/{id}/logs Stream job logs via SSE with follow mode
GET /api/jobs/{id}/logs/static Download complete log file as plain text
GET /api/jobs/{id}/logs/info Log file metadata (size, lines, modified time)
Artifacts & Workspace
Method Endpoint Description
GET /api/jobs/{id}/artifacts List workspace files (recursive, with filtering)
GET /api/jobs/{id}/artifacts/{path} Read a specific workspace file
Configuration & Templates
Method Endpoint Description
POST /api/scores/validate Validate YAML config (syntax, schema, extended checks)
GET /api/templates/list List available templates (category, complexity, search filtering)
GET /api/templates/{name} Get template details
GET /api/templates/{name}/download Download template as YAML file
POST /api/templates/{name}/use Use a template (redirect to editor)
Daemon
Method Endpoint Description
GET /api/jobs/daemon/status Check daemon status (PID, uptime, running jobs, memory)

mzt mcp

Start the Marianne MCP (Model Context Protocol) server.

Usage: mzt mcp [OPTIONS]

Launches an MCP server that exposes Marianne's job management capabilities as tools for external AI agents. Provides job management tools, artifact browsing, log streaming, and configuration access.

When the Marianne conductor is running, the MCP server routes operations through it for coordinated execution.

Options

Option Short Default Description
--port -p 8001 Port to run MCP server on
--host 127.0.0.1 Host to bind to
--workspace -w . Workspace directory for job operations

Examples

# Start on default port
mzt mcp

# Custom port
mzt mcp --port 8002

# Specific workspace
mzt mcp --workspace ./projects

See MCP Integration Guide for Claude Desktop setup and available tools.


mzt top

Real-time system monitor — like htop for your conductor.

Usage: mzt top [OPTIONS]

Shows a score-centric process tree, resource metrics, event timeline, anomaly detection, and learning insights. Four operating modes:

Mode Flag Description
TUI (default) Rich terminal UI with live updates
JSON --json Stream NDJSON snapshots to stdout
History --history 1h Replay historical data from profiler DB
Trace --trace PID Attach strace to a specific process

Options

Option Short Default Description
--json false Stream JSON snapshots (NDJSON format)
--history Replay historical data (e.g., 1h, 30m, 2h30m)
--trace Attach strace to a specific PID
--score -s Filter JSON/history output by score ID; TUI mode is not filtered yet
--interval -i 2.0 Refresh interval in seconds

Examples

# Live TUI monitor
mzt top

# Filter JSON output to a specific score
mzt top --score my-pipeline --json

# JSON output for scripting
mzt top --json

# Replay the last hour of data
mzt top --history 1h

# Faster refresh rate
mzt top --interval 0.5

mzt config

Manage conductor configuration.

Usage: mzt config COMMAND [OPTIONS]

Subcommands

mzt config show

Display current daemon configuration as a table. When the conductor is running, displays the live in-memory config (reflecting any SIGHUP reloads) with [live] source indicators. Falls back to disk-based display when the conductor is not running.

mzt config show
mzt config show --config /etc/marianne/daemon.yaml
Option Short Description
--config -c Path to daemon config file (default: ~/.marianne/daemon.yaml). Ignored when live config is available from a running conductor.
mzt config set

Update a conductor configuration value. Values are validated against the DaemonConfig schema before saving. Use dot notation for nested keys.

mzt config set max_concurrent_jobs 10
mzt config set socket.path /tmp/custom.sock
mzt config set resource_limits.max_memory_mb 4096
mzt config set log_level debug
Argument Required Description
KEY Yes Config key in dot notation (e.g., socket.path, max_concurrent_jobs)
VALUE Yes New value to set
Option Short Description
--config -c Path to daemon config file (default: ~/.marianne/daemon.yaml)
mzt config path

Show the conductor config file location and whether it exists.

mzt config path
mzt config init

Create a default conductor config file with all default values and descriptive comments. Refuses to overwrite unless --force is given.

mzt config init
mzt config init --force
mzt config init --config /etc/marianne/daemon.yaml
Option Short Description
--config -c Path to create config file (default: ~/.marianne/daemon.yaml)
--force -f Overwrite existing config file
mzt config check

Validate a daemon config file against the DaemonConfig schema without starting the conductor. Exits 0 if valid, 1 if invalid or the file cannot be loaded.

mzt config check
mzt config check --config /path/to/custom.yaml
Option Short Description
--config -c Path to daemon config file to validate (default: ~/.marianne/daemon.yaml)

Instrument Commands

mzt instruments classes show|check|write|tiers

show --json reports the effective class chains, each layer path and SHA256, and entry availability. check exits 1 for a broken layer or a user configured class with no available entry; check --class strong also requires that class to have an available entry. write probes shipped profiles and creates ~/.marianne/classes.yaml with an ordered, model-free chain for each eligible class — strong, workhorse, fast, cheap, writing, review, vision, local, high-context, image, and video (the last three seat gemini-cli once a locally enabled override passes their probe — first in image and video; GH #469). It ranks shipped names using their effective same-named user/venue overrides; an additional user or venue profile joins a chain only where its own class_hints put it (see the instrument guide). It preserves an existing file with --if-absent, prints a proposal with --dry-run, and requires --force to replace hand edits. Replacements are backed up and written atomically.

tiers [--catalog DIR] [--write-proposal PATH] [--force] [--json] prints the family-neutral frontier, balanced and light chains this machine resolves from catalog v2 and its registered profiles (non-provisional tiers, no metered routes, lowest effort that reaches the tier), each entry with its family, access and local availability. --write-proposal writes a classes-file fragment for you to merge by hand; it refuses an existing file without --force and refuses the user or venue class layer itself. The command never writes ~/.marianne/classes.yaml. The packaged default already carries the same three classes, generated against the builtin profiles.

These commands manage and inspect available instruments — the AI tools Marianne can use to execute scores. Instruments include CLI tools (Claude Code, Gemini CLI, Codex CLI, Aider, Goose) and HTTP APIs (Anthropic API, Ollama).

mzt instruments resolve

Show, per sheet, what each instrument binding in a score resolves to.

Usage: mzt instruments resolve [OPTIONS] SCORE

Reads the score the way the conductor does at admission — score aliases (instruments:), capability classes from this machine's class map, per_sheet_instruments and instrument_map pins — and prints one row per sheet: what the sheet was bound through (an alias or class name, or (direct)), the profile it resolved to, the model, and the fallback chain. The closing line counts distinct profile+model bindings: a "three independent reviewers" fan-out that resolves to one binding is not independent, whatever its prose says. Pair with {{ instrument_alias }} in the score to stamp evidence with the binding name.

Options

Option Short Default Description
--json false Output as JSON ({"score": ..., "sheets": [{sheet, movement, voice, bound_through, profile, model, fallbacks}]})

Examples

mzt instruments resolve examples/engineering/quality-triage.yaml
mzt instruments resolve my-score.yaml --json | jq '.sheets[] | select(.movement == 4)'

mzt instruments list

List all available instruments and their readiness status.

Usage: mzt instruments list [OPTIONS]

Shows every registered instrument: built-in profiles (shipped as YAML), organization profiles (~/.marianne/instruments/), and venue profiles (.marianne/instruments/). Later profiles override earlier ones on name collision.

Options

Option Short Default Description
--json false Output as JSON

Examples

# List all instruments
mzt instruments list

# JSON output
mzt instruments list --json

Sample Output

                    Instruments
  NAME              KIND    STATUS          DEFAULT MODEL
  aider             cli     ✗ not found     (instrument default)
  claude-code       cli     ✓ ready         (instrument default)
  codex-cli         cli     ✓ ready         (instrument default)
  gemini-cli        cli     ✓ ready         gemini-2.5-pro
  ollama            http    ✗ not found     llama3.1:8b

11 instruments configured (3 ready)

Status values (the same probe as mzt doctor; see its four states there): - ✓ ready — can run now: CLI binary on PATH, or a local server serving the profile's model - ✗ not found — binary not on PATH, or the local server does not serve the model (install the tool, or pull the model) - ✗ not answering — a local server that does not answer - ? unchecked — a remote HTTP endpoint; never probed (needs credentials)


mzt instruments prices

Compare every profile's model prices with models.dev; --write updates the builtins.

Usage: mzt instruments prices [OPTIONS]

Marianne prices a sheet from the models rows of the profile it ran on. Those rows are maintained by hand and drift as providers reprice. This command fetches models.dev api.json (MIT, bot-synced; input, output, cache-read and cache-write prices per model), maps each profile's model ids to a provider (claude-code → anthropic, its glm-* rows → zai-coding-plan; codex-cli → openai; gemini-cli → google; opencode zai-coding-plan/* → zai-coding-plan, the rest → openrouter) and reports each row as one of:

  • match: every price models.dev carries equals the row's. An unset cache price is compared at the rate the estimate would charge (the input rate).
  • drift: at least one price differs. The table shows the field, ours, and theirs in USD per 1K tokens.
  • absent: the provider is mapped but models.dev has no such model id (a retired id, a :free route).
  • unmapped: a profile with no provider mapping: a subscription route priced at $0 on purpose (antigravity), a local server, or a harness whose ids are its own.

Builtin and user layers are compared separately, so a user claude-code.yaml does not hide drift in the builtin. Nothing refreshes at run time: prices change in a commit, after a person reads the table.

Options

Option Short Default Description
--json false Output as JSON (counts, rows, written, refused, source)
--write false Rewrite the drifted price fields on the BUILTIN profile files in place, keeping their comments. User (~/.marianne/instruments/) and venue (.marianne/instruments/) files are reported under refused and left alone: they are yours to edit
--offline false Do not fetch; compare against the last saved snapshot
--snapshot PATH ~/.marianne/cache/models.dev.api.json Compare against this api.json instead of fetching. Every successful fetch saves the default path
--all false Also list rows that match, are absent, or are unmapped

Exit codes: 0 nothing drifts (or every drifted row was written); 1 a drifted row remains; 2 the snapshot could not be fetched or read.

Examples

# Report drift
mzt instruments prices

# Update the builtin rows in a source checkout, then review and commit the diff
mzt instruments prices --write && git diff src/marianne/instruments/builtins/

# CI or an air-gapped host: compare against a pinned snapshot
mzt instruments prices --snapshot ./models.dev.api.json --json

mzt instruments catalog

Convert and check the instrument model catalog (schema v2).

Usage: mzt instruments catalog convert SOURCE OUT_DIR
       mzt instruments catalog check DIRECTORY

convert reads a v1 instrument-catalog.yaml and writes one YAML per model family plus index.yaml into OUT_DIR, then validates what it wrote. Every v1 model and every route (runs_models, available_via) is kept; v1 fields with no v2 home go under legacy. tier_by_effort (frontier = Opus-class, balanced = Sonnet-class, light = Haiku-class) is derived from v1 price-band tags and marked provisional: it is a guess, not evidence. check validates a v2 directory and prints the model, family and provisional-tier counts; it exits 1 on any schema or index disagreement. Nothing at run time reads the catalog yet.


mzt instruments check

Check readiness and configuration of a specific instrument.

Usage: mzt instruments check [OPTIONS] NAME

Provides detailed information about a single instrument: binary location, capabilities, available models with pricing, and overall readiness. Readiness is the same probe mzt doctor uses: a local HTTP instrument is ready only when its server answers and serves the profile's default_model; a remote endpoint is reported unchecked, which is not a failure (exit 0). For a ready local server the check also reads the loaded model's context from GET /props (Context: N tokens (server /props), served_context in --json) and warns when the profile's context_window for that model is larger, since the executor would then ask for more than the server has (GH #494; mzt validate reports the same as V234).

Arguments

Argument Required Description
NAME Yes Instrument name to check (as shown in instruments list)

Options

Option Short Default Description
--json false Output as JSON
--live false Run one real prompt through the same backend the conductor uses, and one schema-mode prompt when the profile declares json_schema_flag — its schema carries a $schema (GH #479) and a discriminated union nested under a required property (GH #486), the shapes real intake schemas take, and the probe checks the chosen branch came back. Reports pass/fail, wall time and the classification the baton would act on (INSTRUMENT_UNAVAILABLE, RATE_LIMITED, TRANSIENT, …). Readiness proves the binary is on PATH; --live proves the profile works against the installed CLI. Exits 1 on failure. Spends one or two model calls
--model profile default Model for --live
--timeout 180 Seconds per --live call
--record DIR With --live: write each call's raw stdout, stderr, exit code and the CLI's --version to DIR/<instrument>/<mode>.*. Use it to capture parser fixtures from the CLI actually installed (tests/fixtures/cli_captures/ holds Claude Code's) and re-record after a CLI upgrade

Examples

# Check a specific instrument
mzt instruments check gemini-cli

# Prove the profile end to end (a real prompt, plus schema mode if declared)
mzt instruments check claude-code --live

# JSON output
mzt instruments check claude-code --json

Sample Output

Checking gemini-cli...
  Display name:  Gemini CLI
  Description:   Google's Gemini CLI with tool use and vision
  Kind:          cli
  Binary:        /usr/local/bin/gemini ✓
  Capabilities:  file_editing, shell_access, structured_output, tool_use, vision
  Default model: gemini-2.5-pro
    gemini-2.5-pro: 1,000,000 ctx ($0.0013/1K in, $0.0050/1K out)
    gemini-2.5-flash: 1,000,000 ctx ($0.0002/1K in, $0.0006/1K out)

gemini-cli is ready.

Learning Commands

These commands inspect and analyze Marianne's learning system — patterns learned from job executions that inform future runs.

mzt patterns-list

View global learning patterns.

Usage: mzt patterns-list [OPTIONS]
Option Short Default Description
--global / --local -g / -l global Show global or local workspace patterns
--min-priority -p 0.0 Minimum priority score (0.0–1.0)
--limit -n 20 Maximum patterns to display
--json -j false Output as JSON
--quarantined -q false Show only quarantined patterns
--high-trust false Show only patterns with trust >= 0.7
--low-trust false Show only patterns with trust <= 0.3
mzt patterns-list
mzt patterns-list --high-trust
mzt patterns-list --quarantined
mzt patterns-list --min-priority 0.5 --json

mzt patterns-why

Analyze WHY patterns succeed with metacognitive insights. Shows success factors — the context conditions that contribute to pattern effectiveness.

Usage: mzt patterns-why [OPTIONS] [PATTERN_ID]
Argument Required Description
PATTERN_ID No Pattern ID to analyze (first 10 chars). If omitted, shows all patterns with success factors
Option Short Default Description
--min-obs -m 1 Minimum success factor observations required
--limit -n 10 Maximum patterns to display
--json -j false Output as JSON
mzt patterns-why
mzt patterns-why abc123
mzt patterns-why --min-obs 3

mzt patterns-entropy

Monitor pattern population diversity using Shannon entropy.

Usage: mzt patterns-entropy [OPTIONS]

Shannon entropy measures how evenly patterns are used: - High entropy (H → max): Healthy diversity, many patterns contribute - Low entropy (H → 0): Single pattern dominates (collapse risk)

Option Short Default Description
--threshold -t 0.5 Diversity index alert threshold (0.0–1.0)
--history -H false Show entropy history over time
--limit -n 20 Number of history records to show
--json -j false Output as JSON
--record -r false Record current entropy to history
mzt patterns-entropy
mzt patterns-entropy --threshold 0.3
mzt patterns-entropy --history
mzt patterns-entropy --record

mzt patterns-budget

Display exploration budget status and history. The budget adjusts based on pattern entropy: low entropy boosts the budget to inject diversity; healthy entropy decays toward floor (default 5%).

Usage: mzt patterns-budget [OPTIONS]
Option Short Default Description
--job -j Filter by specific job hash
--history -H false Show budget adjustment history
--limit -n 20 Number of history records to show
--json false Output as JSON
mzt patterns-budget
mzt patterns-budget --history

mzt learning-stats

View global learning statistics. Shows summary including execution counts, pattern counts, and effectiveness metrics.

Usage: mzt learning-stats [OPTIONS]
Option Short Description
--json -j Output as JSON
mzt learning-stats
mzt learning-stats --json

mzt learning-insights

Show actionable insights from learning data including output patterns, error code patterns, and success predictors.

Usage: mzt learning-insights [OPTIONS]
Option Short Default Description
--limit 10 Maximum patterns to show
--pattern-type Filter by type
mzt learning-insights
mzt learning-insights --pattern-type output_pattern
mzt learning-insights --limit 20

mzt learning-drift

Detect patterns with effectiveness drift. Drift is calculated by comparing pattern effectiveness in the last N applications vs the previous N.

Usage: mzt learning-drift [OPTIONS]
Option Short Default Description
--threshold -t 0.2 Drift threshold (0.0–1.0) to flag patterns
--window -w 5 Window size for drift comparison
--limit -l 10 Maximum patterns to show
--json -j false Output as JSON
--summary -s false Show only summary statistics
mzt learning-drift
mzt learning-drift --threshold 0.15
mzt learning-drift --summary

mzt learning-epistemic-drift

Detect patterns with epistemic drift (belief/confidence changes). Epistemic drift tracks confidence changes over time, complementing effectiveness drift as a leading indicator of pattern health.

Usage: mzt learning-epistemic-drift [OPTIONS]
Option Short Default Description
--threshold -t 0.15 Epistemic drift threshold (0.0–1.0)
--window -w 5 Window size for drift comparison
--limit -l 10 Maximum patterns to show
--json -j false Output as JSON
--summary -s false Show only summary statistics
mzt learning-epistemic-drift
mzt learning-epistemic-drift --threshold 0.1
mzt learning-epistemic-drift --summary

mzt learning-activity

View recent learning activity and pattern applications.

Usage: mzt learning-activity [OPTIONS]
Option Short Default Description
--hours -h 24 Show activity from the last N hours
--json -j false Output as JSON
mzt learning-activity
mzt learning-activity --hours 48

mzt entropy-status

Display entropy response status and history. When pattern entropy drops below threshold, the system automatically boosts exploration budget and revisits quarantined patterns.

Usage: mzt entropy-status [OPTIONS]
Option Short Default Description
--job -j Filter by specific job hash
--history -H false Show entropy response history
--limit -n 20 Number of history records to show
--json false Output as JSON
--check -c false Check if entropy response is needed (dry-run)
mzt entropy-status
mzt entropy-status --history
mzt entropy-status --check

Conductor Commands

mzt start

Start the Marianne conductor.

Usage: mzt start [OPTIONS]
Option Short Default Description
--config -c Path to conductor config file
--foreground -f false Run in foreground (for development)
--log-level -l info Logging level
--profile -p Daemon operational profile: dev, intensive, minimal. Overrides config file defaults.
--conductor-clone Start a clone conductor; use --conductor-clone= for the default clone or --conductor-clone=NAME for a named clone
# Start in background (production)
mzt start

# Start in foreground (development)
mzt start --foreground

# Custom config
mzt start --config /etc/marianne/daemon.yaml

# Debug logging
mzt start --log-level debug

Supersede: A live PID is probed before "already running" is decided. A conductor that is serving is reported as already running (exit 0). A conductor that is draining (graceful shutdown, up to shutdown_timeout_seconds) is superseded instead: mzt start waits up to 30s for it to exit, then starts a fresh conductor. It never spawns a second conductor beside a draining one, which holds the PID-file flock and socket lock for its whole life. If the drain exceeds 30s, start exits 1. A silent probe is conservatively treated as running (GH #455: slow is not dead).

Exit Codes

Code Meaning
0 Conductor started, or a conductor was already serving (its PID is printed). A process supervisor must treat the second case as success: with Restart=on-failure an exit 1 here restarted mzt start every 30 s against a hand-started conductor (GH #459).
1 Configuration error, the conductor failed to start, or a draining conductor did not exit within the 30s supersede budget

mzt stop

Stop the running conductor. Non-blocking by default: after the safety check (and any confirmation) the signal is sent and the command returns without waiting for the conductor to exit. If scores are actively running, warns and asks for confirmation before proceeding. Stopping the conductor while scores run can orphan active agents and corrupt score state.

Usage: mzt stop [OPTIONS]
Option Short Default Description
--pid-file ~/.config/mzt/mzt.pid Path to PID file
--force false Skip safety check, send SIGKILL instead of SIGTERM
--wait Wait for the conductor to exit after signaling. --wait= (equals sign, empty value) waits with the default 30s budget; --wait=SECONDS (or --wait SECONDS) sets a custom budget. Budgets must be finite and non-negative; --wait=0 keeps the signal-and-return behavior.
--conductor-clone Stop a clone conductor; use --conductor-clone= for the default clone or --conductor-clone=NAME for a named clone

Safety guard: When scores are running, mzt stop probes the conductor via IPC to check for active scores. If any are found, it warns with the count and asks for confirmation. The --force flag bypasses this check entirely and sends SIGKILL.

After signalling, the command lists the in-flight sheets the graceful drain will wait on (<job> sheet <n> on <instrument>/<model> for <elapsed>s); a boundary-paused job's current sheet is among them until it ends. With a positive --wait budget, the command blocks until the conductor exits (prints Marianne conductor stopped) or exits 1 with did not exit within <budget>s. It is still draining. followed by the sheets a fresh probe says it is still waiting on. A graceful drain can take up to shutdown_timeout_seconds (default 300s) plus teardown while running jobs checkpoint — a --wait budget shorter than that is a bounded poll, not a guarantee.

# Normal stop (warns if jobs running; signals and returns immediately)
mzt stop

# Force stop (SIGKILL, no safety check)
mzt stop --force

# Block up to the default 30s for the conductor to exit
mzt stop --wait=

# Block up to 60s
mzt stop --wait=60

mzt restart

Restart the conductor after the same active-score safety check used by mzt stop.

mzt restart first runs the stop path. If that path refuses to proceed because active scores are running, restart aborts before starting a new conductor. Pause or finish active scores before restarting.

Usage: mzt restart [OPTIONS]
Option Short Default Description
--config -c Path to conductor config file
--foreground -f false Run in foreground (for development)
--log-level -l info Logging level
--pid-file ~/.config/mzt/mzt.pid Path to PID file
--profile -p Daemon operational profile: dev, intensive, minimal. Overrides config file defaults.
--conductor-clone Restart a clone conductor; use --conductor-clone= for the default clone or --conductor-clone=NAME for a named clone
mzt restart
mzt restart --foreground

mzt conductor reload

Hot-reload the conductor config and instrument profiles on the running conductor (GH #408): the same fail-closed path as SIGHUP and the file watcher. The whole new config is validated before anything is applied; a config file that fails to load leaves the running config unchanged. A broken instrument profile file keeps its previous entry and is reported as Partial.

Usage: mzt conductor reload [OPTIONS]
Option Short Default Description
--socket Unix socket path. Default: the active clone's socket, else the configured socket.path, else the legacy socket of a pre-move conductor
--reason cli Trigger reason recorded in the reload log
mzt conductor reload

The command prints the new config generation, the applied entries (one + <entry> per line, or Applied: (nothing changed)), the declined entries (- <entry>, running values kept) and, last, the reload result as one JSON line. Which fields a reload can apply is listed under Hot Reload.

A CAM endpoint added or changed under memory_backends.cam is applied and reported as + memory_backends (GH #573): the next dispatch resolves against the new endpoint table, and a session that is already open keeps the backend it was opened with.

Exit Codes

Code Meaning
0 The reload succeeded, whether or not anything changed
1 No conductor socket was found, the IPC call failed, or the reload was declined and the running config is unchanged

mzt conductor-status

Check conductor status via health probes.

Usage: mzt conductor-status [OPTIONS]
Option Short Default Description
--pid-file ~/.config/mzt/mzt.pid Path to PID file
--socket ~/.config/mzt/mzt.sock Path to Unix socket
--json false Emit the raw daemon.status payload as JSON
mzt conductor-status

When the socket answers, the Jobs block shows the running count and, when any musician is still executing, In flight: <n> sheet(s) with one line per sheet (job, sheet, instrument/model, elapsed) — the rows a graceful drain would wait on, including a boundary-paused job's unfinished sheet (GH #476). The Resources block shows memory, processes, backpressure, event loop lag (how late the loop wakes from a one-second sleep, with the 60-second peak) and host I/O pressure (/proc/pressure/io some/full ten-second averages). When the socket does not answer but the PID file names a live process, the command says so (PID n is alive but its socket did not answer: busy or unresponsive), prints the host I/O pressure, tells you to wait rather than restart, and exits 1; with --json it emits {"pid", "alive", "socket_answered": false, "running_state": "unknown", "io_pressure"}. Clone mode (--conductor-clone) reads the clone's own PID file for this; it never touches the default one (GH #455).


mzt clear-rate-limits

Clear stale rate limits on instruments. When a backend rate limit expires but the conductor still has it cached, sheets may stay blocked unnecessarily. This command clears the cached limit so dispatch resumes immediately.

Clears both the rate limit coordinator (used by the scheduler) and the baton's per-instrument state (used by the dispatch loop). Without --instrument it also returns to PENDING any sheet left WAITING on an instrument that is not rate-limited (a sheet whose fallback advanced while its refusal was still in flight), so mzt status showing WAITING sheets with no rate limit listed is cleared by a bare mzt clear-rate-limits; with --instrument only that instrument's sheets move.

Usage: mzt clear-rate-limits [OPTIONS]
Option Short Default Description
--instrument -i Clear rate limit for a specific instrument only
--json -j false Output result as JSON
# Clear all rate limits
mzt clear-rate-limits

# Clear rate limit for a specific instrument
mzt clear-rate-limits -i claude-cli

# JSON output for scripting
mzt clear-rate-limits --json

When to use: - A rate limit has expired but sheets are still WAITING - A sheet is WAITING on an instrument that is not listed under "waiting for rate limit" (its fallback advanced while a refusal was in flight; a bare clear re-queues it) - You want to force a retry after a rate limit event - Troubleshooting rate limit behavior during development


Telemetry Commands

Optional community telemetry: disabled by default, never automatic. See telemetry.md for the data policy. All four commands accept --spool-path PATH to select a custom spool.

mzt telemetry status

Show current user consent state and staged envelope count. No network access.

Usage: mzt telemetry status [OPTIONS]
Option Short Default Description
--spool-path Inspect a custom score spool
mzt telemetry status

Explicitly grant, revoke, or purge. Consent alone never enables sending.

Usage: mzt telemetry consent [OPTIONS]
Option Short Default Description
--grant false Allow enabled scores to stage telemetry
--revoke false Stop collection and future submission
--purge false Delete the selected local spool
--spool-path Custom spool to purge

Choose exactly one of --grant, --revoke (optionally with --purge), or --purge. Revocation persists before any purge and rotates the consent ID; re-granting after revocation rotates it again, so records staged under the old grant cannot be sent under a new one.

mzt telemetry consent --grant
mzt telemetry consent --revoke --purge
mzt telemetry consent --purge --spool-path /path/to/custom-spool.jsonl

mzt telemetry export

Export staged envelopes for inspection without sending or deleting them.

Usage: mzt telemetry export [OPTIONS]
Option Short Default Description
--out Private JSONL file to write; default is stdout
--spool-path Custom score spool

The destination cannot be a reserved .lock filename or overlap the spool or consent/control files. Inspect an export before sharing it: the sanitizer scrubs paths, usernames, emails, URLs, and credential-shaped strings, but cannot guarantee anonymity of arbitrary prose. Purging the spool does not erase exports.

mzt telemetry export
mzt telemetry export --out telemetry-review.jsonl

mzt telemetry flush

Submit staged data only with --push, an explicit endpoint, and current consent.

Usage: mzt telemetry flush [OPTIONS]
Option Short Default Description
--dry-run false Do not send or prune any data
--push false Explicitly allow network submission now
--endpoint HTTPS receiver (HTTP allowed on loopback)
--spool-path Custom score spool

--push requires --endpoint. Plain flush (no --push) is local-only and sends nothing. No redirects, environment proxy configuration, automatic retries, or endpoint credentials are used; any HTTP 2xx acknowledges the whole batch. Delivery is at least once — receivers should deduplicate envelopes. Failures retain unacknowledged records locally and exit nonzero.

mzt telemetry flush --dry-run
mzt telemetry flush --push --endpoint https://your-receiver.example/telemetry

Corpus Commands

Local composition-corpus groundwork (GH #148): assemble and measure a corpus of score-composition examples from explicitly selected sources. Nothing is discovered automatically, nothing is sent, consent is never consulted or changed, and no model training happens here. See research/2026-11-05-composition-corpus-groundwork.md for the schema, trust rules, and what the counters do and do not establish.

mzt corpus build

Write a deduplicated JSONL corpus of TrainingExample records to a local file.

Usage: mzt corpus build [OPTIONS]
Option Short Default Description
--sources examples,scores Comma-separated score dirs or telemetry JSONL spools
--output required Destination JSONL file (private local export)

Directories are read as trusted local input: YAML is preserved byte-for-byte (comments and line endings included), nested repositories (including rosetta-corpus), symlinks, and .lock files are excluded. Telemetry JSONL is not trusted: every accepted score passes through the telemetry sanitizer again, and malformed or unsupported envelopes are skipped and counted in a warning without logging their contents. Deduplication hashes exact output text (no YAML normalization); when exact duplicates occur across sources, the repository example wins, including its rationale.

The destination is written atomically (temp file + rename, fsync'd) and must differ from the sources, the consent state file, and reserved .lock names, and must not replace a source score. Review the output before sharing it — the corpus tooling is local-only and asserts no redistribution or training rights.

mzt corpus build --sources examples,scores --output /tmp/composition-corpus.jsonl

mzt corpus stats

Count distinct outputs and annotations against the 200-example volume target.

Usage: mzt corpus stats [OPTIONS]
Option Short Default Description
--sources examples,scores Comma-separated score dirs or telemetry JSONL spools
--json false Emit machine-readable counts

Reports total_examples (after deduplication), by_source_kind, by_category, annotated (records carrying a human rationale), and meets_target against target_volume (200). Volume alone does not establish diversity, permission, or training readiness.

mzt corpus stats
mzt corpus stats --sources examples,/path/to/telemetry.jsonl --json

Configuration Reference

Score configurations are defined in YAML files. Here are the key sections:

Minimal Example

name: "my-score"
workspace: "./workspace"
instrument: claude-code
instrument_config:
  timeout_seconds: 1800
sheet:
  size: 1
  total_items: 5
prompt:
  template: |
    Stage {{ sheet_num }}: Process item {{ sheet_num }} of {{ total_sheets }}.
validations:
  - type: file_exists
    path: "{workspace}/output-{sheet_num}.md"

Full Example

name: "full-example"
description: "Comprehensive job example"
workspace: "./my-workspace"

# Run `mzt instruments list` for options.
instrument: claude-code
instrument_config:
  timeout_seconds: 1800

sheet:
  size: 1
  total_items: 10

prompt:
  template: |
    Stage {{ sheet_num }} of {{ total_sheets }}: Process the next batch.
    Items {{ start_item }} through {{ end_item }}.
    {{ stakes }}
  stakes: "Be thorough and precise."

retry:
  max_retries: 3
  base_delay_seconds: 30
  exponential_base: 2.0

validations:
  - type: file_exists
    path: "{workspace}/output-{sheet_num}.md"
  - type: content_contains
    path: "{workspace}/output-{sheet_num}.md"
    pattern: "## Summary"
  - type: file_modified
    path: "{workspace}/output-{sheet_num}.md"
  - type: command_succeeds
    command: "wc -w {workspace}/output-{sheet_num}.md | awk '$1 >= 500'"

notifications:
  - type: desktop
    on_events: [job_complete, job_failed]

Legacy syntax: The backend: block was removed (#347) — scores containing one fail at parse time with "Unknown field 'backend'". See Migrating from backend: to instrument:.

Template Variables

Core variables available in all prompt templates (from SheetContext.to_dict()):

Variable Description
{{ sheet_num }} Current sheet number (1-based)
{{ total_sheets }} Total number of sheets
{{ workspace }} Workspace directory path
{{ previous_outputs }} Dict of previous sheet outputs (when cross_sheet is configured)
{{ start_item }} First item number for this sheet
{{ end_item }} Last item number for this sheet
{{ stage }} / {{ movement }} Current stage (movement) number. Same as sheet_num without fan-out.
{{ instance }} / {{ voice }} Fan-out instance (voice) number (1 for non-fan-out)
{{ fan_count }} / {{ voice_count }} Total fan-out instances (voices) for this stage (1 for non-fan-out)
{{ total_stages }} / {{ total_movements }} Total logical stages (movements). May differ from total_sheets with fan-out.

Instruments

Run mzt instruments list to see all available instruments. Built-in instruments:

Instrument Kind Description
claude-code CLI Claude Code CLI (default)
gemini-cli CLI Google Gemini CLI
codex-cli CLI OpenAI Codex CLI
cline-cli CLI Cline CLI
aider CLI Aider pair programming
goose CLI Block's Goose agent
ollama HTTP Local models through Ollama's OpenAI-compatible endpoint
claude-code-ollama CLI Claude Code harness routed at a local Ollama server
polystrata HTTP Local PolyStrata server (sparse MoE models on one GPU) through its OpenAI-compatible endpoint

Retired backend-era names do not resolve. Update old scores to a current CLI profile, or use ollama when a local OpenAI-compatible text endpoint is the right execution surface.

claude-code-ollama pins ANTHROPIC_BASE_URL=http://localhost:11434 and local authentication in the child environment. Start ollama serve, pull the selected model (default llama3.1:8b), and install claude on PATH first. The CLI availability probe checks the binary; it does not check Ollama readiness or pull models. ollama remains the raw HTTP route. To change the origin, copy the profile into ~/.marianne/instruments/ and edit cli.command.env.ANTHROPIC_BASE_URL (a full http://host:port origin, without /v1).

Validation Types

Type Description
file_exists Check for expected output files
file_modified Verify file was updated during sheet
content_contains Check for literal string in file content
content_regex Match regex patterns in file content
command_succeeds Execute shell commands as quality checks
path_in_scope Verify a path resolves inside an allowed root
field_match Compare JSON/YAML fields to literals or source fields
file_sha256 Verify a file matches a pinned SHA-256 digest
csv_unique_key Verify a CSV key column has unique values

Error Codes

Marianne classifies every execution failure into a structured error code. Use mzt errors <job> --code E001 to filter by code. The error code determines retry behavior, delay timing, and severity.

E0xx — Execution Errors (process-level failures)

Code Name Retriable Severity Delay
E001 EXECUTION_TIMEOUT Yes ERROR 60s
E002 EXECUTION_KILLED Yes ERROR 30s
E003 EXECUTION_CRASHED No CRITICAL —
E004 EXECUTION_INTERRUPTED No ERROR —
E005 EXECUTION_OOM No CRITICAL —
E006 EXECUTION_STALE Yes WARNING 120s
E009 EXECUTION_UNKNOWN Yes ERROR 10s

E006 (stale detection) fires when an agent produces no output for longer than stale_detection.idle_timeout_seconds. It is distinct from E001 (backend timeout) — stale detection kills agents that go silent, while backend timeout caps total execution time.

E1xx — Rate Limit / Capacity

Code Name Retriable Delay
E101 RATE_LIMIT_API Yes 1 hour
E102 RATE_LIMIT_CLI Yes 15 min
E103 CAPACITY_EXCEEDED Yes 5 min
E104 QUOTA_EXHAUSTED Yes Dynamic

E2xx — Validation Errors (output didn't meet acceptance criteria)

Code Name Retriable Delay
E201 VALIDATION_FILE_MISSING Yes 5s
E202 VALIDATION_CONTENT_MISMATCH Yes 5s
E203 VALIDATION_COMMAND_FAILED Yes 10s
E204 VALIDATION_TIMEOUT Yes 30s

E3xx — Configuration (not retriable — requires user fix)

Code Name Description
E301 CONFIG_INVALID Invalid score YAML; also an API refusal of the request itself (a 4xx other than 429 reported by the CLI, e.g. a response_format schema the API will not take as a tool input_schema) — the CLI's message is kept as the attempt's error and stderr tail (GH #486); and a memory configuration refusal (MEMORY_CONFIG_ERROR: a cam attachment naming an endpoint the conductor does not have, or an operator-only setting) — fails the sheet at once (GH #572)
E302 CONFIG_MISSING_FIELD Required field missing
E303 CONFIG_PATH_NOT_FOUND Referenced path doesn't exist
E304 CONFIG_PARSE_ERROR YAML syntax error

E5xx — Backend (instrument/connection issues)

Code Name Retriable Delay
E501 BACKEND_CONNECTION Yes 30s
E502 BACKEND_AUTH No —
E503 BACKEND_RESPONSE Yes 15s
E504 BACKEND_TIMEOUT Yes 60s
E505 BACKEND_NOT_FOUND No —

E9xx — Network / Unknown

Code Name Retriable Delay
E901 NETWORK_CONNECTION_FAILED Yes 30s
E999 UNKNOWN Yes 30s

Environment Variables

Variable Description Default
MZT_LOG_LEVEL Logging level (DEBUG, INFO, WARNING, ERROR)
MZT_LOG_FILE Path for log file output
MZT_LOG_FORMAT Log format: json, console, or both
MZT_AUTH_MODE Dashboard auth: disabled, api_key, localhost_only localhost_only
MZT_API_KEYS Comma-separated API keys for dashboard auth
MZT_LOCALHOST_BYPASS Allow localhost to bypass API key auth true
MZT_PUBLIC_ORCHESTRA Serve /orchestra, /api/orchestra/* and /static to every client whatever the auth mode (the public fleet view, GH #468); every other path keeps the mode's rule false
MZT_CORS_ORIGINS Comma-separated allowed CORS origins http://localhost:8080,http://127.0.0.1:8080
MZT_CORS_CREDENTIALS Allow credentials in CORS requests true
MZT_DEV Enable development mode (permissive CORS)
MARIANNE_MAILBOX Job mailbox root exported to every CLI and interactive instrument in a job; mzt mail resolves it, or derives it from MARIANNE_SCRATCH/mailbox set by the job
MARIANNE_SCRATCH Scratch root for the running sheet; also supplies the mailbox root when MARIANNE_MAILBOX is absent set by the job
MARIANNE_SHEET This sheet's number; identifies the inbox owner for mzt mail. Set in every sheet, so a user-level hook or wrapper can detect a musician and exit early (GH #536) set by the job
MZT_AGENTS_INVENTORY Capability inventory YAML for mzt agents run; no default
MZT_AGENTS_RESERVATIONS Reservations file for mzt agents list/run ~/.marianne/agents-reserved.yaml
MZT_AGENTS_RUNS_DIR Runs directory for mzt agents list and run ~/Projects/SCORES/agent-runs
MZT_AGENTS_DIR Agents root for mzt agents list and run ~/.marianne/agents
ANTHROPIC_API_KEY API key for Anthropic API backend

Musician messaging

Inside a running job, shell-capable instruments can exchange notes through the scratch-owned mailbox, independent of harness adapters:

mzt mail send 2 "The shared interface is ready"
mzt mail send all "Review the updated interface before editing"
mzt mail read
mzt mail read --since 123

send accepts a concrete sheet number or all (all initialized inboxes except your own). read prints JSONL records with id, timestamp, sender, recipient, and body. IDs are opaque, increasing cursors local to your inbox; pass the last received ID to --since to exclude messages already seen. The backends export MARIANNE_MAILBOX and MARIANNE_SHEET; the CLI can also resolve the inbox root from MARIANNE_SCRATCH/mailbox. It refuses to guess a job or sheet when that context is missing. Messages are data, not instructions. Send events record identities and UTF-8 byte counts without message bodies. Inbox contents follow the job's scratch cleanup policy; a job that ends in an error, timeout, or cancellation keeps its scratch (and with it the inboxes) for post-mortem.

mzt diagnose JOB includes mailbox traffic (sender, recipient, UTF-8 byte count, per-inbox counts, and first/last timestamps); --json adds mailbox_traffic when messages exist. The conductor records each send and its summary when the job settles at any terminal status — COMPLETED, FAILED, or CANCELLED — so a job that died mid-fan-out still logs every delivered send, and retains this metadata in the job checkpoint before scratch cleanup. Message bodies are excluded from traffic logs and diagnosis.


Tips

Verbose Mode

Use -v for detailed output:

mzt -v run job.yaml

Shows: - Backend configuration - Sheet execution details - Validation results - Timing information

Quiet Mode

Use -q for minimal output:

mzt -q run job.yaml

Shows only: - Errors - Final status

JSON Output for Scripts

Combine --json with jq for scripting:

# Get job status
mzt status my-job --json | jq '.status'

# Get failed sheet numbers
mzt status my-job --json | jq '.sheets | to_entries[] | select(.value.status == "failed") | .key'

Keyboard Shortcuts

During execution:

Key Action
Ctrl+C Graceful shutdown (saves state)
Ctrl+C (x2) Force quit

Debugging Protocol

When a job fails, follow this order:

# 1. Check current status (routes through conductor)
mzt status my-job

# 2. Get full diagnostic report
mzt diagnose my-job

# 3. View error history
mzt errors my-job --verbose

# 4. Check logs
mzt logs my-job --level ERROR

# 5. Try recovery (re-validate without re-execute)
mzt recover my-job --dry-run

mzt remediate

Diagnose failed sheets using the same remedy registry and healing coordinator as conductor self-healing. The command reads persisted job context and attempt history from the authoritative registry; it does not update checkpoint status or restart execution.

mzt remediate JOB_ID --dry-run
mzt remediate JOB_ID --sheet 2 --yes
mzt remediate JOB_ID --json
Argument / option Purpose
JOB_ID Registered job identifier
--workspace, -w Override the workspace used for remedies and spec loading
--sheet INT Select a single sheet, including a nonterminal sheet with an error
--yes Approve suggested remedies without prompting
--dry-run Preview remedies without applying them or prompting
--json Emit reports as JSON on stdout; confirmation prompts go to stderr

AUTOMATIC remedies apply unless --dry-run is set. SUGGESTED remedies ask for confirmation unless --yes is set. DIAGNOSTIC remedies provide manual guidance. Spec fixes and re-compose are guidance-only proposals in this version: the command does not edit specifications or execute re-compose. Config loading and spec corpus warnings appear in the report. Applying offline remedies requires a terminal job; use --dry-run to inspect other jobs. Without a workspace override, the stored configuration supplies the workspace.

Use mzt diagnose for read-only job reporting and mzt recover for validation-based recovery. Remediation repairs supported causes or explains the next manual action; it does not mark a failed sheet complete.