Skip to content

Turning Procedures Into Task Graphs: Steps, Dependencies and Partial Order

By Noah Loul · Reviewed by Noah Loul · Updated

  1. 01Your data spec
  2. 02Matched to businesses
  3. 03Rights and samples reviewed
  4. 04Licensed delivery
How it works with SourceX: Your data spec → Matched to businesses → Rights and samples reviewed → Licensed delivery.Illustrative

Short answer

A task graph turns a linear procedure into steps plus the dependencies between them: which steps must precede others, which can happen in any order, and which can run in parallel. Buyers specify node fields, edge types, the evidence behind each edge and validation tests. Graphs let planners reorder safely and let evaluators tell a real ordering error from a valid alternative.

Why a numbered list is not enough

Procedures are written as numbered lists because documents are linear. The work usually is not. Staging fasteners can happen at any point before they are needed; cleaning a groove must happen before a gasket goes in; isolating power must happen before a guard opens, whatever the physics allows.

Published procedural datasets show both kinds of order. FineBio's biology protocols have a strict order of steps but a flexible order of the atomic operations inside them (Yagi et al., 2024). Assembly101 recorded people assembling and disassembling toy vehicles without a script, mistakes included (Sener et al., 2022), so the same goal is reached through different orders.

If you train or evaluate against the numbered list, valid reorderings look like errors and a planner cannot interleave independent steps. A task graph records what the list leaves implicit.

This page covers dependency structure, meaning partial order. Decision points, where a condition selects one path or another, are a different structure, specified on branching procedures and decision points. The states that dependencies are built from are specified on preconditions and postconditions.

Graph elements

Nodes are procedure steps, each linked to its record in the procedure step schema. For long tasks, add subgoal nodes that group steps. Hierarchical task analysis is an established ergonomics method, originally developed to identify training needs, that decomposes goals this way (Stanton, 2006); where a supplier already holds such analyses, see hierarchical task analyses.

Edges carry a type, because not all "before" relations mean the same thing:

Edge typeMeaningTypical evidenceExample (illustrative)
hard_precedenceB cannot start until A is completeA produces a state B requiresGasket seated, then cover fitted
safety_precedenceB must follow A for safety, even if physically possible earlierCaution in the procedure; safety ruleIsolate power, then open guard
quality_precedenceOrder changes the quality of the result, not feasibilitySpec note; quality historyClean surface, then apply label
soft_preferenceDocumented order is customary; either order is acceptableReorderings observed without defectsRestock towels or toiletries first
resource_conflictSteps cannot overlap because they share a tool, hand or spaceTool list; workstation layoutTwo steps that need the one torque driver

Steps with no path between them may run in any order or in parallel. Safety-critical edges deserve their own review; safety-critical steps in procedures covers how to flag them.

Where edges come from

Record the evidence for every edge. Four sources are common, and they disagree often enough that provenance matters.

  1. Text cues. "After", "once", "do not ... until". Fast to extract, but documents leave many dependencies implicit.
  2. State reasoning. If step A's postcondition is step B's precondition, A precedes B. This catches implicit dependencies when pre- and postconditions are well specified.
  3. Observed executions. Across many recorded instances, orders that occur without defects show which swaps are acceptable. An order never observed is not proof of a dependency, only an absence of evidence. Research on procedure learning from multiple videos of the same task, such as EgoProceL's 62 hours of egocentric video from 130 subjects across 16 tasks with key-step annotations (Bansal et al., 2022), works from exactly this kind of repeated-execution data.
  4. Expert review. An engineer or supervisor confirms each hard and safety edge and signs the graph.

Illustrative graph specification

# Illustrative only — synthetic task graph for one procedure revision
graph_id: tg_WI-ASM-212_revE
source: {doc_id: WI-ASM-212, revision: E, site_scope: [site_031, site_034]}
nodes:
  - {id: n1, step_ref: s01, action: inspect, object: housing, produces: [housing_ok]}
  - {id: n2, step_ref: s02, action: clean, object: housing_groove, requires: [housing_ok], produces: [groove_clean]}
  - {id: n3, step_ref: s03, action: place, object: gasket, requires: [groove_clean], produces: [gasket_seated]}
  - {id: n4, step_ref: s04, action: stage, object: screws_m4_x4, produces: [screws_staged]}
  - {id: n5, step_ref: s05, action: fit, object: cover_plate, requires: [gasket_seated], produces: [cover_on]}
  - {id: n6, step_ref: s06, action: hand_start, object: screws_m4_x4, requires: [cover_on, screws_staged]}
edges:
  - {from: n1, to: n2, type: hard_precedence,    evidence: state,  confirmed_by: eng_03}
  - {from: n2, to: n3, type: quality_precedence, evidence: text,   confirmed_by: eng_03}
  - {from: n3, to: n5, type: hard_precedence,    evidence: state,  confirmed_by: eng_03}
  - {from: n5, to: n6, type: hard_precedence,    evidence: state,  confirmed_by: eng_03}
  - {from: n4, to: n6, type: hard_precedence,    evidence: state,  confirmed_by: eng_03}
free_nodes: [n4]                                 # may occur anywhere before n6
documented_order: [n1, n2, n3, n4, n5, n6]       # must be one valid topological order
observed: {instances: 214, distinct_orders: 5, instances_violating_hard_edges: 3}
validation: {acyclic: true, documented_order_valid: true, expert_review: 2026-05-02}

Field-level specification

ElementRequired fieldsOptional fields
Nodeid, step_ref, action, objects, requires, producesactor role, optional flag, repeatable flag, safety_critical flag
Edgefrom, to, type, evidence sourceconfidence, confirmed_by, note
Graphgraph_id, source document and revision, site scopeobserved instance count, distinct orders seen, review date

Keep state names in a controlled vocabulary shared with the step schema, so "gasket_seated" means the same thing in every graph that uses it.

How graphs get used

Acceptance tests

  • Acyclic. No dependency cycles.
  • Documented order valid. The procedure's own order is one valid ordering of the graph; if not, either the graph or the document is wrong.
  • Evidence complete. Every hard and safety edge has an evidence source and a named reviewer.
  • Observed conformance. Recorded instances that violate a hard edge are each reviewed: either the edge is wrong or the instance contains an error.
  • Full mapping. Every node maps to a procedure step, and every step maps to a node.
  • Safety review. Safety edges are confirmed by someone responsible for safety at the site.

Limitations

  • A graph encodes task logic, not skill. It contains no motion, force or perception data, and every node still needs demonstrations or robot data to execute.
  • Text-derived edges miss implicit dependencies; observation-derived edges need many instances and still cannot prove a dependency.
  • Graphs vary by site and equipment; a graph built at one site may not hold at another.
  • Over-constraining turns valid variation into errors; under-constraining can drop a safety edge. Err toward keeping safety edges.

Questions to ask suppliers and annotation vendors

  1. Do procedures state dependencies explicitly, or only as numbered order?
  2. Are recorded executions available, so observed orders can be compared with the document?
  3. Who at the site can confirm hard and safety dependencies, and will they sign the graph?
  4. Are hierarchical task analyses or time studies available for the same tasks?
  5. How will you represent steps that share a tool, hand or workstation?
  6. How do you handle differences in order between sites using the same procedure?
  7. Which procedure revision is each graph built from, and how will graphs be updated when it changes?

Discuss your requirements

If you need task graphs built from real workplace procedures, describe the tasks, sites and graph detail you need to SourceX. SourceX looks for US businesses that hold suitable procedures, checks the data and the supplier's licensing permissions, and coordinates the license and delivery. SourceX's role is sourcing, rights review, licensing and delivery coordination; it can also arrange annotation, scoped case by case. It reviews each requirement and follows up about potential sources; a request does not guarantee a match. See the procedures hub, the humanoid training data guide and the catalog entry for SOPs, playbooks and knowledge bases.

Explore sourcing and licensing options with SourceX

Sources

Frequently asked questions

What does a task graph add to a numbered procedure list for planning?

A task graph turns a linear procedure into steps plus the dependencies between them: which steps must precede others, which can happen in any order and which can run in parallel. Planners can then reorder safely, and evaluators can tell a real ordering error from a valid alternative.

What kinds of dependency edges should a task graph distinguish?

Edges carry a type because not all before relations mean the same thing. Hard precedence means a step cannot start until another is complete, safety precedence keeps a safety order even where another order is physically possible, and soft preference marks a customary order that is acceptable either way.

What evidence should back each edge in a task graph before it is trusted?

Each edge should record its evidence: text cues, state reasoning from pre- and postconditions, observed executions, or expert review. Hard and safety edges should be confirmed by a named reviewer, since an order never observed is not proof of a dependency.

Describe the data your robots need

Describe the tasks, modalities and permitted uses you need. SourceX reviews the requirement and follows up about potential sources; a request does not guarantee a match.

Discuss your humanoid training-data requirements with SourceX
See if you qualify