summaryrefslogtreecommitdiff
path: root/makima/src/server/handlers/transcript_analysis.rs
diff options
context:
space:
mode:
authorsoryu <soryu@soryu.co>2026-01-17 06:05:21 +0000
committersoryu <soryu@soryu.co>2026-01-17 16:38:44 +0000
commit06fb883b2b7a49c7123722463d24b0b4e57c3277 (patch)
tree9c0d07daeff90fa31cea320171a8678133fab801 /makima/src/server/handlers/transcript_analysis.rs
parent2f62df1cc89a23a5bd30e1a3f68a39bcfce9665c (diff)
downloadsoryu-06fb883b2b7a49c7123722463d24b0b4e57c3277.tar.gz
soryu-06fb883b2b7a49c7123722463d24b0b4e57c3277.zip
Add phase_guard field to Contract model and database
This adds a new boolean field to control whether the supervisor should wait for user confirmation before progressing to the next phase. When enabled, users can review and potentially amend phase outputs (like plans, requirements docs) before the contract continues. Changes: - Add migration for phase_guard column (defaults to false) - Add phase_guard to Contract, CreateContractRequest, and UpdateContractRequest structs - Update create_contract_for_owner and update_contract_for_owner repository functions to handle phase_guard - Update all CreateContractRequest instantiations with phase_guard field Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Diffstat (limited to 'makima/src/server/handlers/transcript_analysis.rs')
-rw-r--r--makima/src/server/handlers/transcript_analysis.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/makima/src/server/handlers/transcript_analysis.rs b/makima/src/server/handlers/transcript_analysis.rs
index 275905e..99f9ea7 100644
--- a/makima/src/server/handlers/transcript_analysis.rs
+++ b/makima/src/server/handlers/transcript_analysis.rs
@@ -277,6 +277,7 @@ pub async fn create_contract_from_analysis(
contract_type: Some("specification".to_string()),
initial_phase: Some("research".to_string()),
autonomous_loop: None,
+ phase_guard: None,
};
let contract = match repository::create_contract_for_owner(pool, auth.owner_id, contract_req).await {