Stealth works against AI. That part has been handled pretty decently since the first C&C game. Otherwise Shadow Tanks/Malver/Submarines are quite useless. WW got that logic right because of submarines. The part they didn't get right is to have superweapons ignore stealthed units (Cue AI casting Psychic Dominator on submarines in vanilla YR).
The shroud, on the other hand, does not work against AI. They essentially have a no shroud trainer installed in them, amongst other things. So Gay Generators are useless in that aspect.
Also, remember how the AI fired its superweapons on stealthed targets in TS and FS? Or that in Tiberium Wars, the AI will send detector units to your stealthed units, if you try sneaking them inside its base? I mean, the AI should have no idea that you got the Nod assassin thingies in his base and about to blow up his Ion Cannon Uplink, but it will send a detector directly to them. AI is a cheating bastard, it always was, and it always will be