We currently do not have an overarching EditCheck model class (in the sense of model-view-controller) that represents the totality of the state of edit checks. Instead, the state lives across various classes: the EditCheck controller, individual edit checks, actions, and the DM document cache.
We should investigate the merits of building a true top-level model class, similar to the way ve.dm.Document models the document state. It would store state including
- What checks have been run on which parts of the document
- What actions have been determined for which ranges
- Whether an action has been dismissed, hidden, or is currently known to be stale.
This should interoperate well with the persistence model for edit suggestions: T431606