Skip to content
Français

RunReport

import type { RunReport } from "@elie-laloum/outpost/core";
  • versionRequired
    1
    JSON snapshot schema version, currently 1.
  • completedRequired
    boolean
    Whether dispatch matched its completion condition; this does not certify passing tests or successful tools.
  • textRequired
    string
    Final dispatch answer, joined across cold passes and masked by inherited redact patterns. Markdown renders it as literal text.
  • branchRequired
    string
    Work branch recorded before the workspace closes; it is not a pull-request URL.
  • commitsRequired
    readonly Commit[]
    Commit identities and subjects collected during this dispatch, including every cold pass.
  • durationMsRequired
    number
    Wall-clock dispatch duration in milliseconds, including preparation, execution, synchronization and owned-resource cleanup; warm dispatch leaves borrowed resources open.
  • usageRequired
    Usage
    Cumulative reported token usage, including repairs, steering, fallback attempts and subagents; zero counters alone do not prove no consumption.
  • costRequired
    UsageCost | null
    Estimate from dispatch prices and cumulative model usage, or null without prices or when calculation fails. complete=false marks known partial charges, never an invoice.
  • diffRequired
    RunReportDiff | null
    Net committed diff frozen after synchronization and before workspace cleanup, or null when inspection fails. Excludes uncommitted and untracked files.
  • failedToolsRequired
    readonly RunReportFailure[]
    Up to 100 failed tool-result events in observation order, correlated with tool calls by dispatch, pass, subagent and call ID. Includes shell and non-shell tools; unsupported agent events cannot be inferred.
  • omittedFailuresRequired
    number
    Number of observed failures beyond the 100-entry report limit; these do not appear in failedTools.
  • warningsRequired
    readonly string[]
    Collection limitations such as unavailable Git statistics, lost observation events, truncated descriptions or uncomputable cost. These do not change dispatch success.
export interface RunReport {
  readonly version: 1;
  readonly completed: boolean;
  readonly text: string;
  readonly branch: string;
  readonly commits: readonly Commit[];
  readonly durationMs: number;
  readonly usage: Usage;
  readonly cost: UsageCost | null;
  readonly diff: RunReportDiff | null;
  readonly failedTools: readonly RunReportFailure[];
  readonly omittedFailures: number;
  readonly warnings: readonly string[];
}