Docs · Operate runs

tempergraph resume

Resume a paused, stopped or unfinished thread.

Answer a pause#

tempergraph attention lists everything waiting on a person. A pause says which step paused, why, and which decisions it accepts: proceed, retry (optionally with --feedback), back:<step> or stop.

shell
tempergraph attention
tempergraph resume <workflow> <thread> --decision retry --feedback 'Keep the table, shorten the intro'
tempergraph resume <workflow> <thread> --answers answers.json
tempergraph resume <workflow> <thread> --decision proceed --unit <step>   # when two parallel gates wait

--reason says why you decided. A person may leave it out; an agent that decides at a pause must give it, and the engine refuses its decision without one (exit 2, reason_missing, nothing changed). Use --ruling with your feedback when it should hold on every later attempt, not just the next one.

A thread stopped by stop continues with a plain tempergraph resume <workflow> <thread>, with no --decision. Every kind of pause and its answer is in Running workflows.

usage
tempergraph resume [-h] [--decision DECISION] [--answers FILE] [--apply-deadline] [--unit UNIT] [--reason REASON] [--unpin] [--escalate] [--feedback FEEDBACK | --feedback-file FEEDBACK_FILE] [--ruling] [--ruling-for UNITS] [--revoke-ruling ID] [--accept-external] [--executor EXECUTOR] [--judge-executor JUDGE_EXECUTOR] [--model MODEL] [--judge-model JUDGE_MODEL] [--timeout TIMEOUT] [--judge-timeout JUDGE_TIMEOUT] [--idle IDLE] [--run-cost-cap RUN_COST_CAP] [--daily-cap DAILY_CAP] [--auto-reopen AUTO_REOPEN] [--audit-rate AUDIT_RATE] [--audit-executor AUDIT_EXECUTOR] [--step-executor STEP=NAME] [--step-model STEP=ALIAS] [--approve STEP] [--grant UNIT=CAPABILITY[,…]] [--allow-command UNIT=PREFIX] [--enforce-tools] [--strict-permissions] [--caller {person,agent,pipeline,orchestrator,scheduler,engine}] [--as-agent] [--caller-app CALLER_APP] [--relayed] [--schedule FIRE_ID] [--json] [--carry] [--set KEY=VALUE] [--settings FILE] [--profile PROFILE] [--unset KEY] [--reload-settings] [--pause-before UNIT] [--dry-run] [--no-dry-run] workflow thread
ArgumentWhat it is
<workflow>the workflow of the thread
<thread>the thread: <workflow>/<task id>, or its alias
OptionWhat it does
--decision DECISIONone decision; repeat only for an ask's answer:<name>=<value>repeatable
--answers FILEa JSON file mapping an ask's questions to their answers
--apply-deadlineapply the overdue deadline of a wait or an ask
--unit UNITwhich pending gate the decision answers, when there are several
--reason {engine_defect,judge_error,environment,plan,request,other}why the decision is made, one of: engine_defect, judge_error, environment, plan, request, other; required when an agent decides at a pause, a person may omit it
--unpinclear the thread's engine pin when this engine can resume it
--escalatetake the offered one-step model escalation for the next attempt
--feedback FEEDBACKfeedback for the next attempt of the paused unit
--feedback-file FEEDBACK_FILEa file holding the feedback for the next attempt
--rulingthe feedback is a lasting ruling for this unit and every later one
--ruling-for UNITScomma-separated units the ruling applies to
--revoke-ruling IDrevoke a ruling by its id; repeatablerepeatable
--accept-externalallow a rewind past units that had external effects, such as a pushed branch
--executor EXECUTORthe executor of every step (sets steps.executor)
--judge-executor JUDGE_EXECUTORthe executor of every judge (sets judges.executor)
--model MODELthe model of every step, as an alias such as sonnet or opus (sets steps.model)
--judge-model JUDGE_MODELthe model of every judge, as an alias (sets judges.model)
--timeout TIMEOUTseconds a step session may run before it is stopped (sets steps.timeout_s)
--judge-timeout JUDGE_TIMEOUTseconds a judge session may run before it is stopped (sets judges.timeout_s)
--idle IDLEseconds a step session may stay silent before it is stopped (sets steps.idle_s)
--run-cost-cap RUN_COST_CAPthe most this run may spend, in USD; the run stops with exit 5 when it is reached (sets run.run_cost_cap_usd)
--daily-cap DAILY_CAPthe self-improvement loop's spending limit per UTC day, in USD (sets run.daily_cap_usd)
--auto-reopen AUTO_REOPENre-open a run that ended on spent retries, a step timeout or an infrastructure failure up to N times (sets run.auto_reopen)
--audit-rate AUDIT_RATEthe chance, 0 to 1, that a second judge audits a judgement; the audit never changes the verdict (sets run.audit_rate)
--audit-executor AUDIT_EXECUTORthe executor of the audit judge (sets run.audit_executor)
--step-executor STEP=NAMEthe executor of one step; repeatablerepeatable
--step-model STEP=ALIASthe model of one step; repeatablerepeatable
--approve STEPadd a person's approval pause at this step's gate; repeatablerepeatable
--grant UNIT=CAPABILITY[,…]give a unit extra tool capabilities for this run; repeatablerepeatable
--allow-command UNIT=PREFIXlet a unit run shell commands that start with this prefix; repeatablerepeatable
--enforce-toolslimit each step to the tools it declares; a step on an executor that cannot enforce them is refused
--strict-permissionsenforce declared tools, refuse undeclared ones and never run an executor in an automatic-approval mode
--caller {person,agent,pipeline,orchestrator,scheduler,engine}who is calling: person, agent or pipeline (the others are kept for the engine's own supervisors); a declaration can only lower trust
--as-agentthe same as --caller agent
--caller-app CALLER_APPthe name of the calling agent or pipeline application, recorded with the call
--relayedthe decision is a person's, carried by an agent; checked against the person's last turn
--schedule FIRE_IDreserved to the schedule tick: needs its fire token
--jsonprint the outcome as JSON
--carrykeep this thread's state on its own git branch so another machine can pick it up
--set KEY=VALUEset one run setting for this thread; repeatable (tempergraph config show lists the keys)repeatable
--settings FILEa JSON map of keys to values, recorded as flags
--profile PROFILEapply a named settings profile from the settings files; repeatablerepeatable
--unset KEYdrop a setting given by a flag on an earlier call; repeatablerepeatable
--reload-settingsread the settings files and profiles again instead of the thread's snapshot
--pause-before UNITpause before this unit starts; repeatablerepeatable
--dry-runself-improvement files nothing; every step runs (the flag run.loop_dry_run true)
--no-dry-runself-improvement files; ends a dry run (the flag run.loop_dry_run false)

Edit this page on GitHub · engine 0.9.0