LLM Performance Depends on the Execution Framework, Not Luck
Why do large language models seem inconsistent in real-world use? This article argues that most "random failures" come from uncontrolled variables in the execution framework—tool definitions, context engineering, and task-capability matching—rather than the model itself. It explains how to evaluate LLM performance with measurable metrics, outlines the four core capabilities an enterprise-grade agent framework should provide (flexible execution locations, tiered permissions, usage governance, and hardware compatibility), and offers three practical selection recommendations.
LLM Performance Depends on the Execution Framework, Not Luck
1. Clarifying the Concepts: What the Model Does vs. What the Framework Does
Before debating “which execution framework pairs best with which model,” we need a clear mental model. A large language model (LLM) is responsible for understanding intent, planning steps, generating text, and producing tool-call instructions. The execution framework—often called a harness or agent runtime—is responsible for safely and reliably carrying out those instructions in a real environment: reading and writing files, executing commands, managing context, handling permissions, and recording audit logs.
The reason online reviews of the same model vary so wildly is rarely the model “being random.” More often, three variables were not controlled:
- The quality of tool definitions in the framework. Whether tool descriptions, parameter constraints, and return formats are clearly written directly determines the model’s tool-calling accuracy. The same model will frequently hallucinate parameters in a framework with sloppy tool definitions, while performing consistently in one with rigorous definitions.
- The quality of context engineering. How the system prompt is organized, how conversation history is trimmed, and how retrieval results are injected are all determined by the framework. If the context is overstuffed or key information gets truncated, even the best model will fail.
- The match between task and capability. Handing a task that requires precise numerical computation to a purely generative pipeline, or assigning a multi-file refactoring job to a single-turn Q&A framework, guarantees failure.
Therefore, the question “is this model good?” should be reframed in engineering terms: “On my task distribution, what is the success rate when model capability is combined with the framework’s engineering capability? What are the failure modes, and are they controllable?”
2. Evaluation Criteria: Replace Subjective Impressions with Observable Metrics
To avoid being misled by fragmented anecdotes online, build your own evaluation set. The method is as follows:
Step 1: Collect 20 to 50 real task samples covering your team’s most common scenarios—knowledge base Q&A, code modification, data analysis, document generation, and so on. Annotate each sample with the expected output and acceptable boundaries.
Step 2: Fix the model and inference parameters, vary only the framework or framework configuration, run in batch, and record three metrics: task completion rate, tool-call error rate, and average number of interaction rounds.
Step 3: Perform root-cause classification on the failures: did the model misunderstand, did the framework execute the instruction incorrectly, or was it a permission/environment issue? After attribution, you will find that many “the model is bad” cases are actually caused by context truncation or incompatible tool return formats in the framework.
The benefit of this approach is that it converts the “lottery feeling” into fixable engineering problems.
3. Four Core Capabilities of an Enterprise-Grade Framework
Drawing on common designs of private-deployed enterprise agent platforms, a qualified execution framework must address at least the following areas.
3.1 Flexible Execution Locations: Server-Side Sandbox and Desktop Local Execution
In server-side mode, every command the agent executes and every file it reads or writes must land in a sandbox container dedicated to that conversation. The reason is straightforward: servers are shared by multiple users and may hold database connections, secrets, and other tenants’ data, while user attachments and knowledge base documents may carry prompt-injection content. None of this must be allowed to reach the host environment.
However, a large share of work involves materials on the employee’s own computer: local project folders, locally installed software, and files that are inconvenient to upload. This calls for desktop-side capability—the conversation executes on the employee’s machine, the agent reads, writes, and runs commands within authorized folders, while accounts, permissions, and conversation records remain centrally managed by the server. This preserves the boundary that data never leaves the local machine without giving up centralized control.
3.2 Tiered Permissions and Human-in-the-Loop Collaboration
The framework should provide tiered permission presets. A common approach is three levels: a default level that allows modifications within the working directory and permitted temporary directories, requiring the user’s explicit approval for anything beyond that boundary; a read-only level suited for auditing and analysis tasks; and a fully autonomous level that asks no questions but requires a second confirmation before switching to it. When the agent is waiting for approval or a human answer and the window is not in the foreground, it should also send a system notification, so conversations don’t hang unattended for long periods.
3.3 Usage Governance
Private deployment does not mean unlimited resources. The framework needs to support allocating monthly token quotas across three levels—workspace, department, and individual—with system administrators setting the total and workspace administrators distributing downward. This is both a cost-control measure and a fuse that prevents individual runaway tasks from overwhelming inference resources.
3.4 Hardware Compatibility and Embedding Capability
In many enterprise environments, ARM-architecture servers paired with domestic NPU compute are hard requirements, so server images need to ship in both amd64 and arm64 variants, and heavy workloads like document parsing are best offloaded to the local NPU. In addition, knowledge base Q&A and conversational data-query capabilities should be embeddable as components into the enterprise’s existing reporting systems or internal portals, letting employees ask questions in interfaces they already know instead of being forced to switch to a new platform.
4. Implementation Advice: Three Practical Paths
For teams currently evaluating options, here are three recommendations:
First, define your task profile before choosing a combination. For document-Q&A-dominated scenarios, focus on the framework’s retrieval and citation capabilities; for code and operations scenarios, focus on sandbox isolation, permission approval flows, and the reliability of command execution.
Second, treat desktop and server execution as complements, not substitutes. Tasks involving local materials go through the desktop side; tasks involving enterprise data assets and multi-person collaboration go through the server-side sandbox. Both should share the same account, permission, and audit system.
Third, maintain an attribution mindset toward every “failure case.” When you see claims like “framework X is bad, framework Y is better,” ask three questions first: Is the task type the same? Is the context configuration the same? Did the failure occur at the model layer or the execution layer? Most disputes become clear after these three questions.
Conclusion
There is no lottery in LLM applications—only uncontrolled variables. Once you engineer the execution framework’s tool definitions, context engineering, permission sandboxing, and usage governance one by one, the model’s true capability will emerge consistently, and selection debates will give way to measurable, reproducible evaluation results.
