auto_detect_import_risks
Run deterministic schedule-risk detection on a project and persist any findings to the Risks tab. Detects: project-end overruns, overdue tasks, unassigned-task ratio above 30%, and stuck-at-99% tasks. Idempotent via dedupe — re-running does not pile up duplicates. Returns the count of NEW risks inserted (0 when all detected risks already exist). No LLM call, no plan gate. Use after import or when the Risks tab is empty and the user asks "are there any obvious problems with this project?"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | Yes | ID of the project to scan for schedule risks. |