[comp] Production Deploy

Merged
GI
5mo ago
+555-18

This is an automated pull request to release the candidate branch into production, which will trigger a deployment.
It was created by the [Production PR] action.


Summary by cubic

Prevents org setup from failing when a published framework version points to deleted editor templates by reconciling manifest IDs with live tables and pruning dead references before inserts. Applies to both apps/api and apps/app, with tests covering stale-reference cases and the all-live path.

  • Bug Fixes
    • Drop missing control/policy/task/requirement IDs by checking live frameworkEditor* tables, avoiding P2003 FK errors (e.g., Task_taskTemplateId_fkey).
    • Resolve task automationStatus from live rows.
    • Remove dead requirement IDs from groupedRelations to prevent RequirementMap_requirementId_fkey failures.
    • Log pruned IDs for visibility.