gatelineAPI reference
  • A paused run as facts (#96, #348, #433). The instruction that says what clears the pause is the cockpit's, composed in web per reason; core states the reason, the budget, and — for escalation — which hand edit is owed.

    escalation is the hardest reason (#348), because it does not name a condition at all — only that a human is owed. Some of what it stands for clears itself; some of it (a contract dispute, a profile violation, a breakdown that never landed) has no exit but a hand edit, and there a resume is a closed loop: resolving is an acknowledgment, the engine re-derives from files nobody changed, and the run re-pauses within a tick. So core reads the resolved escalation's own words and names the edit.

    Parameters

    • state: {
          branch: string;
          budget:
              | null
              | {
                  cost_limit_usd: null
                  | number;
                  cost_spent_usd: null | number;
                  [key: string]: unknown;
              };
          closure: | null
          | {
              as: "already-delivered"
              | "superseded"
              | "obsolete"
              | "abandoned";
              at: null | string;
              by: null | string;
              reason: null | string;
              [key: string]: unknown;
          };
          escalations: {
              at: null
              | string;
              disposition: null | "re-review" | "return-to-implement" | "re-plan";
              from_role: null | string;
              reason: string;
              resolution: null | string;
              resolved: boolean;
              resolved_at: null | string;
              resolved_by: null | string;
              [key: string]: unknown;
          }[];
          gates: {
              G0: {
                  approved: boolean;
                  at: null
                  | string;
                  burden: null | "confirmation" | "light-correction" | "heavy-correction";
                  by: null | string;
                  notes: null | string;
                  [key: string]: unknown;
              };
              G1: {
                  approved: boolean;
                  at: null
                  | string;
                  burden: null | "confirmation" | "light-correction" | "heavy-correction";
                  by: null | string;
                  notes: null | string;
                  [key: string]: unknown;
              };
              G2: {
                  approved: boolean;
                  at: null
                  | string;
                  burden: null | "confirmation" | "light-correction" | "heavy-correction";
                  by: null | string;
                  notes: null | string;
                  [key: string]: unknown;
              };
              G3: {
                  approved: boolean;
                  at: null
                  | string;
                  burden: null | "confirmation" | "light-correction" | "heavy-correction";
                  by: null | string;
                  notes: null | string;
                  [key: string]: unknown;
              };
          };
          paused_reason: null
          | string;
          phase:
              | "spec"
              | "plan"
              | "implement"
              | "integrate"
              | "release"
              | "done"
              | "paused"
              | "closed";
          profile: "patch"
          | "standard"
          | "full";
          run: string;
          tasks: {
              id: string;
              review_rounds: number;
              status: string;
              [key: string]: unknown;
          }[];
      }

    Returns PausedFact