Deploys and monitoring
After a fix is approved and shipped, Zyonix needs to know it is live. It then watches new runs: if the problem does not come back over enough runs and days, the issue resolves by itself; if it recurs, the issue reopens with a new regression case.
This page also covers the Guard (runtime repair) and background-job health.
zyonix deploy
Record a deploy, for example from your CD pipeline. With --fix, it names the approved fix being
deployed, which moves that issue from AWAITING_DEPLOY to MONITORING.
zyonix deploy --release "$GIT_SHA"
zyonix deploy --fix 4 --release v2.3.1 --note "prompt with the tax instruction"
| Option | What it does |
|---|---|
--release LABEL | the release label (git sha or version); default: unchanged |
--fix N | the approved fix being deployed |
--note TEXT | a note stored with the deploy marker |
--json | print the server's answer as JSON |
--config, --endpoint, --api-key, --ca-file, --no-color, --debug | as everywhere |
Who may run it: member (cli key in CD).
Output: deploy marker #12 recorded (release v2.3.1); now monitoring: ISS-3, then a pointer to
zyonix monitor status.
Zyonix also detects deploys by itself: from the release your application passes to
zyonix.init(release=...) (or ZYONIX_RELEASE), and from changes of the prompt or configuration
hash. zyonix deploy is the explicit way, and the only way to name the fix.
zyonix deploys
Every deploy marker, with a before/after comparison: did any check get worse after it?
zyonix deploys
zyonix deploys --limit 50
| Option | Default | What it does |
|---|---|---|
--limit N | 20 | how many markers |
Who may run it: any reader.
How to read it: MARKER, WHEN, SOURCE (how it was detected or recorded), RELEASE,
RUNS BEFORE/AFTER and COMPARISON: not enough runs to compare yet, no regression (with how
many checks improved), or the checks whose failure rate rose with before -> after and
REGRESSION. Below the table, Operational metrics appear for a deploy whose latency, tokens
or LLM calls got worse or need watching.
zyonix monitor status
Resolution progress of every issue with a deployed fix. zyonix monitor on its own is the same
command.
zyonix monitor
Who may run it: any reader.
How to read it: ISSUE, STATUS, FIX (number and kind), DEPLOYED, RUNS (eligible runs
so far / runs needed), DAYS (days so far / days needed), RECURRENCES (delivered, and repaired by
the Guard) and NOTE: what is still missing (needs 40 more runs and 2.5 more days), thresholds met: resolves at the next sweep, recurred: the next sweep reopens it, or mitigated by the Guard: needs a root fix.
An issue resolves automatically at 0 recurrences once both the run and day thresholds are met. The server sweeps regularly by itself.
zyonix monitor run
Run one monitoring sweep now instead of waiting for the next automatic one.
zyonix monitor run
Who may run it: administrator.
Output: monitor swept: 1 resolved, 0 reopened, then one line per issue resolved or reopened.
The Guard
The Guard repairs some failures at runtime, inside your application, before the output is delivered. It has four strategies:
| Strategy | What it does |
|---|---|
R1 | retry (rate limits, server errors, timeouts) |
R2 | re-ask the model with the validator's feedback |
R3 | a lossless fix of the output |
R4 | raise max_tokens (x2) |
Each strategy has a mode: off; shadow and dry_run (attempt and record repairs as evidence,
without delivering them); or on. on is only reachable through an approved runtime_policy
fix, never directly.
The Guard is opt-in and runs inside the SDK. Ask whoever runs your Zyonix deployment whether it is available for your installation before relying on it.
zyonix guard status
The Guard policy: version, how often SDKs refresh it, fallback, budgets, the allow-list, guarded
failure counts, the circuit breaker, and per strategy its mode, kill switch and dry-run evidence.
zyonix guard on its own is the same command.
zyonix guard
Who may run it: any reader.
zyonix guard events
Recent guarded failures.
zyonix guard events
zyonix guard events --issue 3 --limit 100
| Option | Default | What it does |
|---|---|---|
--issue N | all | only events whose raw failure is this issue's check |
--limit N | 30 | how many events |
Who may run it: any reader.
How to read it: RUN, DOC, RAW FAILED (checks that failed before repair), CLASS,
STRATEGIES tried, MODE, VERDICT, OUTCOME, DELIVERED, CALLS (extra LLM calls).
zyonix runs show RUN shows the repair diff of one run.
zyonix guard mode
Set a strategy's mode.
zyonix guard mode R2 dry_run
zyonix guard mode R2 off
| Option | What it does |
|---|---|
STRATEGY | R1, R2, R3 or R4 |
MODE | off, shadow or dry_run. on is refused here |
Who may run it: administrator.
Output: R2 set to dry_run (policy v5); SDKs pick it up within one TTL.
zyonix guard kill
Switch strategies off immediately: an emergency stop.
zyonix guard kill
zyonix guard kill R2
| Option | Default | What it does |
|---|---|---|
TARGET | all | all, R1, R2, R3 or R4 |
Who may run it: administrator.
Output: kill switch SET: all (policy v6); effective within one TTL. The TTL is the refresh
interval shown by zyonix guard status.
zyonix guard resume
Clear the kill switch.
zyonix guard resume
zyonix guard resume R2
| Option | Default | What it does |
|---|---|---|
TARGET | all | all, R1, R2, R3 or R4 |
Who may run it: administrator.
zyonix jobs list
Is Zyonix's background work healthy? Every run is analysed by background jobs (finalising,
detection, root-cause analysis, alerts). A job that keeps failing is retried with a back-off and
then gives up; it is never dropped silently. zyonix jobs on its own is the same command.
zyonix jobs
| Option | Default | What it does |
|---|---|---|
--limit N | 50 | how many failed or retrying jobs to list |
Who may run it: any reader.
How to read it:
Background jobs
pending 0
retrying 0 (failed at least once, will run again)
failed 1 (gave up: nothing happens until retried)
oldest ready job -
worker keeping up
then a table JOB, KIND, STATE, TRIES, SUBJECT, WHEN, ERROR. A failed job means a run
was not analysed or an alert was not sent; it also shows under "Needs your attention" in
zyonix status. worker NOT PROCESSING JOBS means no worker is running: tell whoever runs your
Zyonix deployment.
zyonix jobs retry
Give failed jobs a fresh set of attempts, after the cause is fixed.
zyonix jobs retry 41
zyonix jobs retry all
| Option | What it does |
|---|---|
JOB | a job number from zyonix jobs (without the #), or all |
Who may run it: administrator.
Output: 1 job(s) re-armed: the worker runs them next.