WarUI

Plugin isolation and error containment

GRID-A01-F20P1beyond-baselinePlanned

Errors thrown in plugin hooks, renderers or listeners are caught at the boundary and reported via an error event with attribution. The plugin is disabled per a configurable policy, so one faulty extension cannot corrupt core state or crash the grid.

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

Live example

A grid with a deliberately faulty plugin that is disabled by default.

Expected behavior

Under quarantine, the first error disables the plugin and core state stays consistent. Under report, errors are logged and the plugin continues. Under rethrow, the error surfaces, which is intended for tests.

Planned API surface

grid:errorGridError.sourceGridOptions.errorPolicyapi.getQuarantinedPluginsapi.reenablePlugin

Acceptance criteria

  • A failing hook inside a batch rolls back only that plugin's contributions (pending)
  • Error payloads include the plugin id, the hook name and the original error (pending)
  • Core invariants hold after any plugin error (verified by an invariant checker) (pending)
  • The default policy is documented as quarantine (pending)