A method performed by one or more data processing apparatus, the method comprising: selecting a given digital component from among a plurality of digital components, wherein: each digital component of the plurality of digital components has a current scanning priority that defines a current priority for scanning the digital component; and the given digital component is selected based on the current scanning priority of the given digital component; scanning the given digital component, comprising determining a current state of the given digital component, wherein the current state of the given digital component defines a current compliance status of the given digital component that specifies whether the given digital component currently complies with a policy criterion; determining a current context of the given digital component based on a current scan index of the given digital component that specifies a number of times the given digital component has been scanned; determining an updated scanning priority of the given digital component based on the current context of the given digital component by using a mapping function to map the current context of the given digital component to data defining the updated scanning priority of the given digital component, wherein, for each of a plurality of possible current contexts, the mapping function defines a mapping from the possible current context to data defining a corresponding scanning priority, and wherein the mapping function maps possible current contexts that are correlated with more rapid changes in state to higher scanning priorities and maps contexts that are correlated with slower changes in state to slower scanning priorities; and re-scanning the given digital component according to the updated scanning priority. selecting a given digital component from among a plurality of digital components, wherein: each digital component of the plurality of digital components has a current scanning priority that defines a current priority for scanning the digital component; and the given digital component is selected based on the current scanning priority of the given digital component; each digital component of the plurality of digital components has a current scanning priority that defines a current priority for scanning the digital component; and the given digital component is selected based on the current scanning priority of the given digital component; scanning the given digital component, comprising determining a current state of the given digital component, wherein the current state of the given digital component defines a current compliance status of the given digital component that specifies whether the given digital component currently complies with a policy criterion; determining a current context of the given digital component based on a current scan index of the given digital component that specifies a number of times the given digital component has been scanned; determining an updated scanning priority of the given digital component based on the current context of the given digital component by using a mapping function to map the current context of the given digital component to data defining the updated scanning priority of the given digital component, wherein, for each of a plurality of possible current contexts, the mapping function defines a mapping from the possible current context to data defining a corresponding scanning priority, and wherein the mapping function maps possible current contexts that are correlated with more rapid changes in state to higher scanning priorities and maps contexts that are correlated with slower changes in state to slower scanning priorities; and re-scanning the given digital component according to the updated scanning priority. wherein, for each of a plurality of possible current contexts, the mapping function defines a mapping from the possible current context to data defining a corresponding scanning priority, and wherein the mapping function maps possible current contexts that are correlated with more rapid changes in state to higher scanning priorities and maps contexts that are correlated with slower changes in state to slower scanning priorities; and re-scanning the given digital component according to the updated scanning priority.