Files
luma/Sources/LumaCore/Models/Mission/MissionStatus.swift
Ole André Vadla Ravnås 5d0748515b mission: Add goal-driven agent loop
LLM agent for user-stated RE goals: propose-and-approve over the
existing RPC, evidence-grounded findings, collab via the op-outbox
pattern. Anthropic / OpenAI / local-OAI providers. r2ai used for
explain_function when the plugin is loaded; falls back to the
mission's own provider otherwise.
2026-05-09 12:54:14 +02:00

59 lines
1.3 KiB
Swift

import Foundation
public enum MissionStatus: String, Codable, Sendable, CaseIterable {
case drafting
case running
case awaitingApproval = "awaiting_approval"
case paused
case completed
case failed
case cancelled
public var isTerminal: Bool {
switch self {
case .completed, .failed, .cancelled: return true
case .drafting, .running, .awaitingApproval, .paused: return false
}
}
public var isLive: Bool { !isTerminal }
}
public enum MissionActionStatus: String, Codable, Sendable, CaseIterable {
case pending
case approved
case rejected
case running
case succeeded
case failed
}
public enum MissionFindingConfidence: String, Codable, Sendable, CaseIterable {
case low
case medium
case high
}
public enum MissionFindingStatus: String, Codable, Sendable, CaseIterable {
case proposed
case accepted
case refuted
case superseded
}
public enum MissionTurnRole: String, Codable, Sendable, CaseIterable {
case user
case assistant
case tool
}
public enum MissionEvidenceKind: String, Codable, Sendable, CaseIterable {
case event
case hookHit = "hook_hit"
case disasmSpan = "disasm_span"
case memoryRead = "memory_read"
case symbolMatch = "symbol_match"
case insight
case action
}