fix: handle include: scope expansion in check_scope_coverage (#957)
PDS servers expand include:ns.permSet into granular repo:/rpc: scopes,
so the granted scope never contains the literal include: token. Check
namespace authority instead of exact string match.
This was causing 403 scope_upgrade_required for all sessions on staging
where resolved_scope uses permission sets (include:fm.plyr.stg.authFullApp).
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
authored by
zzstoatzz.io