"""retry_storm, no_batching, chatty_health -- phase-0-base-project-spec.md ยง7. All three are owned by `gateway`.""" import random from common.chaos_flags import is_enabled DOWNSTREAMS = ("ledger", "fraud", "sanctions", "insights", "notifier") async def retry_storm_enabled() -> bool: return await is_enabled("retry_storm") async def no_batching_enabled() -> bool: return await is_enabled("no_batching") async def chatty_health_enabled() -> bool: return await is_enabled("chatty_health") def synthetic_line_item_count() -> int: return random.randint(1, 5)