Skip to content
Français

FileRunReport

import type { FileRunReport } from "@elie-laloum/outpost/core";
  • versionRequired
    2
    File execution report format version 2, distinct from legacy Git report version 1.
  • workspaceInfoRequired
    FileWorkspaceRecord
    Versioned workspace description retaining ownership, settled generation and recovery references.
  • fileOutputsRequired
    readonly WorkspacePublication[]
    Verified publication results, separate from Git commits and branch integration.
  • textRequired
    string
    Final dispatch answer, joined across cold passes and masked by inherited redact patterns. Markdown renders it as literal text.
  • usageRequired
    Usage
    Cumulative reported token usage, including repairs, steering, fallback attempts and subagents; zero counters alone do not prove no consumption.
  • completedRequired
    boolean
    Whether dispatch matched its completion condition; this does not certify passing tests or successful tools.
  • durationMsRequired
    number
    Wall-clock dispatch duration in milliseconds, including preparation, execution, synchronization and owned-resource cleanup; warm dispatch leaves borrowed resources open.
  • 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.
  • 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 FileRunReport extends Omit<
  RunReport,
  "version" | "branch" | "commits" | "diff"
> {
  readonly version: 2;
  readonly workspaceInfo: FileWorkspaceRecord;
  readonly fileOutputs: readonly WorkspacePublication[];
}