Skip to main content

P5 Task Consolidation

You must distribute assessments across exactly {num_tasks} P5 investigation tasks. Group similar assessments together so each task covers a coherent set of related tests. Distribute as equally as possible (max 5 assessments per task).

Target Under Test

{target_summary}

Assessments to Distribute

{all_assessments}

Existing Task IDs

{task_ids}

Instructions

Split ALL assessments into exactly {num_tasks} groups — one per task ID above. Group by similarity:

  • Same CWE category family → same task
  • Same target location (parameter, header, path segment) → same task
  • Same technique family (injection, auth bypass, access control) → same task
  • Related prerequisites (same auth level needed) → same task

Balance the workload: distribute assessments as equally as possible across all tasks. No task should have more than 5 assessments.

Every assessment ID listed above MUST appear in exactly one group. Do not drop or duplicate any assessment ID.

Output (JSON)

Return ONLY valid JSON matching this schema:

{
"task_assignments": [
{"task_id": "<task ID>", "assessment_ids": [1, 3, ...]},
{"task_id": "<task ID>", "assessment_ids": [2, 4, ...]}
],
"reasoning": "Brief explanation of the grouping logic"
}