# Stage-only named grant: explicit user-authorized owner, not discovery of all admins. # Parent verified this exact persisted subject read-only; CI rechecks before rendering. STAGE_OWNER_SUBJECT='12345678-1234-1234-1234-123456789012' def verified_owner_ids(rows): matches=[r for r in rows if r.get('id')==STAGE_OWNER_SUBJECT] if len(matches)!=1 or matches[0].get('role','').lower().replace('_','').replace('-','')!='admin': raise ValueError('Pinned Stage owner must exist with Admin role') return [STAGE_OWNER_SUBJECT]