Files
XingHuo/app/service/risk/scoring.py
T

19 lines
689 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"""R-05 动态评分预留接口(FR-7 · 本期静态映射,评分模型后置)。"""
from __future__ import annotations
from typing import Any
from app.repository.risk_repository import RiskRepository
def recompute_customer_score(
customer_id: str, risk_repo: RiskRepository | None = None
) -> dict[str, Any]:
"""重算客户 L3 risk_score(R-05 评分模型接入点,签名冻结)。
本期抛 NotImplementedError:score 口径一期保持 NULL(profile_l3 docstring
留痕);接入时同步将 merge_l3 的 risk_score 改为保留 existing 值。
"""
raise NotImplementedError("R-05 dynamic scoring not implemented (static mapping phase)")