When a continuous effect causes a permanent to "lose all abilities," it removes all abilities the object currently has, regardless of their source. This is governed by CR 613 (layer system) and CR 400.7/200.2 — the object's abilities are treated as a unified set; the game does not track which ability came from the card's printed text versus an external grant.
Ability-removing effects apply in Layer 6 of the continuous effects system (CR 613.1f). At that layer, every ability — static, triggered, activated, or keyword — is stripped from the object. It does not matter that another card or effect originally granted some of those abilities; once the "loses all abilities" effect is applied, they are all gone.
There is one important nuance: timestamp and dependency rules (CR 613.6–613.7) determine the order in which Layer 6 effects are applied. If the ability-granting effect has a later timestamp than the "loses all abilities" effect, the granted ability may be applied after the stripping and therefore survive. So the order in which effects are applied can matter.
Concrete example: Your creature has been granted flying by an Aura enchanting it. Your opponent then activates Opalescence-era Humility (or casts Sudden Spoiling), causing your creature to lose all abilities. Your creature loses flying even though flying came from the Aura, not from the creature's own printed text. The Aura is still attached, but its granted ability no longer functions on the creature while the "loses all abilities" effect is active.
If a subsequent effect (with a later timestamp or dependency-determined order) grants an ability after the stripping effect is applied in Layer 6, that ability would still be present. Always check timestamps and dependencies (CR 613.6–613.7) when multiple Layer 6 effects interact.
Unofficial fan resource — not affiliated with or endorsed by Wizards of the Coast. Answers are AI-generated estimates grounded in the Comprehensive Rules and are not a substitute for an official judge. Verify anything match-critical.