Motivation: Prevent unbounded allocations in indexer handlers and satisfy security review feedback.
Constraints: No new dependencies; errors must use constant messages with structured context.
Decision:
Add a shared allocation helper that reads MemAvailable from /proc/meminfo and limits
requested allocations to 80% of available memory.
Apply the helper to dynamic list normalization in search profiles, policy rules, and media
domain allowlists, while raising per-list caps to avoid overly constraining users.