vtcode-exec-events 0.185.5

Structured execution telemetry event schema used across VT Code crates.
Documentation
//! 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,
}