Skip to content
Français

RecipeReport

  • observationIdOptional
    string | undefined
    Tracking ID returned by a workflow using createObservation(); use it with observation.readRun/watchRun. Distinct from the durable recipe runId used by status and resume, especially after explicit recovery selects a new observation ID.
  • workspaceInfoOptional
    FileWorkspaceRecord | undefined
    Versioned workspace description retaining ownership, settled generation and recovery references.
  • fileOutputsOptional
    readonly WorkspacePublication[] | undefined
    Verified publication results, separate from Git commits and branch integration.
  • integrationOptional
    ConflictResolution | undefined
    Conflict resolution commit, verification and agent usage, reported separately from workflow usage when integration invokes a resolver.
  • runIdOptional
    string | undefined
    Checkpoint run ID for a durable recipe invocation.
  • inputRequestsOptional
    readonly WorkflowInputRequest[] | undefined
    Persisted dialogue questions awaiting an authorized answer.
  • observerErrorsOptional
    readonly RecipeDiagnostic[] | undefined
    Failures while closing owned observer components, reported without changing the execution status. Secret values selected by this runtime are redacted.
  • nameRequired
    string
    Recipe name associated with this invocation.
  • executionIdOptional
    string | undefined
    Workflow execution identifier, present once the workflow has started.
  • statusRequired
    "failed" | "done" | "cancelled" | "rejected" | "waiting-input" | "paused"
    Final invocation status including integration, cancellation and sandbox cleanup.
  • workflowStatusOptional
    "failed" | "done" | "cancelled" | "rejected" | "waiting-input" | "paused" | undefined
    Workflow task outcome before integration and cleanup.
  • tasksRequired
    readonly Readonly<TaskRecord>[]
    Task execution records returned by the workflow.
  • usageOptional
    WorkflowUsage | undefined
    Aggregated workflow usage when an execution result is available.
  • outputsRequired
    Readonly<Record<string, Readonly<Record<string, WorkflowJson>>>>
    Completed task outputs: bounded text fields for legacy recipes, explicit JSON projections for format 3. Value, callback, loop and decision tasks expose their result under value; dispatch results retain conversation and workspace references without methods.
  • errorsRequired
    readonly RecipeDiagnostic[]
    Bounded diagnostics for task, integration and cleanup failures.
  • workspaceOptional
    { readonly branch: string; readonly directory: string; readonly retainedDirectory?: string; } | undefined
    Shared workspace and retained-directory information when this execution allocated a shared sandbox. Absent for data-only and exclusively isolated workflows.
export interface RecipeReport {
  readonly observationId?: string;
  readonly workspaceInfo?: FileWorkspaceRecord;
  readonly fileOutputs?: readonly WorkspacePublication[];
  readonly integration?: ConflictResolution;
  readonly runId?: string;
  readonly inputRequests?: WorkflowResult["inputRequests"];
  readonly observerErrors?: readonly RecipeDiagnostic[];
  readonly name: string;
  readonly executionId?: string;
  readonly status: WorkflowResult["status"];
  readonly workflowStatus?: WorkflowResult["status"];
  readonly tasks: WorkflowResult["tasks"];
  readonly usage?: WorkflowResult["usage"];
  readonly outputs: Readonly<
    Record<string, Readonly<Record<string, WorkflowJson>>>
  >;
  readonly errors: readonly RecipeDiagnostic[];
  readonly workspace?: {
    readonly branch: string;
    readonly directory: string;
    readonly retainedDirectory?: string;
  };
}