V10.552 收斂決策查詢新鮮度口徑

This commit is contained in:
OoO
2026-06-01 13:13:01 +08:00
parent e68c6c22d1
commit e0ed5cc732
5 changed files with 14 additions and 5 deletions

View File

@@ -99,6 +99,13 @@ def test_competitor_coverage_counts_only_active_product_intersection():
assert "WHERE p.status = 'ACTIVE'" in coverage_source
def test_competitor_decision_consumers_require_explicit_freshness():
source = (ROOT / "services" / "competitor_intel_repository.py").read_text(encoding="utf-8")
assert "(cp.expires_at IS NULL OR cp.expires_at > CURRENT_TIMESTAMP)" not in source
assert source.count("AND cp.expires_at > CURRENT_TIMESTAMP") >= 4
def test_competitor_ppt_and_ai_use_momo_minus_pchome_gap_direction():
ppt_source = (ROOT / "services" / "ppt_generator.py").read_text(encoding="utf-8")
route_source = (ROOT / "routes" / "openclaw_bot_routes.py").read_text(encoding="utf-8")