Commit Graph
8 Commits
Author SHA1 Message Date
Stefan 60bbb46bb4 perf(trace): keep first-hit table facts and their referenced fields as columns 2026-11-19 09:47:53 +01:00
Stefan 2e08423494 perf(trace): key node bodies on per-column codes and precompute node heads and result labels 2026-11-19 09:30:37 +01:00
Stefan f9c21f4c9c perf(trace): read the request from input columns and build request rows only on demand 2026-11-18 20:44:31 +01:00
Stefan 8b5527f2e3 perf(trace): size the batch trace buffer up front, key node bodies on typed column words, share request rows as the input 2026-11-18 17:10:34 +01:00
Stefan a170a1dc92 perf(trace): reuse a node's rendered body for rows with the same rule and cell values 2026-11-18 16:40:38 +01:00
Stefan 317439f845 perf(trace): capture node columns instead of row values in the columnar plan 2026-11-18 16:09:43 +01:00
Stefan 55ec1fa408 perf(trace): write a node's edits from its written columns 2026-11-18 14:56:17 +01:00
Stefan ae431abe37 feat(trace): trace format v1 with TraceCollector on the compiled engine
Adds trace format v1 to the compiled engine, recorded by explicit trace
recorders and written natively. The interpreted engine keeps the legacy
trace.

- EvaluationOptions.trace is a TraceFormat (off, v1, legacy). Legacy
  traces are produced directly from the same recording.
- zen_engine::trace exposes convert, restore and inspect for
  stored documents, with redaction and truncation markers.
- The trace header takes evaluatedAt, timezone and seed from the
  evaluation context, so an evaluation replays from its own trace.
- Batch and columnar evaluations record events as columns and write one
  document per row.
- Bindings accept the trace format (true, 'v1', 'legacy'); the Node
  binding ships TypeScript types for the v1 document.
- Golden, fixture and damaged-document tests cover byte identity with the
  legacy trace, restore, interop with the reference fixtures and
  malformed input.
2026-11-17 18:57:34 +01:00