fn owned_account_id(
state: &AppState,
def_id: &str,
req: &IdentityAccountUpsertReq,
) -> Result<String, String>Expand description
Ownership check: the supplied account_id must already be linked to the calling agent, so callers can’t overwrite another agent’s credentials by guessing a UUID.