Skip to content
Français

StuckEvent

import type { StuckEvent } from "@elie-laloum/outpost/core";
  • kindRequired
    "stuck"
    Always stuck: Outpost detected repeated decoded activity.
  • activityRequired
    "tool" | "file-change"
    Repeated decoded event category: tool or file-change.
  • nameOptional
    string | undefined
    Tool name when activity is tool; absent for file-change. Inputs and file payloads are not included.
  • repeatsRequired
    number
    Occurrences of the matching activity when the configured threshold was reached.
  • windowRequired
    number
    Configured maximum number of decoded activity events in the sliding window.
  • actionRequired
    "stop" | "warn" | "steer"
    Selected policy action: stop, warn or steer. An exhausted instruction allowance selects stop.
export interface StuckEvent {
  readonly kind: "stuck";
  readonly activity: "tool" | "file-change";
  readonly name?: string;
  readonly repeats: number;
  readonly window: number;
  readonly action: "stop" | "warn" | "steer";
}