DecisionEngine::evaluate_many wraps evaluate_batch (compiled columnar plan with row
fallback) and returns results only; evaluate_batch now resolves keys with or without
.json like evaluate. BatchExpression compiles one expression for the lane VM (stack VM
fallback when the lane refuses it) and evaluates rows or Columns. batch_rows example
benchmarks 100k rows.
Typed lowering now covers contains/some/all/none over literal lists,
ordering compares against an absent input (lenient tables fold the cell
to no-match and drop the rule; constant one-input tables stay native),
text tests on absent operands, list-valued table inputs, lists of
scalars from static list slots, input slots of unknown shape (resolved
per batch like Dyn) and literal tables with composite output cells.
A unit using new coverage is lowered as its own typed group. The typed
date-to-text and generic host paths reuse the result while consecutive
rows pass identical arguments. ZEN_CENSUS records why a unit stays on
the lane and times lane fallbacks (cold paths, off by default).
Typed groups without list inputs (graph: 16+ local rows, not already on
the long-program dedup; policy: root groups) learn per group whether to
run the program on distinct input rows only: warm-up, a deferred probe
of the coded run, then a measured trial against the plain run, repeated
every 64 calls. Rows are keyed by exact value codes (table hints, Dict
keys, numbers by mantissa and scale, text through Coder::keys, cached
per call in the graph store). Graph outputs stay dict-coded (reps plus
ids through widen/expand); policy spreads rep outputs back to rows
(Outputs::spread) because its sinks take row-shaped outputs.
Columnar batches of a V1 function node run in one prepared runtime and
context when the source is proven isolated (Purity::layout, the script
dialect of the shared allow-list analysis). Each row is evaluated on a
layout that keeps line/column positions, inputs go through JSON.parse
unless a literal is needed (__proto__ keys, deep nesting), the 500 ms
limit restarts per row, and any error or pending job drops the context.
Single-row evaluation is unchanged.
Isolation::shareable treated member writes rooted at a local as local,
so state shared through a call result, an object field or a function
parameter (e.g. const f = () => Math; f().seen = ...) leaked across the
rows of a columnar batch. Shared runtimes now need a closed-world proof
(Purity::module): globals, imports and top-level functions never appear
as values, only whitelisted calls/statics/methods; everything else runs
on a fresh runtime per row.