API contract changelog

Mirrors https://api.valguard.ai/api/changelog and the live spec at https://api.valguard.ai/openapi.json (info.version). See also API reference.

OpenAPI contract changelog

Canonical machine-readable spec: GET /openapi.json on the API host (ValGuard publishes the OpenAPI 3.2 document at that URL).

VersionNotes
1.1.15Optional request headers X-VG-Memory-Session-Id, X-VG-Memory-User-Id, X-VG-Memory-Tenant-Id (max 200 characters, validated only when the agent has a memory policy: HTTP 400 invalid_memory_header) for agent memory governance on /v1/chat/completions. In shadow mode responses report X-VG-Validation-Status: shadow and would_block warnings. Internal POST /internal/simulate-memory-op (not in public OpenAPI).
1.1.14POST /internal/simulate-policy accepts only X-VG-Internal-Secret plus X-VG-Project-Id (not customer API keys). Unchanged: not listed in OpenAPI.
1.1.13Client max_tokens is sent unchanged on the first upstream call (upstreamMaxTokens); length retries bump only before a follow-up attempt and always set X-Vg-Max-Tokens-Adjusted (including 403 after retry). Client X-Request-Id adoption accepts any RFC 4122 UUID variant (v1–v5), not v4-only. Runtime X-Vg-Version / /healthz track OpenAPI 1.1.12+.
1.1.12nginx header limits are applied at http {} (large_client_header_buffers 4 32k on nginx 1.25+; legacy http2_max_* removed as obsolete). nginx ingress ids are not forwarded as X-Request-Id to Go. Document X-VG-Span-Id and X-Vg-Max-Tokens-Adjusted.
1.1.11OpenAPI documents JSON GET /healthz (status, version, commit, built_at) and response headers X-Vg-Build / X-Vg-Version. Public docs link to GET /openapi.json. valid_format JSON accepts one markdown fence, short preamble, and trailing non-JSON text after a well-formed value (W2). Non-stream chat may retry once on upstream 502, 503, or 504 and on empty finish_reason=length output when JSON format is enforced (N15/N16); the length retry may raise max_tokens (minimum 256) when the client cap is very small.
1.1.10Document X-Vg-Upstream-Retries on /v1/chat/completions (agent + playbook). HTTP 424 failed-dependency responses include the same validation/observability headers as 200. Non-stream upstream may retry when tool_choice: required returns empty tool calls (bounded). Chat format-repair may spend a silent upstream retry plus a user-message re-ask before block. Runtime: JSON /healthz, build headers, stricter client X-Request-Id handling, canonical ids on X-Request-Id and X-VG-Request-Id.
1.1.9Prior production contract.

Bump info.version in the published OpenAPI document (GET /openapi.json) whenever the contract changes.