Audit & Undo 1.4.0
A semantic decision trail explains allowed and rejected changes and provides stack-based rollback.
Read APIs
const log = controller.getAuditLog();
controller.undoLast();
controller.undoAll();Audit fields
Entries carry timestamp, intent type/target, reason, source, outcome, constraint hits, and semantic previous/next values. They do not contain HTML snippets, form values, or raw DOM trees.
Undo model
Reversible applies store inverse attribute patches. undoLast() restores the latest; undoAll() drains the stack. The Phase 6.1 Inspector delegates to these controller methods.
Retention boundary
The implemented default is an in-memory audit surface. Optional persistence remains host-controlled; Adapt does not create a hidden user profile.
Events
| Event | Use |
|---|---|
velin-adapt-apply | Successful semantic mutation |
velin-adapt-error | Rejected intent or guardrail |
velin-adapt-change | Observed semantic contract change |