Mechanism for tracking time a team spends in an illegal state

Currently it’s up to leagues to determine how they enforce legal rosters but there is no way to know, in all cases, when a team particularly became illegal.

Player IL movements in particular are not obvious (not captured on the transactions).

Open to any ideas for how this would be accomplished.