Skip to content

Verdictan CLI 0.2.0

Choose a tag to compare

@dennisotugo dennisotugo released this 14 Oct 19:59
· 284 commits to main since this release

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, --yes on gateway upgrade plan, apply and
    rollback, --scope on history list-sessions, learn, condense and
    stats, --strategy, --previous-sessions-max and --target-max-tokens on
    history learn, and the --period alias of spend provider-budget create.
    The history replay command, the MCP initialized alias, the MCP
    context_feedback signal and correct parameters and six legacy MCP
    resource URIs are also removed. Each rejection names the replacement.
  • The CLI prints English only. --lang and VERDICTAN_LANG are 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,
    the local_only distributed-state profile, the default
    /etc/verdictan/policy-config.yaml path and the x-verdictan-team header are
    no longer read.
  • VERDICTAN_OTLP_ENDPOINT is ignored. Use OTEL_EXPORTER_OTLP_ENDPOINT.
  • Retired configuration sections and schema fields (for example regions,
    offline_egress, envelope_cache, circuit_breaker and
    cache.local_storage_*) are ignored with a warning that names the
    replacement. task_aware routing falls back to ordered.
  • 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 invalid detect_patterns are rejected,
    reporting-only kinds are dropped from chains, and the review,
    context_fabric, agent-firewall and distributed rate-limit settings are
    enforced. Run verdictan policy lint before you upgrade a gateway.

Changes:

  • The connected gateway accepts a per-gateway management credential from the API (API-C03). Heartbeats announce management_credential_supported and the SHA-256 fingerprint of the credential the gateway holds; the API returns management_credential when 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/invalidate and POST /verdictan/compliance/report accept the credential in x-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 and gateways:* permission checks, so local operators and verdictan gateway config|reload|revert work 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-Cookie lines) 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). Set VERDICTAN_RELAY_MAX_PROTOCOL_VERSION=1 to stay on v1. VERDICTAN_RELAY_MAX_CONCURRENT_REQUESTS (default 128) limits relayed requests in flight per session; more requests get relay_gateway_capacity_exceeded. When the relay connection closes, v2 local requests in flight stop.
  • secrets add --keychain names 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_ALL or LC_MESSAGES. --lang <TAG> and VERDICTAN_LANG are still accepted. A non-English value prints warning: ignoring --lang <TAG> (or VERDICTAN_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 embedding downloads all-MiniLM-L6-v2 (int8 ONNX) with the onnxruntime-web WebAssembly runtime; embedding-detector with backend: local then compares meaning instead of shared words, and backend: lexical keeps the term-frequency comparison. models install ocr downloads tesseract.js-core with English data; document-analyzer then 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 /readyz reports their state under optional_models.
  • The gateway admin authorization check sends resource_vrn to POST /v1/auth/check-permission instead of the deprecated resource field.
  • Remove policy push --legacy-gateway-version. Connected gateways never read the gateway-scoped version it saved, and the API no longer serves POST /v1/admin/configurations/gateways/{gateway_id}/versions. The CLI rejects the flag and points to policy push --gateway-id, which deploys through the gateway's agent.
  • The root review section takes effect: execution-target responses are reviewed by the configured provider and model, with the judge, review_and_return, audit_only and escalate modes, timeout_ms, recursion_depth_max and provider_isolation. A reviewed execution target answers streamed requests with 422 review_requires_buffered unless the mode is audit_only.
  • context_fabric settings take effect: auto-capture skips a response that is at least dedup_similarity_threshold similar to a recent capture of the same scope (the last pool_max_entries captures per scope), each captured entry carries the TTL, confidence and conflict-resolution settings to the control plane, and local recall applies cache.vector_confidence_threshold and cache.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-team header 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_MODE is no longer read or copied into installed services, and the development local_only distributed-state profile is gone: a configured distributed backend needs its URL.
  • With distributed_rate_limit configured, the agent-firewall per-minute action window, session action count and daily transaction total are shared by every gateway instance, and failure_mode applies to them as to the other rate-limit scopes.
  • secrets status checks keychain references in the OS keyring on Linux and Windows as well as macOS, as the gateway resolves them. An unreadable keyring reports OS keyring unavailable.
  • Commands that need stored credentials report "unable to determine the home directory" when no home directory is set and VERDICTAN_API_TOKEN is not set, instead of failing later without a token.
  • The shell installer prints quoted source commands for the shell and fish environment scripts, so they work when the path contains spaces.
  • Remove the dormant standalone gateway mode. gateway run never reads /etc/verdictan/policy-config.yaml by 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_source and the cache.local_storage_* fields. No runtime read them. The undocumented task_aware routing strategy now falls back to ordered.
  • gateway install, gateway start and upgrades copy the standard OTEL_EXPORTER_OTLP_*, OTEL_{TRACES,METRICS,LOGS}_EXPORTER, OTEL_SDK_DISABLED, OTEL_SERVICE_NAME and OTEL_RESOURCE_ATTRIBUTES settings into the service environment. VERDICTAN_OTLP_ENDPOINT is removed: the CLI and gateway ignore it, telemetry setup warns once when it is set, and services no longer receive it. Set OTEL_EXPORTER_OTLP_ENDPOINT instead.
  • MCP context_feedback accepts only action; the deprecated signal and correct parameters are removed.
  • Remove the legacy MCP resource URIs gateway-effective-config://resolved, gateway-tool-servers://declared, pricing-models://catalog, regions-catalog://public, regions-organization://visible and telemetry-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). An mcp.allowed_resources entry that uses a removed URI no longer grants access; list the replacement. Remove the initialized method alias; clients send notifications/initialized.
  • Remove the removal notices for the wallet, billing, credit, checkout and payment commands 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: --yes on gateway upgrade plan, apply and rollback, --scope on history list-sessions, learn, condense and stats, and --strategy, --previous-sessions-max and --target-max-tokens on history learn. Remove the --period alias of spend 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-only now takes precedence when it reaches the runner with --include-blocked.
  • Remove the hidden --api-token argument from every command. The CLI still rejects --api-token, --admin-token, --gateway-key and --upstream-api-key before parsing, without echoing the value.
  • regions current labels the root-level default_region of the config file as config file default_region instead of declarative config.
  • Remove supervisor.wal_recovered from gateway list --json and gateway inspect --json. No command writes a supervisor write-ahead log, so the field was always false.
  • Remove the deprecated history replay command. The CLI rejects it and points to history 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 /readyz return 503.