Skip to content
Français

WorkflowDecisionRecord

import type { WorkflowDecisionRecord } from "@elie-laloum/outpost";
  • verificationOptional
    WorkflowDecisionVerification | undefined
    Verified key identifier and verification time retained for audit; contains neither a private key nor a bearer token.
  • decidedAtRequired
    string
    ISO timestamp assigned when the decision was validated and recorded.
  • executionIdRequired
    string
    executionId of the run that paused the gate, from its WorkflowResult; any other value rejects the whole batch.
  • keyRequired
    string
    Key of the gate task being decided.
  • requestIdRequired
    string
    id of the gate’s pending request (WorkflowPauseRequest.id); a stale or unknown id rejects the whole batch.
  • actionRequired
    "resume" | "approve" | "reject"
    approve for an approval gate, resume for a pause gate, or reject for either. reject skips dependent tasks and fails the run.
  • actorRequired
    string
    One of the gate’s actors. Outpost trusts this name unless the gate is signed, in which case the proof’s key must be bound to it.
  • reasonRequired
    string
    Nonblank explanation of the decision, kept in the checkpoint.
export interface WorkflowDecisionRecord extends Omit<
  WorkflowDecision,
  "proof"
> {
  readonly verification?: WorkflowDecisionVerification;
  readonly decidedAt: string;
}