Vernac 0.7.0
Vernac 0.7.0 brings native business rules and fast feedback to the same domain model. Developers in IntelliJ and AI agents using the CLI or MCP can inspect the model, check a change and run the relevant scenario in a warm workspace.
Spring Boot compatibility
org.vernac:vernac-jdbc-spring-boot-starter requires the Spring Boot 4
platform. This release is built against Spring Boot 4.1.2. The starter brings
Boot 4 JDBC, Flyway and Jackson auto-configuration onto the classpath.
A Boot 3.5 project can compile and pass tests that do not start its full
application context, then fail during startup with mixed Boot modules.
When adopting the starter in an existing application, upgrade its Boot parent or BOM and Boot plugins together and verify startup with an application-context test. Excluding one transitive Boot module does not make the starter Boot 3.5-compatible.
Warm checks and targeted tests
vernac check --warmchecks saved changes.vernac test --warm --scenario <id>runs one named scenario. Omit the scenario ID to run affected tests against the last successful affected run. The first affected run checks the full profile.- The local process starts on demand and exits after five minutes idle. IntelliJ, shell commands and MCP can share it when their workspace, test profile, JDK and fixture classpath match. IntelliJ diagnostics also work on private unsaved edits.
- On the Document Workspace reference workload, candidate CI measured 400–410 ms p95 for affected scenarios after a native behavior edit and 60–66 ms p95 for typed view diagnostics across three warm sessions. These measurements cover the installed CLI’s shared MCP path and that fixture. Raw benchmark reports
Native business logic
- Use Smalltalk-style keyword messages with conventional arithmetic and
comparison operators. Opt in per method with
vernac, or per usecase withexecute vernac. Generated Java APIs, existing Java-backed bodies and technical providers remain usable. - Express typed validation rules, named rejections, optional matches, decimal rounding, date arithmetic and typed collection queries. The same expression syntax is available to scenario predicates within their read-only contract.
- Generated modifications stage writes until the outermost scope validates. Rejected modifications discard staged state and event intents. External I/O and database transactions keep their own lifecycles.
Try a native behavior and its scenario · Behavior contract
AI agents can inspect the model directly
- Use
vernac model list,describeandrelationshipswith Pi or another shell agent. Ask for a slice of a namespace or module and follow typed relationships to usecases, permissions, adapters, events and scenarios. Query the project’s ubiquitous-language terms, validation rules, native behavior guards, nested view elements and adapter mappings with their source positions. Compiled modules expose validation rules for their exported declarations and public operations. - MCP provides the same inspection tools, private revisioned edit overlays, checked edit batches and targeted tests. It also serves the language quick reference, task examples and searchable FAQ bundled with that version.
- Start an agent with the quick reference, one scoped task and acceptance criteria. A real symbol or test ID is a better starting point than a whole repository or a collection of examples.
Set up an agent and copy the starter prompt · AI quick reference
IntelliJ IDEA
- Complete native keyword messages and field paths, navigate to declarations and scoped bindings, format native bodies, and see diagnostics in unsaved buffers.
- With the matching CLI and
VERNAC_HOMEset before launch, choose Tools → Vernac → Run Warm Tests. Enter one qualified scenario ID or leave it empty for affected scenarios. - The plugin bundles its language server for use without the CLI. Compatibility
starts at IntelliJ build
262.10968.63.
MVC and executable scenarios
- Generate named redirects with typed path and query bindings, including
cross-adapter redirects. Use HTTP 303 for normal navigation or opt in to
HX-Redirectfor HTMX. Scenarios can assert the destination and headers. - Construct IDs and signed
longliterals in scenarios. Suites with a Spring test configuration can bind an existing bean by type or name. Assert native rejections or an exact business error message raised by a supported Java exception from a usecase.
MVC redirect contract · Scenario tutorial
Installation and upgrade
- Align the Vernac Maven plugin and runtime dependencies on 0.7.0. Use the matching IntelliJ plugin and CLI distribution when using those tools.
- Extract the CLI ZIP and put its
bindirectory onPATH. The archive includes bothvernacandvernac.cmd. Use a JDK for checks and tests. Building Vernac itself uses JDK 25, and generated application code targets Java 21. - Run the project’s regular Maven verification, including the integration profiles it relies on. Add the warm workflow for frequent development edits. Existing Java delegates and scenarios can be migrated incrementally.
- Use
vernac buildto package supported applications. Maven projects use their usual Maven lifecycle. A JDK-only project can usevernac-build.json. Eligible edits can be activated in an opt-in development application withvernac build --dev.
CLI setup and build recipes · Implementation and benchmark details