mirror of
https://github.com/gorules/zen.git
synced 2026-11-28 16:06:26 +00:00
redact walks each pointer through the document schema and refuses, with a TraceError, a pointer that does not name a value position (user data such as node inputs and outputs, results values, rule cells and references, logs, details, step values, writes, stored operands, verbatim traces). Readers refuse $redacted and $omitted markers in structural positions with an error naming the place, treat $literal as opaque everywhere and keyed maps' $-keys as ids. Lenient restore no longer fails on a loop expression whose items list was redacted away or on a collected table field whose write was redacted. redact keeps the opaque context verbatim. The Node graph response's trace is ZenEngineResponseTrace | null, where ZenEngineResponseTrace = ZenTraceV1 | ZenLegacyGraphTrace | PolicyTrace and the legacy members have no version, so trace.version === 1 narrows to ZenTraceV1.