polydat 0.11.1

Polydat — a variates construction engine
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
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
---
type: reference
title: Node Library
timestamp: 2026-09-25
description: The built-in node families and the source modules that define them.
tags: [library]
---

# Node Library

A **node** in Polydat is a typed function registered under a string name.
In a compiled program a node is a vertex of the graph, which the runtime
evaluates from the current coordinates and the outputs of the nodes upstream
of it. Most nodes are pure and deterministic. Nodes that read runtime context,
produce a side effect, or produce nondeterministic values declare that behavior
in their metadata so the compiler can preserve their semantics.

Workload authors seldom name the node types themselves. The Polydat DSL and
the op-template binding cascade build the graph from the author's expressions:
you write `mod(hash(cycle), 1000)` and the resolver wires `hash` and `mod`
nodes into the graph. The catalog below lists the nodes the resolver can
select from; it is not a usage manual.

**Inventory:** Built-in nodes live in
[`polydat-nodes/src/`](../../../polydat-nodes/src/) (the node library) and,
for the nodes the runtime itself needs,
[`polydat-core/src/library/`](../../../polydat-core/src/library/).

Both sections below are generated from the build they document — the
engine matrix by `tests/engine_parity.rs` and the catalog by
`tests/nodes_reference.rs` — and a test fails when this file and the
registry disagree. Each node's description is the first paragraph of its
doc comment, so a node without a doc comment appears with an empty
description rather than being omitted. Both describe a build
with every feature on; a build without `jit` or without `vectordata`
registers fewer nodes than are listed here.

## Engines

<!-- engine matrix: generated by tests/engine_parity.rs; regenerate with ENGINE_PARITY=overwrite -->
The engine parity suite drives 342 coverage programs, one per node or node form, through every engine a host can choose.
Every one of them runs on the interpreter, the closure tier, and P3 (native code where a node has a lowering, its closure elsewhere).

Pure native code, the differential tier behind P3, runs every one of them as well.

<!-- /engine matrix -->

---

## The catalog

<!-- node catalog: generated by tests/nodes_reference.rs; regenerate with NODES_REFERENCE=overwrite -->
427 nodes are callable by name from a program, in 24 categories. A further 363 conversion adapters, whose names begin with `__`, are inserted by the assembler where a wire and a port disagree about type. A program can call one by name like any other node, though
it rarely needs to, and
[type_system.md](../design/type_system.md) §3 is their catalog.

### Arithmetic (108)

| Node | What it does |
|---|---|
| `add` | Add a constant to a u64 value (wrapping). |
| `at` | `at(p, i)` — bounds-checked `p.start_ord + i`. Use when iteration is meant to consume each ordinal exactly once. Panics at eval time if `i >= cardinality(p)`. Prefer `mod_in` for the wrapping case. |
| `cardinality` | Number of ordinals in the partition. |
| `ceil_to_multiple` | Smallest multiple of `multiple` that is ≥ `value`. |
| `checked_add` |  |
| `checked_mul` |  |
| `checked_sub` |  |
| `clamp` | Clamp an unsigned integer to [min, max]. |
| `clamp_in` | `clamp_in(n, p)` — saturating projection into the partition. `max(p.start_ord, min(n, p.end_ord - 1))`. Unlike `mod_in`, values outside the partition saturate at the boundary rather than wrapping. Degenerate cardinality=0 returns the start. |
| `count_of` | Total number of partitions in the list this partition was resolved as part of. `1` for a single-partition spec. The function spelling of the `partition_count` projection — pairs with `idx_of` for "i of n" labelling. |
| `div` |  |
| `div_wire` | Division of a u64 by a wire-fed divisor, with the same NonZeroU64 contract as mod_wire. |
| `end_of` | Partition's end ordinal (exclusive). |
| `idx_of` | 0-based position in the partition list. |
| `in_range` | Assert that a u64 value is in the inclusive range `[lo, hi]`. |
| `interleave` | Interleave the bits of two u64 values into one (Morton code). |
| `is_one_of` | Assert that a u64 value is one of an enumerated allow-list. Authored with the `Const<Vec<C>>` combinator and lowered through its slot kit (called from native code); `classify_node` returns Fallback for it because a `Const<Vec<u64>>` node publishes no `jit_constants`, so the `JitOp::IsOneOfCheck` arm never fires. |
| `is_positive` | Assert that a u64 value is strictly positive (> 0). |
| `lid_mle` | `lid_mle(distances, k)` — Levina–Bickel maximum-likelihood estimate of the **local intrinsic dimensionality** at one query point, from its sorted ground-truth nearest-neighbor distances. |
| `matches` | Assert that a string value matches a regex pattern. |
| `mixed_radix` | Decompose `value` into mixed-radix digits using the given `radixes`. The output is a vector of N digits where N = `radixes.len()`. A radix of 0 in the trailing position captures the remainder verbatim. |
| `mod` |  |
| `mod_in` | `mod_in(n, p) = p.start_ord + (n mod cardinality(p))`. Maps an arbitrary integer (typically a per-cycle ordinal) into the partition's range, wrapping. Degenerate cardinality=0 returns the partition's start ordinal. |
| `mod_wire` | Modulo of a u64 value by a *wire-fed* divisor. |
| `mul` |  |
| `multiples_at_least` | Count of multiples of `multiple` needed to cover `value`. |
| `partition_at` | The `i`-th partition of a list, by position. Panics when `i` is out of range, like `at` does for ordinals. |
| `partition_count` | Number of partitions in a list. |
| `partitions` | Parse a string spec into a `PartitionList`. The base extent for resolution comes from a constant arg (default 100, so pure-percentage specs produce partitions in [0, 100) ordinal space). Useful for constructing partition values inline when a cursor's `over` clause needs an explicit list. |
| `reg_add_f32` |  |
| `reg_add_f64` |  |
| `reg_add_i16` |  |
| `reg_add_i32` |  |
| `reg_add_i64` |  |
| `reg_add_i8` |  |
| `reg_dot_f32` | `reg_dot_f32(a, b)` — horizontal dot product with the FIXED reduction tree `(l0*r0 + l1*r1) + (l2*r2 + l3*r3)`. The tree shape is part of the contract (determinism D2): every host and every execution tier produces bit-identical results. |
| `reg_gather_f32` | `reg_gather_f32(v, offset)` — load lanes `[offset, offset+4)` of an f32 slice into a register word. Panics when the window runs past the end (silent zero-fill would corrupt distance math downstream). |
| `reg_lane_f32` | `reg_lane_f32(r, i)` — read lane `i` (0..4), widened to f64. |
| `reg_lane_i16` | `reg_lane_i16(r, i)` — read lane `i` (0..8). |
| `reg_lane_i64` | `reg_lane_i64(r, i)` — read lane `i` (0..2). |
| `reg_mul_f32` |  |
| `reg_mul_f64` |  |
| `reg_mul_i16` |  |
| `reg_mul_i32` |  |
| `reg_mul_i64` |  |
| `reg_mul_i8` | `reg_mul_i8(a, b)` — the wrapping product per lane. x86 has no byte-lane multiply short of AVX-512 and Cranelift lowers none, so native code runs this body through a helper. |
| `reg_shuffle_bytes` | `reg_shuffle_bytes(x, mask)` — arbitrary byte permutation of the raw word: output byte `i` is input byte `mask[i]`. The mask is a 16-entry const list, each entry < 16 (panic otherwise, at build time). Duplicate indices broadcast; this is the SWAR / state-word workhorse for lane rearrangement under any view. Native code bakes the mask into one `shuffle` instruction, so the node exposes it as its constants. |
| `reg_splat_f32` | `reg_splat_f32(k)` — broadcast `k` (applied at f32 precision) into all four f32 lanes. |
| `reg_splat_f64` | `reg_splat_f64(k)` — broadcast `k` into both f64 lanes. |
| `reg_splat_i16` | `reg_splat_i16(k)` — bit-level broadcast: each lane is `k as i16`. |
| `reg_splat_i32` | `reg_splat_i32(k)` — bit-level broadcast: each lane is `k as i32`. |
| `reg_splat_i64` | `reg_splat_i64(k)` — bit-level broadcast: each lane is `k as i64`. |
| `reg_splat_i8` | `reg_splat_i8(k)` — bit-level broadcast: each lane is `k as i8`. |
| `reg_sub_f32` |  |
| `reg_sub_f64` |  |
| `reg_sub_i16` |  |
| `reg_sub_i32` |  |
| `reg_sub_i64` |  |
| `reg_sub_i8` |  |
| `reg_with_lane_f32` | `reg_with_lane_f32(r, i, v)` — copy of `r` with lane `i` replaced by `v` (at f32 precision). |
| `required` | Assert that an input is defined (i.e. not `Value::None`). |
| `set_or_get` | "Set-or-get" memoizer: returns `current` if non-zero, otherwise returns `fallback`. |
| `start_of` | Partition's start ordinal (inclusive). |
| `subdivide` | `subdivide(p, n)` — split a partition into `n` contiguous sub-partitions whose sizes differ by at most one ordinal. Indices restart at 0; `base_extent` propagates from the parent; the percentage fields interpolate the parent's span. Boundaries match the `*/N` spec tail token exactly (both route through the same splitter). Panics at eval time when `n` is 0 or exceeds the partition's cardinality — every sub-partition must be non-empty. |
| `this_or` | Return `primary` if it is defined, otherwise `default`. |
| `u64_add` |  |
| `u64_and` |  |
| `u64_div` |  |
| `u64_mod` |  |
| `u64_mul` |  |
| `u64_not` |  |
| `u64_or` |  |
| `u64_shl` |  |
| `u64_shr` |  |
| `u64_sub` |  |
| `u64_xor` |  |
| `vec_add_f32` | `vec_add_f32(a, b)` — element-wise sum of two f32 vectors. Panics when the lengths differ. |
| `vec_add_f64` | `vec_add_f64(a, b)` — element-wise sum of two f64 vectors. Panics when the lengths differ. |
| `vec_at_f16` | `vec_at_f16(v, i)` — the element at `i`, widened to f64, or `0.0` past the end. Widening f16 to f64 is exact, as it is from f32. |
| `vec_at_f32` | `vec_at_f32(v, i)` — the element at `i`, widened to f64, or `0.0` past the end. |
| `vec_at_f64` | `vec_at_f64(v, i)` — the element at `i`, or `0.0` past the end. |
| `vec_at_i16` | `vec_at_i16(v, i)` — the element at `i`, or `0` past the end. |
| `vec_at_i32` | `vec_at_i32(v, i)` — the element at `i`, or `0` past the end. |
| `vec_at_i64` | `vec_at_i64(v, i)` — the element at `i`, or `0` past the end. |
| `vec_at_i8` | `vec_at_i8(v, i)` — the element at `i`, or `0` past the end. |
| `vec_cosine_f32` | `vec_cosine_f32(a, b)` — cosine similarity of two f32 vectors: `dot(a,b) / (\|a\| * \|b\|)`. Returns 0.0 when either vector has zero magnitude (the conventional degenerate-case value: no direction, no similarity). Panics when the lengths differ. |
| `vec_cosine_f64` | `vec_cosine_f64(a, b)` — cosine similarity of two f64 vectors: `dot(a,b) / (\|a\| * \|b\|)`, and 0.0 when either vector has zero magnitude, as `vec_cosine_f32` answers. Panics when the lengths differ. |
| `vec_distance_f32` | `vec_distance_f32(metric, a, b)` — the distance between two f32 vectors as a dataset's ground truth records it, accumulated in f64. Smaller is closer under every metric: |
| `vec_distance_f64` | `vec_distance_f64(metric, a, b)` — the distance between two f64 vectors as a dataset's ground truth records it, under the metrics and conventions of `vec_distance_f32`. |
| `vec_dot_f32` | `vec_dot_f32(a, b)` — dot product of two f32 vectors, widened to f64 on the output wire. Panics when the lengths differ. |
| `vec_dot_f64` | `vec_dot_f64(a, b)` — dot product of two f64 vectors. Panics when the lengths differ. |
| `vec_l2_f32` | `vec_l2_f32(a, b)` — Euclidean (L2) distance between two f32 vectors. Panics when the lengths differ. |
| `vec_l2_f64` | `vec_l2_f64(a, b)` — Euclidean (L2) distance between two f64 vectors. Panics when the lengths differ. |
| `vec_len_f16` | `vec_len_f16(v)` — how many elements the vector holds. |
| `vec_len_f32` | `vec_len_f32(v)` — how many elements the vector holds. |
| `vec_len_f64` | `vec_len_f64(v)` — how many elements the vector holds. |
| `vec_len_i16` | `vec_len_i16(v)` — how many elements the list holds. |
| `vec_len_i32` | `vec_len_i32(v)` — how many elements the list holds. |
| `vec_len_i64` | `vec_len_i64(v)` — how many elements the list holds. |
| `vec_len_i8` | `vec_len_i8(v)` — how many elements the list holds. |
| `vec_max_i32` | `vec_max_i32(v)` — the largest element, or `0` for an empty list. |
| `vec_max_i64` | `vec_max_i64(v)` — the largest element, or `0` for an empty list. |
| `vec_min_i32` | `vec_min_i32(v)` — the smallest element, or `0` for an empty list. |
| `vec_min_i64` | `vec_min_i64(v)` — the smallest element, or `0` for an empty list. |
| `vec_norm_f32` | `vec_norm_f32(a)` — scale an f32 vector to unit L2 magnitude. A zero vector passes through unchanged (there is no direction to normalize onto, and emitting NaNs would poison downstream distance math silently). |
| `vec_norm_f64` | `vec_norm_f64(a)` — scale an f64 vector to unit L2 magnitude, a zero vector passing through unchanged as `vec_norm_f32` passes it. |
| `vec_scale_f32` | `vec_scale_f32(a, k)` — multiply every element of an f32 vector by scalar `k` (applied at f32 precision). |
| `vec_scale_f64` | `vec_scale_f64(a, k)` — multiply every element of an f64 vector by scalar `k`. |

### ByteBuffers (7)

| Node | What it does |
|---|---|
| `byte_image_extract` | Extract a fixed-size byte slice from a pre-built image. |
| `byte_slice` | Extract a sub-range from a byte buffer. |
| `bytes_from_hash` | Generate N deterministic bytes from a u64 seed via chained hashing. Each 8-byte chunk is `hash(seed + chunk_index)`. Buffer is fresh per cycle. |
| `char_image_extract` | Extract a text slice from a pre-built character image. |
| `from_hex` | Decode a hexadecimal string to bytes. |
| `to_hex` | Encode bytes as lowercase hexadecimal string. |
| `u64_to_bytes` | Convert a u64 to 8 bytes (little-endian). |

### Comparison (35)

| Node | What it does |
|---|---|
| `f64_eq` |  |
| `f64_ge` |  |
| `f64_gt` |  |
| `f64_le` |  |
| `f64_lt` |  |
| `f64_ne` |  |
| `pick` | Branched-dispatch primitive: select the value whose paired selector is true. A split-halves variadic: the macro recognises two consecutive `&[T]` variadic args as a split-halves shape, emits `selectors.len()` Bool slots followed by `values.len()` polymorphic slots (each pair `(b_i, v_i)` shares an index), and slices `inputs` at the midpoint at eval time. |
| `select_f64` | Pick between two f64 inputs based on a u64 condition. f64s travel as raw u64 bit patterns through the compiled buffer. |
| `select_str` | Pick between two String inputs based on a u64 condition. Any nonzero `cond` → `a`; zero → `b`. |
| `select_u64` | Pick between two u64 inputs based on a u64 condition. |
| `str_eq` | Equality of two String wires. Returns 1 if equal else 0. |
| `str_ne` | Inequality of two String wires. |
| `u64_eq` |  |
| `u64_ge` |  |
| `u64_gt` |  |
| `u64_le` |  |
| `u64_lt` |  |
| `u64_ne` |  |
| `vec_contains_i32` | `vec_contains_i32(v, x)` — `1` when `x` appears in the list, else `0`. |
| `vec_contains_i64` | `vec_contains_i64(v, x)` — `1` when `x` appears in the list, else `0`. |
| `vec_count_below_i32` | `vec_count_below_i32(v, x)` — how many elements are less than `x`. |
| `vec_count_below_i64` | `vec_count_below_i64(v, x)` — how many elements are less than `x`. |
| `vec_eq_f16` | `vec_eq_f16(a, b)` — `true` when both vectors have the same length and every element has the same bits. |
| `vec_eq_f32` | `vec_eq_f32(a, b)` — `true` when both vectors have the same length and every element has the same bits. |
| `vec_eq_f64` | `vec_eq_f64(a, b)` — `true` when both vectors have the same length and every element has the same bits. |
| `vec_eq_i16` | `vec_eq_i16(a, b)` — `true` when both vectors have the same length and equal elements. |
| `vec_eq_i32` | `vec_eq_i32(a, b)` — `true` when both vectors have the same length and equal elements, in order. |
| `vec_eq_i64` | `vec_eq_i64(a, b)` — `true` when both vectors have the same length and equal elements, in order. |
| `vec_eq_i8` | `vec_eq_i8(a, b)` — `true` when both vectors have the same length and equal elements. |
| `vec_intersect_count_i32` | `vec_intersect_count_i32(a, b)` — how many *distinct* values appear in both lists. |
| `vec_intersect_count_i64` | `vec_intersect_count_i64(a, b)` — how many distinct values appear in both lists. |
| `vec_position_i32` | `vec_position_i32(v, x)` — the index of the first `x`, or the list's length when it does not appear. |
| `vec_position_i64` | `vec_position_i64(v, x)` — the index of the first `x`, or the list's length when it does not appear. |
| `vec_set_eq_i32` | `vec_set_eq_i32(a, b)` — `1` when both lists hold the same set of values, whatever their order or repetition. |
| `vec_set_eq_i64` | `vec_set_eq_i64(a, b)` — `1` when both lists hold the same set of values, whatever their order or repetition. |

### Context (7)

| Node | What it does |
|---|---|
| `counter` | Monotonic counter (non-deterministic). |
| `current_epoch_millis` | Current wall-clock time in epoch milliseconds. |
| `env` | Environment variable read, frozen at construction. |
| `env_or` | Environment variable read with default, frozen at construction. |
| `limit` | Cursor limit: passes the input value through unchanged. |
| `thread_id` | Current OS thread numeric identifier. |
| `tmp_dir` | System temp directory, frozen at construction. |

### Conversions (23)

| Node | What it does |
|---|---|
| `ceil_to_u64` | Ceiling f64 to u64 (round toward positive infinity). |
| `clamp_f64` | Clamp an f64 value to [min, max]. |
| `discretize` | Discretize: bin a continuous f64 into N equal-width buckets. |
| `f64_to_u64` | Truncate f64 to u64 (floor toward zero). Lossy -- requires explicit use. |
| `floor_to_u64` |  |
| `format_f64` | Format an f64 with controlled decimal precision. |
| `format_u64` | Format a u64 as a string with a specific radix (2, 8, 10, 16). |
| `json_to_str` | Serialize a JSON value to a compact string. |
| `reg_to_vec_f32` | `reg_to_vec_f32(r)` — the inverse projection. |
| `round_to_u64` |  |
| `round_u64` | Round an `f64` half-away-from-zero into a `u64` (saturating; NaN → 0). Rounding twin of `trunc_u64`. |
| `str_digit_suffix` | `str_digit_suffix(s)` — the run of digits ending the string, as a number, or `0` when it does not end in one. |
| `str_to_u64` | `str_to_u64(s)` — the unsigned integer a string names, or `0` when it names none. |
| `str_to_vec_f32` | `str_to_vec_f32(s)` — a JSON array of numbers as a `vec_f32` wire, the carrier of embeddings and of stored neighbor distances. Each element is the f32 nearest the f64 its text parses as. Fails by name on anything that is not a JSON array of numbers, and on a number too large for an f32, rather than storing an infinity. |
| `str_to_vec_f64` | `str_to_vec_f64(s)` — a JSON array of numbers as a `vec_f64` wire, such as a window of samples for `is_stable`. Fails by name on anything that is not a JSON array of numbers. |
| `str_to_vec_i32` | `str_to_vec_i32(s)` — a JSON array of integers as a `vec_i32` wire. |
| `str_to_vec_i64` | `str_to_vec_i64(s)` — a JSON array of integers as a `vec_i64` wire. |
| `to_f64` | Convert u64 integer value to f64. |
| `to_i64` | `to_i64(n)` — the signed reading of a `u64`. |
| `trunc_u64` | Truncate an `f64` toward zero into a `u64` (saturating; NaN → 0). The explicit escape hatch for writing an f64 expression (e.g. `floor_decade(...)`) into a u64-typed cell or port. |
| `unit_interval` | Normalize a u64 to a uniform f64 in [0.0, 1.0). |
| `vec_to_reg_f32` | `vec_to_reg_f32(v)` — a length-4 `vec_f32` IS a `reg_f32x4`; panics on any other length. |
| `zero_pad_u64` | Zero-pad a u64 to a fixed width string. |

### Data (6)

| Node | What it does |
|---|---|
| `csv_field` | Read a specific column from a CSV row at a given ordinal. |
| `csv_row` | Read an entire CSV row at a given ordinal as a comma-separated string. |
| `csv_row_count` | Return the number of data rows in a CSV file (init-time constant). |
| `jsonl_field` | Read a field from a JSONL line at a given ordinal. |
| `jsonl_row` | Read an entire JSONL line at a given ordinal as a JSON string. |
| `jsonl_row_count` | Return the number of lines in a JSONL file (init-time constant). |

### Datetime (4)

| Node | What it does |
|---|---|
| `date_components` | Decompose epoch millis into date/time components. |
| `epoch_offset` | Add a base epoch offset to a u64 value. |
| `epoch_scale` | Scale a u64 to epoch milliseconds by multiplying by a factor. |
| `to_timestamp` | Format an epoch-millis u64 as an ISO-8601-like timestamp string. |

### Diagnostic (12)

| Node | What it does |
|---|---|
| `const_str` |  |
| `debug_repr` | Emit the Rust Debug representation of the input value. |
| `emit_row` | Append one formatted row to the calling thread's buffer and return the number of values emitted. `format` is `map`, `csv`, `jsonl`, or `text`; `names` is the comma-separated list of wire names in the same order as the variadic values. |
| `exactly_one_value` | Assert that the input value is a unary structure and return its single cell as a String. See module docs. |
| `fft_analyze` | Collect values over N cycles and write DFT analysis to a JSONL file. |
| `identity` | Passthrough: output equals input. Polymorphic via PolyWire: the runtime port type is resolved by the assembler from the upstream wire's type and passed to `Identity::new(input_type)`. |
| `inspect` | Passthrough that prints the value (with a const label) to stderr. SameAsInput output — runtime port type preserved. |
| `log_debug` |  |
| `log_error` |  |
| `log_info` |  |
| `log_warn` |  |
| `type_of` | Emit the type name of the input value as a string. |

### Digest (6)

| Node | What it does |
|---|---|
| `from_base32` |  |
| `from_base64` |  |
| `md5` |  |
| `sha256` |  |
| `to_base32` |  |
| `to_base64` |  |

### Distributions (7)

| Node | What it does |
|---|---|
| `dist_exponential` | Sample from an exponential distribution `Exp(rate)`. |
| `dist_normal` | Sample from a standard normal distribution `N(mean, stddev)`. |
| `dist_pareto` | Sample from a Pareto distribution `Pareto(scale, shape)`. |
| `dist_uniform` | Sample from a continuous uniform distribution `U(min, max)`. |
| `dist_zipf` | Sample from a Zipf distribution `Zipf(n, exponent)`. |
| `icd_exponential` | Alias of `dist_exponential`. |
| `icd_normal` | Alias of `dist_normal`. Preserved because workload examples and the host's distribution binding both surface `icd_normal` as the public DSL name. |

### Encoding (4)

| Node | What it does |
|---|---|
| `html_decode` | Decode HTML entities back to characters. |
| `html_encode` | Encode HTML special characters as entities (`& < > " '`). |
| `url_decode` | Decode a percent-encoded URL string. |
| `url_encode` | Percent-encode a string for use in URLs (RFC 3986). |

### Formatting (3)

| Node | What it does |
|---|---|
| `printf` | Printf-style N→1 formatting node. Variadic: accepts 0..N wire inputs. |
| `tile_encode` | Encode one value under a hole's spec (`encoding\|position\|type\|format\|flags`). |
| `tile_render` | Render a compiled tile skeleton over its encoded hole texts. |

### Hashing (10)

| Node | What it does |
|---|---|
| `hash` | 64-bit hash using SplitMix64 (high-speed scalar integer mixer). |
| `hash_interval` | Hash a u64 into a float interval `[min, max)`. |
| `hash_range` | Hash a u64 into a bounded range `[0, max)`. |
| `hash_vec` | `hash_vec(seed, dim)` — deterministic synthetic f32 vector: element `i` is the SplitMix64 hash of `(seed, i)` mapped into `[-1, 1)`. The canonical generator for synthetic embeddings — equal seeds always produce the identical vector, so dataset- free vector workloads stay replayable. Pairs with `vec_norm` for unit vectors. |
| `random_in` | `random_in(p, seed)` — deterministic hash-mapped ordinal inside the partition: `p.start_ord + hash(seed) mod cardinality(p)`. Same SplitMix64 entropy source as `hash(...)`, so equal seeds always land on the same ordinal. Use for random-access patterns that must stay inside the active partition; prefer `mod_in` when sequential coverage matters. Degenerate cardinality=0 returns the partition's start. |
| `scatter` | Scatter sequential cycle counters across the 64-bit integer space. |
| `splitmix64` | Explicit SplitMix64 integer permutation node. |
| `xxh3` | Canonical 64-bit xxHash3 digest (short alias). |
| `xxhash3` | Canonical 64-bit xxHash3 digest. |
| `xxhash3_vec` | `xxhash3_vec(seed, dim)` — deterministic synthetic f32 vector using xxHash3. |

### Interpolation (5)

| Node | What it does |
|---|---|
| `inv_lerp` | Inverse linear interpolation: map [a, b] to [0, 1]. |
| `lerp` | Linear interpolation with fixed endpoints. |
| `quantize` | Quantize an f64 to the nearest multiple of a step size. |
| `remap` | Remap from one range to another. |
| `scale_range` | Map a u64 linearly to an f64 range. |

### Json (15)

| Node | What it does |
|---|---|
| `array_at` | Return the element at a given index from a bracket-encoded array. |
| `array_len` | Return the number of elements in a bracket-encoded array string. |
| `body_column_i32` | `body_column_i32(body, "name")` — extract the named column from every row of a JSON result body, parse each as i32, and return the values as a `VecI32` wire. |
| `escape_json` | Escape a string for safe embedding in a JSON string value. |
| `json_array` | Build a JSON array from N inputs. |
| `json_field` | Extract a field from a JSON object by key. |
| `json_merge` | Merge two JSON objects into one (shallow merge, right wins). |
| `json_object` | Merge N partial Json Objects into a single Json Object. |
| `json_text` | Flatten a JSON tree into a single newline-separated text by concatenating every leaf value's textual form. |
| `json_to_str_pretty` | Serialize a JSON value to a pretty-printed string. |
| `json_with` | Build a single-pair partial JSON object: `{ key: value }`. |
| `normalize_vector` | L2-normalize a bracket-encoded float vector string `[1.0,2.0,3.0]`. |
| `random_vector` | Generate a deterministic f64 vector as a bracket-encoded JSON array string. |
| `str_to_json` | Parse a JSON string into a JSON value. |
| `to_json` | Wrap a single value as a JSON value. |

### Math (39)

| Node | What it does |
|---|---|
| `abs_f64` |  |
| `acos` |  |
| `asin` |  |
| `atan` |  |
| `atan2` | Two-argument arc tangent: atan2(y, x). |
| `ceiling_base10` | Smallest power of ten `>= x`: `10^ceil(log10(x))`. `x <= 0` → `0.0`. |
| `ceiling_binomial` | Smallest power of two `>= x`: `2^ceil(log2(x))`. `x <= 0` → `0.0`. |
| `ceiling_decade` | Round `x` up to a multiple of its base-ten magnitude: `ceil(x/base)*base`. `x <= 0` → `0.0`. |
| `ceiling_fibonacci` | Smallest Fibonacci number `>= x`. `x <= 0` → `0.0`. |
| `closest_base10` | Power of ten nearest to `x` by absolute distance (ties → floor). `x <= 0` → `0.0`. |
| `closest_binomial` | Power of two nearest to `x` by absolute distance (ties → floor). `x <= 0` → `0.0`. |
| `closest_decade` | Round `x` to the nearest multiple of its base-ten magnitude: `round(x/base)*base`. `x <= 0` → `0.0`. |
| `closest_fibonacci` | Fibonacci number nearest to `x` by absolute distance (ties → floor). `x <= 0` → `0.0`. |
| `const_bool` | Emit a fixed bool value. |
| `const_f64` | Emit a fixed f64 value. |
| `const_u64` | Emit a fixed u64 value (no inputs). |
| `cos` |  |
| `exp` |  |
| `f64_add` |  |
| `f64_div` |  |
| `f64_mod` |  |
| `f64_mul` |  |
| `f64_sub` |  |
| `fixed_values_f64` | Select from a fixed list of f64 values by index. |
| `fixed_values_str` | Select from a fixed list of strings by index. |
| `fixed_values_u64` | Select from a fixed list of u64 values by index. The input is taken modulo the list length. |
| `floor_base10` | Largest power of ten `<= x`: `10^floor(log10(x))`. `x <= 0` → `0.0`. |
| `floor_binomial` | Largest power of two `<= x`: `2^floor(log2(x))`. `x <= 0` → `0.0`. |
| `floor_decade` | Round `x` down to a multiple of its base-ten magnitude: `floor(x/base)*base`. `x <= 0` → `0.0`. |
| `floor_fibonacci` | Largest Fibonacci number `<= x`. `x < 1` (incl. `x <= 0`) → `0.0`. |
| `is_stable` | The settled level and the steady-state signal of a window of samples. |
| `ln` |  |
| `pow` | Power: base^exponent. |
| `round_ceiling` | Round `x` up to a multiple of `interval`: `ceil(x/interval)*interval`. `interval <= 0` or non-finite → returns `x` unchanged (identity). |
| `round_floor` | Round `x` down to a multiple of `interval`: `floor(x/interval)*interval`. `interval <= 0` or non-finite → returns `x` unchanged (identity). |
| `round_nearest` | Round `x` to the nearest multiple of `interval`: `round(x/interval)*interval`. `interval <= 0` or non-finite → returns `x` unchanged (identity). |
| `sin` |  |
| `sqrt` |  |
| `tan` |  |

### Noise (5)

| Node | What it does |
|---|---|
| `fractal_noise_1d` | 1D fractal Brownian motion: layered Perlin noise with decreasing amplitude at each octave. Produces rich, natural-looking signals. Output is f64, roughly in [-1, 1]. Lacunarity is fixed at 2.0 and persistence at 0.5 (standard FBM parameters). |
| `fractal_noise_2d` | 2D fractal Brownian motion: layered Perlin noise in 2D. Produces terrain-like spatial variation. Lacunarity is fixed at 2.0 and persistence at 0.5 (standard FBM parameters). `octaves` is 1 to 64, as for `fractal_noise_1d`. |
| `perlin_1d` | 1D Perlin noise. |
| `perlin_2d` |  |
| `simplex_2d` |  |

### Permutation (5)

| Node | What it does |
|---|---|
| `cycle_walk` | Bijective permutation of `[0, range)` via cycle-walking over PCG. |
| `lfsr_step` | Single Galois LFSR step as a Polydat node. |
| `pcg` | PCG-RXS-M-XS 64/64 random number generator with fixed seed and stream. |
| `pcg_stream` | PCG-RXS-M-XS 64/64 with runtime stream selection. |
| `shuffle` | Deterministic, bijective permutation of a bounded integer range. |

### Probability (18)

| Node | What it does |
|---|---|
| `alias_sample` | Sample an outcome index from a pre-built alias table over `weights`. The input is a uniform u64 (hash upstream for pseudo-random dispersion); the output is the chosen outcome index. |
| `blend` | Weighted linear blend of two f64 values. |
| `chance` | Probability chance returning f64-bits in u64 form: returns `1.0_f64.to_bits()` with probability `p`, else `0.0_f64.to_bits()`. |
| `coin_flip` | Probabilistic boolean with a precomputed threshold from a const probability arg. |
| `default_or` | Returns the first input if it is not `None`, otherwise the second. |
| `dist_empirical` | Sample from an empirical distribution defined by a list of data points. The data points become the LUT entries (sorted); linear interpolation gives continuous sampling. Input should be in `[0, 1]` (from `unit_interval`). |
| `fair_coin` | Fair coin flip: returns 0 or 1 with 50/50 probability. |
| `histribution` | Sample from a histogram-spec distribution. The input should be hashed (uniform); the output is one of the labeled outcomes, selected by weighted alias sampling. |
| `n_of` | N-of-M deterministic fractional selection. |
| `one_of` | Uniform selection from N constant string values. |
| `one_of_weighted` | Weighted selection from a spec string, returning a String. |
| `random_bool` | Random boolean with probability of true. |
| `random_bytes` | Random byte buffer. |
| `random_f64` | Random f64 in [min, max). |
| `random_range` | Random u64 in [min, max). `range = max - min` is computed inline per call (non-det node, per-call subtraction is noise). |
| `random_string` | Random string from a character set. |
| `select` | Binary conditional selection: returns `if_true` when `cond != 0`, else `if_false`. |
| `unfair_coin` | Unfair coin flip: returns 1 with probability `p`, else 0. |

### RealData (85)

| Node | What it does |
|---|---|
| `admitted_rows_at` | The base positions the predicate of query `index` admits, as a set: vectordata's admitted-row set over the query's `metadata_results` record, on an `admitted_rows` wire. Where `metadata_results_at` puts the whole list on a wire, this is a handle to the record that reads nothing until it is asked, by `admitted_rows_contain`, by `admitted_rows_len`, or by a host that keeps the value and asks it directly (`Value::Dataset(DatasetValue::AdmittedRows(set))`, where `set` is vectordata's `OrdinalSet`). Holding one keeps the record's storage open. The query index wraps modulo the facet's rows. A profile whose base window does not start at zero is refused with vectordata's reason. |
| `admitted_rows_contain` | Whether the admitted rows `rows`, from `admitted_rows_at`, hold the base position `ordinal`: whether the query's predicate admits that base vector. |
| `admitted_rows_len` | How many base positions the admitted rows `rows`, from `admitted_rows_at`, hold. |
| `country_codes` | `country_codes(input) -> String` — country code (uniform selection over the full ISO list). |
| `country_names` | `country_names(input) -> String` — country name (uniform selection over the full ISO list). |
| `dataset_distance_function` | Return the dataset's distance function (e.g., "COSINE", "EUCLIDEAN"). Operates on the dataset group; takes a group or prebuffered handle. |
| `dataset_facets` | Report which facets are available for the default profile of a dataset group as a comma-separated list. Expects a group or prebuffered handle. |
| `dataset_group_open` | `dataset_group_open(source: str) -> Handle` |
| `dataset_open` | `dataset_open(source: str, facet: str) -> Handle` |
| `dataset_prebuffer` | Eagerly download all facets for a dataset profile into the local cache, returning a dataset handle that every facet accessor and every group accessor takes as its first argument. After this returns, every subsequent facet read served by [`vectordata::TestDataView`] hits the merkle- verified mmap fast path with no further network traffic. |
| `dataset_profile_count` | Total number of profiles in a dataset group. |
| `dataset_profile_name_at` | Look up a profile name by index from the canonical sorted list. |
| `dataset_profile_names` | Comma-separated list of all profile names in canonical sort order (by base_count). |
| `filtered_neighbor_distances_at` | Access filtered ground-truth neighbor distances. Expects an F32 handle. `filtered_neighbor_distances` is the legacy name of the prefiltered facet, so this reads what `prefiltered_neighbor_distances_at` reads. |
| `filtered_neighbor_indices_at` | Access filtered ground-truth neighbor indices. Expects an I32 handle. `filtered_neighbor_indices` is the legacy name of the prefiltered facet, so this reads what `prefiltered_neighbor_indices_at` reads. |
| `first_names` | `first_names(input) -> String` — Census female first name, weighted by frequency. |
| `first_names_male` | `first_names_male(input) -> String` — Census male first name, weighted by frequency. Companion to `first_names` (female). |
| `full_names` | `full_names(input) -> String` — combined first + last name. |
| `matching_profile_name_at` | Name of the `index`-th profile **matching `pattern`**, in canonical (base-count-ascending) order. Pairs with `profile_partitions`'s masked-position `idx_of` so a sweep can prebuffer the active tier's own ground-truth facets (`dataset_prebuffer(str_concat("ds:", name))`). `pattern` follows the literal / glob / regex promotion; the index wraps modulo the number of matching profiles; empty string if none match. |
| `matching_profiles` | Return profile names matching a prefix, comma-separated. |
| `metadata_content_count` | Count of metadata content records. Expects a Generic handle. |
| `metadata_count_of` | How many records carry the metadata value `value`. |
| `metadata_ordinals_of` | The base ordinals whose metadata value is `value`, ascending. |
| `metadata_results_at` | Access metadata indices (variable-length matching base ordinals per query) at an index. Expects an Ivvec32 handle. |
| `metadata_results_count` | Return the metadata indices count (number of predicate result sets). Expects an Ivvec32 handle. |
| `metadata_results_len_at` | Return the length of one metadata_results record without loading the data (reads only the 4-byte header). Expects an Ivvec32 handle. |
| `metadata_value_at` | Access a metadata value per base ordinal. Expects a Generic handle opened against the `metadata_content` facet. |
| `nationalities` | `nationalities(input) -> String` — nationality name (uniform selection). |
| `neighbor_count` | Return the per-record neighbor count (k) for an I32 neighbor-indices handle. |
| `neighbor_distances_at` | Access ground-truth neighbor distances for a query. Expects an F32 handle. |
| `neighbor_empty_rows` | How many queries have no live neighbor in the unfiltered (`neighbor_indices`) ground truth, as vectordata counts its coverage. A depth of zero, or deeper than the facet, is refused. |
| `neighbor_full_rows` | How many queries have at least `k` live neighbors in the unfiltered (`neighbor_indices`) ground truth, as vectordata counts its coverage. A depth of zero, or deeper than the facet, is refused. |
| `neighbor_indices_at` | Access ground-truth neighbor indices for a query. Expects an I32 handle. |
| `neighbor_live_depth_at` | How many live neighbors a query has in the unfiltered (`neighbor_indices`) ground truth: the length of its row before the padding. |
| `neighbor_live_indices_at` | The live neighbors of a query in the unfiltered (`neighbor_indices`) ground truth: the base positions its row names, nearest first, without the padding a row carries when it has fewer neighbors than the facet is deep. As long as the row's live depth, so shorter than the facet's width for a padded row and empty for a query with no neighbor. |
| `neighbor_recall_ceiling` | The recall at `k` a perfect search would score against the unfiltered (`neighbor_indices`) ground truth when every query is scored out of `k`: vectordata's coverage ceiling. 1.0 when every query has `k` neighbors, and less by the share of slots no neighbor exists for. A depth of zero, or deeper than the facet, is refused. |
| `postfiltered_neighbor_distances_at` | Access the distances of a query's postfiltered ground-truth neighbors, in the order of `postfiltered_neighbor_indices_at`. Expects an F32 handle. |
| `postfiltered_neighbor_empty_rows` | How many queries have no live neighbor in the postfiltered (`postfiltered_neighbor_indices`) ground truth, as vectordata counts its coverage. A depth of zero, or deeper than the facet, is refused. |
| `postfiltered_neighbor_full_rows` | How many queries have at least `k` live neighbors in the postfiltered (`postfiltered_neighbor_indices`) ground truth, as vectordata counts its coverage. A depth of zero, or deeper than the facet, is refused. |
| `postfiltered_neighbor_indices_at` | Access the postfiltered ground-truth neighbor indices of a query: its unfiltered nearest neighbors with those its predicate does not admit removed, in rank order. A row with fewer survivors than the facet's depth is padded with `-1`. Expects an I32 handle. |
| `postfiltered_neighbor_live_depth_at` | How many live neighbors a query has in the postfiltered (`postfiltered_neighbor_indices`) ground truth: the length of its row before the padding. |
| `postfiltered_neighbor_live_indices_at` | The live neighbors of a query in the postfiltered (`postfiltered_neighbor_indices`) ground truth: the base positions its row names, nearest first, without the padding a row carries when it has fewer neighbors than the facet is deep. As long as the row's live depth, so shorter than the facet's width for a padded row and empty for a query with no neighbor. |
| `postfiltered_neighbor_recall_ceiling` | The recall at `k` a perfect search would score against the postfiltered (`postfiltered_neighbor_indices`) ground truth when every query is scored out of `k`: vectordata's coverage ceiling. 1.0 when every query has `k` neighbors, and less by the share of slots no neighbor exists for. A depth of zero, or deeper than the facet, is refused. |
| `predicate_at` | The predicate of query `index`, as structure: which of `forms` it takes, and its ordinal. A host selects the statement it prepared for that form and binds the predicate's record through the form's binder. Nothing is read and nothing is allocated here. The query index wraps modulo the facet's predicates. |
| `predicate_band_at` | The selectivity band of the predicate of query `index`, one of `predicate_bands`, or empty for a predicate whose recorded selectivity no band is read from. Refused when the facet publishes no strata. The query index wraps modulo the facet's predicates. |
| `predicate_bands` | The distinct selectivity bands of a dataset's predicates, widest first and comma-joined, or empty when the facet publishes none. A constant. |
| `predicate_count_of` | How many queries carry the predicate value `value`. |
| `predicate_families` | The distinct families of a dataset's predicates, sorted and comma-joined, or empty when the facet publishes none. A constant. |
| `predicate_family_at` | The family of the predicate of query `index`, one of `predicate_families`. Refused when the facet publishes no strata. The query index wraps modulo the facet's predicates. |
| `predicate_field_names` | The metadata fields a dataset's predicates constrain, sorted and comma-joined: the fields a target indexes to serve them. A constant. |
| `predicate_forms` | The forms of a dataset's predicates: every distinct form its `metadata_predicates` records take, with the form's template and count, the form of the predicate at each ordinal, the strata the facet publishes, and the layout of the metadata records the conditions bind against. A constant: the facet is read once, when the program is built. |
| `predicate_ordinals_of` | The query ordinals whose predicate value is `value`, ascending. |
| `predicate_text_at` | The predicate of query `index`, rendered as text by the packaged vernacular `vernacular`, comparands inline. An unknown vernacular is refused with the names that exist. The query index wraps modulo the facet's predicates. |
| `predicate_value_at` | Access a predicate value per query ordinal. Expects a Generic handle opened against the `metadata_predicates` facet. |
| `prefiltered_neighbor_distances_at` | Access the distances of a query's prefiltered ground-truth neighbors, in the order of `prefiltered_neighbor_indices_at`. Expects an F32 handle. |
| `prefiltered_neighbor_empty_rows` | How many queries have no live neighbor in the prefiltered (`prefiltered_neighbor_indices`) ground truth, as vectordata counts its coverage. A depth of zero, or deeper than the facet, is refused. |
| `prefiltered_neighbor_full_rows` | How many queries have at least `k` live neighbors in the prefiltered (`prefiltered_neighbor_indices`) ground truth, as vectordata counts its coverage. A depth of zero, or deeper than the facet, is refused. |
| `prefiltered_neighbor_indices_at` | Access the prefiltered ground-truth neighbor indices of a query: its nearest neighbors among the base vectors its predicate admits, nearest first. A row with fewer admitted vectors than the facet's depth is padded with `-1`. Expects an I32 handle. |
| `prefiltered_neighbor_live_depth_at` | How many live neighbors a query has in the prefiltered (`prefiltered_neighbor_indices`) ground truth: the length of its row before the padding. |
| `prefiltered_neighbor_live_indices_at` | The live neighbors of a query in the prefiltered (`prefiltered_neighbor_indices`) ground truth: the base positions its row names, nearest first, without the padding a row carries when it has fewer neighbors than the facet is deep. As long as the row's live depth, so shorter than the facet's width for a padded row and empty for a query with no neighbor. |
| `prefiltered_neighbor_recall_ceiling` | The recall at `k` a perfect search would score against the prefiltered (`prefiltered_neighbor_indices`) ground truth when every query is scored out of `k`: vectordata's coverage ceiling. 1.0 when every query has `k` neighbors, and less by the share of slots no neighbor exists for. A depth of zero, or deeper than the facet, is refused. |
| `profile_base_count` | Return the base vector count for the profile at a given index. |
| `profile_facets` | Return the comma-separated facet list for the profile at a given index. |
| `profile_partitions` | Partition a dataset's vector space by its **profiles matching a pattern**, treated as cumulative size tiers (a partition source, cursor_partitions.md §7.1). One partition per masked profile, in canonical (base-count-ascending) order: partition `k` spans `[prev_masked_base_count, this_masked_base_count)` — exactly the vectors added at that tier — so a sweep's "load only the increment since the previously loaded set" is just the partition's `[start_of(p), end_of(p))`, and a partition inherently knows its start (no cross-iteration carry needed). `idx_of(p)` is the 0-based masked position (pairs with `matching_profile_name_at` to address the tier's own ground-truth facets); `count_of(p)` is the number of masked tiers; `base_extent` is the largest masked tier's size. |
| `query_count` | Return the count of query vectors. Counts the query facet of a source string or prebuffered handle, as `vector_count` counts the base facet. |
| `query_vector_at` | Access a query vector by index. Reads the query facet of a source string or prebuffered handle, as `vector_at` reads the base facet. |
| `record_at` | The metadata record of base vector `index`, as structure: its ordinal among the records `forms` describes. A host binds the record's fields through `forms.binder` to the statement it prepared from the layout. Nothing is read and nothing is allocated here. The index wraps modulo the record count. |
| `record_bool_at` | The boolean field `field`, resolved by `record_field_bool`, of the metadata record at `index`. Nothing is checked per record. |
| `record_bytes_at` | The bytes field `field`, resolved by `record_field_bytes`, of the metadata record at `index`. Nothing is checked per record. |
| `record_f64_at` | The floating-point field `field`, resolved by `record_field_f64`, of the metadata record at `index`. Nothing is checked per record. |
| `record_field_bool` | Resolve a boolean field of a dataset's metadata records, for `record_bool_at` to read. Refused when the records have no such field, when the field is not a boolean, and when the dataset declares it may be null. |
| `record_field_bytes` | Resolve a bytes field of a dataset's metadata records, for `record_bytes_at` to read. Refused when the records have no such field, when the field is not a blob, and when the dataset declares it may be null. |
| `record_field_f64` | Resolve a floating-point field of a dataset's metadata records, for `record_f64_at` to read. A 16-bit or 32-bit field reads as `f64` without loss. Refused when the records have no such field, when the field is not a float, and when the dataset declares it may be null. |
| `record_field_i64` | Resolve an integer field of a dataset's metadata records, for `record_i64_at` to read. A 16-bit or 32-bit field reads as `i64` without loss. Refused when the records have no such field, when the field is not an integer, and when the dataset declares it may be null. |
| `record_field_names` | The names of the fields of a dataset's metadata records, in layout order, comma-joined: what a column list or an iteration over the fields takes. A constant. |
| `record_field_str` | Resolve a text field of a dataset's metadata records, for `record_str_at` to read. The name is resolved to its position in the layout here, once. Refused when the records have no such field, when the field is not text, and when the dataset declares it may be null. Expects the metadata_content facet of a profile that publishes records. |
| `record_forms` | The form of a dataset's metadata records: the layout that names and types a record's fields, with the binder that reads every field in layout order. A record facet has this one form. A constant. |
| `record_i64_at` | The integer field `field`, resolved by `record_field_i64`, of the metadata record at `index`. Nothing is checked per record. |
| `record_layout_text` | The layout of a dataset's metadata records, rendered as text by the packaged vernacular `vernacular`: the text one record stands for, such as a schema's column definitions, before any record is read. A constant. An unknown vernacular is refused with the names that exist. |
| `record_str_at` | The text field `field`, resolved by `record_field_str`, of the metadata record at `index`. Nothing is checked per record. |
| `record_text_at` | The metadata record of base vector `index`, rendered as text by the packaged vernacular `vernacular`. An unknown vernacular is refused with the names that exist. The index wraps modulo the record count. |
| `state_codes` | `state_codes(input) -> String` — US state abbreviation (uniform selection). |
| `vector_at` | Access an `f32` vector by index, returning a typed `VecF32`. Reads the base facet of a source string or prebuffered handle, and whatever facet an opened F32 handle names. |
| `vector_count` | Return the count of records in the facet a handle was opened against. This is the canonical "how many vectors / queries / neighbor-rows" accessor — `vector_count(base_handle)` for base vectors, `vector_count(query_handle)` for query vectors, etc. A source string or prebuffered handle counts the base facet. |
| `vector_dim` | Return the dimensionality (`f32` count per record) of a vector facet handle. |

### Regex (4)

| Node | What it does |
|---|---|
| `pattern_match` | Promoted pattern match: `true` if `input` matches `pattern` under the literal / glob / regex promotion rules. Sibling to `regex_match` (which takes a *raw* regex) — use this when the pattern may be a strict string, a `*` glob, or a regex and the kind should be auto-detected from its shape. |
| `regex_extract` | Regex extract: extract the first capture group (or full match). |
| `regex_match` | Regex match: test if input matches a pattern. |
| `regex_replace` | Regex replace: substitute all matches of a pattern with the replacement string. The compiled `Regex` is cached at construction. |

### String (10)

| Node | What it does |
|---|---|
| `char_buf` | Generate a deterministic string of a given length from a seed and character set. |
| `combinations` | Map a u64 input to a deterministic string by interpreting it as a multi-positional choice over the pattern's charsets. |
| `file_line_at` | Cycle-time line lookup over a pre-loaded text file. `filename` is read at construction time via `#[poly_const]`; the cycle input selects a line modulo the total count. |
| `hashed_line_to_string` | Select a deterministic line from a bundled text source using the input hash as an index. Deterministic: same input → same line. |
| `hashed_lorem_extract` | Extract a substring from bundled lorem ipsum text using a hash-based offset. Deterministic: same input → same extract. |
| `hashed_uuid` | Generate a deterministic UUID v4 string from a u64 seed. Same seed always produces the same UUID; the hash output fills the 128 UUID bits with version (4) and variant (RFC 4122) bits set per spec. |
| `number_to_words` | Convert a u64 to its English word representation. |
| `str_concat` | Concatenate N wire inputs into a single Str output. |
| `str_lower` | Fold a string to lowercase (`str.to_lowercase()` semantics). |
| `str_upper` | Fold a string to uppercase (`str.to_uppercase()` semantics). |

### Variadic (5)

| Node | What it does |
|---|---|
| `max` |  |
| `min` |  |
| `product` |  |
| `streamer` | Materialize a comprehension as a `Streamer` value. Authors do not call this directly; the compiler emits it for `for` expressions. |
| `sum` | Sum N u64 inputs (wrapping). Variadic: accepts 0..N wire inputs. |

### Weighted (4)

| Node | What it does |
|---|---|
| `dynamic_weighted_select` | Dynamic weighted selection where the weight spec is a wire input. |
| `weighted_pick` |  |
| `weighted_strings` | Weighted string selection from an inline spec. |
| `weighted_u64` | Weighted u64 selection from an inline spec. |

### Overloaded names (7)

Each of these names stands for one node per operand type. A call builds the node agreeing with the most of its operands' types, the first listed among equals, and the assembler's adapters reach the node's other ports.

| Name | Builds |
|---|---|
| `vec_add` | `vec_add_f32` for (vec_f32, vec_f32); `vec_add_f64` for (vec_f64, vec_f64) |
| `vec_cosine` | `vec_cosine_f32` for (vec_f32, vec_f32); `vec_cosine_f64` for (vec_f64, vec_f64) |
| `vec_distance` | `vec_distance_f32` for (str, vec_f32, vec_f32); `vec_distance_f64` for (str, vec_f64, vec_f64) |
| `vec_dot` | `vec_dot_f32` for (vec_f32, vec_f32); `vec_dot_f64` for (vec_f64, vec_f64) |
| `vec_l2` | `vec_l2_f32` for (vec_f32, vec_f32); `vec_l2_f64` for (vec_f64, vec_f64) |
| `vec_norm` | `vec_norm_f32` for (vec_f32); `vec_norm_f64` for (vec_f64) |
| `vec_scale` | `vec_scale_f32` for (vec_f32, f64); `vec_scale_f64` for (vec_f64, f64) |

<!-- /node catalog -->