Structured document transformations
Rebuild histories and nested content while retaining paths and boundaries.
Collapse a change chain while retaining its full trace
Require before/after continuity before deriving first and final values.
Build nested sections from open and close events
Use a stack to preserve document nesting and detect unmatched boundaries.
Convert a bounded rectangle to surface fractions
Retain the source size and reject rectangles outside it.
Build nested records from dotted field paths
Reject leaf/container collisions while preserving explicit null.
Flatten object leaves into path-array answers
Keep scalar arrays whole and distinguish empty objects from absent branches.