agent_orchestrator/task_repository/command_run.rs
1/// Mutable command-run payload persisted by repository write operations.
2#[derive(Clone)]
3pub struct NewCommandRun {
4 /// Command-run identifier.
5 pub id: String,
6 /// Task-item identifier that owns the run.
7 pub task_item_id: String,
8 /// Logical phase name associated with the command.
9 pub phase: String,
10 /// Rendered command string that was executed.
11 pub command: String,
12 /// Pre-rendered command template containing unexpanded variable placeholders.
13 pub command_template: Option<String>,
14 /// Working directory used for the command.
15 pub cwd: String,
16 /// Workspace identifier for the run.
17 pub workspace_id: String,
18 /// Agent identifier selected for the run.
19 pub agent_id: String,
20 /// Exit code reported by the process.
21 pub exit_code: i64,
22 /// Path to the captured stdout log.
23 pub stdout_path: String,
24 /// Path to the captured stderr log.
25 pub stderr_path: String,
26 /// Start timestamp serialized for storage.
27 pub started_at: String,
28 /// End timestamp serialized for storage.
29 pub ended_at: String,
30 /// Non-zero when the run was interrupted.
31 pub interrupted: i64,
32 /// Structured machine output serialized as JSON.
33 pub output_json: String,
34 /// Structured artifact list serialized as JSON.
35 pub artifacts_json: String,
36 /// Optional confidence score emitted by the agent.
37 pub confidence: Option<f32>,
38 /// Optional quality score emitted by the agent.
39 pub quality_score: Option<f32>,
40 /// Validation status assigned after output checking.
41 pub validation_status: String,
42 /// Optional interactive session identifier.
43 pub session_id: Option<String>,
44 /// Origin of the structured output payload.
45 pub machine_output_source: String,
46 /// Optional path to a large structured output spill file.
47 pub output_json_path: Option<String>,
48}