WarUI

User Confirmation for Mutations

GRID-A27-F09P0beyond-baselinePlanned

Any command in a data.mutate or export scope that comes from AI requires explicit user confirmation through a dialog showing a human-readable summary and a before/after diff. Confirmation cannot be disabled for AI-originated commands, only for direct developer calls. This keeps a human in the loop for every change.

Planned. This page shows the specification from issue #207. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

Ticket dataset with data.mutate granted. A preset AI command updates the status of 12 rows.

Expected behavior

A dialog lists the 12 rows with old and new values. Confirm applies the change. Reject leaves the data untouched and fires onConfirmationResolved with rejected=true.

Planned API surface

grid.ai.confirm(commandOrBatch)onConfirmationRequestedonConfirmationResolvedconfirmation.rendererMutationPreview

Acceptance criteria

  • AI-originated mutating commands always require confirmation (pending)
  • The diff shows every affected cell, paginated beyond 100 rows (pending)
  • Reject produces zero state change (pending)
  • If data changes during review, the preview is recomputed or invalidated before applying (pending)