Join our Newsletter — 33% off our NHI Course

What breaks when teams let two LLM frameworks control the same execution path?

Overlapping control makes failures difficult to reproduce and upgrades hard to isolate. If two libraries both manage state, retries, or tool execution, a team can no longer tell which layer changed the behavior. The practical result is ambiguous traces, inconsistent outputs, and slower debugging. Each framework should own one clear responsibility inside the application.

Why This Matters for Security Teams

When two LLM frameworks share the same execution path, the result is not just messy code. It becomes a governance problem because responsibility for prompts, tool calls, retries, memory, and guardrails is no longer clear. That ambiguity weakens incident response, complicates change control, and makes it harder to prove which layer approved a given action. For agentic systems, that is a direct reliability and security concern, not a stylistic preference.

Security teams should treat framework overlap as an architectural risk because it can obscure audit trails and make unsafe behaviour look normal until a failure reaches production. This is especially relevant when tool use affects secrets, data retrieval, or external actions, since duplicated orchestration can trigger repeated calls or contradictory policies. The OWASP Agentic AI Top 10 is useful here because it frames agentic failure modes as control and trust issues, not just model quality issues.

In practice, many security teams encounter these problems only after a debugging incident exposes that no one can say which framework actually made the decision.

How It Works in Practice

The safest pattern is to assign one framework the orchestration role and force the other into a narrow supporting function, such as prompt construction, retrieval, or tool abstraction. If both frameworks can initiate tool execution, manage state, or apply retry logic, their behaviors can interfere in ways that are difficult to detect in testing. The same request may traverse different code paths depending on timing, cache state, or which wrapper handled the last error.

That creates several operational problems. First, traces become ambiguous because logs may show multiple decision points without a single authoritative controller. Second, retries can multiply, which increases the chance of duplicate actions against APIs, databases, or external systems. Third, guardrails can conflict, where one framework validates an action and the other later rewraps it without preserving the original decision context. This is especially risky in environments that process secrets or maintain stateful conversations across sessions.

  • Make one framework the source of truth for execution flow.
  • Keep memory, retries, and tool permissions in one layer only.
  • Log the framework boundary so traces show ownership clearly.
  • Test failure paths after every upgrade, not just happy paths.

For broader control design, the NIST AI Risk Management Framework helps teams separate governance, mapping, and measurement from runtime orchestration, while the NIST Cybersecurity Framework 2.0 reinforces the need for clear control ownership and change visibility. These controls tend to break down when teams chain multiple agent runtimes behind a shared API gateway because shared telemetry hides which framework initiated the action.

Common Variations and Edge Cases

Tighter orchestration control often increases integration overhead, requiring organisations to balance developer convenience against traceability and safe change management. That tradeoff becomes sharper in fast-moving AI products where teams want to mix and match frameworks for experimentation, but current guidance suggests that experimental flexibility should not come at the cost of runtime clarity.

Some teams try to reduce overlap by letting one framework handle planning and another handle execution. That can work, but only if the interface between them is explicit and one-way. There is no universal standard for this yet, so the practical rule is to avoid dual ownership of any function that can alter side effects. If both layers can modify retries, tool routing, or conversation state, the failure mode is not just duplication. It is non-determinism.

Edge cases also appear in hybrid environments where one framework manages local inference and another wraps external tools, or when a platform team imposes a framework below the application team’s chosen agent layer. In those cases, the control question is less about preference and more about whether the lower layer can silently change execution semantics. For agentic systems, that intersection is exactly where the Anthropic report on AI-orchestrated cyber espionage is instructive: once autonomy is layered, small control ambiguities can become operationally significant.

Best practice is evolving, but the stable principle is simple: one execution path, one authority, one audit trail.

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 MITRE ATLAS address the attack and risk surface, while NIST AI RMF, NIST AI 600-1 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP Agentic AI Top 10 A1 Overlapping orchestration creates agentic control ambiguity and unsafe tool execution.
NIST AI RMF GOVERN Shared execution paths weaken accountability and model/system governance.
NIST AI 600-1 MAP Dual frameworks obscure how GenAI behaviour is mapped and controlled in production.
NIST CSF 2.0 PR.IP-1 Execution-path overlap undermines controlled change management and operational consistency.
MITRE ATLAS AML.TA0002 Conflicting controllers can hide adversarial abuse of agent actions and tool use.

Instrument agent actions so abuse patterns and unauthorized tool calls remain visible.