Composing on the Fly

November 21, 2026 · Part 17 of 20

Opening Scene

A skilled jazz ensemble can improvise a genuinely new arrangement in real time, responding to how the performance is actually unfolding in the moment, rather than executing a piece that was composed and fixed well in advance. This isn’t chaos — it’s a different, more dynamic kind of structure, with its own internal logic, that just isn’t determined ahead of time the way a classical score is. Real-time responsiveness is its own legitimate mode, not a lesser version of careful advance planning.

Dynamic workflow generation, where a workflow’s actual structure is determined at runtime rather than fixed in advance, represents this same kind of shift, and it’s genuinely reshaping what “a workflow” even means in some contexts.

In Plain English

Dynamic DAG generation means a workflow’s actual task structure — what runs, in what order, with what dependencies — is determined programmatically at runtime, based on conditions only known when the workflow actually executes, rather than fully fixed in advance when the workflow is authored. This connects directly to the fixed-schedule limitations covered in Article 4, extended now to the workflow’s entire structure, not just its trigger timing.

The Old Way

Traditional workflow orchestration, largely reflecting the model described throughout most of this series, assumed a workflow’s structure was known and fixed at authoring time: this exact task, followed by that exact task, with dependencies mapped out explicitly in advance and rarely changing between runs.

This assumption worked well for genuinely stable, predictable processes, but it strained noticeably for workflows whose actual necessary structure depends on conditions only known at runtime — a variable number of files to process, task requirements determined dynamically based on real-time input, or a genuinely adaptive AI agent workflow whose next step depends on the previous step’s actual outcome, not a step predetermined in advance.

What’s Changing (and Why AI Is the Reason)

  1. Modern orchestration platforms increasingly support genuine dynamic DAG generation as a first-class capability. Rather than forcing a runtime-dependent process into a rigid, statically-defined structure, mature tools can generate a workflow’s actual task graph programmatically at execution time, based on real, current conditions rather than assumptions made in advance.
  2. AI agent workflows are a particularly strong driver of this shift, since an agent’s next step genuinely may not be known until the previous step completes. Unlike traditional deterministic tasks, an agent’s reasoning about how to accomplish something can legitimately produce a different sequence of steps each run, making static, predetermined structure a genuinely poor fit for this specific kind of work.
  3. AI-assisted validation is becoming essential specifically because dynamic structure is harder to reason about and test in advance. A workflow whose structure isn’t known until runtime is inherently harder to validate ahead of time than a fixed one. AI-assisted tooling that can simulate likely runtime conditions and check the resulting dynamically-generated structure for problems becomes a genuinely important safeguard, not just a nice-to-have.

The Metaphor, Fully Extended

Orchestra ElementDynamic DAG Generation Concept
A jazz ensemble improvising a new arrangement in real timeA workflow’s task structure generated programmatically at runtime
A classical score, fully fixed and known before the performance beginsA statically-defined DAG, fully known and fixed when the workflow is authored
A performance whose next passage depends on how the previous one actually wentAn AI agent workflow whose next step depends on the previous step’s actual outcome
A structure so dynamic that predicting it in advance genuinely isn’t possibleA workflow structure inherently harder to validate ahead of time than a fixed one
A seasoned bandleader who can still sense when an improvisation is going somewhere genuinely wrongAI-assisted validation checking dynamically-generated structure for problems

For Beginners: What to Actually Do

  • Practice distinguishing workflows with genuinely fixed, predictable structure from ones whose actual structure legitimately can’t be known until runtime — these need different tooling and different mental models.
  • Get comfortable with the idea that “the workflow” isn’t always a single, fixed thing you can fully diagram in advance — for dynamic workflows, the diagram itself is generated fresh each run.
  • Understand why AI agent workflows are a particularly strong driver of this shift: an agent’s next step genuinely may depend on what the previous step actually produced, not a script written in advance.
  • Notice that dynamic structure is inherently harder to reason about and test than fixed structure — this isn’t a minor technical detail, it’s a real added complexity worth respecting.

For Practitioners and Leaders: The Deeper Layer

  • Evaluate honestly which of your workflows genuinely need dynamic DAG generation versus which are being forced into unnecessary dynamism when a simpler, fixed structure would serve just as well with far less complexity.
  • Invest specifically in AI-assisted validation tooling for your dynamic workflows, recognizing that the inherent difficulty of testing runtime-generated structure in advance is a real, ongoing risk, not a one-time setup cost.
  • Anticipate that AI agent-driven work will increasingly demand dynamic DAG generation as a core capability, and evaluate whether your current orchestration platform genuinely supports this well or only nominally.
  • Build organizational familiarity with dynamic workflow patterns deliberately, since they require different debugging and reasoning skills than the static, fully fixed workflows most orchestration experience has historically been built around.

Quick Recap

  • Dynamic DAG generation means a workflow’s actual task structure is determined programmatically at runtime, rather than fully fixed in advance when it’s authored.
  • Traditional orchestration assumed fixed, known structure, which strains for processes whose actual requirements are only knowable at execution time.
  • AI agent workflows are a particularly strong driver of this shift, since an agent’s next step can genuinely depend on the previous step’s actual outcome.
  • Dynamic structure is inherently harder to validate in advance than fixed structure, making AI-assisted validation a genuinely important safeguard, not just a nice-to-have.

Where This Fits in the Series

Article 16 covered coordination becoming internalized among agents. This article covered structure determined dynamically at runtime. Article 18 looks at when a simple duet genuinely doesn’t need a conductor at all.