Repository navigation
Closed
10 / 1010 of 10 issues completedLabels
Milestone
Description
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) viaBoltSslHelperwith DISABLED/OPTIONAL/REQUIRED modes. - Neo4j-style structured error codes (
Neo.ClientError.*,Neo.DatabaseError.*) viaBoltErrorCodes. - A deliberate advertised identity: HELLO/SUCCESS reports
"Neo4j/5.26.0 compatible (ArcadeDB ...)", pinning the feature envelope drivers assume. - Working Java (
neo4j-java-driver6.2.0,RemoteBoltDatabaseIT) and JS (neo4j-driver^6.0.1,js-bolt-e2e.test.js) e2e coverage, already PR-gating inmvn-test.yml.
Confirmed gaps this epic exists to close:
- 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. - ROUTE is single-node only -
handleRoutereturns this node's own address as writer/reader/router with no HA-aware multi-server address list, soneo4j://routing against a cluster is unproven. - Type-fidelity bug: temporal values (Date, Time, LocalDateTime, DateTime, etc.) serialize as ISO-8601 strings, not native Bolt structures;
Durationand spatialPointhave no handling anywhere inBoltStructureMapper/PackStreamWriter. Official drivers will not receive typed objects for these. - 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. - Three of five official drivers have zero Bolt coverage:
e2e-pythonande2e-csharptest Postgres-wire/HTTP only (confirmed via direct dependency and grep audit - noneo4jorNeo4j.Driverreference exists anywhere in either module), and no Go e2e module exists at all (noe2e-go, nogo.mod, noneo4j-go-driverreference anywhere in the repo). - 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.
- No unified conformance spec - each suite tests ad hoc and at uneven depth; results aren't comparable across languages.
- 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-audithave 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 usedorny/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:
- Bolt: author the shared Bolt conformance spec #4883 - Author the shared Bolt conformance spec
- Bolt: document the advertised server identity and Neo4j feature envelope #4884 - Document the advertised server identity and Neo4j feature envelope
Group B - Per-language implementations:
- Bolt/e2e-python: add neo4j Python driver conformance suite #4885 -
e2e-python: addneo4jPython driver Bolt suite - Bolt/e2e-csharp: add Neo4j.Driver conformance suite #4886 -
e2e-csharp: addNeo4j.DriverBolt suite - Bolt/e2e-go: new module using neo4j-go-driver #4887 -
e2e-go: new module usingneo4j-go-driver - Bolt/e2e-js: deepen js-bolt-e2e to the full conformance spec #4888 -
e2e-js: deepenjs-bolt-e2eto the full spec - Bolt (Java): deepen RemoteBoltDatabaseIT and bolt-module ITs to the full conformance spec #4889 -
e2e/bolt(Java): deepenRemoteBoltDatabaseITand bolt-module ITs to the full spec
Group C - Close protocol gaps the matrix surfaces:
- Bolt: tracking issue for protocol/type-fidelity gaps surfaced by certification #4890 - Tracking issue: protocol/type-fidelity gaps surfaced by certification (temporal/Duration/Point,
Neo.TransientError.*, HA-aware ROUTE, Bolt 5.x)
Group D - CI + publication:
- Bolt: CI-gate all five per-language suites + nightly scheduled run #4891 - CI: gate all five per-language Bolt suites + nightly scheduled run against pinned driver-version matrix
- Bolt: publish the driver compatibility matrix #4892 - Publish the compatibility matrix (site page + badge, generated from aggregated CI results)
Implementation sequence
- A1 (conformance spec) first - everything else depends on it. A2 (server identity doc) can run in parallel with A1.
- B1-B5 (all five per-language suites) run in parallel once A1 exists.
- 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.
- 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_agentversion away from5.26.0as part of this epic (A2 documents the existing choice; changing it is a separate, deliberate decision).
Sub-issues
Collapse Sub-issuesSub-issues
Loading 10 sub-issues
Activity