Skip to content

Commit c95c4a0

Browse files
[dev] [tofikwest] tofik/fix-onboard-organization-risk-category-validation (#2047)
* fix(onboarding): clarify risk category requirements in onboarding helper * fix(onboarding): refine category value instructions in onboarding helper --------- Co-authored-by: Tofik Hasanov <annexcies@gmail.com>
1 parent a8068c7 commit c95c4a0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

apps/app/src/trigger/tasks/onboarding/onboard-organization-helpers.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,9 @@ export async function extractRisksFromContext(
759759
}),
760760
system: `Create a list of 8-12 risks that are relevant to the organization. Use action-oriented language, assume reviewers understand basic termilology - skip definitions.
761761
Your mandate is to propose risks that satisfy both ISO 27001:2022 clause 6.1 (risk management) and SOC 2 trust services criteria CC3 and CC4.
762-
Return the risk name, description, treatment strategy, treatment strategy description, residual probability, residual impact, category, and department.`,
762+
Return the risk name, description, treatment strategy, treatment strategy description, residual probability, residual impact, category, and department.
763+
764+
For the "category" field, you must use ONLY one of these exact values: ${Object.values(RiskCategory).join(', ')}.`,
763765
prompt: `
764766
The organization is ${organizationName}.
765767

0 commit comments

Comments
 (0)