Neo4j Bolt and Cypher: implementation reference

This page describes how the Bolt listener and its Cypher executor are built. For the operator view (status, scores, how to connect, known gaps, how to re-run the proof) see the wire page Neo4j (Bolt + Cypher). Authentication rules shared by all wires are in Security.

1. Source layout

File Role
src/protocol/bolt/mod.rs Listener, handshake, chunking, request dispatch, auth, transactions, the in-memory GraphStore, and the clause-level Cypher executor
src/protocol/bolt/messages.rs Message tags, BoltRequest / BoltResponse, MetadataBuilder, the buffered QueryResult
src/protocol/bolt/packstream.rs PackStream encoder and decoder, PackValue, structure tags
src/protocol/bolt/cypher_eval.rs Expression parser (CyExpr) and evaluator, scalar functions
src/protocol/bolt/pattern.rs MATCH pattern parser and matcher, shortestPath / allShortestPaths, variable-length expansion
src/protocol/bolt/temporal.rs Temporal and spatial values, their functions and arithmetic
src/protocol/bolt/fulltext.rs Lucene-style query syntax and BM25 ranking for full-text procedures
src/protocol/bolt/vector_index.rs CREATE VECTOR INDEX options and db.index.vector.query* procedures

The Bolt executor does not go through src/query/cypher/. That module (CypherAnalyzer, a Cypher to LogicalPlan parser) is used by the HTTP /api/v1/query and gRPC paths (see HTTP API). BoltConnection holds a CypherAnalyzer field, but no Bolt code path calls it. (source: src/protocol/bolt/mod.rs, BoltConnection; src/protocol/http/routes.rs, execute_query; src/query/cypher/mod.rs)

2. Transport and framing

2.1 Listener

BoltHandler implements ProtocolHandler with name Bolt and default port 7687. Each accepted socket gets TCP_NODELAY, an optional implicit TLS wrap (TlsListener::accept, when [tls] is configured), and its own task. Every connection shares one Arc<RwLock<GraphStore>>. Session ids come from the process-global NEXT_BOLT_SESSION_ID counter so that per-connection handlers never reuse an id. Outgoing messages go through a 64 KiB BufWriter that is flushed only before the server waits for the next client message, so a stream of RECORDs leaves in large writes. (source: src/protocol/bolt/mod.rs, ProtocolHandler for BoltHandler::start, handle_connection, message_loop; src/server/mod.rs, Bolt handler start)

2.2 Handshake and versions

The client sends 20 bytes: the magic 0x6060B017 and four 4-byte version proposals. For each proposal the low byte is the major, the next byte the minor, and the third byte a range of older minors also accepted. The server walks the proposals in order and, inside each, from the proposed minor down through the range, and picks the first supported version. It replies with that version with the range byte cleared, or 0x00000000 and closes when nothing matches. A wrong magic number is a protocol error. (source: src/protocol/bolt/mod.rs, BoltHandler::handshake)

Major Minors accepted
4 0 to 4
5 0 to 4
6 0

The negotiated version changes only DateTime encoding: below major 5 the legacy local-seconds structures (F, f) are written; from 5 the UTC structures (I, i). The flag is set per message through packstream::set_legacy_datetime. (source: src/protocol/bolt/mod.rs, message_loop; src/protocol/bolt/packstream.rs, set_legacy_datetime)

Tested by test_handler_uses_valid_default_version in tests/protocol_bolt.rs. The negotiation loop itself has no direct unit test; the differential harness connects with neo4j driver 6.4.1 and negotiated Bolt 5.4 in the 2026-11-30 run. (source: docs/proof/2026-11-30/proof-pack-a3232c9/logs/cypher-query-corpus-second-connection-restart.txt)

2.3 Chunking

Messages are split into chunks, each a big-endian u16 length followed by data, and end with a 0x0000 chunk. Reading:

  • Reads before the first chunk of a message are not timed out (an idle connection).
  • Once a message has started, each chunk header and body must arrive within TimeoutConfig::read_timeout (slowloris guard), else the connection fails with "Bolt read timeout in the middle of a chunked message".
  • The total message is capped at MAX_BOLT_MESSAGE_SIZE = 16 MiB.

Writing splits each encoded response into chunks of at most 65 535 bytes plus the terminator. (source: src/protocol/bolt/mod.rs, read_message, send_chunked, MAX_BOLT_MESSAGE_SIZE)

2.4 PackStream

PackValue variants: Null, Boolean, Integer(i64), Float(f64), String, Bytes, List, Map, generic Structure{tag, fields}, and typed Node, Relationship, Path, Date, Time, LocalTime, DateTime, DateTimeZoneId, LocalDateTime, Duration, Point2D, Point3D. The decoder handles every standard marker (tiny ints, C8 to CB ints, C1 float, tiny/8/16/32-bit strings, lists, maps and bytes, B0 to BF structures). (source: src/protocol/bolt/packstream.rs, PackValue, PackDecoder::decode)

Structure tags:

Tag Byte Notes
Node 0x4E N Always written with 4 fields (id, labels, properties, element_id), whatever the negotiated version; element_id is the decimal id as a string
Relationship 0x52 R 8 fields: id, start id, end id, type, properties, element_id, start element_id, end element_id
UnboundRelationship 0x72 r Inside paths
Path 0x50 P nodes, unbound relationships, indices
Date 0x44 D days since epoch
Time 0x54 T nanoseconds, offset seconds
LocalTime 0x74 t  
DateTime (legacy) 0x46 F Bolt 4.x, local seconds
DateTimeZoneId (legacy) 0x66 f Bolt 4.x
DateTime (UTC) 0x49 I Bolt 5+
DateTimeZoneId (UTC) 0x69 i Bolt 5+
LocalDateTime 0x64 d  
Duration 0x45 E months, days, seconds, nanoseconds
Point2D / Point3D 0x58 / 0x59 SRID 7203, 9157, 4326, 4979

(source: src/protocol/bolt/packstream.rs, structure_tags, PackEncoder::encode; src/protocol/bolt/temporal.rs, SRID_*)

Decoder limits: nesting depth MAX_PACKSTREAM_DEPTH = 100, any declared container or byte-string length MAX_PACKSTREAM_CONTAINER = 16 MiB. (source: src/protocol/bolt/packstream.rs)

Not verified: a Bolt 4.x client receiving the 4-field Node structure (Bolt 4 defines 3 fields). No test with a 4.x driver was found.

3. Messages

3.1 Request messages

Message Tag Handling
HELLO 0x01 Authenticates (section 4). A Bolt 5 HELLO that carries bolt_agent and no principal/credentials is accepted and the session waits for LOGON. Replies SUCCESS with server: "Neo4j/5.0.0" and connection_id: "bolt-<n>"
LOGON 0x6A Authenticates or re-authenticates (5.1+)
LOGOFF 0x6B Returns the session to Authenticating
GOODBYE 0x02 Closes the session
RESET 0x0F Clears failure state, rolls back an open transaction, drops buffered results; never grants Ready to an unauthenticated session
RUN 0x10 Runs the whole query, buffers all records, replies SUCCESS with fields, t_first, qid and stats (when any). extra.db selects the database name
PULL 0x3F Returns up to n RECORDs from buffered result qid, then SUCCESS with has_more; on the last batch also type, t_last, bookmark
DISCARD 0x2F Skips n records; unknown qid returns empty SUCCESS
BEGIN 0x11 Runs BEGIN on the connection's QueryEngine; extra.db selects the database
COMMIT 0x12 Commits the engine transaction, then publishes the session's uncommitted nodes and relationships; SUCCESS carries a bookmark
ROLLBACK 0x13 Rolls back the engine transaction and reloads the in-memory graph from storage
ROUTE 0x66 Returns a single-node routing table (below)

Any other tag is a parse error: FAILURE Neo.ClientError.Request.Invalid and the connection enters failure state. (source: src/protocol/bolt/messages.rs, tags, BoltRequest::parse; src/protocol/bolt/mod.rs, handle_request, handle_run, handle_pull, handle_discard, handle_begin, handle_commit, handle_rollback)

Response messages: SUCCESS 0x70, RECORD 0x71, IGNORED 0x7E, FAILURE 0x7F. (source: src/protocol/bolt/messages.rs, tags)

TELEMETRY (Bolt 5.4) is not in the tag table and is answered as an invalid request. Not verified: whether any driver sends it to this server; the differential harness negotiated 5.4 and passed.

3.2 State machine

  • Until HELLO or LOGON succeeds, RUN, PULL, DISCARD, BEGIN, COMMIT, ROLLBACK and ROUTE get FAILURE Neo.ClientError.Security.Unauthorized. Tested by test_unauthenticated_run_and_reset_rejected (unit test in src/protocol/bolt/mod.rs).
  • After a FAILURE the connection is in failure state: everything except RESET gets IGNORED.
  • A client that disconnects with an open transaction is rolled back (abandon_open_txn).

(source: src/protocol/bolt/mod.rs, handle_request, abandon_open_txn)

3.3 Result buffering

RUN executes the query to completion and stores the rows in SessionResults under a new qid. PULL with n = -1 drains the rest. Results are dropped when exhausted, on COMMIT, ROLLBACK and RESET. There is no server-side streaming of a running query. Tested by test_bolt_query_result_pull_empty, test_bolt_query_result_pull_partial (tests/protocol_bolt.rs) and test_session_results (unit). (source: src/protocol/bolt/messages.rs, QueryResult::pull; src/protocol/bolt/mod.rs, SessionResults)

Bookmarks are random strings of the form synergy:tx:<u64>. They are not checked on input: there is one node, so causal chaining has nothing to wait for. (source: src/protocol/bolt/mod.rs, BoltConnection::generate_bookmark, handle_route)

3.4 ROUTE

The table has ttl 300 and one server entry each for the ROUTE, WRITE and READ roles, all pointing at the address from the client's routing context (fallback localhost:7687). All three roles are present because newer Python drivers reject a table without a ROUTE entry. (source: src/protocol/bolt/mod.rs, handle_route) Not verified: no test of ROUTE was found.

4. Authentication

BoltAuthConfig has a mode (Trust, Basic, Native), a local users map and default_user neo4j. The server starts Bolt with the default config: mode Trust, and a single local user neo4j whose stored value is the locked sentinel !locked!, which can never authenticate. (source: src/protocol/bolt/mod.rs, BoltAuthConfig::default, LOCKED_ACCOUNT_SENTINEL; src/server/mod.rs)

Flow on HELLO and LOGON:

  1. Username from principal, else username; password from credentials, else password. Missing either gives Neo.ClientError.Security.Unauthorized.
  2. Trust accepts any credentials only when the environment variable SYNERGYDB_DEV_INSECURE_AUTH is 1 or true. Otherwise Trust behaves like credential checking.
  3. If the role exists in the SynergyDB catalog, auth::wire_auth::verify_credential decides. A catalog role always wins over a local entry.
  4. Otherwise the local map is checked: locked sentinel rejected; Basic compares plaintext; Native verifies an Argon2id hash (a value starting with $) or falls back to plaintext. Unknown users still run a dummy Argon2 verify to keep timing similar.
  5. On success the session is attached to the connection's QueryEngine through AuthenticatedSession::resolve_from_catalog, so row-level security and column masking apply (section 6.4).

(source: src/protocol/bolt/mod.rs, handle_hello, handle_logon, verify_credentials, verify_credentials_local, attach_rls_session, dev_insecure_auth_enabled)

Tested by test_trust_mode_gated_by_dev_insecure_auth_env (unit) and the configuration tests in tests/protocol_bolt.rs (test_default_config_has_neo4j_user, test_basic_config_with_users, test_auth_mode_variants and others). The differential harness runs with the dev opt-in ("auth: none/trust"). (source: proof log above)

Every RUN is passed to audit_cypher when the audit log is enabled, with up to 64 parameters. (source: src/protocol/bolt/mod.rs, handle_request, audit_cypher)

5. Storage mapping

5.1 Tables

The graph is held in memory in GraphStore and mirrored to three ordinary SQL tables through a QueryEngine:

Table Columns Content
_bolt_nodes id INTEGER PRIMARY KEY, labels TEXT, properties TEXT labels as a JSON array, properties as JSON
_bolt_relationships id INTEGER PRIMARY KEY, start_node_id INTEGER, end_node_id INTEGER, rel_type TEXT, properties TEXT  
_bolt_schema name TEXT PRIMARY KEY, def TEXT indexes and constraints as JSON (what, id, …); constraint rows are keyed \u{1}c:<name>; a \u{0}init row marks that the two default LOOKUP indexes were created

Each node or relationship write is a DELETE ... WHERE id = n followed by INSERT. At start-up GraphStore::with_storage creates the tables if missing, loads every row, rebuilds the label, type, outgoing and incoming indexes, sets the next ids to max + 1, loads the schema and resynchronises vector indexes. A new database gets Neo4j's two token-lookup indexes index_343aff4e (NODE) and index_f7700477 (RELATIONSHIP). (source: src/protocol/bolt/mod.rs, GraphStore::with_storage, persist_node, persist_relationship, load_schema, save_constraint)

Because the tables are ordinary SQL tables, they are visible to the SQL wires, and RLS policies on _bolt_nodes affect Cypher reads (section 6.4).

Property values are stored as JSON; temporal and spatial values use a tagged JSON form so they survive a restart. (source: src/protocol/bolt/mod.rs, pack_value_to_json, json_to_pack_properties; src/protocol/bolt/temporal.rs, to_json, from_json)

Tested by test_bolt_nodes_table_survives_restart, test_bolt_relationships_table_survives_restart, test_bolt_multiple_restarts, test_bolt_persistence_with_complex_properties (tests/protocol_bolt.rs) and the restart phase of the differential (22/22). (source: proof log above)

5.2 Transactions and isolation

  • Each connection with storage has its own QueryEngine. BEGIN, COMMIT and ROLLBACK run on it, so a transaction's writes to the _bolt_* tables commit or roll back together.
  • The in-memory graph is shared and not versioned. Nodes and relationships created inside an open transaction are tagged with the owning session id (uncommitted_nodes, uncommitted_rels) and are visible only to that session until COMMIT publishes them.
  • ROLLBACK, and a failed COMMIT, reload the whole in-memory graph from storage.
  • Write transactions take turns through GraphStore::write_turn, a mutex taken at the first write and held to COMMIT or ROLLBACK (to the end of the query for autocommit). Waiting is bounded by BOLT_WRITE_TURN_WAIT = 30 s, after which the query fails with "LockClient: could not acquire the write lock within 30 s".

(source: src/protocol/bolt/mod.rs, GraphStore, take_write_turn, handle_commit, handle_rollback; docs/status/2026-11-30-crash-atomic-redis-bolt.md)

The write-turn lock and rollback on RESET and disconnect are present in the code snapshot this page was written from (main at 8a689c5c). The status entry that describes them is marked "PR: (pending)", and the operator wire page still lists the half-applied execute_write crash as an open bug. Not verified: no crash test for Bolt write transactions is in tests/; the status entry describes the run it used.

6. Cypher execution

6.1 Statement routing

execute_cypher splits multi-statement input, then execute_single_cypher routes by leading keyword after UNION/UNION ALL splitting (mixing the two is an error, and branch column names must match):

Leading form Executor
Any clause list containing an update clause write pipeline (run_clauses)
Read-only clause list read pipeline, with a fast path for simple count (try_count_shortcut)
CREATE (patterns, chained CREATE a CREATE b rewritten to comma form) execute_create
CREATE CONSTRAINT, DROP CONSTRAINT constraint DDL
CREATE [RANGE\|TEXT\|POINT\|LOOKUP\|FULLTEXT\|VECTOR] INDEX, CREATE OR REPLACE, DROP INDEX index DDL (try_schema_command, create_index)
SHOW INDEX[ES], SHOW CONSTRAINT[S] schema listing with YIELD/WHERE/RETURN
MATCH, OPTIONAL MATCH, MERGE, DELETE, WITH, UNWIND, RETURN, CALL respective executors
CALL { ... } (subquery), including IN TRANSACTIONS run_subquery
anything else Unsupported Cypher query (SyntaxError)

Clause keywords recognised by the tokenizer: OPTIONAL MATCH, ON CREATE SET, ON MATCH SET, DETACH DELETE, ORDER BY, MATCH, UNWIND, CALL, WHERE, WITH, RETURN, SKIP, LIMIT, CREATE, MERGE, SET, REMOVE, DELETE, FOREACH. (source: src/protocol/bolt/mod.rs, execute_single_cypher, ALL_KEYWORDS, READ_KEYWORDS, commaify_chained_creates, split_top_level_union)

Before execution, $name parameters referenced but not supplied fail with Neo.ClientError.Statement.ParameterMissing. (source: src/protocol/bolt/mod.rs, missing_parameters)

EXPLAIN and PROFILE are not handled; they fall through to "Unsupported Cypher query". (source: src/protocol/bolt/mod.rs, execute_single_cypher)

6.2 Patterns

pattern.rs handles comma-separated pattern parts, label conjunction and disjunction (:A:B, :A|B), inline WHERE in node and relationship patterns, path variables, shortestPath/allShortestPaths, variable-length relationships enumerated one row per path, and relationship uniqueness within a MATCH. Unbounded expansion (*, *2..) stops at UNBOUNDED_MAX_HOPS = 64. Pattern predicates in WHERE (WHERE (a)-->(b)) are extracted and evaluated separately. (source: src/protocol/bolt/pattern.rs; src/protocol/bolt/mod.rs, extract_pattern_predicates)

6.3 Expressions and functions

Operators: OR, XOR, AND, NOT, comparisons, IS [NOT] NULL, IN, STARTS WITH, ENDS WITH, CONTAINS, =~, + - * / % ^, property access, indexing and slicing, list comprehensions, CASE, quantifiers any/all/none, and reduce(). (source: src/protocol/bolt/cypher_eval.rs, CyExpr, BinOp, Parser::parse_*)

Scalar and list functions dispatched by eval_func:

Group Functions
String toUpper/upper, toLower/lower, trim, ltrim, rtrim, reverse, substring, replace, split, left, right, toString
Conversion toInteger, toFloat, toBoolean
Numeric abs, ceil, floor, round (with precision and mode), sign, sqrt
List and path size, length, head, last, tail, range, nodes, relationships/rels, keys, properties, coalesce, exists
Graph labels, type, id, startNode, endNode
Vector vector.similarity.cosine, vector.similarity.euclidean
Temporal constructors date, time, localtime, datetime, localdatetime, duration, each with .statement, .transaction, .realtime, .truncate, fromepoch, fromepochmillis variants where Neo4j has them; duration.between, duration.inMonths, duration.inDays, duration.inSeconds
Spatial point, point.distance, distance, point.withinBBox
Aggregates (projection layer) count, sum, avg, min, max, collect, stdev, stdevp

(source: src/protocol/bolt/cypher_eval.rs, eval_func, is_aggregate_name; src/protocol/bolt/temporal.rs, call, property)

dbms.functions() returns a fixed, shorter list of 39 names (it even lists rand, which eval_func does not dispatch); it is not generated from the dispatcher. (source: src/protocol/bolt/mod.rs, execute_call_inner)

Temporal values follow Neo4j 5: component access (d.year, dur.minutes, p.x), arithmetic, ordering, named zones through chrono-tz, and WGS-84 distance with Earth radius 6 378 140 m. Expression errors (bad temporal strings, out-of-range fields) are parked in the task-local EVAL_ERROR and raised after evaluation. The status entry notes that datetime.statement() and realtime() are not frozen per statement. (source: src/protocol/bolt/temporal.rs; docs/status/2026-11-24-cypher-temporal-clickhouse-native-bloodhound.md)

6.4 Row-level security

When the attached session enforces RLS or masking (a non-superuser role), compute_node_visibility reads _bolt_nodes through the engine; only the rows RLS returns are visible to the Cypher read, with masked properties. Superusers skip this and read the in-memory graph directly. (source: src/protocol/bolt/mod.rs, compute_node_visibility, NodeVisibility) Not verified: no test of Cypher reads under an RLS policy was found in tests/protocol_bolt.rs.

6.5 Procedures

Procedure Behaviour
db.labels(), db.relationshipTypes(), db.propertyKeys() From the in-memory indexes
db.constraints() Constraint list
db.indexes() Neo4j 4.x shaped index list
db.createIndex, db.createUniquePropertyConstraint, db.createNodeKey Translated to Neo4j 5 DDL
db.index.fulltext.createNodeIndex, createRelationshipIndex, drop Full-text index DDL
db.index.fulltext.queryNodes, queryRelationships BM25 over the indexed properties; limit/skip options
db.index.vector.createNodeIndex Translated to CREATE VECTOR INDEX
db.index.vector.queryNodes, queryRelationships Exact k-nearest search; also searches cross-wire collections
db.awaitIndex(es), db.resampleIndex, db.resampleOutdatedIndexes, db.clearQueryCaches Accepted, no-op
db.ping() Liveness
dbms.components(), dbms.showCurrentUser(), dbms.procedures(), dbms.functions() Fixed metadata
db.create.setNodeVectorProperty, db.create.setRelationshipVectorProperty Rewritten to a property SET
anything else Unknown procedure

YIELD with *, renames and unknown-output errors is handled generically. (source: src/protocol/bolt/mod.rs, legacy_schema_procedure, execute_call_inner, parse_procedure_call, procedure_yield_map, index_procedure, rewrite_vector_property_calls; src/protocol/bolt/vector_index.rs)

6.6 Indexes and constraints

Index kinds and providers: RANGE (BTREE is accepted as an alias), LOOKUP (token-lookup-1.0), TEXT (text-2.0), FULLTEXT (fulltext-1.0), POINT (point-1.0), VECTOR (vector-2.0). Constraints: UNIQUE, NODE_KEY, EXISTS, validated against existing data at creation and on every write to the label. (source: src/protocol/bolt/mod.rs, IndexDef::provider, create_index, validate_constraint_on_existing_data, check_constraints_for_label)

RANGE, TEXT, POINT and LOOKUP definitions are catalog entries only: MATCH reads the in-memory label and type indexes, and no read path consults a property index. FULLTEXT definitions drive the full-text procedures (BM25, Lucene classic syntax subset: terms, field:value, phrases, AND/OR/NOT, +/-, term*, term~, ^boost). VECTOR search is an exact scan with Neo4j's score normalisation (cosine (1 + cos) / 2, euclidean 1 / (1 + d^2)), computed in 32-bit floats; vector.hnsw.m and ef_construction are stored (defaults 16 and 100) but no HNSW graph is built here. (source: src/protocol/bolt/fulltext.rs; src/protocol/bolt/vector_index.rs, module doc, DEFAULT_M, DEFAULT_EF_CONSTRUCTION)

7. Error codes

Code Raised when
Neo.ClientError.Security.Unauthorized Missing or bad credentials; query before auth
Neo.ClientError.Request.Invalid Unparseable message; PULL of an unknown qid
Neo.ClientError.Statement.SyntaxError Default for executor errors, unsupported queries, unknown procedure outputs
Neo.ClientError.Statement.ParameterMissing Referenced $param not supplied
Neo.ClientError.Statement.TypeError Errors starting "Type mismatch" or "No such field"
Neo.ClientError.Statement.ArgumentError Negative precision passed to round()
Neo.ClientError.General.InvalidArguments Missing, unknown or wrongly typed CREATE VECTOR INDEX settings
Neo.ClientError.Procedure.ProcedureCallFailed Full-text and vector procedure argument errors
Neo.ClientError.Schema.ConstraintValidationFailed Constraint violation; deleting a node that still has relationships
Neo.ClientError.Schema.EquivalentSchemaRuleAlreadyExists, IndexAlreadyExists, IndexWithNameAlreadyExists Duplicate index DDL
Neo.ClientError.Schema.ConstraintDropFailed, Neo.DatabaseError.Schema.ConstraintDropFailed, Neo.DatabaseError.Schema.IndexDropFailed Drop of a missing schema rule
Neo.DatabaseError.Statement.ExecutionFailed Vector index setting out of range, unsupported similarity function (only COSINE and EUCLIDEAN)
Neo.DatabaseError.Transaction.TransactionStartFailed / TransactionCommitFailed Engine BEGIN / COMMIT failed

Executor errors that already start with Neo.<code>: keep that code. (source: src/protocol/bolt/mod.rs, classify_cypher_error, and the call sites of BoltResponse::failure)

8. Limits and configuration

Item Value Source
Port [server] bolt_port, default 7687; None disables the listener src/config.rs, ServerConfig::default
TLS Implicit TLS on the same port when [tls] is configured src/server/mod.rs; BoltHandler::with_tls
Max message 16 MiB MAX_BOLT_MESSAGE_SIZE
PackStream depth / container 100 / 16 MiB MAX_PACKSTREAM_DEPTH, MAX_PACKSTREAM_CONTAINER
Write-turn wait 30 s BOLT_WRITE_TURN_WAIT
Unbounded var-length cap 64 hops UNBOUNDED_MAX_HOPS
Routing TTL 300 s handle_route
Dev auth bypass SYNERGYDB_DEV_INSECURE_AUTH=1 dev_insecure_auth_enabled

There is no Bolt-specific section in the config file; ports and TLS are documented in the Configuration reference.

Memory: the full graph (all nodes, relationships and properties) is held in memory per process, and every buffered result is held until pulled. Not verified: no memory bound or test for large graphs was found.

9. Test coverage

Suite What it covers
tests/protocol_bolt.rs (39 tests) Auth config construction, handler construction, message tag constants, SUCCESS/FAILURE encoding, MetadataBuilder, result pulling, _bolt_nodes/_bolt_relationships persistence across engine restarts
Unit tests in src/protocol/bolt/ (62 #[test]) Clause tokenizer, ordering, implicit grouping, DISTINCT, aggregate over empty input, dev-auth gate, unauthenticated RUN/RESET, session isolation (iso_setup), text helpers, cross-wire vector query, expression evaluator, PackStream round trips
test-scripts/diff-cypher/diff_cypher.py against Neo4j 5.26 384/384 on 2026-11-30, including tags foreach 7/7, temporal 26/26, spatial 4/4, schema 13/13, search 21/21, shortest 14/14, second connection 22/22, restart 22/22
test-scripts/wire-matrix/cypher_matrix.py 36/36

(source: tests/protocol_bolt.rs; docs/proof/2026-11-30/proof-pack-a3232c9/logs/cypher-query-corpus-second-connection-restart.txt, cypher-feature-matrix.txt)

The README's "Not covered yet: FOREACH, temporal and spatial types" is out of date against this proof log, which has passing foreach, temporal and spatial probes.