# strategy_policy_engine.py STRATEGY_MAP = { "GEOMETRY_ANALYTIC": { "allowed": ["algebraic_intersection", "distance_formula", "midpoint_calculation"], "forbidden": ["differentiation", "calculus_modeling", "optimization"] }, "SIMPLE_LINEAR_SOLVE": { "allowed": ["single_variable_isolation", "basic_arithmetic"], "forbidden": ["systems_of_equations", "substitution_method"] }, "FUNCTION_ANALYSIS": { "allowed": ["differentiation", "extrema_finding", "intercepts"], "forbidden": ["integration"] } } def get_allowed_strategies(intent): """מחזיר וקטור אסטרטגיות מותרות לפי כוונת המשתמש""" return STRATEGY_MAP.get(intent, {"allowed": ["GENERAL"], "forbidden": []})