Using SUBQUERY on @status item

We'd like to determine if there is a configuration declaration that is active on a device as part of a predicate.

The current logic (based on the WWDC 22 session) is:

SUBQUERY(@status(management.declarations.configurations), $declaration, ($declaration.@key(identifier) == "com.abc.declarationname" AND $declaration.@key(active) == true)).@count == 1

The goal is that if the declaration is active, then a predicate should evaluate to true.

This query does not appear to be working. Should we be able to use @status(management.declarations.activations) in a predicate? If so, what are we missing to attempt to determine if the declaration is active?

If I search the existing status objects that are sent from the device, it is showing as active in the status channel.

Using SUBQUERY on @status item
 
 
Q