Member Junction
    Preparing search index...
    Index

    Constructors

    Methods

    • Cancels a graph, everything in it that has not already settled, and everything it started.

      Cancels children first: a parent marked Cancelled while children are still Pending would leave the dispatcher free to pick those children up, which is the opposite of what the caller asked for.

      The verdict is the outcome, not the attempt (R2-9). This returned true unconditionally while logging each child that failed to cancel — so one failed save left that child Pending, told the caller cancellation had succeeded, and let the dispatcher run the child afterwards. The graph could then settle Complete and ANNOUNCE ITS COMPLETION into the conversation of a workflow the user had cancelled. A partial cancel now says so and names what survived; the graph stays active, so retrying is meaningful rather than cosmetic.

      Parameters

      Returns Promise<TaskGraphCancelResult>

    • Marks a step Complete with an operator-supplied output.

      Human steps are refused here on purpose: they already have a first-class completion path (TaskGraph.CompleteTask) with the assignee/elevation check, and this verb must not become the door that bypasses it.

      Parameters

      Returns Promise<{ ErrorMessage?: string; Success: boolean }>

    • Pauses a graph: nothing new is claimed until it is resumed. In-flight steps finish naturally and their completions land — a pause gates claiming and never touches a live claim, which is why there is no "what happens to the claim" question to answer.

      Parameters

      Returns Promise<
          { Debug?: TaskGraphDebugState; ErrorMessage?: string; Success: boolean },
      >

    • Returns a failed task to Pending so the dispatcher can run it again.

      Also clears any Blocked dependents, since they were only blocked because this task failed — leaving them blocked would make the retry pointless, as the graph still could not progress past this node.

      Parameters

      Returns Promise<boolean>

    • Replaces the graph's breakpoint set. Every ID must name a child of this graph — a breakpoint on a task in some other graph would gate nothing and silently lie to the person who set it.

      Parameters

      Returns Promise<
          { Debug?: TaskGraphDebugState; ErrorMessage?: string; Success: boolean },
      >

    • Declares a Pending step not-taken. Downstream dependents proceed — Skipped satisfies a prerequisite — and any open human request for the step is withdrawn so nobody keeps seeing an ask for work the operator decided against.

      Parameters

      Returns Promise<{ ErrorMessage?: string; Success: boolean }>

    • Arms a one-shot step allowance on a paused graph: 'one' releases the next eligible task, 'wave' releases the current frontier, a task ID releases exactly that task. The dispatcher consumes the allowance CAS-style, so two instances stepping the same graph release work once.

      Parameters

      Returns Promise<
          { Debug?: TaskGraphDebugState; ErrorMessage?: string; Success: boolean },
      >

    • Replaces a Pending step's input — the "edit the brief before stepping" move at a breakpoint. Applies to this run only; the step must not have started.

      A guarded statement, not load-check-save. The in-memory Status === 'Pending' check plus task.Save() is an unconditional full-row UPDATE: a task claimed in the window between the load and the save has its claim columns reverted to the pre-claim snapshot while its body runs, and a second instance then claims it again — the step executes twice. See TaskClaimStore.TryUpdateInputPayload, which makes the check and the write one atomic operation whose rowcount is the answer.

      Parameters

      Returns Promise<{ ErrorMessage?: string; Success: boolean }>