Repository navigation
Verdictan CLI 0.2.0
Verdictan CLI 0.2.0 is a complete rewrite in TypeScript. Each release
executable is a Node.js single executable application, so you do not need a
separate Node.js installation. Commands, configuration files and the policy
schema stay compatible, except for the breaking changes below.
Breaking changes:
- Removed flags and aliases:
--api-token(hidden),policy push --legacy-gateway-version,--yesongateway upgrade plan,applyand
rollback,--scopeonhistory list-sessions,learn,condenseand
stats,--strategy,--previous-sessions-maxand--target-max-tokenson
history learn, and the--periodalias ofspend provider-budget create.
Thehistory replaycommand, the MCPinitializedalias, the MCP
context_feedbacksignalandcorrectparameters and six legacy MCP
resource URIs are also removed. Each rejection names the replacement. - The CLI prints English only.
--langandVERDICTAN_LANGare accepted, and
a non-English value prints a warning. - Standalone gateway mode is removed. Every gateway is connected and
authenticates requests with a Verdictan API token.VERDICTAN_DEPLOYMENT_MODE,
thelocal_onlydistributed-state profile, the default
/etc/verdictan/policy-config.yamlpath and thex-verdictan-teamheader are
no longer read. VERDICTAN_OTLP_ENDPOINTis ignored. UseOTEL_EXPORTER_OTLP_ENDPOINT.- Retired configuration sections and schema fields (for example
regions,
offline_egress,envelope_cache,circuit_breakerand
cache.local_storage_*) are ignored with a warning that names the
replacement.task_awarerouting falls back toordered. - Enforcement is stricter. Configuration that earlier versions accepted
without effect now takes effect or fails validation: the policy chain runs on
every request family, streamed output controls and WebSocket redaction
apply, single-policy documents and invaliddetect_patternsare rejected,
reporting-only kinds are dropped from chains, and thereview,
context_fabric, agent-firewall and distributed rate-limit settings are
enforced. Runverdictan policy lintbefore you upgrade a gateway.
Changes:
- The connected gateway accepts a per-gateway management credential from the API (API-C03). Heartbeats announce
management_credential_supportedand the SHA-256 fingerprint of the credential the gateway holds; the API returnsmanagement_credentialwhen the gateway does not hold the current one (first heartbeat, after a restart, after the 30-day rotation). The gateway keeps it in memory only.GET /verdictan/config,POST /verdictan/config/reload,POST /verdictan/cache/invalidateandPOST /verdictan/compliance/reportaccept the credential inx-verdictan-management-credential(constant-time comparison); a request that carries this header with any other value gets 401, also over the relay. Requests without the header keep the admin bearer token andgateways:*permission checks, so local operators andverdictan gateway config|reload|revertwork as before. An API without credential support sends none, and the gateway keeps the old behavior. The API can now inspect, reload, revert and roll out to the gateway from Configurations, over the relay session or at the heartbeat listen address. - The connected gateway relay negotiates protocol v2 with the API. The gateway offers v1 and v2 when it registers, and uses v2 when the API selects it; an older API keeps the session on v1, which works as before. On v2, repeated response headers (for example two
Set-Cookielines) reach the caller, request and response bodies are byte-exact and stream within a credit window, a caller that disconnects or times out cancels the local request (and the upstream provider call), and a failed request ends with a terminal error that carries a code (relay_local_gateway_error,relay_local_gateway_timeout,relay_local_gateway_stream_error,relay_gateway_capacity_exceeded,relay_request_body_too_large). SetVERDICTAN_RELAY_MAX_PROTOCOL_VERSION=1to stay on v1.VERDICTAN_RELAY_MAX_CONCURRENT_REQUESTS(default 128) limits relayed requests in flight per session; more requests getrelay_gateway_capacity_exceeded. When the relay connection closes, v2 local requests in flight stop. secrets add --keychainnames the OS keyring error when the store fails (for example Windows error 1312, no logon session, or a Linux Secret Service error) instead of only a generic failure. The secret value never appears in the message.- Remove the Spanish and Catalan output. The CLI prints English only: help, examples, error prefixes and messages no longer change with
--lang,VERDICTAN_LANG,LANG,LC_ALLorLC_MESSAGES.--lang <TAG>andVERDICTAN_LANGare still accepted. A non-English value printswarning: ignoring --lang <TAG>(orVERDICTAN_LANG=<TAG>) on stderr, once per command, and the command continues. The OS locale variables are ignored without a warning. - Add
verdictan models(list,status,install,remove) for two optional local models that the CLI does not bundle.models install embeddingdownloads all-MiniLM-L6-v2 (int8 ONNX) with the onnxruntime-web WebAssembly runtime;embedding-detectorwithbackend: localthen compares meaning instead of shared words, andbackend: lexicalkeeps the term-frequency comparison.models install ocrdownloads tesseract.js-core with English data;document-analyzerthen reads text in images (extraction_method: ocr). Every file is pinned by SHA-256,--from <DIR>installs without network access, and the gateway never downloads. Without the models, behavior is unchanged, and/readyzreports their state underoptional_models. - The gateway admin authorization check sends
resource_vrntoPOST /v1/auth/check-permissioninstead of the deprecatedresourcefield. - Remove
policy push --legacy-gateway-version. Connected gateways never read the gateway-scoped version it saved, and the API no longer servesPOST /v1/admin/configurations/gateways/{gateway_id}/versions. The CLI rejects the flag and points topolicy push --gateway-id, which deploys through the gateway's agent. - The root
reviewsection takes effect: execution-target responses are reviewed by the configured provider and model, with thejudge,review_and_return,audit_onlyandescalatemodes,timeout_ms,recursion_depth_maxandprovider_isolation. A reviewed execution target answers streamed requests with 422review_requires_bufferedunless the mode isaudit_only. context_fabricsettings take effect: auto-capture skips a response that is at leastdedup_similarity_thresholdsimilar to a recent capture of the same scope (the lastpool_max_entriescaptures per scope), each captured entry carries the TTL, confidence and conflict-resolution settings to the control plane, and local recall appliescache.vector_confidence_thresholdandcache.l1_enabled.- Remove the remaining standalone-mode code from the gateway. Every gateway is connected: requests always authenticate with a Verdictan API token, team selection comes only from the validated credential (the
x-verdictan-teamheader is never read), streams always go through the connected settlement, and the gateway execution-session poll loop that only a standalone gateway started is removed.VERDICTAN_DEPLOYMENT_MODEis no longer read or copied into installed services, and the developmentlocal_onlydistributed-state profile is gone: a configured distributed backend needs its URL. - With
distributed_rate_limitconfigured, the agent-firewall per-minute action window, session action count and daily transaction total are shared by every gateway instance, andfailure_modeapplies to them as to the other rate-limit scopes. secrets statuscheckskeychainreferences in the OS keyring on Linux and Windows as well as macOS, as the gateway resolves them. An unreadable keyring reportsOS keyring unavailable.- Commands that need stored credentials report "unable to determine the home directory" when no home directory is set and
VERDICTAN_API_TOKENis not set, instead of failing later without a token. - The shell installer prints quoted
sourcecommands for the shell and fish environment scripts, so they work when the path contains spaces. - Remove the dormant standalone gateway mode.
gateway runnever reads/etc/verdictan/policy-config.yamlby default and never falls back to the hosted API as upstream, and installed services no longer pass--upstream. - The gateway ignores, with a warning that names the replacement, the off-schema configuration sections
regions,offline_egress,providers.task_profiles,providers.budget_policy,providers.latency_optimization,envelope_cache,context_management,circuit_breaker,admission_control,fingerprint,data_classification,eu_ai_act,gdpr,code_sanitation,content_extraction,document_analyzer,language,context_flush,network,providers_sourceand thecache.local_storage_*fields. No runtime read them. The undocumentedtask_awarerouting strategy now falls back toordered. gateway install,gateway startand upgrades copy the standardOTEL_EXPORTER_OTLP_*,OTEL_{TRACES,METRICS,LOGS}_EXPORTER,OTEL_SDK_DISABLED,OTEL_SERVICE_NAMEandOTEL_RESOURCE_ATTRIBUTESsettings into the service environment.VERDICTAN_OTLP_ENDPOINTis removed: the CLI and gateway ignore it, telemetry setup warns once when it is set, and services no longer receive it. SetOTEL_EXPORTER_OTLP_ENDPOINTinstead.- MCP
context_feedbackaccepts onlyaction; the deprecatedsignalandcorrectparameters are removed. - Remove the legacy MCP resource URIs
gateway-effective-config://resolved,gateway-tool-servers://declared,pricing-models://catalog,regions-catalog://public,regions-organization://visibleandtelemetry-providers://configured. Reading one fails with an error that names the replacement (gateway://effective-config,gateway://tool-servers,pricing://models,regions://catalog,regions://organization,telemetry://providers). Anmcp.allowed_resourcesentry that uses a removed URI no longer grants access; list the replacement. Remove theinitializedmethod alias; clients sendnotifications/initialized. - Remove the removal notices for the
wallet,billing,credit,checkoutandpaymentcommands and for the ADR-024 solution templates. Those commands now fail as unknown subcommands, and the API no longer serves those templates. - Remove the flags that had no effect:
--yesongateway upgrade plan,applyandrollback,--scopeonhistory list-sessions,learn,condenseandstats, and--strategy,--previous-sessions-maxand--target-max-tokensonhistory learn. Remove the--periodalias ofspend provider-budget create --reset-schedule. The CLI rejects each of them with an error that names the replacement or says to drop the flag. history condense --allowed-onlynow takes precedence when it reaches the runner with--include-blocked.- Remove the hidden
--api-tokenargument from every command. The CLI still rejects--api-token,--admin-token,--gateway-keyand--upstream-api-keybefore parsing, without echoing the value. regions currentlabels the root-leveldefault_regionof the config file asconfig file default_regioninstead ofdeclarative config.- Remove
supervisor.wal_recoveredfromgateway list --jsonandgateway inspect --json. No command writes a supervisor write-ahead log, so the field was alwaysfalse. - Remove the deprecated
history replaycommand. The CLI rejects it and points tohistory export. - Add the Verdictan decision headers to streamed chat completions, responses, and messages.
- Tell the operator to upgrade when the control plane uses a different usage-authorization contract.
- Limit the log output for rejected or malformed records in the local event spool.
- Keep the gateway ready when it quarantines spooled events from an earlier gateway run. These records go to
quarantine/earlier-run/. Rejected events of the current run still make/readyzreturn 503.