All notable changes to system_one_dsl (formerly jev_dsl) are documented in this file.
[1.0.0] - 2026-12-06
Breaking Changes
- Migrated from
system_one_sdktoreq_llm(~> 1.32):- Replaced
:system_one_sdk/:typesafe_api_sdkwithReqLLM.Evaluation(ReqLLM.Evaluation.evaluate/4), supporting TypeSafe Jev ("typesafe:jev-latest"), Google Gemini Decisions ("google:gemini-decision-1"), OpenAI Decisions ("openai:gpt-6-luna"), OpenRouter Decisions, and Azure Microsoft Decisions. - Restored the
:system_one_dsl/SystemOneDSLnamespace (SystemOneDSL,SystemOneDSL.Prepared,SystemOneDSL.Runner,SystemOneDSL.Cache,SystemOneDSL.Cache.ETS,SystemOneDSL.Contract,SystemOneDSL.Question,SystemOneDSL.CUE,SystemOneDSL.Error,Mix.Tasks.SystemOneDsl.Install). - Retired legacy
backend:,decisions_mode:, andauth_mode:options in favor of standardReqLLMmodel specs (:model),:evaluate_path, and:provider_options. - Evaluations now return
{:ok, %ReqLLM.Response{object: %{...}}}(with string-keyed answers).
- Replaced
Added
- Self-Contained
%SystemOneDSL.Prepared{}: Compile-time question normalization (:noul->:booleanwith"true_description"/"false_description"criteria,:choice, ordered-list:scorerubric criteria) and deterministic SHA-256fingerprintgeneration without external SDK dependencies. - Model-Aware Cache Identity & Refusal Protection:
SystemOneDSL.Cache.identity/3includes the resolvedReqLLMmodel spec to prevent cross-model collisions;cacheable?/2,persistable?/2, andresolve_ttl/2support%ReqLLM.Response{object: ...}and skip caching provider refusals (%{"type" => "refusal"}). - Strict
ReqLLM.EvaluationRunner: StrictZoioption whitelisting/translation (:timeout/:timeout_ms->:receive_timeout,:retry->:max_retries,:decisions_path->:evaluate_path,cached: false-> case-insensitivex-ai-cache: bypassheader merge), provider-isolated API key resolution, and bounded concurrentevaluate_many/4viaTask.async_stream/3.
[0.1.0] - 2026-10-26
Added
JevDSLCompile-Time Contract DSL:defnoul/1..3for single probability (0.0..1.0) Noul contracts, supporting prompt blocks,ask: "...", andtrue -> "..."/false -> "..."criteria stab clauses.defchoice/2..3for mutually exclusive multi-option classification contracts (option -> "criteria"), preserving stab-clause declaration order viaSystemOneSDK.Question.Choice.defscore/2..3for ordered rubric grading scale contracts (level -> "criteria") viaSystemOneSDK.Question.Score.defjev/2for multi-question contracts combiningnoul,choice, andscorequestions in a single request.defalias/2for zero-cost compile-time contract aliasing with duplicate/collision detection.- Atom-compiled choice stab clauses (
positive -> "..."compiles to:positive), plus atom/string interoperability across contract names, question names, and dual-key answer helpers (JevDSL.fetch_answer/2,JevDSL.fetch_answer!/2,JevDSL.choice?/2,JevDSL.probability/2). - Compile-time option validation via
NimbleOptionsandSystemOneSDK.prepare/1validation raisingCompileErrorwith caller file/line numbers, plus:persistent_term Jason.Fragmentwire payload rehydration.
JevDSL.Cache&JevDSL.Cache.ETS:- Pluggable
@behaviour JevDSL.Cache(get/2,put/3, optionalget_many/2,put_many/2) withadapter_get_many/3andadapter_put_many/3. - Content-addressed SHA-256 cache key generation (
JevDSL.Cache.key/3) combining recursively canonicalized input state (structs, maps, lists, tuples) and the contract'sSystemOneSDK.Preparedfingerprint. - Confidence-gated TTL resolution (
>= 0.65full TTL,< 0.65short300sTTL forChoiceAnswer,NoulAnswer, andScoreAnswer, errors never cached). - Built-in concurrent ETS L1 cache (
JevDSL.Cache.ETS) withGenServersupervision (start_link/1,child_spec/1),:kernel_sup :heirprotection for unsupervised on-demand tables, andprune_expired/1.
- Pluggable
JevDSL.Runner&JevDSL.Error:- Single (
evaluate/3,evaluate!/3) and concurrent batch (evaluate_many/3) execution with batch L1/L2 lookup (get_many/2), L2 -> L1 warming, L1 -> L2 backfill, independent:use_tier2_cacheand:persist_tier2controls, offline cache-only replay (cache_only: true),SystemOneSDK.Testclient support, and:eval_fnmocking. Structured
JevDSL.Errorexception (defexception [:type, :message, :contract, :details]) and:telemetry.span/3instrumentation ([:jev_dsl, :evaluate, *],[:jev_dsl, :evaluate_many, *],[:jev_dsl, :cache, :hit | :miss | :write]).
- Single (
JevDSL.CUE&Mix.Tasks.JevDsl.Install:- Deterministic CUE schema exporter (
__export_cue__/0). - Optional Igniter installer task (
mix igniter.install jev_dsl).
- Deterministic CUE schema exporter (