summaryrefslogtreecommitdiff
path: root/makima/src/db
diff options
context:
space:
mode:
authorsoryu <soryu@soryu.co>2026-01-19 17:40:25 +0000
committersoryu <soryu@soryu.co>2026-01-19 17:40:25 +0000
commit164941cbd591b46f69a034bb9b86521fd7700ddb (patch)
treea11f4dc7196f6e00c7d52da1cfc6aa982cce60aa /makima/src/db
parent0833fb1f30c0c3b920157deb882e0e902c3af02a (diff)
downloadsoryu-164941cbd591b46f69a034bb9b86521fd7700ddb.tar.gz
soryu-164941cbd591b46f69a034bb9b86521fd7700ddb.zip
Remove 'task' type contract
Diffstat (limited to 'makima/src/db')
-rw-r--r--makima/src/db/models.rs37
1 files changed, 0 insertions, 37 deletions
diff --git a/makima/src/db/models.rs b/makima/src/db/models.rs
index 65f7168..291fad7 100644
--- a/makima/src/db/models.rs
+++ b/makima/src/db/models.rs
@@ -1049,9 +1049,6 @@ pub struct MergeCompleteCheckResponse {
// Contract Types
// =============================================================================
-/// Contract type constant for task (adhoc) contracts
-pub const CONTRACT_TYPE_TASK: &str = "task";
-
/// Contract type determines the workflow and required documents
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize, ToSchema)]
#[serde(rename_all = "lowercase")]
@@ -1067,11 +1064,6 @@ pub enum ContractType {
/// - Execute: implement according to specs
/// - Review: verify against specifications
Specification,
- /// Task type for adhoc one-off tasks
- /// - Single "execute" phase
- /// - No supervisor created
- /// - Auto-archives on completion
- Task,
}
impl Default for ContractType {
@@ -1085,7 +1077,6 @@ impl std::fmt::Display for ContractType {
match self {
ContractType::Simple => write!(f, "simple"),
ContractType::Specification => write!(f, "specification"),
- ContractType::Task => write!(f, "task"),
}
}
}
@@ -1097,7 +1088,6 @@ impl std::str::FromStr for ContractType {
match s.to_lowercase().as_str() {
"simple" => Ok(ContractType::Simple),
"specification" => Ok(ContractType::Specification),
- "task" => Ok(ContractType::Task),
_ => Err(format!("Unknown contract type: {}", s)),
}
}
@@ -1923,30 +1913,3 @@ pub struct ForkPoint {
pub checkpoint: Option<TaskCheckpoint>,
pub timestamp: DateTime<Utc>,
}
-
-// =============================================================================
-// Adhoc Task Types (for one-off tasks without supervisor overhead)
-// =============================================================================
-
-/// Request payload for creating an adhoc (one-off) task.
-/// Creates a minimal "task" type contract with a single task, no supervisor.
-#[derive(Debug, Deserialize, ToSchema)]
-#[serde(rename_all = "camelCase")]
-pub struct AdhocTaskRequest {
- /// Name/description of the task
- pub name: String,
- /// The plan/instructions for the task
- pub plan: String,
- /// Repository URL (optional)
- pub repository_url: Option<String>,
- /// Base branch to work from
- pub base_branch: Option<String>,
-}
-
-/// Response for adhoc task creation
-#[derive(Debug, Serialize, ToSchema)]
-#[serde(rename_all = "camelCase")]
-pub struct AdhocTaskResponse {
- pub contract: ContractSummary,
- pub task: Task,
-}