Explorar o código

feat(attribution): implement guhe.lowSide.noSupplement (S-cfc-118) T4 low-side no-supplement redline

- AttributionLowSideRules: add RULE_NO_SUPPLEMENT=no_supplement and NO_SUPPLEMENT_HINT (偏低不推荐补菌口径)
- AttributionComplianceGate.LowSideNode: expose isNoSupplement() (low-side nodes constant true)

TDD: GuheLowSideNoSupplementContractTest 6/6 green (was 3/3 red for the missing API)
Agnes Agent hai 1 semana
pai
achega
8b890eb221

+ 7 - 0
cfc-backend/src/main/java/com/etotem/cfc/constant/AttributionLowSideRules.java

@@ -38,6 +38,13 @@ public final class AttributionLowSideRules {
     public static final String GROUP_CODE_2 = "G-2";
     public static final String GROUP_TITLE_2 = "16S 粒度拦截组(granularity != strain 禁生成含菌株号的商品推荐)";
 
+    /** T4 低位补菌红线(L4-3):无成熟证据支持「缺 X→补 X」 */
+    public static final String RULE_NO_SUPPLEMENT = "no_supplement";
+
+    /** T4 期望的「偏低不推荐补菌」口径常量 */
+    public static final String NO_SUPPLEMENT_HINT =
+            "偏低不推荐补菌:无成熟证据支持缺X→补X,仅作关联提示。";
+
     /** T6 G-2 规则码:非菌株级粒度禁生成含菌株号的商品推荐(叠加 §5.2 16S 粒度声明) */
     public static final String RULE_NO_STRAIN_RECOMMENDATION = "no_strain_recommendation";
 

+ 5 - 0
cfc-backend/src/main/java/com/etotem/cfc/service/attribution/AttributionComplianceGate.java

@@ -71,6 +71,11 @@ public class AttributionComplianceGate {
         public boolean isAssociationOnly() {
             return true; // 低侧红线组恒为「仅关联」
         }
+
+        /** T4(L4-3)低位补菌红线:任意「偏低」归因节点恒标注禁补菌(源头拦截,非门禁回扫)。 */
+        public boolean isNoSupplement() {
+            return true;
+        }
     }
 
     /** 单条合规违规 */