
Two changes lead this release: the AI library and `vary prove`.

The bundled `ai` library makes model calls a typed, bounded part of a Vary program. An `AiContext` carries the capabilities, budget, policy, trace, and optional replay for one workflow. A Judge answers yes/no questions, a Router picks among descriptions, and a Generator writes text. The compiler understands `ai using`, `feels`, `match ... by meaning`, `llm`, and `eval`, and checks every capability a block might need before the first call. Provider adapters stay behind that surface, so workflows do not change when the endpoint does. Native `eval` suites then check those workflows with typed cases, pure scores, and gates.

`vary prove` reads the `in` and `out` contracts you already write, hands them to an SMT solver, and reports whether a function keeps its promise for every input, or shows a concrete input where it does not. Run over the standard library and the example projects, it now proves thousands of obligations and reports only a handful of functions as unsupported.

The language also gained readable blocks, `let ... else`, the `Never` type and several optional helpers. The tooling around the compiler changed too: a formatter you can trust, a `vary var` loop that coding agents can drive, and a JVM codegen component that is now a module of its own.

| Change | Description |
| --- | --- |
| AI library | A bundled `ai` library with `AiContext`, Judge, Router, and Generator capabilities, provider adapters, shared attempt, deadline, and iteration budgets, and typed outcomes for uncertainty, provider failure, malformed responses, and budget exhaustion. |
| Semantic AI control flow | `ai using` gives judgment, routing, and generation an explicit context. `feels` asks a Judge for a probability against a threshold and requires an `uncertain` branch. `match ... by meaning` routes among descriptions. |
| Capability checks | Before any model call, the compiler checks that the `ai using` block has every capability it might use, including those in branches it never reaches. |
| Provider adapters | Adapters translate requests into a provider protocol and return typed evidence. The TypeSafe adapter supplies Judge and Router for Jev, and a chat-completions adapter supplies a Generator. Bindings record protocol, HTTPS URL, and model, and keep the credential out of reports. |
| Traces and replay | Traces record attempts, source sites, optional usage, and model identity. Raw request and response content is recorded only when enabled, and replay lets tests run without a live model. |
| Native AI evals | `eval` declares typed cases, pure scores, and aggregate gates. `vary eval` runs them from fixtures or live, under a named binding and finite limits, and writes a report. Scorers are ordinary functions, so `vary test` covers them too. |
| Typed Jev client | A typed API client with policy, decoding, sessions, and capture and replay transports ships as a bundled library. |
| Bundled libraries | Maintained libraries ship with the CLI and import without repository-relative paths. A catalog, namespace ownership, and release inventory checks keep installations consistent, and the language server shares the same resolution. |
| vary prove | SMT-backed verification of contracts, loop invariants, and `decreases` clauses, with Z3 and cvc5 solvers, counterexamples, and a proof cache. |
| Proofs of real code | Datatypes, nested lists and dicts, `Set`, enum payloads, exact `sum`, and imported data classes are modeled. Calls the prover cannot follow are reported as opaque assumptions instead of failing the whole function. |
| Inferred specifications | Missing `modifies` and `decreases` clauses are inferred and shown as inferred. New check rules insert them and suggest class invariants that were proven first. |
| Honest counterexamples | A counterexample that does not reproduce is reported as unknown with its candidate inputs, never as refuted. One unsupported construct only affects the obligations on its path. |
| Stdlib contracts | Standard library functions carry contracts, and `extern def` axioms describe foreign code to the prover. A baseline gate keeps the standard library's proof results from regressing. |
| Proof reports | JSON proof reports moved to a versioned schema with opaque assumptions, unsupported paths, inferred clauses, and candidate inputs. |
| Readable blocks | `let { }` and `mut { }` group related bindings, and `do`, `collect`, `with`, and `attempt` keep their names local to the expression. Examples and docs were migrated to them. |
| let ... else | Unwrap an optional or bail out in one statement, with narrowing in the code that follows. |
| Never and optional helpers | Functions that cannot return are declared `-> Never`. Optionals gain `map`, `and_then`, and `filter` in the type checker. |
| vary var for agents | `vary var` reports what to check next, what is blocking, and the exact command to run, and can run as a Stop hook so an agent cannot declare a task done early. |
| vary new --agent | New projects can include an assistant pack for Claude Code, Codex, Cursor, OpenCode, or Kiro, with a skill pack and the hook wiring. |
| Check rules | The rule set grew to more than a hundred rules, with new ones for nested None guards, guard-then-unwrap, optional maps, `Never` candidates, sentinel returns, unspecified optional results, and force unwraps in library code. Rule reference docs are generated from the engine. |
| Trustworthy formatter | The formatter is a single style with no settings, and `vary check --fix` covers the mechanical rewrites. The repository itself was reformatted. |
| Codegen component | JVM code generation moved into its own module behind a thread-safe `VaryCodegen` facade, with a checked runtime ABI, structured diagnostics, verifier checks, and an external-consumer test. It is experimental. |
| Packaging | Linux, macOS, and Windows archives each bundle their own Z3 libraries, and every platform ships the same Temurin 25.0.5 runtime. |
| Release and CI hardening | Release gates build the compiler first, pick the right jar, scan dependencies, and retry known-flaky solver and race tests before failing. |
| VS Code and tooling | The VS Code extension version tracks the release, highlighter scope coverage is tested, and completions cover the new syntax. |
| Docs and courses | New docs and articles for the AI library, AI control flow, AI evals, formal verification, readable blocks, the codegen API, and solver toolchains, plus new course material. The Testing menu now groups mutation and verification. |
