All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[2.0.0] - 2026-11-20

Breaking

These change only the optional Bolt transport. HTTP and gRPC consumers upgrade with no code change, on Elixir 1.16 or later (see Changed).

  • Bolt is arcadic's own client; boltx is gone. arcadic now owns the PackStream v1 codec, chunk framing, the Bolt v4 client and the DBConnection implementation. Queries, lazy streams, transactions, TLS, timeouts and value-free errors keep their contracts. To upgrade, replace {:boltx, "~> 0.0.6"} with {:db_connection, "~> 2.10"} in your deps: Bolt now compiles when DBConnection is present, and boltx's own db_connection ~> 2.6.0 pin cannot resolve beside arcadic 2. The lock moves from DBConnection 2.6.0 to 2.10.2, so a host can share current Ecto/Postgrex releases.
  • Bolt result values are arcadic's types. Graph values are Arcadic.Transport.Bolt.Types.Node, Relationship, UnboundRelationship and Path; Duration, Point, Temporal, Bytes and extension Structure values replace boltx's structs. Temporal keeps the exact wire fields (nanoseconds, and the legacy datetime epoch and offset) instead of converting to Elixir date/time values; Elixir Date, Time, NaiveDateTime and DateTime are still accepted as parameters. Code that matched on Boltx.Types.* or on Elixir date/time results must match the new structs.
  • Limits and error text. A Bolt reply over 64 MiB or nested deeper than 128 levels fails with :bolt_protocol_error. Known server status classes still map to typed reasons; arbitrary status strings and all FAILURE free text are discarded.
  • BOLT_* environment variables are no longer rejected. arcadic raised when BOLT_USER, BOLT_PWD, BOLT_HOST or BOLT_TCP_PORT was set because boltx read them ahead of arcadic's explicit options. The native client reads no environment variable, so there is nothing to guard and the check is gone.

Changed

  • Elixir floor is now ~> 1.16 (was ~> 1.15). Elixir 1.15 no longer receives security patches (Elixir patches the last five minor branches, 1.16 to 1.20). The optional gRPC transport needs Elixir 1.18+: grpc 1.1's grpc_core pins googleapis ~> 0.1.0, which requires 1.18; the README and usage rules now say so. The compatibility lane runs 1.16.3 on OTP 26 and builds what a consumer's test suite builds (MIX_ENV=test) on that Elixir: scripts/ci_host_mode.exs reads every locked dependency's own Elixir requirement, leaves out an optional dependency whose chain needs a newer Elixir (gRPC on 1.16), and fails the lane if a required one does. A without-optional job removes every optional dependency (ci_host_mode.exs --without-optional) and force-compiles with warnings as errors and unit-tests that smallest host on the default Elixir. The dependency audit and other dev-only tools run on the default toolchain, and mix_audit is a dev-only dependency.

  • The lock moves to req 0.7.5, finch 0.25.0, mint_web_socket 1.0.6, nimble_options 1.2.0 and nimble_pool 1.2.0, and the test-only bandit 1.15.0 and websock_adapter 0.7.2, so CI tests what a fresh consumer resolves. No constraint changes.

  • Qualification builds the package archive twice with Hex 2.7.0 and requires identical bytes, builds the docs archive once with a release.json naming the package, version and commit, and inspects both. Publication builds without a cache or key, uploads only what Hex does not yet serve from a directory without a Mix project, and reads both back. A second dispatch on the same commit finishes the first: the served package must equal the build, and served docs are kept, never compared. It refuses first publications, retired versions, missing changelog sections, package byte mismatches and served docs whose release.json names another release or a commit off the default branch's history. The package, the inspected served docs, checksums and release notes read from the published commit's CHANGELOG leave as release-assets for infra to attach to the GitHub release. Every job's timeout is about twice its slowest green run without a cache, and its comment names that run; publication keeps a 90-minute timeout until its first green run.

  • CI verifies exact runtime versions from .tool-versions, checks package contents and metadata before publication, and uses measured job timeouts. Publication refuses a non-default branch or an already tagged version; matching partial publications can resume.

  • CI and mix quality run every test command with --warnings-as-errors, so a warning in a test file fails the build. The seven test-file warnings it exposed are fixed: tests that hand a guard a deliberately wrong type now pass it through an opaque test helper.

  • CI actions run on the Node.js 24 runtime: actions/checkout v7, actions/cache v6 and actions/setup-java v6, which reads both the Java vendor and the exact version and build from .tool-versions.

  • CI and the canary restore their caches and never write them. The cache-warmer.yml run on each default-branch push, daily and on demand is the one writer. Every landing run starts from compiled deps and _build and a built dialyzer PLT; CI previously cached only fetched deps.

  • Pin Temurin Java 21, including its build, in .tool-versions and refuse a different installed Java runtime before generating integration TLS certificates.

[1.2.4] - 2026-11-17

Fixed

  • Full-text search works on ArcadeDB 26.12. 26.12.1-SNAPSHOT rejects the three-argument SEARCH_INDEX(ref, q, {metadata:true}) ("expects 2 arguments but got 3"), which FullText.search(..., with_score: true) and the {:fulltext, ...} arm of Vector.fuse emitted. Both now emit the two-argument form, which the server already ranks by relevance and scores with $score; rows, order, scores and fuse RRF scores are identical on 26.7.2, 26.8.1 and 26.12.1-SNAPSHOT (live-probed).

Security

  • grpc floor raised to ~> 1.1 (optional dependency), which pulls grpc_core 1.1.0 and closes EEF-CVE-2026-121808 (Erlpack codec memory exhaustion). The lock moves grpc and grpc_core to 1.1.0. grpc 1.1's new client pool is off by default, so the gRPC transport's behavior is unchanged.
  • plug 1.20.4 in the lock (test-only dependency), which closes EEF-CVE-2026-120287 (multipart :length limit not charged for part and header framing). plug is not a runtime dependency, so applications using arcadic are unaffected. mix audit is clean.

Documentation

  • The notebooks', CONTRIBUTING's and the test setup recipes' docker run examples pin arcadedata/arcadedb:26.11.1, the version CI tests against, instead of the moving latest.

[1.2.3] - 2026-11-01

Fixed

  • The 26.11 line's missing-database error maps to :database_not_found again. 26.11.1-SNAPSHOT renamed the class to DatabaseNotFoundException (still HTTP 404; 26.10 answered DatabaseNotAvailableException, <=26.9 DatabaseOperationException/500 — live-probed on all three lines), so a never-created database fell through to the :server_error fallback. New live drift-guard test (test/integration/error_mapping_test.exs) runs the mapping against the real server on every integration lane and prints the raw status + class on failure, so the next upstream rename self-diagnoses.

[1.2.2] - 2026-11-01

Security

  • Library-wide conn-guard (the routed S9 finding, resolved). Every public function taking an Arcadic.Conn as its first positional argument (234 across Arcadic, the facade modules, the three transports, and Conn's own with_*/2) plus the two Exception.message/1 callbacks now carries a value-free guard clause: a wrong-typed first argument raises ArgumentError("expected an Arcadic.Conn as the first argument") instead of FunctionClauseError, whose blame echoes the caller's arguments (the Rule-3 value-echo class — a caller programming slip could surface its own data in a crash report). Defaulted multi-clause functions gained the canonical defaults header. A new reflection-driven probe test derives the guarded surface from the source AST and drives a sentinel through every function — a future facade added without a guard fails the suite (tamper-proven red-capable).
  • Dependency lock refreshed: bandit 1.14.1 closes the 2026-11 advisory batch — 10 HIGH (CVE-2026-111101, -114213, -113436, -110499, -111103, -115269, -108525, -116078, -109584, -108529) and 2 MEDIUM (CVE-2026-114216, -110314) — and plug_crypto 2.2.1 closes CVE-2026-105963 (MEDIUM). Both are test-only dependencies. mix audit is clean.

[1.2.1] - 2026-10-16

Fixed

  • A missing database on the 26.10 line now maps to :database_not_found: ArcadeDB 26.10 answers a nonexistent database with HTTP 404 DatabaseNotAvailableException (was 500 DatabaseOperationException on <=26.9 — live-probed on both). Both classes map to the same reason, so consumers see one stable failure class across server versions.

[1.2.0] - 2026-10-16

Added

  • Migrator crash recovery. Every migration attempt is bracketed by a durable up_started/down_started marker on the _arcadic_migrations row (ArcadeDB session transactions do not roll back DDL — live-probed — so up + version-recording cannot be atomic). The marker is removed only by successful finalization or the new Migrator.resolve/3; an interrupted migration (error return, raise, process death) makes the next migrate/rollback/reset/status REFUSE with a typed :interrupted_migration error instead of silently re-running a possibly half-applied migration. Migrator.interrupted/1 lists the stuck versions. Legacy status-less rows read as applied. All migrator entry points now reject a session-scoped conn. Migration callbacks widen to :ok | {:error, term()} (only :ok finalizes).

Fixed

  • Rule-3 redaction at the HTTP boundary: an unencodable param or statement value (invalid UTF-8, a tuple/pid) returns {:error, %Error{reason: :invalid_params}} value-free — previously Jason/Protocol raised with the offending value echoed in the message. query/command/async/bookmarked reject a non-binary statement value-free (a bare atom silently stringified before).
  • Import failure is no longer a silent success: ArcadeDB ≥ 26.10 reports import-setting failures inside a 2xx result row ("result": "FAIL"); Import.database/3 now returns {:error, %Error{reason: :import_failed}} (server reason quarantined in detail).
  • gRPC caller timeouts are honored: timeout:/conn.timeout now reaches every RPC. Previously the transport dropped the option entirely and the grpc library's own defaults applied (unary capped at 10s with no override, streaming :infinity).
  • gRPC query_stream is lazy end-to-end (connect + server-cursor open on first enumeration pull — an abandoned stream leaks no channel and no cursor; was: both leaked). Early halt cancels the in-flight server stream on a pooled channel.
  • ChannelPool no longer serializes connects: a connect runs in the caller's process; previously one dead endpoint queued every checkout behind its ~15s connect until the GenServer call timed out with an untyped crash. A custom :name (which silently never served the transport) is now rejected.
  • list_databases fails closed on an off-contract body (:unexpected_response) instead of a silent empty list — database_exists? no longer answers false on protocol drift.
  • A transaction/3 commit-phase failure now rolls the session back best-effort (was: the session dangled server-side until reaping).
  • A gRPC timestamp outside the DateTime range decodes to nil instead of raising with the number echoed and killing the whole row decode; a deterministic TLS connect failure no longer burns a second connect-timeout retry.
  • Conn rejects consistency:/hosts: on a gRPC conn value-free (the transport ignores both — the same silent no-op Bolt already rejected).
  • Passing BOTH :cacertfile and :cacerts on a gRPC conn now returns {:error, %Error{reason: :invalid_transport_options}} instead of raising ArgumentError (a raise would crash a caller connecting through the ChannelPool).
  • Ingest.insert/4 validates option VALUES (a string chunk_size crashed deep in the gRPC layer with encoded rows in the blame; 0 silently coerced to row-at-a-time).

Changed

  • gRPC stream connect/open errors now surface at enumeration (a raise, matching HTTP's mid-stream error shape) instead of a call-time {:error, _}.
  • query_stream accepts a per-call request_timeout: (threaded into every page POST).
  • HTTP keyset streaming FALLS BACK to offset paging when page 1 of a projection carries no readable cursor (ArcadeDB >= 26.10 dropped the synthetic ordering column from projected rows — probed): same rows, O(n^2) paging, one value-free warning. A cursor that disappears MID-stream still fails loud (protocol drift).
  • mix quality now runs the full declared gate (format, compile --warnings-as-errors, credo --strict, unit tests, dialyzer) — previously only format/credo/dialyzer.
  • Vector.require_list!, FullText.search, and Server.check_database validate their argument values value-free (an element-checked list, a binary query, a boolean fix).
  • Integration pins updated to ArcadeDB 26.10: the sparse-vector retro-index now covers pre-existing rows; an unknown time-series FIELD write and an unknown tag-key filter are rejected by the server (was fail-open); the B7 streaming fixture seeds 2500 rows in one UNWIND round trip (sequential inserts blew test budgets on remote substrates).
  • Documented (26.10): a file:// RESTORE URL is now rejected server-side by default (RestoreImportUrlNotAllowedException → :unauthorized) unless the server sets arcadedb.server.restoreImportAllowLocalUrls=true — file:// import is unaffected. Found by executing the operations notebook against 26.10 (its Docker recipe now sets the flag).

Security

  • Dependency lock refreshed: mint 1.11.0 (CVE-2026-82728 HIGH, CVE-2026-94194 MEDIUM), protobuf 0.17.1 (CVE-2026-104635 HIGH), bandit 1.13.1 (CVE-2026-105659 HIGH, CVE-2026-105660 MEDIUM — test-only dependency). mix audit is clean.

[1.1.0] - 2026-08-23

Added

  • request_timeout — the whole-response bound. New conn field/connect opt (Arcadic.connect/3, request_timeout: ms), per-call override on Arcadic.query/command (request_timeout:), and transport wiring on every HTTP request site (post/4, raw_get/3, batch_ingest, ts_write). It maps to Finch's request_timeout, bounding the COMPLETE response — the hazard class receive_timeout (max wait per received chunk) cannot bound: a peer that trickles bytes can otherwise hold a call open indefinitely. Default nil keeps Finch's own default (:infinity) — existing conns are unchanged. Proven on a real socket: a 20-byte trickle at 200 ms intervals under timeout: 60_000 is killed at ~400 ms by request_timeout: 400 (TransportError{reason: :timeout}); the same trickle with no request_timeout completes. Mutation-red-proven (dropping the wiring reds exactly the kill test).

Fixed

  • A 401 response (invalid/expired bearer token — the body carries only error/requestId, no exception FQN; live-probed on 26.8.1) now maps to :unauthorized instead of the generic :server_error — a credential failure read as a server fault hides the re-auth remedy.
  • Arcadic.connect/3 now REJECTS a base_url carrying userinfo together with an explicit :auth (value-free ArgumentError). At the HTTP layer the URL credentials silently override the Authorization header, so a caller deliberately overriding credentials via :auth would send the URL's instead.

Changed

  • req floor bumped ~> 0.5 → ~> 0.7 (0.7 is where request_timeout exists as a request option; resolved 0.7.3, full suite green on it).

[1.0.0] - 2026-08-22

The first stable release: the full client surface (HTTP, Bolt, gRPC) is feature-complete, every dependency-security advisory is closed, and the entire 139-test integration surface is live-proven (see Verified below). 1.0.0 is a compatibility commitment for the public API.

Historical backfill

Surface that shipped in earlier releases without a changelog entry, recorded here for the 1.0 record:

  • The :retries command option (server-side optimistic-lock retry for concurrent autocommit writes) has existed since v0.1.0 (http.ex — forwarded to ArcadeDB's retries body param). It was first DOCUMENTED in the 0.7.1-era reliability work with a live tripwire (100 concurrent writers, ~85 conflicts without → 0 with retries: 10).
  • execute_with_index/4 on the transport behaviour — the offset-paging read underlying HTTP result streaming.
  • the DDL body guard (internal module) — the reject-not-escape guard for ArcadeDB DDL body literals (DEFINE FUNCTION / CREATE TRIGGER), and the internal admin span module — the shared, value-free admin span + transport delegation plumbing. Both @moduledoc false by design; named here so the security-relevant guard is on the record.
  • notebooks/operations.livemd — the change-events / functions / triggers / materialized-views / geo notebook (the fourth Livebook, alongside getting_started, graphrag, and timeseries).

Verified

  • Live-verification record (2026-08-22, arcadedata/arcadedb:latest = 26.9.1-SNAPSHOT, throwaway containers on this host): the ENTIRE 139-test integration surface — every test excluded from the default unit pass — ran green in one session on the post-migration tree: HTTP :integration 55 (incl. the server-side :retries tripwire), websocket 6, time-series 10, :integration_grpc 38 (grpc 1.0.4 + mint adapter), :integration_grpc_tls 5, :integration_shutdown 1, and the Bolt family — :integration_bolt 22 (bolt, bolt_explain, bolt_stream, tx-scoped B6 streaming) + :integration_bolt_tls 2 (verify_peer connects with the trusted CA; fails closed untrusted). Bolt substrate recipes (plugin flag, both env families, the arcadedb.ssl.* keystore spellings) are recorded in bolt_test.exs's moduledoc; TLS material for the grpc and Bolt suites comes from test/support/tls/gen-grpc-certs.sh (now also emitting the server-side PKCS12 keystore + JKS truststore).

Added

  • gRPC TLS trust-store selection + a live fail-closed suite. grpcs:// still hardcodes verify: :verify_peer (never verify_none), but callers may now select a private CA via transport_options: [cacertfile: path] (or cacerts: as a DER list) — an allowlist merge, so a caller chooses the trust store but cannot downgrade verification itself. The trust selection is part of the ChannelPool key ({host, port, tls?, trust}), so pooled channels never cross trust stores (a cross-vendor review finding: with the old key, a channel established under one trust anchor was silently reused by conns with a different trust config — fail-closed would have become first-conn-wins through the pool); passing both cacertfile and cacerts is rejected value-free instead of letting OTP precedence silently pick one. New :integration_grpc_tls live suite closes the long-standing "no live TLS coverage" gap: cert recipe (test/support/tls/gen-grpc-certs.sh) + a TLS-enabled gRPC ArcadeDB (recipe in the test moduledoc; on ARM64 images add -Dio.grpc.netty.shaded.io.netty.handler.ssl.noOpenSsl=true to dodge netty-tcnative's LSE-atomics crash). Proven live: trusted CA connects and executes; an untrusted CA and the bare OS store both fail the handshake — pooled and unpooled, each with its own liveness anchor — and non-vacuous: a scratch verify_none mutation reddens both fail-closed tests, and the pool-crossing test was observed RED before the key fix.

Fixed

  • Restore the mix format --check-formatted gate: the vendored generated protobuf module (lib/arcadic/transport/grpc/proto/) is excluded from formatter inputs, and the live :retries tripwire integration test — committed unformatted — is reformatted.
  • Restore the mix compile --warnings-as-errors gate: drop the unreachable {:error, {:already_started, _}} clause in the gRPC client-supervisor bootstrap (Elixir 1.20 type analysis proves it dead; the catch-all already evaluated to the same :ok, so behavior is unchanged).

Security

  • Dependency lock refresh clears every advisory with a released fix: mint 1.9.3, hpax 1.0.4, bandit 1.12.5, plug 1.20.3, cowboy 2.18.0, cowlib 2.19.0, gun 2.5.0 (plus plug_crypto/ranch rides). The composite mix audit gate dropped from 21 advisories to 8; the remainder (grpc 0.11.5's CRITICAL + 3 HIGH, plus gun/cowlib advisories unpatched upstream) is fully resolved by the grpc 1.x migration below.
  • grpc 1.x migration (~> 0.11 → ~> 1.0, locked 1.0.4): closes every grpc advisory — CRITICAL CVE-2026-48853 (RCE via erlpack deserialization) plus HIGHs CVE-2026-48599/53430/48854 — all fixed in grpc 1.0.0. The channel pins the mint adapter explicitly (grpc 1.x defaults to gun): mint 1.9.3 is patched and already a runtime dependency via req, and the move drops gun/cowboy/cowlib from the dependency tree entirely — their advisories (unpatched upstream at the latest published versions) leave the tree with them. mix audit is now fully green: zero advisories, zero retired packages. Internal to the migration: the 0.11 lazy client-supervisor bootstrap is gone (grpc 1.x auto-starts its own connection supervisor), and ChannelPool now best-effort-disconnects a stale cached channel when reconnecting replaces it (cross-vendor review finding: grpc 1.x owns connection processes under its own supervisor with random names, so dropping the handle without disconnecting would orphan that connection tree); pool teardown is best-effort for the same reason. Verified live against ArcadeDB 26.9.1-SNAPSHOT (gRPC suite 38/38; HTTP 55, websocket 6, time-series 10, shutdown 1 on the refreshed lock). Consumers pinning grpc 0.11.x will see a resolver conflict — intended; re-pin to ~> 1.0.

Changed

  • ArcadeDB 26.9.x substrate drift, pinned in the live suites (characterization re-pins, verified against 26.9.1-SNAPSHOT): a mixed line-protocol write with an unknown timeseries type still partially writes (the known line lands) but now answers HTTP 400 with a structured partial-write body instead of the 26.7.2 silent 200 — arcadic maps it value-free to {:error, %Arcadic.Error{reason: :server_error}}; and Server.shutdown/1 halts asynchronously (graceful drain can outlive the ack), so the live suite polls health with a bounded deadline.
  • Align the contributor guide with the released 0.7.1 surface and the post-release server-side retries: documentation and live tripwire already present on main.

[0.7.1] - 2026-07-14

Changed

  • Docs: the README and usage-rules.md now document the gRPC transport (Arcadic.Transport.Grpc) alongside HTTP and Bolt — the 0.7.0 release shipped the transport but the README/hexdocs still described only HTTP + Bolt. No code change (maintenance release for documentation currency).

[0.7.0] - 2026-07-14

Added

  • Arcadic.Server.database_info/1 — database-level info (%{database, type, records, classes, size_bytes}) for the connection's database. Over gRPC it maps to GetDatabaseInfo (all fields); over HTTP to SELECT FROM schema:database (name/size; record and class counts are nil, not cheaply available on that transport).

  • Arcadic.Transport.Grpc — an optional third transport over ArcadeDB's gRPC plugin, behind the new optional deps {:grpc, "~> 0.11"} and {:protobuf, "~> 0.17"}. Its headline is streaming: StreamQuery in CURSOR mode is a real server cursor (O(n), server-paced, language-agnostic), where HTTP result streaming offset-pages (O(n²) in the general case) and Bolt streams Cypher only. The transport implements the full surface it can support:

    • Reads/writes — execute/4 (ExecuteQuery/ExecuteCommand) and query_stream/4 (the CURSOR win).
    • Transactions — begin/commit/rollback, so Arcadic.transaction/3 and tx-scoped reads/writes work over gRPC.
    • Bulk graph ingest — Arcadic.Bulk.ingest/3 (via GraphBatchLoad), the gRPC twin of the HTTP /batch endpoint (same counts/id_mapping result; transport-transparent).
    • Arcadic.Ingest — document bulk-insert into a class (BulkInsert, or InsertStream via :chunk_size), returning insert-summary counts.
    • Arcadic.Record — single-record create/lookup/update/delete by @rid (raw maps).
    • Admin — Arcadic.Server database management (list_databases/database_exists?/create_database/ drop_database/info/database_info) and Arcadic.explain/profile.
    • Arcadic.Transport.Grpc.ChannelPool — an opt-in, caller-supervised shared-channel cache; add it to your supervision tree for channel reuse (absent, a fresh channel per call is used).

    Errors are value-free (an atom reason, never the gRPC wire message; per-row ingest errors surface only a row index + a categorical code). Transport is plaintext by default; enabling TLS (a secure grpcs:// scheme or transport_options: [tls: true]) verifies the server certificate against the OS trust store (verify_peer, never verify_none). A few operations are intentionally HTTP-only: server settings, user management (the server itself does not implement it over gRPC), token login/logout, time-series, and HA read-consistency — use an HTTP Conn for those. Select it with transport: Arcadic.Transport.Grpc and a grpc://host:port URL; credentials come from Conn.auth. HTTP/Bolt-only consumers are unaffected: the transport and its generated protobuf stubs are compile-guarded on the optional deps, so a consumer that doesn't add :grpc/:protobuf compiles and ships without them.

[0.6.0] - 2026-07-14

Added

  • Arcadic.transaction/3 accepts an opt-in :retry option (true for defaults, max_attempts: 3, base_backoff_ms: 50, max_backoff_ms: 1000, or a keyword overriding any of those). Off by default (unchanged behavior). On a transient server fault (:concurrent_modification, :not_leader, and a pre-commit :timeout) it retries with jittered exponential backoff up to :max_attempts. The retried function must be idempotent - it may run more than once. Emits [:arcadic, :transaction, :retry] telemetry per attempt (%{attempt} measurement, %{reason} metadata).
  • Arcadic.Conn.with_consistency/2 and connect(consistency: ...): a read-consistency level for subsequent reads: :eventual (default, sends no extra header), :read_your_writes, or :linearizable. HTTP-only; a non-default level on a Bolt connection raises. On a single-server deployment, :read_your_writes is a harmless no-op.
  • Arcadic.query_bookmarked/4 / command_bookmarked/4 (+ ! variants), like query/4/command/4 but return {:ok, rows, conn'}, where conn' carries a monotonically-advancing read-your-writes bookmark. Thread conn' into the next call to observe your own writes. HTTP-only; bookmarked calls target the primary host and do not participate in multi-host failover.
  • connect(hosts: [...]): additional base URLs for multi-host availability failover. Reads fail over to the next host on any connection error; writes fail over only on a pre-send connect error, never on an ambiguous post-send close. A session (inside transaction/3) pins to whichever host answers first. This is availability failover, not load balancing; front a cluster with a load balancer if you want request distribution.
  • New Arcadic.Error reason :not_leader: the target node is not the cluster leader and could not forward the write (ServerIsNotTheLeaderException). Treated as retriable by managed retry and as failover-eligible by multi-host failover (the write was rejected, nothing applied).
  • Arcadic.Changes — a live change-events client for ArcadeDB's /ws feed. Start it under your own supervision tree (start_link/1) and subscribe/3 a database to receive {:arcadic_change, %Arcadic.Changes.Event{}} messages. Best-effort at-most-once: the feed has no replay, so a reconnect delivers a :reconnected marker (events during the gap are lost) and a full delivery buffer delivers one :overflow marker after dropping the oldest events — either marker means the subscriber should reconcile. A terminal 401/403 handshake failure delivers {:arcadic_change_error, :unauthorized} (then stops, no reconnect spin); a server-rejected subscribe delivers a non-terminal {:arcadic_change_error, :subscribe_rejected}. Requires the optional mint_web_socket dependency; start_link/1 returns {:error, :mint_web_socket_not_available} without it, and validates the :conn value-free (:invalid_auth / :invalid_url_scheme / :invalid_max_buffer — an unrecognized URL scheme is refused, never downgraded to plaintext).
  • Arcadic.Function — define/4 / delete/2 (+ !) for ArcadeDB user-defined functions (DEFINE FUNCTION / DELETE FUNCTION). A function name is a dotted library.fn; the body is a single-line, single-quoted literal (ArcadeDB's DDL string literal has no escape). define/4 takes a single trailing opts keyword list — :params (a list of parameter names) and :language (:js default, :sql, :cypher) — matching the other DDL helpers. Call a defined function from an ordinary query/4/command/4 via the backtick idiom.
  • Arcadic.Trigger — create/4 / drop/2 (+ !) for ArcadeDB triggers (CREATE TRIGGER / DROP TRIGGER), firing a :timing (:before/:after) × :event (:create/:delete/:update/:read) action in :sql, :javascript, or :java. Shares Arcadic.Function's single-line/single-quoted body limit.
  • Arcadic.MaterializedView — create/3 / drop/2 (+ !) for ArcadeDB materialized views (CREATE MATERIALIZED VIEW / DROP MATERIALIZED VIEW) from a raw SELECT statement.
  • Arcadic.Geo — create_index/4 / drop_index/3 (+ !) for a GEOSPATIAL index over a string property holding WKT (this ArcadeDB build has no native POINT schema type). Geospatial querying rides ordinary query/4/command/4.
  • Arcadic.TimeSeries — a client for ArcadeDB's time-series wire family. Requires ArcadeDB ≥ 26.7.2 (an older server 404s every /api/v1/ts route).
    • create_type/4 / drop_type/2 (+ !) — TIMESERIES DDL (fields, tags, precision, shards, retention, compaction interval); add_downsampling/3 / drop_downsampling/2 (+ !) — downsampling policies.
    • create_aggregate/3 / refresh_aggregate/2 / drop_aggregate/2 (+ !) — continuous aggregates (CREATE/REFRESH/DROP CONTINUOUS AGGREGATE), materializing a raw SELECT as a document type.
    • write/3 / write_lines/3 (+ !) — Influx line-protocol writes: write/3 builds the wire format from structured point maps (typed fields, string tags, Identifier-validated names); write_lines/3 is a raw passthrough for an already-built line-protocol batch. Append-only, non-idempotent — see the module's Operational contract before relying on retries or mixed-type batches.
    • query/3 / latest/3 (+ !) — JSON reads: query/3 returns the raw columnar shape or, with :aggregation + :bucket_interval, bucketed aggregations; latest/3 returns the newest point matching at most one tag.
    • prom_query/3, prom_query_range/6, prom_labels/2, prom_label_values/3, prom_series/3 (+ !) — the PromQL read family (instant, range, labels, label values, series matching), decoding the Prometheus data envelope.
    • Four new optional Arcadic.Transport callbacks (ts_write/3, ts_query/3, ts_latest/3, ts_prom_get/4) back the wire family, HTTP-only (Bolt returns {:error, %Arcadic.Error{reason: :not_supported}}).
    • New notebooks/timeseries.livemd — DDL, writes, query/latest, PromQL, continuous aggregates, downsampling, and pointing Prometheus/Grafana at ArcadeDB.

Changed

  • connect/3 and transaction/3 now reject unknown option keys value-free (an ArgumentError naming the allowed set), matching query/command. A typo'd option — consistancy:, or retires: for retry: — was previously ignored silently, which for a connection-control option meant the wrong default applied (a mis-spelled retry: silently meant no retry). The offending value is never echoed.

[0.5.0] - 2026-07-10

Added

  • Arcadic.explain/4 + Arcadic.profile/4 (+ !) — surface the ArcadeDB EXPLAIN/PROFILE plan (%{plan, plan_tree, rows}) that query/command silently dropped. explain is plan-only; profile executes the statement (a write mutates). Works over HTTP and Bolt (Cypher-only).
  • query/command/query_stream now return {:error, %Arcadic.Error{reason: :use_explain}} on a bare EXPLAIN/PROFILE (was a silent {:ok, []}).
  • Arcadic.Server — server administration, expanded beyond database lifecycle: info/2 (server info/metrics, mode: :basic | :default | :cluster), metrics/1, health?/1, events/1, set_server_setting/3 / set_database_setting/3 (key + value both allowlist-validated value-free), open_database/2 / close_database/2, align_database/2 (cluster-only — a single-server node returns a server error), check_database/2 (fix: true runs CHECK DATABASE FIX, returns the integrity map), profiler/2, and shutdown/1 (a successful shutdown typically surfaces as a transport-closed error, since the server stops responding mid-request), alongside the existing create_database/2 / drop_database/2 / database_exists?/2 / list_databases/1 / ready?/1. HTTP-only, tenant-blind.
  • Arcadic.Security — server security & auth admin (HTTP-only): login/1 / logout/1 (session tokens), sessions/1, users/1, groups/1, api_tokens/1, create_user/2, and drop_user/2 (all + !). create_user/2's password is JSON-encoded into the server command and never echoed — an unencodable spec (e.g. a non-UTF-8 password) is rejected value-free as {:error, :invalid_user_spec} before any wire call.
  • Arcadic.Backup — backup and restore (HTTP-only): backup/2 (BACKUP DATABASE, optional :to target URL), list/1, and restore/3 (all + !). A :to target and the restore URL are allowlist-validated via Arcadic.Identifier.validate_url/1 before interpolation (neither command can bind a URL param), value-free on rejection ({:error, :invalid_url}).
  • Arcadic.Conn.with_bearer/2 — derive a Bearer-token-authenticated connection from a session token (typically Arcadic.Security.login/1's); HTTP-only.
  • Arcadic.Schema — stats/1 (schema:stats, per-database operation counters), dictionary/1 (schema:dictionary), and materialized_views/1 (schema:materializedviews) (all + !), @props-stripped like the rest of the module.
  • Every Arcadic.Server / Arcadic.Security / Arcadic.Backup call emits a value-free [:arcadic, :admin, :start | :stop | :exception] telemetry span (metadata: :operation, :reason — no database name, setting key/value, URL, or credential).
  • Arcadic.command/4 / command_async/4 accept an :auto_commit boolean opt, forwarded as-is to ArcadeDB's autoCommit body param.
  • Arcadic.FullText — full-text search: FULL_TEXT (Lucene) index DDL (create_index/4 + drop_index/3, retro-indexes existing rows) and SEARCH_INDEX/SEARCH_FIELDS query builders (search/5, search_fields/5, :with_score projects the BM25 $score). HTTP-only SQL.
  • Arcadic.Bulk — ingest/3 (+ !): bulk-creates vertices and edges over ArcadeDB's POST /api/v1/batch/<db> NDJSON endpoint in one atomic POST (edges wire via a structural "@id" temp key on vertex records; the response's id_mapping maps each temp "@id" to its assigned real RID). Create-only, HTTP-only, via a new optional batch_ingest/3 transport callback.
  • Arcadic.Param — int8/1 / bytes/1: typed param-value wrappers ($int8/$bytes) decoded server-side to a byte[] before the query runs. HTTP-only, requires ArcadeDB ≥ 26.5.1.
  • Arcadic.Vector.fuse/3 now accepts heterogeneous neighbor specs — dense (bare 4-tuple), :sparse, and :fulltext — fused together in one hybrid-ranked result set.
  • New notebook notebooks/graphrag.livemd — an end-to-end graphRAG walkthrough (bulk ingest, idempotent UNWIND upsert, dense/sparse/full-text/hybrid retrieval, INT8 params, traversal).

Fixed

  • Docs: SQL :name vs Cypher $name parameter binding is now documented; the Bolt-streaming example uses Arcadic.Transport.Bolt.setup/1 (the prior transport_options: [bolt: …] form returned :not_supported for streaming); ~> 0.5 install pins; hexdoc module groups.

Notes

  • Re-verified boltx temporal decode against ArcadeDB 26.8.1 (:integration_bolt green).

[0.4.0] - 2026-07-07

Added

  • Arcadic.Schema — tenant-blind schema introspection: types/1, properties/2, indexes/2 (with a :type filter), buckets/1, and database/1 (the engine config, schema:database) (all + !). SQL-only SELECT FROM schema:*; a caller type name binds as a $param and is Identifier-shape-guarded (value-free); ArcadeDB's @props serializer noise is deep-stripped at every nesting depth.
  • Arcadic.Import — database/3 (+ !) wrapping IMPORT DATABASE. The source URL is validated against a positive character allowlist (closing the interpolated-URL injection surface, since the URL cannot be a bound parameter and ArcadeDB honours backslash-escapes inside string literals) and a scheme allowlist (http/https/file); with: accepts number, boolean, and charset-allowlisted string settings, emitted as ArcadeDB's no-parens WITH k = v grammar. Import errors are reflected faithfully — a private/loopback host trips ArcadeDB's SSRF guard (:unauthorized / java.lang.SecurityException, distinct from an auth failure's ServerSecurityException via error.exception).
  • Arcadic.Export — database/3 (+ !) wrapping EXPORT DATABASE file://<name>, symmetric to Arcadic.Import: the bare export name is path-traversal-guarded (value-free), and with: reuses the same number/boolean/string settings grammar.
  • HTTP query_stream pages WHERE-less SQL by an O(n) @rid keyset cursor (offset fallback for WHERE'd statements) and supports Cypher streaming via a caller order_key: "id(v)" (offset, $name placeholders). The comment guard is language-aware (// rejected for Cypher). Inside transaction/3 over Bolt, streaming uses the O(n) in-transaction cursor.
  • Transaction-scoped Bolt streaming — query_stream/4 inside transaction/3 streams over the transaction's own connection (sees uncommitted writes), guarded so an execute cannot interleave an open cursor on the shared socket; the cursor callbacks disconnect on a wire fault (desync-safe). Consume the stream inside the transaction/3 body (it is bound to the tx connection).
  • Bolt over TLS — scheme: "bolt+s" with ssl_opts. bolt+s is secure by default (verify_peer against the OS trust store, via boltx's inverted bolt+ssc scheme under the hood); ssl_opts: [verify: :verify_none] is an explicit caller opt-in to skip verification. A :uri opt is rejected (it would bypass the scheme translation and silently skip verification).
  • Bolt now fails loud if a BOLT_USER/BOLT_PWD/BOLT_HOST/BOLT_TCP_PORT environment variable is set — both at pool setup (start_link/1/setup/1) and again on every connect/reconnect, because boltx re-reads them with precedence over arcadic's explicit config at connect time (so a var set after startup is caught too); unset the var.

Changed

  • Bolt RUN/PULL wire-framing is deduplicated to a single site (stream_run/stream_pull), shared by the non-transaction stream and the in-transaction cursor callbacks.

Fixed

  • Arcadic.query/4, command/4, and query_stream/4 now reject a non-keyword-list opts with a value-free ArgumentError ("opts must be a keyword list"). Previously an improper-list opts (e.g. [:foo]) raised a Keyword error whose message echoed the offending entry — a Rule-3 value leak on the core query paths. The opt-key guard is now shared across the query, Schema, Import, and Vector surfaces.

Notes

  • Documented an upstream ArcadeDB server hazard for operators running Bolt over TLS: the listener performed TLS handshakes on its single shared accept thread, so one early-closed, stalled, or untrusted-cert handshake could wedge Bolt for every client (~100% CPU tight loop or no ServerHello) until restart. arcadic's client-side TLS is unaffected. Reported by arcadic; root-caused and fixed upstream on main 2026-07-08 (per-connection handshake threads + read timeout), shipping in 26.7.2 — ArcadeData/arcadedb#5106. Builds predating the fix remain affected; the wedge is condition-dependent (a cleanly-delivered unknown_ca alert does not trigger it — early-close/stall do), so a clean probe on a pre-fix build proves nothing.

[0.3.0] - 2026-07-05

Added

  • Arcadic.Vector sparse + hybrid completion:
    • create_sparse_index/5 (+ !), drop_sparse_index/4 (+ !), sparse_neighbors/8 (+ !) over ArcadeDB LSM_SPARSE_VECTOR indexes ((tokens, weights) pair; rows ranked by top-level score). create_sparse_index opts: dimensions, modifier (:none | :idf).
    • filter (param-bound candidate RID set), group_by, and group_size opts on neighbors/6, sparse_neighbors/8, and fuse/3.
    • A [:arcadic, :vector, :sparse_index_preexisting] telemetry event when a sparse index is created over rows that already exist (which a sparse index does not retro-index).

[0.2.1] - 2026-07-05

Fixed

  • Install instructions in the README and getting-started notebook pointed at a pre-publish path dependency and ~> 0.1; corrected to {:arcadic, "~> 0.2"} from Hex.

Added

  • README: Hex.pm + hexdocs badges, a Benchmarks section (linking the bench/ harness and the 100k result set), and a Bulk-loading note; usage-rules.md bulk-loading entry (IMPORT DATABASE / transaction/3).

No library code changed in this release — docs/packaging only.

[0.2.0] - 2026-07-05

Added

  • Arcadic.Vector — dense vector search over ArcadeDB LSM_VECTOR indexes: create_dense_index/5 (+ !), drop_dense_index/3 (+ !), neighbors/6 (+ !), fuse/3 (+ !), and index_ref/2. Tenant-blind; the query vector, k, ef_search, and max_distance bind as params; index refs are identifier-validated; metadata keys/values and query/fusion option inputs are allowlisted and validated value-free (similarity, encoding, quantization, fusion against their ArcadeDB enums). neighbors/6 rows carry a distance whose scale depends on the index similarity (COSINE 0..1 ascending; DOT_PRODUCT negative); fuse/3 rows are ranked by score. Sparse retrieval and the Ash-native surface are named non-goals.

[0.1.0] - 2026-07-04

Added

Fixed

  • Arcadic.Transport.Bolt now threads conn.database into every Bolt RUN/BEGIN, so with_database/2 selects the database on Bolt (was hitting the connection default).
  • Bolt transaction/3 maps a commit-failure to a typed %Arcadic.Error{reason: :transaction_error} instead of leaking DBConnection's bare :rollback atom.
  • Arcadic.Transport.Bolt — a failed Bolt connect (wrong password, or a Bolt conn pointed at a non-Bolt port) no longer leaks a :gen_tcp socket. arcadic now owns the connect handshake and HELLO on both the per-stream connection and the DBConnection pool, closing the socket on every failure; a bad-password stream connect surfaces :unauthorized, and the connect HELLO is bounded by connect_timeout. Connect-time errors are redacted on both sites: a HELLO response arcadic's parser cannot classify returns a value-free :bolt_protocol_error instead of a raw exception carrying server bytes, and the DBConnection pool's connect error drops the server-supplied failure message (keeping the error code/class) so it cannot ride a connect-failure log line.