A Coherence-Based Measure of AGI