From 6e9694e584caf357b2b1cd1900ea43c837c7d9c2 Mon Sep 17 00:00:00 2001 From: soryu Date: Tue, 27 Jan 2026 00:33:48 +0000 Subject: Consolidate red team implementation from all task branches This commit consolidates changes from the following tasks: - cf6b0127: Database migrations (contracts, tasks, notifications tables) - 92499d2c: Rust models (RedTeamNotification, NotificationSeverity, fields) - fa404575: Repository functions (create_red_team_notification, etc.) - a89b9f00: API handler module (mesh_red_team.rs with notify/status endpoints) - 5cf8ab1f: Auto-spawn logic (spawn_red_team_task in mesh_supervisor.rs) Features included: - Database migrations for red_team_enabled and red_team_prompt on contracts - is_red_team field on tasks - RedTeamNotification model and repository functions - REST API endpoints for red team notifications - Auto-spawn of red team tasks when work tasks start - Red team plan generation with customizable prompts Co-Authored-By: Claude Opus 4.5 --- makima/src/server/handlers/contract_chat.rs | 2 ++ makima/src/server/handlers/transcript_analysis.rs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/makima/src/server/handlers/contract_chat.rs b/makima/src/server/handlers/contract_chat.rs index 1989d81..dac806a 100644 --- a/makima/src/server/handlers/contract_chat.rs +++ b/makima/src/server/handlers/contract_chat.rs @@ -2589,6 +2589,8 @@ async fn handle_contract_request( autonomous_loop: None, phase_guard: None, local_only: None, + red_team_enabled: None, + red_team_prompt: None, }; let contract = match repository::create_contract_for_owner(pool, owner_id, contract_req).await { diff --git a/makima/src/server/handlers/transcript_analysis.rs b/makima/src/server/handlers/transcript_analysis.rs index c961242..3c283da 100644 --- a/makima/src/server/handlers/transcript_analysis.rs +++ b/makima/src/server/handlers/transcript_analysis.rs @@ -279,6 +279,8 @@ pub async fn create_contract_from_analysis( autonomous_loop: None, phase_guard: None, local_only: None, + red_team_enabled: None, + red_team_prompt: None, }; let contract = match repository::create_contract_for_owner(pool, auth.owner_id, contract_req).await { -- cgit v1.2.3