Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Production Runbook

Operational procedures for maintaining and recovering ZERG in production. This runbook covers upgrades, backups, incident response, and monitoring. The tag-triggered deploy / CD pipeline flow lives in the WILDZERG Runbook; the full-state backup & restore procedures in Backup & DR.

Rolling Upgrades

Cluster version guard: SolClusterVersionGuard (critical — a Sol-Sol join was refused for a schema-epoch mismatch or a generation beyond N±1, or the join version probe failed against a peer; refusals are the guard acting, probe failures are admitted with an unknown posture and must be investigated) plus the version.posture.maintenance_503_marker and sol_cluster_version_skew gauge in /api/v1/cluster. Upgrade control nodes one at a time; a schema-epoch jump is stop-the-world. cluster_version_guard_ack covers BOTH refusal arms (generation AND schema-epoch mismatch), is read per exchange (a runtime flip applies to the next join, no restart), and only ever turns a refusal into a CRITICAL-logged ACKED admission for a deliberate drill. The join generation/schema epoch are release-gated by contract/cluster-generation.yaml + ci/cluster_generation_lint.py.

Event truth: SolEventUnknownTypes (warning — a node saw an event type it does not register and projected nothing; a mixed-version window or an unregistered producer is the cause; inspect the bounded type label and the peer releases). The production mixed-version signal is the admission rejection (sync_event_dropped_undefined_type_total), which fires before any validator; the alert consumes BOTH families. Declared catalog events with no validator row (inference.request, task.assigned, worker., team.,…) are healthy and do NOT count.

Automated Deployment

Production deployment is owned by the wild repo (spacebeam/wild), not a checked-in deploy script. Wild’s autonomous CD pipeline (Crow CI, podman backend) builds the ZERG images hermetically and deploys them on a tag push:

A Forgejo/Crow tag push checks out ZERG + spacebeam/corp + wild, fetches tree-sitter grammars fresh, builds all 8 images, pushes, and deploys to blue. Services run under runit (runsvdir -P /fun/service); containers under podman on the zerg_infra network. No systemd for application services, no Docker. Trigger and watch a run via scripts/release/cd-trigger.sh on blue. See wild/AGENTS.md for the full CD model.

The legacy deployment/scripts/deploy.sh is archived and must not be used — it predates the wild GitOps model.

Manual Operations (container model)

ZERG runs on blue as podman containers under runit — there is no on-host beam checkout (/opt/sol), no zerg user, and no systemd unit. The legacy beam-scp / sol remote / /opt/sol procedures were retired with the archive and have been removed from this runbook.

Upgrades: the CD pipeline (deploy-zerg.sh) is the only supported path — see the WILDZERG Runbook. Sol remote shell: podman exec -it zerg-sol bin/sol remote (or podman attach for the release console). Mnesia backups: the zerg-sol-mnesia-backups podman volume, verified by sol_mnesia_backup:verify_restore/1 — see Backup & DR. Worker/luna processes run INSIDE the sol/luna containers — there is no zerg-luna-worker runit service.

Endpoint Health

curl -s http://127.0.0.1:21434/health | jq .          # liveness only
curl -s http://127.0.0.1:21434/api/v1/ready | jq .    # deep readiness (503 when degraded)

/health (and its /api/v1/health alias) is a shallow liveness endpoint: it answers {"status":"ok","models_running":N} whenever the BEAM can answer HTTP. It does not run ETS/disk/memory/process checks. /api/v1/ready runs the 19 readiness checks (sol_health:check_names/0) and is the endpoint for deployment gates and load balancers; point monitoring at /ready (and /metrics), never at /health.

If /ready is 503 with policy_closed, the node is in the operator maintenance window — see maintenance mode.

Service Health

sv status /fun/service/zerg-sol /fun/service/zerg-mango /fun/service/openresty

Full System Check

zerg status
zerg discover
zerg zmq-workers
zerg list

Common Incident Response

Sol Continuously Restarting

Symptom: OpenResty 502 errors every few minutes.

Cause: runit restart loop (exit code -1 / config failure 162), or stale beam.smp processes.

sv down /fun/service/zerg-sol          # stop AND hold it down (sv stop would restart)
podman ps -a --filter name=zerg-sol    # stale container?
podman logs --tail 200 zerg-sol
sv up /fun/service/zerg-sol

There is no zerg host user and no on-host beam.smp to pkill — Sol is the zerg-sol podman container. Inspect the run script and logs: the Sol run script must exec the binary (no backgrounding) and exit 162 on config failure. Check tail -f /var/log/runit/zerg-sol/current.

SolUptimeReset rides the same incident class: sol_uptime_seconds < 120 means Sol just restarted. One blip is the restart loop above; repeated resets mean the run script keeps failing — read the log tail before restarting again. During a PLANNED restart, enable the maintenance window first (see Maintenance Mode) — the rule suppresses itself on sol_maintenance == 1.

Mango Auth Failures

MangoLdapRevalidationBlastRadiusRefused: the LDAP revalidation sweep refused a mass revocation (ratio/empty-search blast-radius gate). Inspect the directory/search ACL and the audit row before retrying; the tombstone is reversible.

Covers the whole Mango surface: SolMangoDown (Sol-side reachability probe), MangoDbDown (Mango’s own /health reporting its DB unreachable — the alert carries the dead-man shape or absent(sol_mango_db_up), so a vanished series fires it too), the Mango auth-plane rates MangoAuthErrorRate, MangoAuthLatencyHigh, MangoAuthInfraFailures, MangoMetricsDeadMan (warning — scrape-freshness algebra: up{job="mango"} == 0 or absent(mango_metrics_enabled); a hard-down scrape target, or a PARTIAL export (target still scrapes but the posture family vanished), pages. A STALE exporter that keeps serving mango_metrics_enabled is NOT detected by this rule (noDataState: OK; the up leg assumes the scrape job is literally named mango — a differently-named job falls back to the absent leg / SolMangoDown). An idle-but-scraped instance is Normal. This rule owns scrape-target loss / partial export; SolMangoDown remains the PROCESS-death page — the two can fire together when the process and its scrape target die in the same event), the bridge posture SolMangoBridgeLegacyAuth and SolMangoBridgeDown, the revocation plane SolMangoRevocationFlushFailed, and the trust-plane attacks SolZmqBridgeHmacFailures + SolZmqBridgeNonceReplay. SolAuthDisabledBoot is the auth-disabled boot posture (a Mango outage must never degrade into silently running without auth). Adds SolTlsCertExpiring (warning — the Sol→Mango TLS peer certificate expires in under 7 days; sol_mango_client stamps its notAfter at every successful TLS connect, so the Sol Workers/Mango panel shows days-until-expiry; renew the host cert and restart Sol — the Erlang-distribution and nginx TLS legs are outside this metric).

sv status /fun/service/zerg-mango
tail -n 100 /var/log/runit/zerg-mango/current
curl -s http://127.0.0.1:5800/health
curl -s http://127.0.0.1:21434/metrics | grep -E 'sol_mango_(up|db_up|bridge)'

Check the Mango DB path uses an absolute path inside the container (list the mounted volumes with podman inspect zerg-mango and read the source paths from the Mounts section).

SolMangoDown / SolMangoBridgeDown: the Sol→Mango link or bind is gone — check the Mango container first, then the bridge bind endpoint in Sol’s config. Auth fails closed while Mango is unreachable. MangoDbDown: the process answers but its database does not — the DB volume/PG path is the suspect (the podman inspect check above). MangoAuthErrorRate / MangoAuthInfraFailures / MangoAuthLatencyHigh are the per-handler rates: 401/403 floods are credential attacks or a broken client; 503s are the DB again. SolMangoBridgeLegacyAuth: the bridge dropped to the legacy (unsigned) auth mode — fix the shared-secret configuration before admitting workers; do not run the fleet legacy-mode. SolMangoRevocationFlushFailed (critical, immediate): a revocation full-flush cache-invalidation leg failed — a STALE AUTH CACHE is possible (revoked tokens keep validating) until the next successful resync. Force a resync and verify the flush legs in the Sol log. SolZmqBridgeHmacFailures / SolZmqBridgeNonceReplay: treat as a trust-plane event — isolate the offending peer, capture the bridge audit rows, then re-admit. MangoMetricsDeadMan: the scrape target is DOWN (up{job="mango"} == 0; the job label must literally be mango) or the exporter answered without its posture family (absent(mango_metrics_enabled) — a partial export). It does NOT detect a STALE exporter whose /metrics still serves mango_metrics_enabled (that class has no rule this phase; use the Auth Series Present panel freshness by eye). Check the Prometheus target page and the Mango container. This is the SolMangoDown boundary: SolMangoDown keys on Sol’s own sol_mango_up probe (process death / link loss); the dead-man keys on the Prometheus scrape surface (target loss / partial family export). A target that is merely idle but still scraped exports up=1 + enabled=1 and stays Normal — do NOT treat an idle auth server as a freeze. noDataState: OK means a vanished up series alone is not this rule’s signal. The Auth Series Present panel shows both series. MangoLdapRevalidationStale: the LDAP directory-revalidation sync has not completed a clean run in over 2h (or never ran) while federation is enabled — deleted directory users may still hold live Mango sessions/service tokens. Check the Mango log for LDAP revalidation verdicts and probe errors; confirm MANGO_LDAP_REVALIDATION_SECONDS matches your intended cadence and the directory is reachable from the Mango container. A federated user that was tombstoned by the sync (account deleted in the directory) cannot log back in until the stale local row is deleted via the admin API — that is the deliberate fail-closed posture (a re-hire onboards fresh). MangoBcryptQueueSaturated: the bounded bcrypt queue is fast-failing >5 hash submissions/min with the typed bcrypt_queue_saturated 503. The bound is holding by design — treat it as a credential-stuffing burst signal: confirm the source via the per-IP login limiter metrics; tune MANGO_BCRYPT_QUEUE_SIZE only with capacity, never to silence the alert.

Mango schema is FORWARD-ONLY

Mango’s migration runner refuses to run an OLDER image against a NEWER schema: a store whose applied version exceeds the newest migration the running tree ships makes /ready answer 503 not_ready reason=schema_ahead and run_migrations refuses boot, because forward-only migrations cannot undo the newer columns (the live case: a pre-v0013 image against a v0013 store reports green and then fails every token write on tokens.seq NOT NULL). The remedy is the matching image, or the explicit controlled rollback ack MANGO_ALLOW_SCHEMA_AHEAD=1 (logged CRITICAL; migrations are NOT undone — the older image must tolerate the newer columns or the first write surfaces it). Restore-before-rollback is the documented operator path.

Inference Out of Memory

SolMemoryPressure: ETS + process memory over 4 GB; SolMemoryWalDroppedOps (critical): the memory WAL dropped ops — data loss, not pressure. Both share the first-response path:

curl -s http://127.0.0.1:21434/api/v1/ps | jq .
curl -s http://127.0.0.1:21434/metrics | grep -E 'sol_memory_(bytes|wal)'

Reduce the model’s context length or switch to a smaller model. The podman container memory limit (set by wild’s podman-runner.sh via WILD_PODMAN_MEMORY) is 4GB for zerg-sol by default. WAL drops are worse than pressure: exported batches that failed to enqueue are GONE — capture the drop reasons from the log, then check the WAL segment directory for a full disk or a wedged writer before restarting.

ETS Table Corruption

ets:info(sol_models).
ets:info(sol_global_catalog).

If tables are missing, restart Sol. ETS tables with {heir, Pid} survive owner crashes via the heir mechanism.

Monitoring

Prometheus Metrics

curl -s http://127.0.0.1:21434/metrics

The /metrics endpoint is always mounted (loopback-gated in production — proxy or scrape it from the podman zerg_infra network). Key metric families:

MetricDescription
sol_upDead-man self-report gauge (1 = scrapeable; the series disappearing is the SolNodeDown signal)
sol_metrics_table_present1 = the metrics ETS table is alive; 0 = every ETS-backed counter is a catch-defaulted lie right now
sol_http_2xx_total / sol_http_5xx_total / sol_http_stream_unavailable_totalSLO response counters (2xx / HTTP-status 5xx / post-200 stream-unavailable; availability = 2xx ÷ (2xx + 5xx + stream-unavailable))
sol_zmq_workers_activeCurrently active ZMQ workers (recomputed from the live registry at boot — not a persisted accumulator)
sol_zmq_tasks_dispatched_totalTasks dispatched to workers
sol_scheduler_jobs_activeActive scheduled jobs

Families that used to be listed here — sol_http_requests_total, sol_inference_duration_seconds, sol_zmq_workers_connected — never existed in the exporter (phantom rows; the real surfaces are the SLO counters, the sol_http_request_duration_seconds histogram, and sol_zmq_workers_active respectively). deleted the phantoms.

Config fingerprint drift drill. sol_build_info carries config_fingerprint (the 64-hex SHA-256 of the node’s effective boot config). A fleet that should share one config must answer count(count by (config_fingerprint) (sol_build_info)) = 1; a value above 1 means a node booted with env/config-file/profile drift. Compare the label values with each node’s boot log, then restart the divergent node through the normal roll to converge.

SLO

SLO compliance is Grafana’s job (the retired /api/v1/slo endpoint was deleted in ) — use the sol-api-slo dashboard and the alert rules in observability/.

Grafana Dashboard

Grafana runs as a podman container on the zerg_infra network, supervised by wild under runit. Start/restart it via:

sv restart /fun/service/grafana

Configure the Prometheus datasource pointing to http://zerg-sol:21434/metrics (or the host-scoped metrics URL per wild/AGENTS.md). That target is only reachable tokenless from a LOOPBACK peer: a scrape from another host must set authorization: {credentials: <token>} on the job (the token needs the metrics:read permission) — otherwise Sol answers a typed 403. Recommended:

scrape_configs:
  - job_name: sol
    authorization:
      type: Bearer
      credentials_file: /etc/prometheus/sol-metrics-token
    static_configs:
      - targets: ["zerg-sol:21434"]

Maintenance Mode

SolMaintenanceUnknownState (critical) fires when a booted node reads the maintenance flag and finds no persisted/cached state — the read fails closed, so requests are treated as maintenance (503s) until the flag is restored. Check the data-dir permissions/disk and the maintenance_unknown_total counter. The counter is absent on a healthy boot: Any bump means the read failed closed — investigate immediately; a sustained increase means the durable state file is unreadable.

Enable maintenance mode to drain traffic gracefully:

curl -X POST http://127.0.0.1:21434/api/v1/infra/maintenance/enable \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"reason": "scheduled maintenance"}'

Health and auth endpoints remain accessible during maintenance.

Disable when complete:

curl -X POST http://127.0.0.1:21434/api/v1/infra/maintenance/disable \
  -H "Authorization: Bearer $TOKEN"

Cache Invalidation

After configuration changes, invalidate cached auth paths:

curl -X POST http://127.0.0.1:21434/api/v1/infra/cache-invalidate \
  -H "Authorization: Bearer $TOKEN"

This refreshes persistent_term cached values for auth exempt paths and rate limit settings.

Alert Reference Runbooks

Every alert rule in observability/grafana/alerting/sol-alerts.yml carries a runbook_url pointing at one of the sections below. Each entry is symptom → first checks → action; the metric families are the ones listed under Prometheus Metrics.

ZMQ

Alert: SolZmqSenderUnbound — a healthy-looking gateway whose sender has no bound worker; follow the sender-bind checks below.

Alert: SolZmqPipeTeardownGenerationSkipped — a pipe-scoped teardown was skipped because the queued teardown carried an older pipe generation; a sustained rate is reconnect churn or a flapping pipe set. Inspect the ZMQ sender/gateway generation counters and the pipe bindings.

SolZmqLossCounters: PUB events dropped (stalled subscriber/timeout), oversized worker frames dropped (protocol violation), or task-frame encode failures are moving. The counters are cumulative and absent on a healthy boot; sustained movement means a wedged subscriber or a malformed fleet. (The documented pause posture uses a separate counter and is not alerted.)

Covers worker/gateway liveness and the trust plane: SolZmqSenderDead, SolZmqGatewayDead, SolZmqSendFailures, SolZmqTaskQueueBacklog, SolTaskCompletionGap, SolZmqAuthFailures, SolZmqDroppedMessages, SolZmqRegistrationRefused, SolZmqFrameMacReplay, SolZmqFrameMacForgery, SolZmqDecodeErrors, SolZmqResyncFailures, SolZmqResyncGap, SolZmqIdentityConflict, SolZmqRegisterRateAnomaly. additions: SolZmqFleetSkew (multiple admitted protocol versions live — finish the rolling upgrade), and SolZmqOrphanChildrenCancelled (a subtree cancel walked children whose parent never recorded their terminal state). completes the enumeration: SolZmqWorkerDrop (≥20% of the registered fleet gone in 10m), SolZmqIdentityCeilingRefusal (registration refused because the identity-lifetime replay stores reached zmq_identity_ceiling; the old SolZmqReplayRowsGrowth hardcoded-80%-threshold rule is retired — the replay gauges stay on the sol-zmq dashboard), SolZmqTaskLifetimeExceeded (a task hit its lease lifetime cap), SolZmqTokenShed (token frames shed under pressure), SolZmqBridgeTsStale / SolZmqBridgeEpochRegression (bridge clock-skew / epoch plane), and the Luna sandbox postures SolLunaSandboxInert / SolLunaSandboxDisabled (the ZMQ-borne sandbox layer is not effective — a worker fleet running unsandboxed). adds the ACP trust plane — the same attack classes on the ACP channel: SolAcpHmacFailures (forged ACP frames), SolAcpReplayFailClosed (replayed ACP frames), SolAcpRegisterRefused (registration crash-loop/probe), SolAcpKeyRevoked (revocation telemetry — unexpected/clustered revocations are the signal), and SolAcpFrameStale (stale/future/ bad-TTL frame freshness refusals). adds the pre-auth heartbeat bucket SolZmqPreauthHeartbeatFlood (unregistered heartbeats dropped at a sustained rate — a self-declared-identity flood; identify the source pipe/peer at the ZMQ listener) and SolZmqPausedNackDropped (gateway-paused NACK pressure, including bound-pipe-proof refusals of foreign senders).

curl -s http://127.0.0.1:21434/metrics | grep -E 'sol_zmq_(gateway_alive|sender_alive|dropped|task_queue_depth|registration_refused|auth_failures|replay_rows|token_shed|bridge_ts|bridge_epoch|credential_refresh)'
zerg zmq-workers            # registered fleet + freshness
sv status /fun/service/zerg-sol

Gateway/sender dead (*_alive == 0): restart Sol (see Sol Continuously Restarting); the gateway re-registers workers. Registration refused / rate anomaly: check sol_zmq_registration_refused_total labels (reason) and the worker clocks — enrollment keys expire; re-provision with the wild runbook. Worker drop / fleet skew: a ≥20% drop inside 10m is a fleet event (worker-host restart, network partition) — zerg zmq-workers shows who is missing; a skew means the rolling upgrade is mid-flight, finish it. Replay rows / token shed / lifetime caps: pressure signatures — the identity ceiling or the lease plane is saturating; check sol_zmq_replay_rows_* against the ceiling, and the lifetime-cap/token counters against dispatch volume. Decode errors (SolZmqDecodeErrors): undecodable frames on the pre-auth router legs. The decoded reason is bounded + rate-limited in the Sol log; a sustained rate is a version-skewed/crashing worker or a malformed-frame flood — correlate the sender identity with the fleet protocol skew. Bridge ts-stale / epoch regression: the Mango bridge clock/epoch plane is misbehaving — verify host clocks (NTP) and the bridge resync state; an epoch REGRESSION means the bridge went backwards — force a resync. Sandbox inert / disabled (SolLunaSandboxInert / SolLunaSandboxDisabled): the advertised sandbox layer resolved to nothing on the worker fleet (inert) or the deployment deliberately runs disabled (and it should not in prod). Check the worker host’s sandbox support before re-admitting workers. Dev posture exposed (SolZmqDevPostureExposed): the ZMQ auth posture gauge reports the dev-external-bind mode in a fleet that should be gated — flip the deployment to prod posture (the enrollment/auth gates are weak in this mode; see sol_zmq_deployment_posture in the trust docs) before any further worker admits. HMAC / nonce replay / identity conflict: treat as a trust-plane event — isolate the offending worker (revoke its enrollment key), then inspect sol_zmq_bridge_hmac_failures_total and audit rows before re-admitting. Frame-MAC forgery (SolZmqFrameMacForgery): the failures family (sol_zmq_frame_mac_failures_total — bad shape / hmac mismatch / oversized identity) is the forgery half of the plane; forged MACs with fresh nonces never appear in the replay family. A slow post-cutover legacy-v2 straggler (hmac_mismatch) is the benign floor — identify the worker by the refusal logs and re-provision it; clustered failures across identities are the MITM/probe signature. ACP trust plane (SolAcpHmacFailures / SolAcpReplayFailClosed / SolAcpRegisterRefused / SolAcpKeyRevoked / SolAcpFrameStale): the same response as the ZMQ HMAC/replay class — identify the ACP peer by its registration identity, revoke the bound key, and check the sol_acp_* families (sol_acp_hmac_failed_total, sol_acp_replay_fail_closed_total, sol_acp_register_refused_total, sol_acp_key_revoked_total, sol_acp_frame_{stale,future,bad_ttl}_total) before re-admitting. A key-revocation page during a known rotation is expected; clustered revocations you did not run are the incident. Queue backlog / completion gap: scale workers or reduce concurrency; a persistent gap means results are not arriving — check the Luna logs on the worker host.

Tasks

SolDurableFileDecodeTruncation (warning, any increase): a durable append-log frame failed validation (corrupt length/term) and was skipped forward — later frames are preserved, the lost frame is permanent. Check disk health and the file named in the warning, and restore the affected journal from backup if it is critical (task outbox / dispatch receipts / memory WAL).

SolDurabilityWriteFailed: increase(sol_workflow_attempt_marker_failed_total[15m]) + increase(sol_scheduler_persist_failed_total[15m]) > 0 — a durable workflow-attempt marker or scheduler-store persist write failed. The scheduler keeps dirty jobs and retries; stale attempt markers may survive. Check the Mnesia volume and the node log.

SolTaskCompletionGap: rate(dispatched[15m]) - rate(completed[15m]) > 1 sustained for 10m. The 15m window + 10m hold tolerate a burst of long tasks (dispatched now, completed minutes later); only a genuinely stranded queue keeps the completion rate behind the dispatch rate. Check worker health, task timeouts, and the dispatch outbox/retry queue.

Additions (the durable-probe tri-state): SolTaskProbeUnavailable (critical — sol_task_store_durable_probe_unavailable_total moving: the durable frozen-row probe could not answer and terminal writes/requeues are REFUSED, not guessed; check Mnesia health and task_store_mnesia_bound_ms) and SolZmqReconcileProbeUnavailable (warning — sol_zmq_reconcile_probe_unavailable_total moving: dispatch outbox receipts were deferred, kept durable, and reconcile at the next boot scan; a persistent rate means Mnesia is degraded).

Covers the durable task stores: SolTaskQueueFull, SolTaskCompletionGap, SolOrphanResults, SolDispatchOutboxBacklog, SolRetentionSweepTimeout, SolSchedulerDegraded, SolProjectionAborted, SolSyncEventOverloaded.

Integrity additions: SolSchedulerOneShotIntegrity (warning — a one-shot barrier write failed, or the fire ended in a typed error/skip terminal without running; the consumed window is gone, inspect the job row and store health), SolTeamMailReconciliation (warning — durable team-mail rows were suppressed on READY or reaped as ghosts; a normal kick/leave/ team-destroy purge is expected cleanup and is charted only, never paged. A sustained ghost rate means worker-id reuse or a stale team journal), SolCoordinatorReconcileDebt (warning — the persisted-decomposition reconcile found a missing workflow row or needed a transient-read retry), and SolWorkflowRevocationMarkerFailed (critical — the owner-revocation trailer could not be made durable; a revoked owner’s workflow may remain resumable, check Mnesia immediately).

Additions (scheduler id integrity): SolSchedulerJobIdConflict (critical — a guarded job create refused an id that already existed; the persisted schedule is intact because the collision was refused, so inspect scheduler_job_id_conflict_total, the job row, and the store journal for a caller that bypassed the allocation funnel) and SolSchedulerJobIdNonmonotonic (warning — the scheduler’s advisory id cache disagreed with the store’s DURABLE high-water; the store stayed authoritative and the create used the safe id, but a bump is a real divergence from the persisted watermark, not merely a restart, so inspect the scheduler process state and the store snapshot/journal job_id_high_water fields).

Additions: SolTaskIdempotencyDegraded (critical — a claim degraded OPEN, duplicate execution possible; identify the request key from the claim WARNING log and check Mnesia health), SolDispatchOutboxWriteFailed (critical — a receipt write failed before send; reconcile with the outbox endpoint), SolDispatchOutboxOrphaned (boot reconcile marked rows orphaned — executed work needs manual reconcile), and SolWorkflowCompensationMarkerFailed (critical — a compensation marker write failed; verify the affected steps’ side effects manually). adds the workflow/event-store plane: SolWorkflowBudgetLimited (workflow budget stops), SolWorkflowSubDeaf / SolWorkflowCrashStrand (store subscription loss / unrecovered crash strands), SolCompactionFailures (event compaction skipped/failed), SolEventStoreBacklog (oldest-event age or staging backlog over budget), SolEventStoreMaintenance (critical — the event-store maintenance-503 posture; the rule is SUPPRESSED while the operator maintenance window (sol_maintenance) is active, so a planned drain never pages; a boot-owned store failure with maintenance off still pages), SolSyncEventShed (sync-event journal/mailbox shedding), and SolSyncEventRetentionBloat (the retained-bytes estimate over the configured 4 GiB budget). Adds SolDispatchOutboxJournalFailed (warning — an outbox-journal frame could not be appended or FSYNCED; the mnesia receipt remains primary but the SIGKILL/power-loss safety net for dispatched receipts is degraded — check disk health on the Sol data dir, ENOSPC/EIO, and sol_dispatch_outbox_journal_restored_total at the next boot) and SolDispatchOutboxJournalBloat (warning — the journal stayed above the 8 MiB compaction threshold for 15m: the outstanding receipt set itself dominates, clears have stopped, or the atomic rewrite cannot land; check the outbox backlog, the journal-size panel on Sol Workers & Tasks, and sol_dispatch_outbox_journal_compacted_total / sol_dispatch_outbox_journal_compaction_failed_total; the file is dispatch_outbox.journal in the Sol data dir).

Durability/ownership alerts live in this section too: SolTaskStoreTerminalReconcilePending (critical — a terminal result write failed while the dispatch receipt survived; boot/periodic reconcile is the recovery path, check Mnesia/disk before it drains), SolTaskStoreReceiptNewerThanTerminal (warning — a live retry receipt is newer than the durable terminal row; the retry is retained and requeued, investigate the power-loss/kill window), SolWorkflowPersistFailed (critical — the workflow start/resume durable write failed and the ack was withheld), SolWorkflowResumeStatusChanged (warning — a resume compare-and-write found a live child already owns the terminal state), SolOwnerRegistryEmpty / SolOwnerRegistryRearmFailed (critical — an owner re-armed an empty/failed static registry; lookups/validation degrade until restart; check the owner’s re-arm CRITICAL log and owner_registry_* counters), and SolStreamWriterAbandoned (warning — a foreign SSE writer was abandoned on ack-timeout/connection DOWN; one-off = client disconnect, sustained = admission-slot churn; verify the caller ran its terminal funnel).

/ adds SolTaskStoreDurableWriteFailed (critical — a terminal result’s durable write did not land; the ETS row is served this boot and the retained receipt + needs_reconcile marker re-write or requeue it; check Mnesia/disk health on the Sol data dir, and read it with SolTaskStoreTerminalReconcilePending — that rule counts the chokepoint’s receipt-retained verdicts, this one the raw durable-tier failure).

W9 adds the event-handler ingestion dead-man pair: SolEventHandlerRemoved (critical — a gen_event handler was removed after 5 consecutive crashes; metrics/audit/archive/sync/forwarder ingestion for that handler is down), and SolEventHandlerFreshness (warning — an installed handler has not completed a successful event delivery for over an hour; stalled/deadlocked handler). The supervised rearm (sol_metrics_owner’s watchdog) re-installs a removed handler within ~30s, up to 5 attempts per handler per VM — watch sol_event_handler_rearm_exhausted_total for a spent budget; a handler that exhausts stays down until its crashes are root-caused. The Event Handler Guard panel on Sol API SLO & Health carries the whole plane (removals, per-handler age, re-arms, exhaustion).

curl -s http://127.0.0.1:21434/metrics | grep -E 'sol_(task_queue_depth_pct|dispatch_outbox|retention|scheduler|sync_event|event_store|workflow)'
curl -s http://127.0.0.1:21434/api/v1/tasks/outbox | jq .
zerg list

Queue pressure: drain or shed load (zerg list, cancel stuck tasks); verify workers are accepting dispatches. Outbox backlog: the dispatch outbox is written before send and cleared at the terminal chokepoint; a growing backlog means sends/terminals are failing — check the ZMQ section above. Retention sweep timeout: the sweep is paged and budgeted; a timeout means a store operation is wedged — check PG/disk health, then allow the next budgeted pass (it resumes from the last page). SolSyncEventRetentionBloat is the volume-side twin: the sweep runs but the retained-byte estimate keeps growing — check the compactor/reap cadence and the event inflow rate before raising the budget. Projection aborted / sync-event overload: projections self-heal from the event store; investigate only if the counters keep rising (they are truncated/derived state, never the source of truth). SolSyncEventShed is the same family’s pressure valve — shed events are journaled and replayed; sustained shedding means the event spine is oversubscribed. Workflow degradation (SolWorkflowBudgetLimited / SolWorkflowSubDeaf / SolWorkflowCrashStrand): budget stops are policy working; subscription loss and crash strands mean the workflow store is losing its watchers — restart the affected workflows and check the store owner’s health. Event-store plane (SolCompactionFailures / SolEventStoreBacklog / SolEventStoreMaintenance): maintenance mode is an operator lever (verify it was intentional); compaction failures and backlogs mean the event log is growing without a haircut — check disk (see disk) and the compactor’s last run.

SolWorkflowBridgePosture (warning): the workflow bridge is NOT installed (sol_workflow_bridge_installed absent or 0 for 15m) — workflow prompt steps cannot execute and the advertised durable workflow plane is inert. The shipped posture is workflow_bridge_enabled=true. Check the boot log for the bridge install/degraded verdict and whether its sync-store subscription could arm; the usual cause is a store that cannot arm the subscription — verify event-store health and the bridge config, then restart only after capturing the install failure.

SolWorkflowCompensationKilled: a workflow rollback was interrupted mid-compensation (the compensation worker was killed or its window expired) — the rollback did NOT reliably complete. Inspect the workflow instance and its compensation journal, then re-run the compensation from the operator surface. The counter is store-owed: a committed workflow side effect may remain un-compensated.

SolEventsMailboxDropped: the event manager’s mailbox hit the shed bound and core events were DROPPED. The event spine is the durability source — check the archive drain, the mailbox depth (sol_events_mailbox_len), and the drop-funnel log before the loss window grows.

SolDispatchOutboxJournalRestoreFailed: the boot dispatch-outbox journal restore FAILED — the kill-window replay net did not land, so dispatched-but-unsettled tasks may be lost across the restart. Inspect the journal file under the Mnesia dir and the boot log; do not restart again until the journal is readable.

SolSyncEventShed also consumes sol_sync_event_shed_mailbox_dropped_total: the shed worker’s OWN mailbox drops are event loss, not just journal pressure.

Workflow compensation

Alert: SolWorkflowCompensationKilled — a workflow rollback was interrupted mid-compensation. Inspect the workflow instance and its compensation journal, verify which side effects were already undone, and re-run the compensation from the operator surface. The counter is store-owed (a workflow side effect can remain un-compensated).

SSE admission

Alert: SolSseAdmissionRefused — the per-principal stream limit, the global stream budget, or the connection-headroom gate refused a stream (429/503 with Retry-After). Check sol_sse_connections_active, the principal labels in the refusal log, and max_sse_connections / the headroom reservation. A single principal refusing repeatedly is hoarding streams; global/headroom refusals mean the streaming budget is saturated — scale the connection budget or shed the slow consumers, never widen the gate silently.

Worker crash

SolWorkerCrashRate (critical) fires on >5 crashes in 10 minutes; SolStaleWorkers fires when registrations age out.

curl -s http://127.0.0.1:21434/metrics | grep -E 'sol_worker_crashed_total|sol_stale_workers'
zerg zmq-workers

Identify the crashing worker from the ZMQ dispatch logs, pull its Luna log bundle, and check whether the crash is task-class (one bad task) or worker-class (OOM, sandbox refusal). Worker-class: restart the worker host agent and re-enroll; task-class: cancel the offending task first. A crash loop on one node should be cordoned (zerg zmq-workers shows identity) so the scheduler stops selecting it.

Seats

SolSeatCapSaturated, SolShareQuotaRejected: the seat/share admission gates are doing their job.

curl -s http://127.0.0.1:21434/metrics | grep -E 'sol_seat_checks|sol_share_quota_rejected'

Check which team is saturated (labels on sol_seat_checks), release idle seats (workers that no longer hold tasks), and raise the cap only with the org’s seat allocation in hand. Rejections are expected under load — alert fatigue means the cap is undersized for the workload.

Plugins

SolPluginExecutorStuck, SolPluginQueuedBudgetExpired: a plugin’s tool work outlived its budget. SolLuaEvalBudgetKilled: a lua_eval runner was killed by the shared reductions/heap/refc-binary watchdog (a sustained rate is a hostile or runaway eval caller — check the lua_eval audit rows and the caller’s grant). SolChannelDispatchFailed: channel/message delivery legs failed (the plugin or chat surface could not hand off its reply).

curl -s http://127.0.0.1:21434/metrics | grep -E 'sol_plugin_(pending_tools|queued_budget_expired)|sol_channel'

Find the plugin in the plugin-manager logs, unload it (sol_plugin_manager operator surface), and re-run its tool once the queue drains. A repeatedly stuck executor means the plugin’s budget is mis-sized or it blocks on host I/O — fix the plugin source before re-enabling. Channel dispatch failures point at the channel integration (webhook target down, auth expired), not the plugin itself.

Models

SolModelsZero: no local model is READY to serve (sol_models_ready — running or startable-on-demand) and no provider endpoint is registered. SolProviderExhausted: every endpoint for a provider returned exhaustion/429 and the circuit opened. SolProviderPoolHeadroomZero: a provider’s key pool has no drawable key (all keys cooling down or quota blocked) — requests will refuse until a key recovers or is added. SolAutoscalerTpsUnavailable: the autoscaler lost its TPS signal (lane placement degrades without it).

curl -s http://127.0.0.1:21434/api/v1/ps | jq .
curl -s http://127.0.0.1:21434/metrics | grep -E 'sol_models_(total|ready)|sol_provider_(endpoints|exhausted)|sol_autoscaler'

Re-register the local model (zerg zmq-workers reports the fleet model catalog; llama.cpp must have a loaded model) or restore the provider configuration. SolModelsZero is critical because every inference request will fail until at least one model resolves. SolProviderExhausted is quota/key exhaustion — see providers for the fail-over path.

Inference lanes

Alert: SolLaneControlRateLimited — an identity exceeded the lane-control budget (lane_control_max_per_10s, default 60) and the control was refused; a sustained rate is a retry loop, a stale resolver, or an abusive client.

SolGpuProbeTimeout (warning): the supervised nvidia-smi probe timed out or crashed (driver wedged). Lane VRAM checks fall back to the static budget and release-verify cannot measure returned memory; cpu_host and nvidia_smi_missing are separate, non-paging classes. Check the driver and the Sol log.

SolInferencePortWindowLow (warning — at most ONE free port in the published [base_port, base_port+inference_port_range) window for 10 minutes; the N-1 leg) and SolInferencePortWindowExhausted (critical — the window is full; new starts answer a typed no_port_available). Inspect sol_inference_ports_used/_free and stop idle lanes or widen the window inside the node’s published range.

Lane-governor alerts: SolLaneReleaseVerifyFailed (critical), SolLaneLeaseOverPolicyMax, SolLaneVramUnderMargin, SolLaneStuckLoading (warnings). additions: SolLaneLeaseExpired (the mid-turn idle-release plane), SolLaneStoppedWithLease (a stopped lane still holding its lease — the spawn-failure wedge), SolInferenceStartFailed, and SolLaneQueueRejected. adds SolLaneLeaseRenewRefused (a lease renewal refused by the governor — sol_lane_lease_renew_refused_total by reason; paired with the sol_lane_lease_reclaimed_total reaping counter on the Sol Inference Lanes dashboard). SolLaneLeaseOverPolicyMax now compares against the lease’s own granted ceiling (sol_lane_policy_max_seconds), so the threshold moves with the lane’s configured duration. adds SolLaneCompletionDegraded: the FIM completion plane (POST /v1/completions → the lane’s internal /infill) is either above its p95 latency band or refusing requests (excluding the typed lane_warming cold-start class). Check sol_lane_completion_inflight, sol_lane_completion_queue, sol_lane_completion_refused_total{reason} and the lane’s own health; the lane endpoint is never client-facing.

curl -s http://127.0.0.1:21434/metrics | grep -E 'sol_lane_(state|lease|vram|orphan|policy)'
ls -l "$(curl -s http://127.0.0.1:21434/metrics >/dev/null; echo /tmp/sol)/lanes" 2>/dev/null
nvidia-smi --query-gpu=index,memory.used,memory.total --format=csv,noheader,nounits

A release-verify failure means a lane stop left its VRAM allocated — find the pidfile under <data_dir>/lanes/, compare /proc/<pid>/cmdline with the pidfile’s model/binary before touching anything (lookalikes are counted and never killed), and check for an external producer (ComfyUI et al.). The lease-over-policy and stuck-loading warnings point at a wedged lifecycle; an on-demand lane that holds a lease without traffic is an idle-release bug. VRAM-under-margin (verified samples only) means image work will OOM — evict a resident lane or stop the external producer. SolLaneExpired / SolLaneStoppedWithLease are the mid-turn kill and spawn-wedge planes: check the lane’s last_error, the lease sweep WARNING lines and the start-failure counters before restarting anything.

Audit

Alerts: SolAuditSinkNoOp (the sink accepted nothing) and SolAuditSyncFailures (sync failures are accumulating) — both mean the audit trail is not durable; follow the sink/sync checks below.

SolAuditFlushFailures, SolAuditFlushDropped: the audit trail is not reaching durable storage. additions (Mango-side chain integrity): MangoAuditHeadCollision (critical — two writers tried to extend the same chain head; capture Mango’s audit chain state BEFORE restarting) and MangoAuditChainLockFailures (PG advisory-lock contention on the chain). MangoAuditWriteFailures (warning): audit writes are failing — strict callers fail closed, non-strict callers proceed with the row LOST (every increase is a trail gap). MangoAuditCheckpointFailures (warning): the signed chain checkpoint is not refreshing, so an external verifier has a stale anchor. MangoAuditEventsRetentionStalled (warning): the oldest row in the event-archive table (audit_events) is older than the default 30-day window + 7 days of slack — the documented mango/scripts/prune_audit_events.py job has not run and the archive is growing without bound. Back up the Mango store, run the job’s --dry-run first, then re-run with --yes; an intentional keep-forever posture is MANGO_AUDIT_EVENTS_RETENTION_DAYS=0. SolAuditChainVerifyFailed (critical): the audit-chain verifier rejected the retained chain (tamper, a prune/anchor bug, or a partial file) — capture the audit files before restarting and verify the oldest retained anchor. SolAuditChainVerifyDeadman (critical): no verification COMPLETED for over 15 minutes — the verifier loop is down/wedged or audit is disabled; check the audit server and audit_verify_interval_ms. SolAuditRetainedBufferDepth (warning): a sustained sink outage is accumulating an oldest-pinned batch in memory (bounded; NEWEST entries drop on overflow) — treat it as a pre-drop warning and clear the sink before the drop counter fires. SolAuditActorIdentityMissing (warning): an audit call site lost its request identity and stamped internal — trace the calling route; sustained rates mean wrong-actor attribution is possible. Both alerts link here.

curl -s http://127.0.0.1:21434/metrics | grep sol_audit_flush
tail -n 100 /var/log/runit/zerg-sol/current | grep -i audit

Audit writes are fail-closed for security-relevant actions. Check disk space and the audit sink volume first; a dropped batch must be treated as an integrity gap — export the in-memory tail and record the incident before restarting. If the sink is full, rotate it, then restart Sol.

Projections

SolProjectionRebuildUndercount (critical, any increase): a rebuild produced a view row BELOW its retention baseline (task/model/worker/ session) — the rebuilt projection lost events the baseline had. The emitter logs CRITICAL with the table/key; do not delete the baseline, inspect the replay/retention source and re-run the rebuild.

SolProjectionCrash (critical, any increase), SolProjectionGap (warning): a projector process crashed on a committed event (the increment is lost until a rebuild) or the compare-and-write guard absorbed an out-of-order / replayed event below a view’s last_seq.

SolProjectionDebt: more than one per-aggregate cap (64) of owed projection/outbox rows are outstanding, the oldest owed row has aged past 5 minutes, or increase(sol_projection_debt_retry_failed_total[15m]) > 0 (a durable debt-row write failed — the owed event’s view contribution is NOT durable). This is the plane that degrades silently between the first projector failure and the quarantine cap. Inspect the projection_debt rows, the projector log, and Mnesia health; the quarantine/orphan counters are the last-resort loss signal (SolProjectionCrash). The Sol Workers & Tasks dashboard carries the debt/outbox panel.

curl -s http://127.0.0.1:21434/metrics | grep -E 'sol_projection_(crash|gap|aborted)'

The event log is the truth — projections are rebuilt from it on boot replay. A crash means a cumulative counter (message_count, total_tasks_started, token totals) under-reports until the next boot; there is no runtime projection-rebuild route (the legacy URL is retired — do not script it). A sustained gap stream means either a genuine ordering violation or a duplicate replay — capture the affected aggregate ids from the Sol log and escalate; restart-to-replay is the supported repair.

Slow endpoint

SolSlowEndpoint: a windowed p99 per path_class (from sol_http_request_duration_seconds) has been above 2s for 5m. The rule is a 5-minute rate quantile, not a since-boot average, and it covers streams (SSE/WS) — the stream terminate hook records one sample per stream, including client aborts.

curl -s http://127.0.0.1:21434/metrics | grep sol_http_request_duration

The path_class label (inference_request, chat, http_request) names the route family; per-path request counts/duration totals live in sol_http_path_latency_* (bounded to the configured path_latency_max_paths, overflow is :other). Typical causes: provider latency for inference routes, PG contention for memory/task routes, or a slow consumer holding an SSE stream. Check the Grafana latency panels first, then the provider circuit state.

Queue full

SolTaskQueueFull: the LIVE ZMQ dispatch queue (sol_task_queue_depth) is over 80% of zmq_max_queue_depth (sol_task_queue_depth_pct > 80). Addition: SolLaneQueueRejected — the lane plane’s bounded admission queue rejected waiters (clients got 429/503); check sol_lane_queue_depth and lane capacity.

curl -s http://127.0.0.1:21434/metrics | grep sol_task_queue_depth
zerg status

Either the fleet is undersized or workers are wedged (see worker crash and ZMQ). Scale out workers or cancel low-priority tasks. Continued saturation drops enqueues at the admission gate with a loud 429/503 rather than silently queueing forever.

Providers

SolProviderExhausted: every endpoint for a provider returned exhaustion/429 and the circuit opened; no further retries are attempted until the cooldown. SolSseUpstreamErrorFrames: SSE streams are emitting upstream error frames — the provider is up enough to answer but failing mid-generation.

curl -s http://127.0.0.1:21434/metrics | grep -E 'sol_provider_(exhausted|endpoints)|sol_sse'
curl -s http://127.0.0.1:21434/api/v1/infra/status | jq .

Check the provider key/quota out-of-band, rotate keys if needed, or fail over to a configured secondary provider/model. The circuit closes automatically after the cooldown once a probe succeeds (see circuit breaker). Sustained SSE error frames with a green circuit mean the upstream degrades under streaming — check the provider’s status page and the error-frame reasons in the Sol log.

Processes

SolProcessExhaustion: sol_process_count / sol_process_limit > 0.8.

curl -s http://127.0.0.1:21434/metrics | grep sol_process
podman exec zerg-sol bin/sol remote   # :observer.start / process listing

Look for a runaway supervisor, a leaking worker session, or an unbounded request fleet. Restarting Sol clears transient leaks but a rising baseline means a real leak — capture the top process counts before restart.

Readiness and draining

Alert: SolReadinessProbeStale — no fresh /api/v1/ready verdict; the exporter renders the readiness family absent (never a fabricated healthy 1).

SolReadinessDegraded: the last /api/v1/ready verdict is degraded or policy-closed (sol_readiness_ok 0 for 2m) — the deploy probe refuses and the load balancer should not route here.

curl -s http://127.0.0.1:21434/api/v1/ready | jq .
curl -s http://127.0.0.1:21434/metrics | grep -E 'sol_readiness_(ok|check)|sol_draining'

sol_readiness_check{check="..."} 0 names the failing dependency. The probe is bounded (sol_health_check_budget_ms per check, sol_health_total_budget_ms total), so a timeout row means a dependency wedged past its budget — inspect that subsystem, then re-probe. Disk probe_stale means the supervised disk sampler has not refreshed within 90s (the sampler runs off the request path; restarting Sol re-arms it). A policy-closed verdict is the maintenance gate: /api/v1/ready answers policy_closed 503 while every non-exempt route 503s — see maintenance mode.

SolNodeDraining: sol_draining 1 for over 5 minutes — the shutdown drain budget (shutdown_drain_timeout_ms, default 5000 ms) is exhausted and the container runtime will SIGKILL the node mid-teardown (skipping the mnesia checkpoint and the event-archive flush). Check long-lived SSE/streaming clients and the drain log; the shutdown order is checkpoint → drain → stop HTTP → flush archive/scheduler → disconnect PG.

HTTP capacity

SolHttpConnectionSaturation: sol_http_connections_utilization_pct > 80 of the explicit http_max_connections cap for 5 minutes. SSE/chat streams hold connections for their lifetime and share the pool with ordinary HTTP (max_sse_connections is the streaming budget inside it). SolHttpNofileHeadroom: sol_http_nofile_headroom < 0 — the process RLIMIT_NOFILE is below http_max_connections + max_sse_connections + 1024; accepts will fail with EMFILE under load.

curl -s http://127.0.0.1:21434/metrics | grep sol_http_connections
curl -s http://127.0.0.1:21434/metrics | grep sol_http_nofile

Raise SOL_NOFILE_LIMIT (the entrypoint applies it before exec; a hard limit may need a container/systemd change) before raising http_max_connections. Check the SSE admission panel for streams that never drain, and client retry storms.

Node down

SolNodeDown is the dead-man switch: absent(sol_up) for 2 minutes — nothing is scraping or Sol is gone. SolInstanceDown is its per-target companion: up{job="sol"} == 0 for 2 minutes on ONE Sol target while the rest of the fleet still reports (a single node died without a blackout).

sv status /fun/service/zerg-sol
podman ps --filter name=zerg-sol
curl -s http://127.0.0.1:21434/health

Confirm whether the process, the container, or the network died. If the container is up but /metrics is not served, Sol is wedged — restart it (see restart). Ensure the Prometheus scrape target recovered (up == 1) before closing the incident. SolUnexpectedMessage is the companion tripwire: the router received a frame it cannot classify — a one-off after a deploy is noise, a stream means a protocol-version skew (see ZMQ) or something probing the socket.

License

SolLicenseFallback: the licence plane is running on a fallback source (source="fallback").

curl -s http://127.0.0.1:21434/metrics | grep sol_license

Renew or re-install the licence file/bundle; fallback mode may disable capacity grants (seats, plugin limits). This is critical because a fallback posture silently changes what the deployment is allowed to do.

High latency

SolHighLatency: inference-request p99 over a WINDOWED histogram — histogram_quantile(0.99,... rate(sol_http_request_duration_seconds_bucket {path_class="inference_request"}[5m])) > 30 for 5 minutes. (Since the rule reads the 5-minute histogram window against the documented 30s generation ceiling — the pre-0.734 text “p99 > 1s” described the retired since-boot summary and fired on every normal LLM generation.)

curl -s http://127.0.0.1:21434/metrics | grep 'sol_http_request_duration_seconds'
curl -s http://127.0.0.1:21434/api/v1/ps | jq .

Check GPU/CPU contention, context size, and whether the model is being swapped per request. If a single worker is the outlier, cordon it (see worker crash); if all are slow, the host is saturated — reduce concurrency or context length.

Error rate

SolHighErrorRate (critical): >50 combined HTTP-status 5xx responses + post-200 stream-unavailable terminations in 10 minutes. SolClassified500: any response CLASSIFIED internal-500 — the never-500 norm tripwire, distinct from honest 503 maintenance/refusal responses that also land in the raw 5xx sum. splits the planes: sol_http_5xx_total is HTTP-status only; sol_http_stream_unavailable_total{reason} carries truncated / provider_error / handler_crash (the stream never produced a terminal HTTP status). Inspect the reason label to tell a provider failure from a handler crash.

curl -s http://127.0.0.1:21434/metrics | grep sol_http_5xx
tail -n 200 /var/log/runit/zerg-sol/current | grep -E 'CRASH|error'

Group the 5xx by route/method from the metric labels, then reproduce the top route. Sol classifies upstream failures as 502/503 and only truly unhandled conditions as 5xx — a sustained rate means a real handler defect or a dependency outage. If a dependency (Mango, PG, provider) is down, its own alert fires first.

Disk

Alert: SolDiskSamplerStale — the disk sampler has no sample or is older than the stale bound; free-space families are absent.

SolDiskFull: sol_disk_free_bytes < 100MiB. SolDiskFreeWarning: free space below 15%. SolDiskExhaustionPredicted: a 1-hour trend predicts exhaustion within 4 hours — act on the prediction, not the wall. SolDiskProbeFailed: sol_disk_probe_failed{dir} is 1 — the directory could not be probed (df failed or returned an unparseable pair), so that volume’s capacity is UNMONITORED. Check the path, permissions, and the df binary before trusting the free-space panels for that dir.

curl -s http://127.0.0.1:21434/metrics | grep sol_disk_free
df -h /fun /var/lib/containers

Free space immediately: rotate runit logs, prune old Mnesia backups and container images (podman image prune), and rotate the audit/PG WAL. Sol fails writes loudly rather than corrupting, but a full disk stops event persistence — treat as a stop-the-line incident.

Cluster

SolClusterExpectedNodes: sol_cluster_node_count is below the configured expectation. additions: SolOrchestratorLeaseSplitBrain (critical — MORE THAN ONE node reports holding the single-writer lease; capture every node’s lease state, then fence the minority holder — do NOT reboot blindly) and SolLaneInventoryStale (a peer has been silent past the inventory TTL for 15m; its owned lanes/tasks resume only when it returns). SolLaneInventoryStaleIdle is the quieter twin: the peer is stale but owns NO inventory — link monitoring, not task recovery.

Isolation: the leave set is seeded from the configured seeds ∪ all known peers, not just the links up at leave time — a seed that was partitioned during the leave is still suppressed when it returns. Visible peers receive a peer-side leave marker; GET /api/v1/cluster exposes left, and status.count/connected/self plus the connectivity/health planes are separate (a connected peer is only healthy after a pong; a manually joined peer is unknown, never implicitly healthy, ). An explicit join is the only re-entry; a Sol restart starts with an empty leave set.

curl -s http://127.0.0.1:21434/metrics | grep sol_cluster
podman exec zerg-sol bin/sol remote   # :nodes()

Bring the missing node back or update SOL_CLUSTER_EXPECTED_NODES / SOL_CLUSTER_NODES to match the real topology. The deployment is single-node by default — this alert only fires when clustering is configured.

SolZmqGatewayFencedWhileHolder (critical, 2m): the node reports HOLDING the orchestrator lease while its ZMQ gateway is still QUIESCED — a dead dispatch plane (the pre-fix one-way self-fence). Re-acquire calls resume(lease_reacquired); if the alert persists, the fence reason differs from the recorded one, and a takeover/DR fence must not be cleared by a stale resume. Inspect lease_detail/0 and the gateway quiesce log, capture the holder/lease state on every node, and only then fence or restart the affected node.

Circuit breaker

SolCircuitBreakerOpen: a provider circuit has been OPEN for 5+ minutes.

curl -s http://127.0.0.1:21434/metrics | grep sol_circuit_breaker_state

Check the provider’s health out-of-band. The circuit probes and closes on its own once the provider recovers; if the provider is permanently gone, remove or replace the provider configuration. Distinct from provider exhaustion, which is the fast-fail admission path.

TLS certificates

Sol exposes two certificate-expiry gauges: the Sol→Mango peer certificate (sol_tls_cert_not_after_seconds{service="mango"}) and the Sol listener certificate (sol_tls_listener_cert_not_after_seconds). SolTlsCertExpiring and SolListenerCertExpiry page before expiry; rotate the PEM named by tls_cert_file and reload the listener.

Goals

Goal-plane loss (sol_goals_lost_on_owner_restart) is a store-owed durability debt: the goal owner’s ETS state does not survive a restart by design today. Capture the dropped goals from the CRITICAL log and treat goal durability as a known store gap; SolGoalsLostOnOwnerRestart pages on any loss.

Backup

Alerts: SolBackupOffsiteUnmanaged (an external lifecycle policy owns the copy without the declared lever) and SolBackupOffsiteLowSpace (the offsite volume is below the floor).

SolMnesiaBackupFailed: the scheduled Mnesia backup reported not-ok. SolMnesiaBackupMissing: the scheduled backup interval is enabled but the backup directory holds ZERO backups — the scheduler or the data directory is wrong; follow the backup procedure and verify sol_backup_count + sol_backup_newest_age_seconds in the scrape. SolMnesiaBackupStale: the last SUCCESSFUL backup is >25h old (the failure counter can be 0 while the scheduler itself is wedged — the age gauge is the truth). SolMnesiaBackupOffsiteFailed: the off-host copy leg (rsync/copy + manifest checksum) failed — the local artifact is intact but the disaster-recovery copy is not.

mnesia_backup_interval=0 disables scheduled backups explicitly (0 is a documented off switch, never a zero-delay loop). In prod, same-volume backups are not a DR posture: the readiness backup check reports offhost_target_required until sol_mnesia_backup_remote_path is set.

curl -s http://127.0.0.1:21434/metrics | grep sol_mnesia_backup
ls -la /var/lib/containers/volumes/zerg-sol-mnesia-backups/

Run a manual backup and verify with the restore checker (sol_mnesia_backup:verify_restore/1) — see Backup & DR. A failed backup is not urgent by itself but an unverified backup is not a backup; fix the volume/space issue before closing.

Event-store RPO/RTO truth

Alert: SolProjectionRebuildUnproven — the projection rebuild proof gate stayed unproven (gauge 0) for an hour; projections may serve stale/debt rows.

The operator-readable durability statement for the event plane ( the substrate decision record is plan/pg-durable-spine-design.md in the source tree; the numbers below are true for the SHIPPED Mnesia spine):

  • RPO — process crash / kill -9: 0 committed events. The append ack is a mnesia:sync_transaction; spill admissions dedupe on the RecId-derived event id, so a replay after a crash cannot duplicate a committed event.
  • RPO — host/VM death: ≤ 1 h + tail. The backup cadence is mnesia_backup_interval (default 3600 s; SolMnesiaBackupStale pages at >25 h) plus the un-checkpointed dets log tail (dump_log_write_threshold=100 operations) for events committed after the last backup. The off-host rsync copy bounds site-loss RPO at the same cadence.
  • RTO — operator-driven restore: repair/reprovision the host → restore the latest verified backup (verify_restore/1) → boot → projection rebuild. Minutes-to-tens-of-minutes class on the current fleet; not drilled to a number at scale.
  • A PG durable spine would change the host-death row to “0 committed events (single-node volume-death caveat) / 0 with a sync standby” — deferred with revival triggers; until a trigger fires, this section is the truth.

Availability

SolAPIAvailabilityDrop: the windowed availability expression (1 - (rate(5xx) + rate(stream_unavailable)) / (rate(2xx) + rate(5xx) + rate(stream_unavailable))) dropped below 0.999; the dashboard gauge sol_availability_ratio uses the same three-plane denominator ( ).

curl -s http://127.0.0.1:21434/metrics | grep -E 'sol_(availability_ratio|http_5xx_total|http_stream_unavailable_total)'

Availability is a rolling success ratio — inspect which routes contribute the failures (see error rate) and whether the dip is a deploy blip or a sustained trend. Route maintenance traffic is excluded by design; a real dip means unhealthy responses are reaching clients.

PG connection pool

SolPgUnavailable (critical): PostgreSQL is enabled (sol_pg_enabled 1) but the SAMPLED SELECT 1 probe failed or went stale (>120s) for 2 minutes — a quiet-period outage is visible without waiters. The probe runs on the supervised health sampler over the pool’s reserved/never-queueing health plane; no request or scrape blocks on PG. SolPgPoolFailures (warning): the pool counted a boot-time connect failure or a health-plane probe failure in the window (the failed connection was culled and the reconnect ladder is armed).

SolPgPoolStarved (critical): zero idle pool leases while waiters are queued — every PG-touching route is blocking on a connection. This is the SATURATION signal; SolPgUnavailable is the outage signal.

curl -s http://127.0.0.1:21434/metrics | grep sol_pg_pool

Find the lease holders: a hung query (sol_pg_query_hang_culled history), a request flood, or an undersized pool. The pool self-heals by culling hung leases; if starvation recurs, identify the chatty route from the latency panels and raise the pool size only with the PG max-connections budget in hand (the pool shares the single zerg-postgres-dev instance with every other service).

Event archive

Alert: SolEventArchiveAckUnverified — a 2xx arrived without a verifiable counted ack; the page is KEPT and compaction cannot advance.

SolEventArchiveUnconfigured (critical) and SolEventArchiveFailing (critical): the audit-archive credential posture is UNSET / flushes are being attempted and failing. Both are GATED on the archive-enabled lever — archive_enabled=false is a supported posture and never pages. SolEventArchiveSchemaRejected (warning): the sink refused a batch on a schema error — the batch is acked/kept per the 4xx no-delete contract; inspect the rejected event shape. SolEventArchiveOverflowDropped (warning): the internal queue bound was hit and events were DROPPED (the warned counter is the 80% early signal; this is the actual loss). SolEventArchiveQuarantineWriteFailed (warning): an unencodable event could not reach the durable quarantine dead-letter — the ack keeps refusing the page (no deletion), so the loss is unaccounted until the disk write recovers; check the Mnesia-dir filesystem.

Live-ingress pressure: SolEventArchiveIngressDropped (warning — metadata casts refused at the mailbox bound or the queue overflowed; the live copy of ephemeral metadata is being lost while the durable rows remain), SolEventArchiveQueueSaturated (warning — internal queue >80% of 1000), SolEventArchiveMailboxSaturated (warning — gen_server mailbox >80% of archive_mailbox_max). All three are gated on sol_event_archive_enabled == 1. Check the Mango sink latency and the flush error log.

curl -s http://127.0.0.1:21434/metrics | grep sol_event_archive
tail -n 200 /var/log/runit/zerg-sol/current | grep -i archive

Set the audit_archive_secret (the credential posture gauge flips to 1 on the next scrape) and verify the sink is reachable. Failing flushes with a configured secret mean the sink is down/full — check the sink volume and network path; archived events remain quarantined locally until delivered.

Telemetry archive

SolTelemetryArchiveFailing: telemetry archive writes are failing — observability telemetry is not reaching its durable sink.

curl -s http://127.0.0.1:21434/metrics | grep sol_telemetry_archive
tail -n 200 /var/log/runit/zerg-sol/current | grep -i telemetry

Check the telemetry sink path/credentials; the failure counter moving means the in-memory telemetry ring is the only copy — restart nothing until the sink is verified, or the ring’s tail is lost with the process.

Metrics blackout

Alerts: SolMetricsProtectedEvictionSkipped (the protected eviction pass was skipped), SolScrapeReaderTimeout (a bounded reader timed out and its family is last-known/absent), SolScrapeDeadlineExceeded (formatters were skipped after the whole-scrape deadline).

SolMetricsTableMissing (critical): the sol_metrics ETS table is absent or metric writes are being dropped — the scrape still returns 200 while every ETS-backed counter is a catch-defaulted lie. SolMetricsRestoreFailed: the counter dump restore failed, so monotonic counters reset and rate/increase underreport this window.

SolScrapeSlow: a /metrics scrape has been over 2 s for 10 m — the exporter is on a hot-path regression. SolMetricsPersistSlow: the off-manager counter-dump tick has been over 5 s for 10 m (event delivery is not blocked — the tick runs in the supervised metrics owner — but the counter-reset window on the next restart grows). SolMetricsPersistFailing: the dump could not be written at all (sol_metrics_persist_failures_total). SolScrapeFamiliesMissing: sol_scrape_families_missing > 0 for 15 m — the scrape rendered fewer families than the reviewed floor because a formatter silently returned no families or crashed; compare sol_scrape_families with sol_scrape_families_expected and check sol_scrape_formatter_errors_total plus the formatter... crashed log line. The scrape/persist cost families are sol_scrape_duration_ms, sol_scrape_formatter_over_budget_total, sol_scrape_formatter_errors_total, sol_scrape_families, sol_scrape_families_expected, sol_scrape_families_missing, sol_metrics_persist_duration_ms, and the cached-latency diagnostics sol_latency_summary_age_seconds / sol_latency_summary_build_ms.

curl -s http://127.0.0.1:21434/metrics | grep sol_metrics_table
podman exec zerg-sol bin/sol remote   # ets:info(sol_metrics).
tail -n 100 /var/log/runit/zerg-sol/current | grep sol_metrics

An absent table means a degraded boot (the owner/heir chain failed) — restart Sol and verify sol_metrics_table_present 1 after boot. A restore failure is quieter: counters restart from zero, dashboards show a cliff, and the next successful persist tick rewrites the dump — note the reset window when reading rates around it.

Security counters

The security-refusal family: SolWsOriginRefused (cross-site WebSocket hijack gate), SolZmqCredentialRefreshRefused (a worker presented a different credential while its stored one is still current), SolPluginToolPermissionDenied (tool calls refused on authority class), SolMemoryForbiddenWrites (write/delete gated on rows the caller does not own). Each has a warning-rate alert AND an owned log line at the refusal site.

curl -s http://127.0.0.1:21434/metrics | grep -E 'sol_(ws_origin_refused|zmq_credential_refresh_refused|plugin_tool_permission_denied|memory_forbidden_writes)'

A single blip is the gates working. A SUSTAINED rate is an actor: correlate the identity in the log lines (every refusal logs its caller), isolate the offender (revoke its enrollment key / session), and check the audited rows before re-admitting. Never widen a gate to silence these — the rate alert is the point.

Cost

SolCostBurnRate: token spend sustained above the configured ceiling (20k tokens/min at the documented blended price — the threshold is config-commented in sol-alerts.yml). SolInferenceBudgetExceeded: a per-principal UTC-day spend or token budget refused an admission (inference_daily_budget_usd / inference_daily_token_budget). SolInferenceModelUnpriced: a USD-capped request targeted a model with no server-side price while inference_unknown_price_policy=deny. SolBillingLedgerReconcileMismatch (critical): the daily reconcile found the durable event projection and the ETS ledger disagree — settled spend is unauditable until repaired; capture both ledgers BEFORE restarting. SolBillingSettlementFailures: a settlement write failed (usage unattributed) or a settlement key was seen twice (double-charge risk).

curl -s http://127.0.0.1:21434/metrics | grep -E 'sol_model_tokens_total|sol_inference_spend_usd_total|sol_inference_budget_exceeded_total'
curl -s http://127.0.0.1:21434/api/v1/usage | jq .

Read the per-model breakdown from the cost panel (top models by token rate) and /api/v1/usage for the per-principal totals: a runaway agent, a retry loop, or a single tenant’s workload. The server-side price source is sol_model_metadata (via sol_cost); unpriced models are counted in sol_inference_model_unpriced_total and refused when a USD cap is active under the default deny policy.

SolSyncForwarderPosture (warning): the durable-event sync forwarder is NOT installed (sol_event_sync_forwarder_installed absent or 0 for 15m) — inference.complete never reaches the durable event log, so the spend-ledger boot rebuild reads an empty source and every sync-store consumer is starved. The shipped posture is sync_enabled=true . Check the boot log for the handler-install verdict, confirm sync_enabled in the shipped config, and restart only after recording the install failure; correct the config and redeploy if it is the cause.

Memory & Mnesia durability

Heir/boot-plane alerts: SolEventsManagerAbsent (the event manager was absent and the event was shed), SolHeirOwnerClaimFailed (a restarted owner could not claim its table), SolHeirArmNonOwner (a transient caller attempted to arm a heir-held table). Inspect the boot-plane logs and the anchor/owner pids.

The memory plane and the Mnesia boot barrier:

SolMemoryPgSchemaNotReady / SolMemoryPgSchemaRefusals — the additive user_uuid/version/epoch/metadata migration chain has not completed. Memory writes are refused typed (store_unavailable) instead of being acked into a WAL that cannot apply them. Check the pool connectivity (memory_pg_url), the PG user’s ALTER privilege, and the cleanup-tick retry warnings; the readiness datum is the migration_status probe. SolMnesiaTablesNotReady / SolMnesiaLoadBarrierPending — a disc table did not load inside the boot bound (sol_mnesia_load_bound_ms, default 15 s). The barrier’s CRITICAL line carries the per-table probes (where_to_read / load_reason / load_node). A strict release boot REFUSES with mnesia_durability_tables_not_loaded; a non-strict boot serves the volatile tier. Do not force-load blindly: confirm the local log is the authoritative copy first. SolMnesiaForceLoadApplied — the ack-gated force-load lever (mnesia_force_load_on_timeout, default off) resolved a stuck table. Re-check that no other replica holds newer divergent writes. Memory caps — memory_max_entries (ETS read model) and memory_hydrate_max_entries (boot hydration) bound the process. The owner evicts oldest-first up to memory_cap_eviction_budget per minute; hydration_status/0 reports truncated=true when PG exceeds the bound.

Terminal-unconfirmed debt plane:

SolTaskTerminalDebtRecorded (critical) — a task terminal is UNCONFIRMED: the ETS row served the boot but the durable leg failed, so settlement and the task event are deferred to the reconcile debt. The retained receipt + reconcile marker carry the recovery, but every recorded debt is a disk/Mnesia-health signal — check task_store_durable_write_failed_total for the root cause and the Sol data-dir disk/Mnesia health. SolTaskTerminalDebtReconciled (warning) — the reconcile completed one or more of those debts (the owed task event was emitted and the deferred settlement applied through the idempotent settle_worker_turn). Expected only as the recovery arm of SolTaskTerminalDebtRecorded; a persistent rate means the durable leg keeps failing. SolTaskTerminalDebtSuperseded (warning) — a fresh confirmed terminal superseded a stale terminal-unconfirmed debt: the task re-executed (lost marker + retained receipt requeue) and the fresh attempt owns the notification. Correlate each firing with the outbox reconcile and the durable-write failures that seeded the debt; repeated supersessions mean the receipt/terminal ordering is still unstable.