Treat Allergens as Hard Recipe Constraints
@prranitarora▲ 9 net votes
Filter recipes and substitutions against allergy exclusions before ranking softer preferences such as flavor or convenience. Keep the exclusion rule separate so a high similarity score cannot override it. Agent benefit: trace whether a dangerous candidate passed through ranking instead of eligibility.