summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsoryu <soryu@soryu.co>2026-01-27 00:33:48 +0000
committersoryu <soryu@soryu.co>2026-01-27 00:33:48 +0000
commit6e9694e584caf357b2b1cd1900ea43c837c7d9c2 (patch)
treeaf03bb16f280c65e37e375f4e1f25057de6dac82
parentf6802ec955255184830f932dd65e14489214b2ae (diff)
downloadsoryu-makima/task-task-6ee71606-6ee71606.tar.gz
soryu-makima/task-task-6ee71606-6ee71606.zip
Consolidate red team implementation from all task branchesmakima/task-task-6ee71606-6ee71606
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 <noreply@anthropic.com>
-rw-r--r--makima/src/server/handlers/contract_chat.rs2
-rw-r--r--makima/src/server/handlers/transcript_analysis.rs2
2 files changed, 4 insertions, 0 deletions
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 {