feat: add profile drift governance workflow

This commit is contained in:
Windows
2026-09-11 16:42:31 +08:00
parent 4088c634de
commit 852bafb374
11 changed files with 436 additions and 31 deletions
+3 -1
View File
@@ -28,7 +28,9 @@ async def generate_recommendation(
context: RequestContext = Depends(build_request_context), # noqa: B008
key: str | None = Header(default=None, alias="Idempotency-Key"),
) -> dict[str, object]:
return await ProductRecommendationService().generate(payload, context, key)
return await ProductRecommendationService(enforce_profile_governance=True).generate(
payload, context, key
)
@advisor_router.get("/recommendations/published")