relate-executor 1.5.0

In-memory graph and Cypher physical executor
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
//! The canonical built-in procedure table: the single source of every
//! procedure's signature and catalog metadata, kept under the file-size rule
//! by the compact constructors.

use super::{ProcSignature, RowProducer};
use crate::catalog_meta::{DeprecatedBy, ProcArgMeta};

/// The identical return-column list `db.info` and `dbms.info` share
/// (ADR-0142): the deliberately common `id`/`name`/`creationDate` output
/// shape, expressed once so the two entries cannot drift apart.
const DB_INFO_RETURNS: &[ProcArgMeta] = &[
    ProcArgMeta::new("id", "STRING"),
    ProcArgMeta::new("name", "STRING"),
    ProcArgMeta::new("creationDate", "STRING"),
];

/// The identical 8-column `ConfigResult` shape `dbms.clientConfig` and
/// `dbms.listConfig` share (ADR-0143): the Neo4j 5.x+ documented output
/// shape, expressed once so the two entries cannot drift apart.
const CONFIG_RESULT_RETURNS: &[ProcArgMeta] = &[
    ProcArgMeta::new("name", "STRING"),
    ProcArgMeta::new("description", "STRING"),
    ProcArgMeta::new("value", "STRING"),
    ProcArgMeta::new("dynamic", "BOOLEAN"),
    ProcArgMeta::new("defaultValue", "STRING"),
    ProcArgMeta::new("startupValue", "STRING"),
    ProcArgMeta::new("explicitlySet", "BOOLEAN"),
    ProcArgMeta::new("validValues", "STRING"),
];

/// The similarity-score column both vector-index query procedures return.
const VECTOR_QUERY_SCORE: ProcArgMeta =
    ProcArgMeta::described("score", "The similarity score.", "FLOAT");

/// The argument list both fulltext-index query procedures share: the index
/// name, the Lucene-style query, and the optional `options` map. Its
/// `skip`/`limit` keys page the ranking and its `analyzer` key selects the
/// query-side analyzer, exactly as `SEARCH ... WITH ANALYZER` does
/// (ADR-0672 §4); an unknown key is an argument error.
const FULLTEXT_QUERY_ARGS: &[ProcArgMeta] = &[
    ProcArgMeta::new("indexName", "STRING"),
    ProcArgMeta::new("query", "STRING"),
    ProcArgMeta::with_default(
        "options",
        "The options map: `skip`, `limit` and `analyzer`.",
        "MAP",
        "{}",
    ),
];

/// The argument list both vector-index query procedures share.
const VECTOR_QUERY_ARGS: &[ProcArgMeta] = &[
    ProcArgMeta::described("indexName", "The name of the vector index.", "STRING"),
    ProcArgMeta::described(
        "numberOfNearestNeighbours",
        "The number of nearest neighbors to return.",
        "INTEGER",
    ),
    ProcArgMeta::described("query", "The query vector.", "LIST<FLOAT>"),
];

/// The `timeOutSeconds` argument `db.awaitIndex` and `db.awaitIndexes`
/// share.
const AWAIT_INDEX_TIMEOUT: ProcArgMeta = ProcArgMeta::with_default(
    "timeOutSeconds",
    "The maximum time to wait, in seconds.",
    "INTEGER",
    "300",
);

/// The canonical built-in procedure table, in name order — the order
/// `SHOW PROCEDURES` lists the `listed` rows in (ADR-0497 §6).
///
/// ADR-0497 §6 aligns the table with the Cypher-25 corpus row by row:
/// descriptions, modes and `worksOnSystem` flags are the corpus's text and
/// values, `db.indexes`/`db.constraints` are gone (the corpus has no row
/// and `SHOW INDEXES`/`SHOW CONSTRAINTS` are the surface), and the
/// `catalog-only` entries below are inventory rows the corpus lists but
/// never calls — listed, with no engine operation behind them.
pub static BUILTIN_PROCEDURE_SIGNATURES: &[ProcSignature] = &[
    // The compat-callables rows (ADR-0699): foreign procedure names
    // re-implemented as Cypher bodies by the query front-end (`relate_front::
    // compat_callables`) — the CALL is rewritten away before lowering, so
    // `rows` stays `None` and the dispatch answers a bypassed rewrite with an
    // authored error. Pinned to the front-end table (parameters with their
    // default positions, yield columns, descriptions) by the drift-guard
    // test in `procedure_registry`'s tests; engine classification
    // (`writes`, `executable`, `listed`) lives in these rows alone. The
    // seed set answers neo4j-graphrag's writer (relatedb/relate#862).
    ProcSignature::write("apoc.create.addLabels")
        .described("Compatibility (ADR-0699): adds the labels through Cypher's dynamic labels — `SET nodes:$(labels)`.")
        .writes()
        .args(&[
            ProcArgMeta::described("nodes", "The node to add the labels to.", "NODE"),
            ProcArgMeta::described("labels", "The labels to add.", "LIST<STRING>"),
        ])
        .returns(&[ProcArgMeta::described("node", "The node with the labels added.", "NODE")]),
    ProcSignature::write("apoc.merge.relationship")
        .described("Compatibility (ADR-0699): merges through Cypher's dynamic relationship types — `MERGE (start)-[r:$(relType)]->(end) ON CREATE SET r += … ON MATCH SET r += …`. `identProps` is accepted and ignored (callers pass `{}`).")
        .writes()
        .args(&[
            ProcArgMeta::described("start", "The start node of the relationship.", "NODE"),
            ProcArgMeta::described("relType", "The type of the relationship.", "STRING"),
            ProcArgMeta::described("identProps", "Properties that identify the relationship. Accepted and ignored.", "MAP"),
            ProcArgMeta::described("onCreateProps", "Properties merged when the relationship is created.", "MAP"),
            ProcArgMeta::described("end", "The end node of the relationship.", "NODE"),
            ProcArgMeta::with_default(
                "onMatchProps",
                "Properties merged when the relationship is matched.",
                "MAP",
                "{}",
            ),
        ])
        .returns(&[ProcArgMeta::described("rel", "The merged relationship.", "RELATIONSHIP")]),
    // Neo4j 2026.05 still lists the older singular
    // `db.awaitIndex` alongside the current plural
    // `db.awaitIndexes` (see the worked "Combining all
    // commands" example table, which lists both as distinct real
    // procedures) -- kept here purely as a catalog entry, like every other
    // `SHOW PROCEDURES`-only name in this list.
    ProcSignature::read("db.awaitIndex")
        .works_on_system()
        .described("Wait for an index to come online (for example: CALL db.awaitIndex(\"MyIndex\", 300)).")
        .args(&[
            ProcArgMeta::described("indexName", "The name of the index to await.", "STRING"),
            AWAIT_INDEX_TIMEOUT,
        ])
        .executable(false),
    ProcSignature::read("db.awaitIndexes")
        .works_on_system()
        .described("Wait for all indexes to come online (for example: CALL db.awaitIndexes(300)).")
        .args(&[AWAIT_INDEX_TIMEOUT]),
    ProcSignature::dbms("db.checkpoint")
        .works_on_system()
        .described("Initiate and wait for a new check point, or wait any already on-going check point to complete. Note that this temporarily disables the `db.checkpoint.iops.limit` setting in order to make the check point complete faster. This might cause transaction throughput to degrade slightly, due to increased IO load.")
        .returns(&[
            ProcArgMeta::described("success", "Whether the checkpoint succeeded.", "BOOLEAN"),
            ProcArgMeta::described("message", "A human-readable status message.", "STRING"),
        ])
        .executable(false),
    ProcSignature::dbms("db.clearQueryCaches")
        .admin()
        .works_on_system()
        .described("Clears all query caches.")
        .executable(false),
    ProcSignature::write("db.create.setNodeVectorProperty")
        .described("Compatibility (ADR-0699): stores the embedding as a list property — the Cypher `SET node[key] = vector` the dynamic property key expresses.")
        .writes()
        .args(&[
            ProcArgMeta::described("node", "The node on which the new property will be stored.", "NODE"),
            ProcArgMeta::described("key", "The name of the new property.", "STRING"),
            ProcArgMeta::described("vector", "The embedding to store.", "LIST<FLOAT>"),
        ]),
    ProcSignature::write("db.create.setRelationshipVectorProperty")
        .described("Compatibility (ADR-0699): stores the embedding as a list property — the Cypher `SET relationship[key] = vector` the dynamic property key expresses.")
        .writes()
        .args(&[
            ProcArgMeta::described(
                "relationship",
                "The relationship on which the new property will be stored.",
                "RELATIONSHIP",
            ),
            ProcArgMeta::described("key", "The name of the new property.", "STRING"),
            ProcArgMeta::described("vector", "The embedding to store.", "LIST<FLOAT>"),
        ]),
    ProcSignature::write("db.createLabel")
        .described("Create a label")
        .writes()
        .args(&[ProcArgMeta::new("newLabel", "STRING")]),
    ProcSignature::write("db.createProperty")
        .described("Create a Property")
        .executable(false),
    ProcSignature::write("db.createRelationshipType")
        .described("Create a RelationshipType")
        .executable(false),
    // No input
    // parameters, no return columns -- the reachable `::VOID`-
    // replacement (no suffix at all) case.
    // The Cypher-25 fulltext acceptance suite calls it in its background
    // (ADR-0680): the engine applies committed index updates
    // synchronously at the apply point, so the wait is trivially
    // complete — an executable void no-op, exactly like `db.awaitIndexes`.
    ProcSignature::read("db.index.fulltext.awaitEventuallyConsistentIndexRefresh")
        .works_on_system()
        .described("Wait for the updates from recently committed transactions to be applied to any eventually-consistent full-text indexes."),
    // A `LIST<STRING>` return
    // column (the old `LIST? OF STRING` -> `LIST<STRING>` rename).
    ProcSignature::read("db.index.fulltext.listAvailableAnalyzers")
        .works_on_system()
        .described("List the available analyzers that the full-text indexes can be configured with.")
        .returns(&[
            ProcArgMeta::described("analyzer", "The name of the analyzer.", "STRING"),
            ProcArgMeta::described("description", "A description of the analyzer.", "STRING"),
            ProcArgMeta::described("stopwords", "The stopwords used by the analyzer.", "LIST<STRING>"),
        ])
        .rows(RowProducer::FulltextAnalyzers),
    // Cypher 25 deprecates the fulltext query procedures in favour of the
    // CIP-224 `SEARCH` clause, exactly like their vector counterparts below.
    ProcSignature::read("db.index.fulltext.queryNodes")
        .works_on_system()
        .described(
            "Query the given full-text index. Returns the matching nodes and their Lucene query score, ordered by score.\n\
             Valid _key: value_ pairs for the `options` map are:\n\
             \n\
             * 'skip' -- to skip the top N results.\n\
             * 'limit' -- to limit the number of results returned.\n\
             * 'analyzer' -- to use the specified analyzer as a search analyzer for this query.\n\
             \n\
             The `options` map and any of the keys are optional.\n\
             An example of the `options` map: `{skip: 30, limit: 10, analyzer: 'whitespace'}`\n",
        )
        .args(FULLTEXT_QUERY_ARGS)
        .returns(&[
            ProcArgMeta::new("node", "NODE"),
            ProcArgMeta::new("score", "FLOAT"),
        ])
        .deprecated_by(DeprecatedBy::clause("SEARCH")),
    ProcSignature::read("db.index.fulltext.queryRelationships")
        .works_on_system()
        .described(
            "Query the given full-text index. Returns the matching relationships and their Lucene query score, ordered by score.\n\
             Valid _key: value_ pairs for the `options` map are:\n\
             \n\
             * 'skip' -- to skip the top N results.\n\
             * 'limit' -- to limit the number of results returned.\n\
             * 'analyzer' -- to use the specified analyzer as a search analyzer for this query.\n\
             \n\
             The `options` map and any of the keys are optional.\n\
             An example of the `options` map: `{skip: 30, limit: 10, analyzer: 'whitespace'}`\n",
        )
        .args(FULLTEXT_QUERY_ARGS)
        .returns(&[
            ProcArgMeta::new("relationship", "RELATIONSHIP"),
            ProcArgMeta::new("score", "FLOAT"),
        ])
        .deprecated_by(DeprecatedBy::clause("SEARCH")),
    // CIP-84/CIP-157: deprecated in favor of the CIP-224 `SEARCH` clause.
    ProcSignature::read("db.index.vector.queryNodes")
        .described(
            "Query the given node vector index.\n\
             Returns requested number of nearest neighbors to the provided query vector,\n\
             and their similarity score to that query vector, based on the configured similarity function for the index.\n\
             The similarity score is a value between [0, 1]; where 0 indicates least similar, 1 most similar.\n",
        )
        .args(VECTOR_QUERY_ARGS)
        .returns(&[
            ProcArgMeta::described("node", "A matched node.", "NODE"),
            VECTOR_QUERY_SCORE,
        ])
        .deprecated_by(DeprecatedBy::clause("SEARCH")),
    ProcSignature::read("db.index.vector.queryRelationships")
        .described(
            "Query the given relationship vector index.\n\
             Returns requested number of nearest neighbors to the provided query vector,\n\
             and their similarity score to that query vector, based on the configured similarity function for the index.\n\
             The similarity score is a value between [0, 1]; where 0 indicates least similar, 1 most similar.\n",
        )
        .args(VECTOR_QUERY_ARGS)
        .returns(&[
            ProcArgMeta::described("relationship", "A matched relationship.", "RELATIONSHIP"),
            VECTOR_QUERY_SCORE,
        ])
        .deprecated_by(DeprecatedBy::clause("SEARCH")),
    ProcSignature::read("db.info")
        .works_on_system()
        .described("Provides information regarding the database.")
        .returns(DB_INFO_RETURNS)
        .rows(RowProducer::DbInfo),
    ProcSignature::read("db.labels")
        .works_on_system()
        .described("List all labels attached to nodes within a database according to the user's access rights. The procedure returns empty results if the user is not authorized to view those labels.")
        .returns(&[ProcArgMeta::described("label", "A label within the database.", "STRING")])
        .rows(RowProducer::DbLabels),
    ProcSignature::dbms("db.listLocks")
        .admin()
        .works_on_system()
        .described("List all locks at this database.")
        .executable(false),
    // ADR-0121 as amended by ADR-0227, revised by ADR-0667: the ontology
    // procedures. No database
    // argument — each acts on the session/USE-target database, which must
    // be `neo4j`. `set`/`drop` are store-level ops whose redo the executor
    // pushes; `apply` is an ordinary in-overlay write; `get` is a read.
    // `writes: true` on set/drop/apply routes their statements to the
    // write path (the facade's `write_route`, ADR-0121);
    // `store_level: true` on set/drop alone is the store-op classification
    // the facade's statement-level gates read (ADR-0120 §3); statements
    // routed to `system_ontologies` fail ADR-0229 §1's gate before
    // `writes` could matter there.
    ProcSignature::schema("db.ontology.apply")
        .described(
            "Apply the stored ontology of the current database to its graph type, replacing the existing \
             graph type: properties become property types, must_exist becomes NOT NULL, key/unique become \
             constraints, implied labels and relationship endpoints become label constraints. Ontology parts \
             without a graph type equivalent are reported in `skipped`.",
        )
        .writes()
        .returns(&[
            ProcArgMeta::described("ontology", "Name or id of the applied ontology model.", "STRING"),
            ProcArgMeta::described("constraintsCreated", "Number of constraints created.", "INTEGER"),
            ProcArgMeta::described("constraintsDropped", "Number of constraints dropped.", "INTEGER"),
            ProcArgMeta::described(
                "skipped",
                "Ontology parts without a graph type equivalent, not applied.",
                "LIST<STRING>",
            ),
        ]),
    ProcSignature::schema("db.ontology.drop")
        .described("Remove the ontology document of the current database.")
        .writes()
        .store_level(),
    ProcSignature::read("db.ontology.get")
        .described("Get the ontology document of the current database.")
        .args(&[ProcArgMeta::with_default(
            "format",
            "The format of the returned document.",
            "STRING",
            "\"yaml\"",
        )])
        .returns(&[ProcArgMeta::described(
            "ontology",
            "The ontology document of the database, or `null` if no ontology is set.",
            "STRING",
        )]),
    ProcSignature::schema("db.ontology.set")
        .described("Set the ontology document of the current database, replacing any existing ontology.")
        .writes()
        .store_level()
        .args(&[ProcArgMeta::described(
            "ontology",
            "The ontology document to set. `null` or empty removes it.",
            "STRING",
        )]),
    ProcSignature::read("db.ping")
        .works_on_system()
        .described("This procedure can be used by client side tooling to test whether they are correctly connected to a database. The procedure is available in all databases and always returns true. A faulty connection can be detected by not being able to call this procedure.")
        .returns(&[ProcArgMeta::described("success", "Whether the database answered.", "BOOLEAN")])
        .rows(RowProducer::DbPing),
    ProcSignature::read("db.prepareForReplanning")
        .admin()
        .works_on_system()
        .described("Triggers an index resample and waits for its completion. If the wait time is 0, it skips waiting. After that, the procedure clears query caches. Once the process is complete, queries are planned using the latest database statistics.")
        .executable(false),
    ProcSignature::read("db.propertyKeys")
        .works_on_system()
        .described("List all property keys in the database.")
        .returns(&[ProcArgMeta::new("propertyKey", "STRING")])
        .rows(RowProducer::DbPropertyKeys),
    ProcSignature::read("db.relationshipTypes")
        .works_on_system()
        .described("List all types attached to relationships within a database according to the user's access rights. The procedure returns empty results if the user is not authorized to view those relationship types.")
        .returns(&[ProcArgMeta::new("relationshipType", "STRING")])
        .rows(RowProducer::DbRelationshipTypes),
    ProcSignature::read("db.schema.nodeTypeProperties")
        .works_on_system()
        .described("Show the derived property schema of the nodes in tabular form.")
        .returns(&[
            ProcArgMeta::described("nodeType", "The node labels rendered as colon-prefixed, sorted labels.", "STRING"),
            ProcArgMeta::described("nodeLabels", "The sorted labels attached to the node type.", "LIST<STRING>"),
            ProcArgMeta::described("propertyName", "A property key found on the node type.", "STRING"),
            ProcArgMeta::described("propertyTypes", "The distinct value types observed for the property key.", "LIST<STRING>"),
            ProcArgMeta::described("mandatory", "Whether the property key is present on every node of the type.", "BOOLEAN"),
        ])
        .rows(RowProducer::SchemaNodeTypeProperties),
    ProcSignature::read("db.schema.relTypeProperties")
        .works_on_system()
        .described("Show the derived property schema of the relationships in tabular form.")
        .returns(&[
            ProcArgMeta::described("relType", "The relationship type rendered in bracket form.", "STRING"),
            ProcArgMeta::described("propertyName", "A property key found on the relationship type.", "STRING"),
            ProcArgMeta::described("propertyTypes", "The distinct value types observed for the property key.", "LIST<STRING>"),
            ProcArgMeta::described("mandatory", "Whether the property key is present on every relationship of the type.", "BOOLEAN"),
        ])
        .rows(RowProducer::SchemaRelTypeProperties),
    // LABS-150: Neo4j's schema graph for Browser/Bloom-style sidebars,
    // inferred by scanning stored entities (ADR-0112's rule). Listed by
    // `SHOW PROCEDURES` exactly like its `db.schema.*` siblings.
    // LABS-389 (CIP-277 compat smoke): the call shape with an options
    // map is accepted, not failed. A **null** map selects nothing at all
    // (Neo4j yields zero rows rather than the whole stored schema); a
    // non-null map's contents are ignored -- the visualization's own
    // output is parameter-free (the stored entities are the whole truth,
    // ADR-0112). A missing argument keeps the whole-schema output, and
    // Neo4j parity keeps the zero-arg call the documented form.
    ProcSignature::read("db.schema.visualization")
        .works_on_system()
        .described("Visualizes the schema of the data based on available statistics. A new node is returned for each label. The properties represented on the node include: `name` (label name), `indexes` (list of indexes), and `constraints` (list of constraints). A relationship of a given type is returned for all possible combinations of start and end nodes. The properties represented on the relationship include: `name` (type name). Note that this may include additional relationships that do not exist in the data due to the information available in the count store. Set the flag to false to get more accurate results. Setting the flag to false could affect performance.")
        .args(&[ProcArgMeta::with_default(
            "options",
            "A boolean chooses synthesized (ghost) relationships: true (the default)              includes every label combination of a relationship type, false only the              combinations that exist in the data. The legacy map form is equivalent to              true and its contents are ignored; a null argument selects nothing.",
            "BOOLEAN|MAP",
            "true",
        )])
        .returns(&[
            ProcArgMeta::described("nodes", "One virtual node per stored label.", "LIST<NODE>"),
            ProcArgMeta::described("relationships", "One virtual relationship per distinct (startLabel, relType, endLabel) triple.", "LIST<RELATIONSHIP>"),
        ])
        .rows(RowProducer::SchemaVisualization),
    // ADR-0497 §6: the one added procedure the corpus calls -- the GRAPH
    // COUNTS diagnostics section, derived from the live constraints,
    // indexes and graph type rather than catalogued alone.
    ProcSignature::read("db.stats.retrieve")
        .admin()
        .works_on_system()
        .described("Retrieve statistical data about the current database. Valid sections are 'GRAPH COUNTS', 'TOKENS', 'QUERIES', 'META'")
        .args(&[ProcArgMeta::described("section", "The section of statistics to retrieve.", "STRING")])
        .returns(&[
            ProcArgMeta::described("section", "The section this row of statistics belongs to.", "STRING"),
            ProcArgMeta::described("data", "The requested section's statistics.", "MAP"),
        ])
        .rows(RowProducer::DbStatsRetrieve),
    // ADR-0143: `dbms.clientConfig` and `dbms.listConfig` share the Neo4j
    // 5.x+ `ConfigResult` shape (`CONFIG_RESULT_RETURNS`) by design.
    // ADR-0497 §6: `dbms.clientConfig` stays callable but unlisted -- the
    // corpus inventory has no row for it.
    ProcSignature::dbms("dbms.clientConfig")
        .works_on_system()
        .described("List the configuration settings of clients currently connected to this instance.")
        .returns(CONFIG_RESULT_RETURNS)
        .listed(false)
        .rows(RowProducer::DbmsConfig),
    ProcSignature::dbms("dbms.components")
        .works_on_system()
        .described("List DBMS components and their versions.")
        .returns(&[
            ProcArgMeta::new("name", "STRING"),
            ProcArgMeta::new("versions", "LIST<STRING>"),
            // ADR-0142: Browser-compat column; Relate has no enterprise
            // tier, so every row reports `community`.
            ProcArgMeta::new("edition", "STRING"),
        ])
        .rows(RowProducer::DbmsComponents),
    // ADR-0142: Neo4j Desktop calls `dbms.info()` on connect
    // (`updateDBMSInfo`). Shares `db.info`'s return columns
    // (`DB_INFO_RETURNS`) by design.
    ProcSignature::dbms("dbms.info")
        .works_on_system()
        .described("Provides information regarding the DBMS.")
        .returns(DB_INFO_RETURNS)
        .rows(RowProducer::DbmsInfo),
    // ADR-0143: an honest constant row (Apache-2.0 has no agreement to
    // accept and no trial); ADR-0497 §6 keeps it callable but unlisted --
    // the corpus inventory has no row for it.
    ProcSignature::dbms("dbms.licenseAgreementDetails")
        .works_on_system()
        .described("Show the status of the license agreement for this instance.")
        .returns(&[
            ProcArgMeta::new("status", "STRING"),
            ProcArgMeta::new("daysLeftOnTrial", "INTEGER"),
            ProcArgMeta::new("totalTrialDays", "INTEGER"),
        ])
        .listed(false)
        .rows(RowProducer::DbmsLicenseAgreementDetails),
    // The capability-name vocabulary is vendor-owned: Neo4j's own rows
    // describe its Graph Engine and its JDBC drivers, which Relate has none
    // of. Rather than mirror rows it cannot honour, this procedure reports
    // the capabilities this engine actually has (ADR-0561).
    ProcSignature::dbms("dbms.listCapabilities")
        .described("List capabilities.")
        .returns(&[
            ProcArgMeta::described("name", "The capability name.", "STRING"),
            ProcArgMeta::described("description", "A description of the capability.", "STRING"),
            ProcArgMeta::described("value", "The capability value.", "ANY"),
        ])
        .works_on_system()
        .rows(RowProducer::DbmsListCapabilities),
    ProcSignature::dbms("dbms.listConfig")
        .admin()
        .works_on_system()
        .described("List the currently active configuration settings of Neo4j.")
        .returns(CONFIG_RESULT_RETURNS)
        .rows(RowProducer::DbmsConfig),
    // ADR-0143: Browser/Desktop-compat procedure (LABS-148). Fixed
    // documented-placeholder columns — the engine carries no session
    // identity beyond the connection principal (ADR-0273).
    ProcSignature::dbms("dbms.showCurrentUser")
        .works_on_system()
        .described("Show the current user.")
        .returns(&[
            ProcArgMeta::new("username", "STRING"),
            ProcArgMeta::new("roles", "LIST<STRING>"),
            ProcArgMeta::new("flags", "LIST<STRING>"),
        ])
        .rows(RowProducer::DbmsShowCurrentUser),
    ProcSignature::dbms("tx.getMetaData")
        .works_on_system()
        .described("Provides attached transaction metadata.")
        .returns(&[ProcArgMeta::new("metadata", "MAP")])
        .rows(RowProducer::TxGetMetaData),
    // ADR-0497 §6: the corpus lists `tx.setMetaData` as DBMS-mode but not
    // system-database-capable, so `works_on_system` stays off.
    ProcSignature::dbms("tx.setMetaData")
        .described("Attaches a map of data to the transaction. The data will be printed when listing queries, and inserted into the query log.")
        .args(&[ProcArgMeta::new("metadata", "MAP")]),
];