feat(tests): add Blue detect_procedure field mapped from template suggestion

Blue Team gets a detect_procedure field on Test (what they actually
did to detect the attack), Blue's counterpart to Red's procedure_text.
It's seeded from a new detect_suggested_procedure field on
TestTemplate at test-creation time, so a junior who later reuses the
same template starts with prior guidance instead of a blank field.

Also adds the procedure_suggestions review table and Test.source_template_id,
laying the groundwork for suggesting template improvements from filled-in
procedure fields (reviewed and approved by a lead, never auto-written).
detect_procedure is archived (not cleared) on Blue reopen, matching
blue_summary, and now appears in the Jira round-archived and blue_review
comments alongside the existing detection/containment fields.
This commit is contained in:
kitos
2026-07-14 14:58:29 +02:00
parent fd94e55799
commit 8bdbe48fbe
11 changed files with 127 additions and 1 deletions
+2
View File
@@ -31,6 +31,7 @@ class TestTemplateOut(BaseModel):
attack_procedure: str | None = None
# Assign expected_detection = None
expected_detection: str | None = None
detect_suggested_procedure: str | None = None
# Assign platform = None
platform: str | None = None
# Assign tool_suggested = None
@@ -70,6 +71,7 @@ class TestTemplateCreate(BaseModel):
attack_procedure: str | None = None
# Assign expected_detection = None
expected_detection: str | None = None
detect_suggested_procedure: str | None = None
# Assign platform = None
platform: str | None = None
# Assign tool_suggested = None