A Runnable pipeline is a linear composition model where each step can be chained into the next and treated as one callable unit. It suits deterministic LLM workflows such as retrieval, prompting, and structured parsing, but it does not naturally express loops or persistent state.
Expanded Definition
A Runnable pipeline is a composable execution pattern in which each stage produces an output that becomes the next stage’s input, creating a single callable workflow. In LLM operations, that often means retrieval, prompt assembly, model invocation, and structured parsing are linked into a predictable sequence. The concept is useful because it keeps orchestration explicit, testable, and easier to reason about than ad hoc glue code. It is also narrower than a full agent architecture: a Runnable pipeline does not inherently decide when to branch, retry indefinitely, or preserve state across long-running tasks.
Definitions vary across vendors and frameworks, but the security-relevant distinction is consistent: a Runnable pipeline emphasises determinism and traceable data flow rather than autonomous decision-making. That makes it a practical fit for controlled LLM processing where organisations want repeatability and bounded behaviour. For governance context, the NIST Cybersecurity Framework 2.0 is useful for mapping pipeline integrity, access control, and change management to broader control expectations. The most common misapplication is treating a Runnable pipeline like an agentic system, which occurs when teams add hidden state, branching logic, or tool execution without re-evaluating security boundaries.
Examples and Use Cases
Implementing a Runnable pipeline rigorously often introduces rigidity, requiring organisations to weigh operational simplicity and auditability against reduced flexibility for exception handling.
- A retrieval workflow that sends a user query to a search step, then feeds top documents into a prompt, then parses the model output into a fixed schema.
- A policy summarisation flow that takes a document, extracts key clauses, generates a concise explanation, and stores the result as a controlled artefact.
- A support assistant that classifies an incoming request, generates a response draft, and validates the structure before release to a human reviewer.
- A security triage chain that enriches an alert with context, asks the model for prioritisation, and formats the result for SIEM or SOAR ingestion.
- A governance workflow that runs an internal NIST Cybersecurity Framework 2.0 mapping step before any prompt is executed, ensuring the pipeline stays within approved use cases.
These examples show why Runnable pipelines are often chosen for deterministic LLM tasks where the sequence matters more than autonomy. In practice, the design is most valuable when teams need repeatable outputs, fixed interfaces, and clear failure points rather than open-ended agent behaviour.
Why It Matters for Security Teams
Security teams care about Runnable pipelines because they define where control can be enforced in an LLM workflow. If each stage is predictable, teams can inspect inputs, validate outputs, log transformations, and isolate failures. That matters for prompt injection resilience, data handling boundaries, and change control, especially when the pipeline processes sensitive content or connects to internal systems. A linear model also helps with access governance: if a stage calls retrieval, secrets, or internal APIs, those dependencies can be reviewed and constrained as part of a known execution path.
The identity connection becomes important when a Runnable pipeline is used to handle user context, service credentials, or non-human identities that execute workflow steps on behalf of a system. Without explicit boundaries, the pipeline can quietly inherit privileges it should not have. For governance and operational hygiene, teams can also look to NIST Cybersecurity Framework 2.0 for control alignment and to NIST AI Risk Management Framework for broader AI risk governance.
Organisations typically encounter the limits of a Runnable pipeline only after a failure in a live workflow, at which point hidden state, weak validation, or uncontrolled tool access becomes operationally unavoidable to address.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Agentic AI Top 10 and OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST CSF 2.0, NIST AI RMF and NIST SP 800-63 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST CSF 2.0 | PR.AC-1 | Runnable pipelines rely on explicit access boundaries for each chained step. |
| NIST AI RMF | GOVERN | AI RMF governance applies to controlled orchestration and accountability in this workflow. |
| OWASP Agentic AI Top 10 | Agentic guidance distinguishes deterministic flows from autonomous tool-using behaviour. | |
| OWASP Non-Human Identity Top 10 | Pipeline steps often run under non-human identities with delegated execution authority. | |
| NIST SP 800-63 | IAL2 | Identity assurance matters when pipelines process user context or assertions. |
Inventory service identities and limit their permissions to the minimum required for each step.