[ { "name": "unconditional-hard-compliance-blocks-exotic-leather", "rules": [ { "rule_key": "G-RULES-01-HARD-EXOTIC", "category": "compliance", "priority": 100, "confidence": 1.0, "is_hard": true, "conditions": {}, "effects": { "avoid": [ {"slot": "accessory", "attrs": {"material": ["真兽皮"]}}, {"slot": "shoes", "attrs": {"material": ["真皮"]}} ], "explanation": "合规红线:任何场景都不推荐真兽皮材质。" } } ], "context": {}, "expect": { "must_avoid": [ {"slot": "accessory", "attrs_include": {"material": ["真兽皮"]}}, {"slot": "shoes", "attrs_include": {"material": ["真皮"]}} ], "forbidden_recommend": [ {"slot": "accessory", "attrs_include": {"material": ["真兽皮"]}} ], "hard_blocks_nonempty": true } }, { "name": "hard-compliance-fires-on-formal-occasion", "rules": [ { "rule_key": "G-RULES-02-HARD-FORMAL", "category": "compliance", "priority": 100, "confidence": 1.0, "is_hard": true, "conditions": {"occasion": {"include": ["红毯", "晚宴"]}}, "effects": { "avoid": [ {"slot": "shoes", "attrs": {"material": ["真皮"]}}, {"slot": "accessory", "attrs": {"material": ["真兽皮"]}} ], "explanation": "正式场合合规红线:不推荐真皮与真兽皮。" } } ], "context": {"occasion": "晚宴"}, "expect": { "must_avoid": [ {"slot": "shoes", "attrs_include": {"material": ["真皮"]}} ], "forbidden_recommend": [ {"slot": "shoes", "attrs_include": {"material": ["真皮"]}} ], "hard_blocks_nonempty": true } }, { "name": "hard-compliance-silent-on-daily-occasion", "rules": [ { "rule_key": "G-RULES-03-HARD-FORMAL", "category": "compliance", "priority": 100, "confidence": 1.0, "is_hard": true, "conditions": {"occasion": {"include": ["红毯", "晚宴"]}}, "effects": { "avoid": [{"slot": "shoes", "attrs": {"material": ["真皮"]}}], "explanation": "正式场合合规红线:不推荐真皮。" } } ], "context": {"occasion": "通勤"}, "expect": { "forbidden_recommend": [ {"slot": "shoes", "attrs_include": {"material": ["真皮"]}} ], "hard_blocks_nonempty": false } }, { "name": "user-taboo-overrides-trend-recommendation", "rules": [ { "rule_key": "G-RULES-04-TREND-CROP", "category": "trend", "priority": 50, "confidence": 0.7, "conditions": {"style": "甜酷"}, "effects": { "recommend": [{"slot": "top", "attrs": {"length": ["短款"]}}], "explanation": "短款上衣是当季甜酷风的核心单品。" } }, { "rule_key": "G-RULES-05-TABOO-MIDRIFF", "category": "user_taboo", "priority": 95, "confidence": 1.0, "conditions": {"user_taboos": {"include": ["露脐"]}}, "effects": { "avoid": [{"slot": "top", "attrs": {"length": ["短款", "露脐"]}}], "explanation": "用户不接受露脐,已剔除相关单品。" } } ], "context": {"style": "甜酷", "user_taboos": ["露脐"]}, "expect": { "must_avoid": [ {"slot": "top", "attrs_include": {"length": ["短款", "露脐"]}} ], "forbidden_recommend": [ {"slot": "top", "attrs_include": {"length": ["短款"]}} ], "hard_blocks_nonempty": false } }, { "name": "user-taboo-limited-to-conflicting-dimension", "rules": [ { "rule_key": "G-RULES-06-BODY-H-BOTTOM", "category": "body_shape", "priority": 90, "confidence": 0.9, "conditions": {"body_shape": "H型"}, "effects": { "recommend": [{"slot": "bottom", "attrs": {"silhouette": ["直筒", "阔腿"]}}], "avoid": [{"slot": "bottom", "attrs": {"silhouette": ["紧身"]}}], "explanation": "H型宜直线轮廓放大腰线比例。" } }, { "rule_key": "G-RULES-07-TABOO-MIDRIFF", "category": "user_taboo", "priority": 95, "confidence": 1.0, "conditions": {"user_taboos": {"include": ["露脐"]}}, "effects": { "avoid": [{"slot": "top", "attrs": {"length": ["短款", "露脐"]}}], "explanation": "用户不接受露脐,已剔除相关单品。" } } ], "context": {"body_shape": "H型", "user_taboos": ["露脐"]}, "expect": { "must_recommend": [ {"slot": "bottom", "attrs_include": {"silhouette": ["阔腿"]}} ], "must_avoid": [ {"slot": "bottom", "attrs_include": {"silhouette": ["紧身"]}} ], "forbidden_recommend": [ {"slot": "top", "attrs_include": {"length": ["短款"]}} ], "hard_blocks_nonempty": false } }, { "name": "body-temperature-occasion-stack", "rules": [ { "rule_key": "G-RULES-08-BODY-A-SHOULDER", "category": "body_shape", "priority": 90, "confidence": 0.95, "conditions": { "body_shape": "A型", "features": {"include": ["溜肩"]}, "goals": {"include": ["修饰溜肩"]} }, "effects": { "recommend": [ {"slot": "top", "attrs": {"shoulder": ["垫肩"], "sleeve": ["泡泡袖"]}} ], "avoid": [{"slot": "top", "attrs": {"silhouette": ["修身"]}}], "explanation": "溜肩需要用垫肩与泡泡袖在肩部建立结构感。" } }, { "rule_key": "G-RULES-09-TEMP-18-26", "category": "temperature", "priority": 75, "confidence": 0.85, "conditions": {"temperature": {"min": 18, "max": 26}}, "effects": { "recommend": [{"slot": "outer", "attrs": {"thickness": ["薄款"]}}], "avoid": [{"slot": "outer", "attrs": {"thickness": ["厚款"]}}], "explanation": "18-26℃ 单层薄外套最舒适。" } }, { "rule_key": "G-RULES-10-OCC-INTERVIEW", "category": "occasion", "priority": 80, "confidence": 0.9, "conditions": {"occasion": "面试"}, "effects": { "recommend": [ {"slot": "top", "attrs": {"collar": ["衬衫领"]}}, {"slot": "bottom", "attrs": {"silhouette": ["直筒"]}} ], "avoid": [{"slot": "top", "attrs": {"neckline": ["深V"]}}], "explanation": "面试场合需要干练可信的轮廓。" } } ], "context": { "body_shape": "A型", "features": ["溜肩"], "goals": ["修饰溜肩"], "temperature": 22.0, "occasion": "面试" }, "expect": { "must_recommend": [ {"slot": "top", "attrs_include": {"shoulder": ["垫肩"]}}, {"slot": "top", "attrs_include": {"sleeve": ["泡泡袖"]}}, {"slot": "top", "attrs_include": {"collar": ["衬衫领"]}}, {"slot": "bottom", "attrs_include": {"silhouette": ["直筒"]}}, {"slot": "outer", "attrs_include": {"thickness": ["薄款"]}} ], "must_avoid": [ {"slot": "top", "attrs_include": {"silhouette": ["修身"]}}, {"slot": "top", "attrs_include": {"neckline": ["深V"]}}, {"slot": "outer", "attrs_include": {"thickness": ["厚款"]}} ], "hard_blocks_nonempty": false } }, { "name": "missing-profile-fields-keep-rules-silent", "rules": [ { "rule_key": "G-RULES-11-BODY-A-SHOULDER", "category": "body_shape", "priority": 90, "confidence": 0.95, "conditions": { "body_shape": "A型", "features": {"include": ["溜肩"]}, "goals": {"include": ["修饰溜肩"]} }, "effects": { "recommend": [ {"slot": "top", "attrs": {"shoulder": ["垫肩"], "sleeve": ["泡泡袖"]}} ], "avoid": [{"slot": "top", "attrs": {"silhouette": ["修身"]}}], "explanation": "溜肩需要用垫肩与泡泡袖在肩部建立结构感。" } }, { "rule_key": "G-RULES-12-TEMP-18-26", "category": "temperature", "priority": 75, "confidence": 0.85, "conditions": {"temperature": {"min": 18, "max": 26}}, "effects": { "recommend": [{"slot": "outer", "attrs": {"thickness": ["薄款"]}}], "avoid": [{"slot": "outer", "attrs": {"thickness": ["厚款"]}}], "explanation": "18-26℃ 单层薄外套最舒适。" } } ], "context": {"features": ["溜肩"], "goals": ["修饰溜肩"]}, "expect": { "forbidden_recommend": [ {"slot": "top", "attrs_include": {}}, {"slot": "outer", "attrs_include": {}} ], "hard_blocks_nonempty": false } }, { "name": "temperature-lower-bound-inclusive", "rules": [ { "rule_key": "G-RULES-13-TEMP-18-26", "category": "temperature", "priority": 75, "confidence": 0.85, "conditions": {"temperature": {"min": 18, "max": 26}}, "effects": { "recommend": [{"slot": "outer", "attrs": {"thickness": ["薄款"]}}], "avoid": [{"slot": "outer", "attrs": {"thickness": ["厚款"]}}], "explanation": "18-26℃ 单层薄外套最舒适。" } } ], "context": {"temperature": 18.0}, "expect": { "must_recommend": [ {"slot": "outer", "attrs_include": {"thickness": ["薄款"]}} ], "must_avoid": [ {"slot": "outer", "attrs_include": {"thickness": ["厚款"]}} ], "hard_blocks_nonempty": false } }, { "name": "temperature-below-range-stays-silent", "rules": [ { "rule_key": "G-RULES-14-TEMP-18-26", "category": "temperature", "priority": 75, "confidence": 0.85, "conditions": {"temperature": {"min": 18, "max": 26}}, "effects": { "recommend": [{"slot": "outer", "attrs": {"thickness": ["薄款"]}}], "avoid": [{"slot": "outer", "attrs": {"thickness": ["厚款"]}}], "explanation": "18-26℃ 单层薄外套最舒适。" } } ], "context": {"temperature": 17.5}, "expect": { "forbidden_recommend": [ {"slot": "outer", "attrs_include": {}} ], "hard_blocks_nonempty": false } }, { "name": "interview-occasion-collar-and-neckline", "rules": [ { "rule_key": "G-RULES-15-OCC-INTERVIEW", "category": "occasion", "priority": 80, "confidence": 0.9, "conditions": {"occasion": "面试"}, "effects": { "recommend": [ {"slot": "top", "attrs": {"collar": ["衬衫领"]}}, {"slot": "bottom", "attrs": {"silhouette": ["直筒"]}} ], "avoid": [{"slot": "top", "attrs": {"neckline": ["深V"]}}], "explanation": "面试场合需要干练可信的轮廓。" } } ], "context": {"occasion": "面试"}, "expect": { "must_recommend": [ {"slot": "top", "attrs_include": {"collar": ["衬衫领"]}}, {"slot": "bottom", "attrs_include": {"silhouette": ["直筒"]}} ], "must_avoid": [ {"slot": "top", "attrs_include": {"neckline": ["深V"]}} ], "hard_blocks_nonempty": false } }, { "name": "composite-priority-chain-hard-taboo-body", "rules": [ { "rule_key": "G-RULES-16-HARD-FORMAL", "category": "compliance", "priority": 100, "confidence": 1.0, "is_hard": true, "conditions": {"occasion": {"include": ["红毯", "晚宴"]}}, "effects": { "avoid": [ {"slot": "accessory", "attrs": {"material": ["真兽皮"]}}, {"slot": "shoes", "attrs": {"material": ["真皮"]}} ], "explanation": "正式场合合规红线:不推荐真兽皮材质。" } }, { "rule_key": "G-RULES-17-TABOO-MIDRIFF", "category": "user_taboo", "priority": 95, "confidence": 1.0, "conditions": {"user_taboos": {"include": ["露脐"]}}, "effects": { "avoid": [{"slot": "top", "attrs": {"length": ["短款", "露脐"]}}], "explanation": "用户不接受露脐,已剔除相关单品。" } }, { "rule_key": "G-RULES-18-BODY-A-SHOULDER", "category": "body_shape", "priority": 90, "confidence": 0.95, "conditions": { "body_shape": "A型", "features": {"include": ["溜肩"]}, "goals": {"include": ["修饰溜肩"]} }, "effects": { "recommend": [ {"slot": "top", "attrs": {"shoulder": ["垫肩"], "sleeve": ["泡泡袖"]}} ], "avoid": [{"slot": "top", "attrs": {"silhouette": ["修身"]}}], "explanation": "溜肩需要用垫肩与泡泡袖在肩部建立结构感。" } }, { "rule_key": "G-RULES-19-TREND-CROP", "category": "trend", "priority": 50, "confidence": 0.7, "conditions": {"style": "甜酷"}, "effects": { "recommend": [{"slot": "top", "attrs": {"length": ["短款"]}}], "explanation": "短款上衣是当季甜酷风的核心单品。" } } ], "context": { "body_shape": "A型", "features": ["溜肩"], "goals": ["修饰溜肩"], "style": "甜酷", "user_taboos": ["露脐"], "occasion": "红毯" }, "expect": { "must_recommend": [ {"slot": "top", "attrs_include": {"shoulder": ["垫肩"]}}, {"slot": "top", "attrs_include": {"sleeve": ["泡泡袖"]}} ], "must_avoid": [ {"slot": "top", "attrs_include": {"length": ["露脐"]}}, {"slot": "shoes", "attrs_include": {"material": ["真皮"]}} ], "forbidden_recommend": [ {"slot": "top", "attrs_include": {"length": ["短款"]}}, {"slot": "shoes", "attrs_include": {"material": ["真皮"]}}, {"slot": "accessory", "attrs_include": {"material": ["真兽皮"]}} ], "hard_blocks_nonempty": true } }, { "name": "features-superset-still-matches-include", "rules": [ { "rule_key": "G-RULES-20-BODY-A-SHOULDER", "category": "body_shape", "priority": 90, "confidence": 0.95, "conditions": { "body_shape": "A型", "features": {"include": ["溜肩"]}, "goals": {"include": ["修饰溜肩"]} }, "effects": { "recommend": [ {"slot": "top", "attrs": {"shoulder": ["垫肩"], "sleeve": ["泡泡袖"]}} ], "avoid": [{"slot": "top", "attrs": {"silhouette": ["修身"]}}], "explanation": "溜肩需要用垫肩与泡泡袖在肩部建立结构感。" } } ], "context": { "body_shape": "A型", "features": ["溜肩", "宽胯"], "goals": ["修饰溜肩"] }, "expect": { "must_recommend": [ {"slot": "top", "attrs_include": {"shoulder": ["垫肩"]}} ], "hard_blocks_nonempty": false } }, { "name": "goals-partial-miss-blocks-rule", "rules": [ { "rule_key": "G-RULES-21-BODY-A-SHOULDER", "category": "body_shape", "priority": 90, "confidence": 0.95, "conditions": { "body_shape": "A型", "features": {"include": ["溜肩"]}, "goals": {"include": ["修饰溜肩"]} }, "effects": { "recommend": [ {"slot": "top", "attrs": {"shoulder": ["垫肩"], "sleeve": ["泡泡袖"]}} ], "avoid": [{"slot": "top", "attrs": {"silhouette": ["修身"]}}], "explanation": "溜肩需要用垫肩与泡泡袖在肩部建立结构感。" } } ], "context": { "body_shape": "A型", "features": ["溜肩"], "goals": ["显瘦"] }, "expect": { "forbidden_recommend": [ {"slot": "top", "attrs_include": {}} ], "hard_blocks_nonempty": false } } ]