Skip to content

Epic: Bolt Driver Compatibility Certification #4882

Closed
10 of 10 issues completed
Closed

Description

@robfrank

Problem

ArcadeDB's bolt module is more capable than "works with some drivers" suggests, but has never been certified against the official driver set, and has real, confirmed depth gaps.

What's already solid (verified in bolt/src/main/java/com/arcadedb/bolt/):

  • Full Bolt 3.0/4.0/4.4 message set (HELLO, LOGON, LOGOFF, GOODBYE, RUN, PULL, DISCARD, BEGIN, COMMIT, ROLLBACK, RESET, and ROUTE) dispatched in BoltNetworkExecutor.processMessage.
  • A custom PackStream encoder/decoder (PackStreamWriter/PackStreamReader).
  • Structure mappers for Node/Relationship/UnboundRelationship/Path with correct Bolt tags (BoltStructureMapper).
  • TLS (bolt+s) via BoltSslHelper with DISABLED/OPTIONAL/REQUIRED modes.
  • Neo4j-style structured error codes (Neo.ClientError.*, Neo.DatabaseError.*) via BoltErrorCodes.
  • A deliberate advertised identity: HELLO/SUCCESS reports "Neo4j/5.26.0 compatible (ArcadeDB ...)", pinning the feature envelope drivers assume.
  • Working Java (neo4j-java-driver 6.2.0, RemoteBoltDatabaseIT) and JS (neo4j-driver ^6.0.1, js-bolt-e2e.test.js) e2e coverage, already PR-gating in mvn-test.yml.

Confirmed gaps this epic exists to close:

  1. No Bolt 5.x ever advertised - server negotiates only 3.0/4.0/4.4 (BoltNetworkExecutor.SUPPORTED_VERSIONS). 5.x drivers currently work only by silently downgrading; this is undocumented and untested as a deliberate compatibility stance.
  2. ROUTE is single-node only - handleRoute returns this node's own address as writer/reader/router with no HA-aware multi-server address list, so neo4j:// routing against a cluster is unproven.
  3. Type-fidelity bug: temporal values (Date, Time, LocalDateTime, DateTime, etc.) serialize as ISO-8601 strings, not native Bolt structures; Duration and spatial Point have no handling anywhere in BoltStructureMapper/PackStreamWriter. Official drivers will not receive typed objects for these.
  4. No Neo.TransientError.* codes exist - only a handful of ClientError/DatabaseError codes are defined, so driver-side transient-error retry logic cannot be triggered correctly.
  5. Three of five official drivers have zero Bolt coverage: e2e-python and e2e-csharp test Postgres-wire/HTTP only (confirmed via direct dependency and grep audit - no neo4j or Neo4j.Driver reference exists anywhere in either module), and no Go e2e module exists at all (no e2e-go, no go.mod, no neo4j-go-driver reference anywhere in the repo).
  6. Existing Java/JS Bolt coverage is shallow: connect + simple/parameterized read queries + one variable-length-path regression test. No transactions, no error-path tests, no type round-trip tests exist in either suite today.
  7. No unified conformance spec - each suite tests ad hoc and at uneven depth; results aren't comparable across languages.
  8. No certification artifact and no nightly run - no scheduled workflow touches any Bolt-related suite (confirmed: only benchmark-tests, ha-resilience-tests, load-tests, license-compliance, studio-security-audit have cron triggers, none Bolt-related), and there is no published compatibility matrix. JS/Python/C# e2e jobs also lack JUnit-report aggregation (only Java suites use dorny/test-reporter), so even manual runs don't produce a comparable artifact.

Governing principles

  • Certify depth, not presence. "The driver connects" is not certification. Every driver is proven against the full feature matrix below, and every unsupported cell is an explicitly documented limitation - never a silent omission.
  • Unify the spec, keep the code polyglot. No new dedicated multi-language Bolt module. Extend the existing idiomatic per-language e2e modules (jest / pytest / xUnit / go test), each driven by one shared, language-neutral conformance spec - the single source of truth.
  • Test the real official drivers only - neo4j-java-driver, neo4j-driver (JS), neo4j (Python), Neo4j.Driver (.NET), neo4j-go-driver. No mocks, no bespoke clients.
  • Pin and range-test driver versions, run on a schedule so driver-side releases can't silently break compatibility.
  • The advertised server identity is a real decision already made ("Neo4j/5.26.0 compatible...") - document it as the contract, don't re-decide it casually; any change to it is a compatibility-affecting decision in its own right.
  • A finding of "not supported" is a valid, complete answer as long as it's documented in the matrix - this epic is not scoped to make ArcadeDB byte-for-byte identical to Neo4j server behavior.

Success criteria

  • Every official driver (Java, JS, Python, .NET, Go) is certified against the shared feature matrix, across the pinned driver-version range, driven by one shared conformance spec.
  • Every feature-matrix cell is either passing, or documented as a known limitation (never silently unhandled) - including the 4 confirmed gaps above.
  • All five per-language Bolt suites are PR-gating in CI, plus a nightly scheduled run against the pinned driver-version matrix.
  • Per-language results are aggregated into a published compatibility matrix (driver x feature x version) with a badge.
  • The advertised server identity / Neo4j feature envelope is explicitly documented with rationale.

Feature matrix (definition of done)

Every language module implements these as identical scenarios from the shared spec:

Area Scenarios
Connection bolt://, neo4j:// (routing/discovery - HA-aware), TLS bolt+s/neo4j+s
Auth basic; none (currently rejected - certify this is intentional and documented, not a bug)
Transactions autocommit; explicit BEGIN/COMMIT/ROLLBACK; managed transaction functions (executeRead/executeWrite) incl. retry-on-transient
Causal consistency bookmarks
Multi-database session database selection
Result handling streaming PULL n, discard, ResultSummary/summary counters, notifications/metadata
Type round-trip (both directions, incl. params) Node, Relationship, Path; temporal (Date, Time, LocalTime, DateTime, LocalDateTime - currently strings, needs native structures); Duration (unimplemented); spatial Point (unimplemented); ByteArray; nested lists/maps; nulls
Errors Neo.ClientError.* (present) and Neo.TransientError.* (absent - needs definition) so driver retry/fail behavior matches Neo4j
Protocol 3.0/4.0/4.4 negotiation (present); 5.x negotiation (absent - needs a decision + implementation or documented non-support)

Child issues

Group A - Certification backbone:

Group B - Per-language implementations:

Group C - Close protocol gaps the matrix surfaces:

Group D - CI + publication:

Implementation sequence

  1. A1 (conformance spec) first - everything else depends on it. A2 (server identity doc) can run in parallel with A1.
  2. B1-B5 (all five per-language suites) run in parallel once A1 exists.
  3. C1 (tracking issue -> concrete sub-issues) opens once B-suites start lighting up red cells - do not pre-scope C's children before B's tests exist.
  4. D1 (CI gating + nightly) depends on B suites existing and passing locally; D2 (published matrix) depends on D1 producing aggregated, comparable results.

Non-goals

  • Aura or enterprise-clustering-specific driver behavior.
  • Certifying non-official/community Bolt drivers.
  • Reimplementing Neo4j server-side features beyond what's visible/testable through the driver-facing Bolt protocol surface.
  • Changing the advertised server_agent version away from 5.26.0 as part of this epic (A2 documents the existing choice; changing it is a separate, deliberate decision).

Sub-issues

Sub-issues

10 of 10 Issues completed
Loading 10 sub-issues

Metadata

Metadata

Assignees

Labels

enhancementparent-issue

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions