AST diff and change provenance
Emits structured diffs between successive ASTs with a source tag (user UI, URL, saved view, API, policy). Applications can then debounce requests, implement undo, or audit what changed, all locally with no telemetry.
Planned. This page shows the specification from issue #182. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
A grid with an event log panel and undo/redo buttons.
Expected behavior
Each change logs a JSON-Patch-style diff and its source. Undo restores the previous AST. Loading a view logs source='savedView'.
Planned API surface
queryChange.detail.diffqueryChange.detail.sourcediffQuery()undoQuery()redoQuery()queryHistoryLimitAcceptance criteria
- Diffs apply cleanly to the previous canonical AST to produce the next one (pending)
- Source tags come from a documented closed set (pending)
- History is kept in memory only and capped at queryHistoryLimit (pending)
- Nothing is transmitted externally (pending)