| 1 | # Time Travel Plugin DOX |
| 2 | |
| 3 | ## Purpose |
| 4 | |
| 5 | - Own Agent Zero workspace history, diff inspection, travel, snapshots, and revert for selectable Agent Zero workdir/project workspaces under `/a0/usr`. |
| 6 | |
| 7 | ## Ownership |
| 8 | |
| 9 | - `helpers/time_travel.py` owns history storage, diff, travel, snapshot, preview, and revert mechanics. |
| 10 | - `api/` owns selectable workspace list, history list, diff, preview, revert, snapshot, and travel endpoints. |
| 11 | - `webui/` owns the time-travel panel, workspace selector, store, main surface, and thumbnail. |
| 12 | - `plugin.yaml` and `extensions/` own metadata and hook contributions. |
| 13 | |
| 14 | ## Local Contracts |
| 15 | |
| 16 | - Keep history operations scoped to Agent Zero-owned workdir/project workspaces. |
| 17 | - Revert and travel operations must avoid unintended writes outside managed workspace paths. |
| 18 | - Preserve enough metadata for clear preview and diff inspection before destructive actions. |
| 19 | |
| 20 | ## Work Guidance |
| 21 | |
| 22 | - Coordinate API and UI changes so users can inspect effects before applying travel or revert operations. |
| 23 | |
| 24 | ## Verification |
| 25 | |
| 26 | - Smoke-test workspace selection, snapshot, list, diff, preview, travel, and revert flows after changes. |
| 27 | |
| 28 | ## Child DOX Index |
| 29 | |
| 30 | No child DOX files. |