1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
//! Coarse-kind taxonomy for harness lifecycle events.
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)]
#[cfg_attr(feature = "schema-export", derive(schemars::JsonSchema))]
#[serde(rename_all = "snake_case")]
pub enum HarnessEventKind {
PlanningStarted,
PlanningCompleted,
ContinuationStarted,
ContinuationSkipped,
/// A turn was blocked before success could be confirmed. Carries the fuse
/// counters so UI layers can render without correlating multiple events.
TurnBlocked,
/// A bounded tool-free recovery pass was scheduled after blocked calls.
BlockedRecoveryStarted,
/// A bounded tool-free recovery pass finished.
BlockedRecoveryFinished,
BlockedHandoffWritten,
/// The owning session resolved its archived blocked handoff and removed
/// the live recovery pointer.
BlockedHandoffResolved,
EvaluationStarted,
EvaluationPassed,
EvaluationFailed,
RevisionStarted,
EscalationTriggered,
EscalationBypassed,
VerificationStarted,
VerificationPassed,
VerificationFailed,
/// Agent recovered from a transient error (e.g. after retry succeeded).
ErrorRecovered,
/// A transient tool failure triggered an automatic retry attempt.
ToolRetryAttempted,
/// Latency record for a tool execution, emitted on turn completion.
ToolLatencyRecorded,
/// A checkpoint snapshot was created for the current turn.
SnapshotCreated,
/// A checkpoint snapshot was restored (rewind operation).
SnapshotRestored,
/// The user granted additional session tool-call capacity and the
/// pending call will be retried in the same turn.
///
/// No longer emitted: the per-turn/session tool-call count budget was
/// removed. Retained for wire compatibility with older session logs.
SessionToolLimitIncreased,
/// The user granted additional tool-loop capacity for the current turn.
///
/// No longer emitted: the per-turn tool-loop budget was removed.
/// Retained for wire compatibility with older session logs.
ToolLoopLimitIncreased,
/// A background subprocess or exec session reached a terminal state.
BackgroundSubprocessCompleted,
/// A native delegated agent's public status and ancestry were observed.
DelegatedAgentStatus,
/// A message was sent to a peer session's mailbox.
SessionMessageSent,
/// A peer session's message was received from this session's mailbox.
SessionMessageReceived,
/// A mailbox message expired before delivery.
SessionMessageExpired,
/// A `/skills use` command finished in the skill side loop, outside any
/// turn. `status` is `completed` or `failed`; the item records the skill
/// so the run is never missing from the event log.
SkillCommandCompleted,
}