Evolution of Agent Collaboration Protocols: Skill Delivery and Async Task Practices
This article examines how agent integration must evolve from simple tool invocation into full collaboration that can carry real business work. It covers skill delivery as maintainable execution guidance loaded on demand, asynchronous task design with explicit lifecycles and idempotency, interactive confirmation that separates information gathering from action authorization, secure file exchange with traceable results, a four-layer architecture that splits model orchestration from deterministic execution, and the verification work needed before production rollout.
1. From Calling Tools to Completing Work Together
In traditional agent applications, the model interprets user intent while the server side exposes tools for querying, computing, or performing business operations. The interaction usually follows one simple path: the model selects a tool, passes in parameters, waits for the response, and generates a reply from the result.
This works well for clearly bounded operations such as looking up an order, reading a record, or running a short calculation. Once the task becomes “analyze business performance and produce an adjustment plan” or “complete a business application from the supplied materials,” a single call is no longer enough. The full process often spans multiple systems, involves long-running computation, requires missing information to be collected, and includes key steps that need user approval.
The problem is not simply too few tools. It is an incomplete collaboration mechanism:
- Tool descriptions explain what a function does, but not necessarily the business method for using it correctly.
- Long-running operations cannot always rely on a single synchronous request.
- When the server side finds that conditions are not met, it needs an explicit way to ask the user for more information.
- Documents, images, and analysis results must pass safely between processing stages.
- After a failure or a dropped connection, the system must know how to recover rather than simply start over.
The agent connection mechanism therefore has to expand from “calling an interface” to “completing work together.” Collaboration here does not mean the server side must run another language model. It means the server side can deliver execution knowledge, maintain task state, request necessary input, and take clear responsibility for execution results.
2. Skill Delivery: Shipping the Business Method Along With the Tools
2.1 Tool definitions and skill content solve different problems
A tool definition mainly answers “what can be done.” A business service, for example, might offer operations to query inventory, update product information, and generate analysis reports.
Skill content answers “under what conditions, in what order, and by what rules should these operations be used.”
Take a product information update. A single tool may accept a new title, category, and description, but the complete flow also requires deciding:
- whether the current product data is complete;
- whether the change complies with the organization’s content standards;
- whether the original version must be preserved;
- which fields may be modified automatically;
- which changes must be confirmed by the user first.
Packing all of these rules into a tool description is hard to maintain and increases what the model has to read on every request. Organizing them as a separate skill gives functional definition and execution method a clean division of labor.
2.2 A skill should be maintainable execution guidance
A skill should not be a generic prompt such as “please complete the task carefully.” Production-grade skills typically cover:
Scope. Which tasks the skill handles and which it does not, so the model does not apply the flow in an unsuitable business context.
Preconditions. Required permissions, mandatory materials, business state, and data completeness requirements.
Execution steps. Stage order, branch conditions, and key checkpoints, not just a list of callable tools.
Result criteria. What counts as done, including required deliverables, validations that must pass, and limitations to explain to the user.
Exception paths. How to proceed when data is missing, permissions are insufficient, or an external system is unavailable.
Skills must stay consistent with tool contracts. When a tool field changes, the related guidance needs updating too, otherwise the model may call a new interface following an outdated flow.
2.3 Loading on demand controls context cost
A reasonable design exposes a compact skill catalog first, then loads the full content when a task matches. The catalog can carry the skill’s purpose, applicable conditions, and version information, while the complete content enters the model context only when needed.
This helps reduce irrelevant information, but it should not be read as “loading skills always lowers total cost.” The actual effect depends on catalog size, skill granularity, how often content is reloaded, and the complexity of the task itself, and should be evaluated with real requests.
In enterprise settings, skills can also be generated with variations based on account permissions or organizational configuration. The same approval process, for instance, may carry different review requirements in different departments. Even so, real access control must still be enforced on the server side; it cannot rely on skill text alone telling the model not to access something.
3. Async Tasks: Taking Long Work Out of a Single Request
3.1 Separate task submission from task execution
Synchronous calls require the client to keep waiting for the result. With large document processing, batch analysis, or cross-system business operations, this approach is easily affected by request timeouts, network instability, and client disconnects.
An async task mechanism splits the process into two phases: first accept the task and create a trackable record, then let a background executor do the actual work. The client subsequently polls for status or receives status updates.
This is a general architectural idea; it does not mean a given protocol necessarily has the same interfaces or fields. Concrete implementations should follow the specification of the protocol in use and the capabilities of the server side.
3.2 Tasks need an explicit lifecycle
A task cannot have only “succeeded” and “failed” states. A design can distinguish queued, running, waiting for additional input, completed, failed, and cancelled stages.
Each state needs corresponding behavior. For example:
- whether the executor releases compute resources while waiting for additional input;
- which steps can stop after a cancellation request is issued;
- whether an operation already submitted to an external system can be undone;
- from which checkpoint a failed task may resume;
- how long results are retained and how expiry is explained to the user.
In particular, distinguish “the cancellation request was accepted” from “the task has stopped.” If an external system is running a non-interruptible operation, the server side should not declare the task cancelled prematurely.
3.3 Retries must be paired with idempotency
A network timeout does not mean the business operation never happened. When the client retries, the server side may already have completed the previous request.
For operations with side effects, such as creating records, sending notifications, or submitting approvals, the design needs a way to recognize duplicate requests. The server side can use a business request identifier to determine whether a request belongs to the same operation and return the existing result instead of executing again.
Idempotency also cannot stop at the submission layer. When a task contains multiple steps, the effect of repeated execution must be considered for every key step. For actions that are not naturally idempotent, execution receipts should be recorded, and the result confirmed by querying external state when necessary.
For cross-system flows, failure handling may also require compensation. If the business record has been created but attachment processing failed, the system should explicitly choose between keeping a draft, deleting the incomplete record, or handing it to a human. “Rerun the whole task” should not be the only recovery option.
4. Interactive Confirmation: Bringing User Input Into the Workflow
Complex tasks rarely have all conditions available up front. During execution, the server side may find missing materials, ambiguous options, or a next step with significant impact.
The value of an interactive confirmation mechanism is that the task can pause and request the necessary information instead of relying on the model to guess.
4.1 Distinguish information gathering from action authorization
“Please select a statistics time range” is information gathering; “publish this batch of changes” is action authorization. The two carry different risk and audit requirements.
Information gathering should present a clear question, the allowed input range, and the impact of leaving the information missing. Action authorization should show the action to be performed, the objects involved, potential consequences, and any limits on undoing it.
For high-impact operations, user confirmation must be bound to specific content. Approval of one version of a change should not be interpreted as approval of a later, modified version.
4.2 Confirmation does not replace permission checks
Even if the user clicks agree, the server side must still verify identity, permissions, and current business conditions. Confirmation expresses intent; it does not grant access.
Necessary conditions should also be re-verified when a task resumes. After a long pause, user permissions may have changed and related records may have been updated by someone else. Before continuing, verify that authorization is still valid and that the target object still matches expectations.
Also avoid interrupting the user too often. Clear default rules, grouped questions, and requests for input only where it cannot be safely inferred all reduce interaction overhead.
5. File Exchange: Beyond Text Parameters
Enterprise tasks frequently involve documents, spreadsheets, images, and archives. Passing this content through text parameters alone is poor for integrity checking and tends to inflate context usage.
A file exchange mechanism should manage “the file itself,” “a file reference,” and “the file processing result” separately. The model can understand what the material is for and organize the flow, while actual parsing and large-scale processing are handled by suitable server-side components.
5.1 File transfer needs a security boundary
A file reference is not permanent authorization. The server side must verify the owning subject, access permissions, and validity period to prevent data from crossing between users or tenants.
Necessary controls include:
- limits on file size and allowed types;
- checking actual content rather than trusting the extension;
- security scanning of untrusted files;
- resource and time limits for parsing;
- isolating the parsing environment from the core business execution environment;
- explicit retention periods for original files, intermediate artifacts, and final results.
Text inside documents should also be treated as data to process, not as new system instructions. Even if the material contains something like “ignore previous rules,” it must not change tool permissions or execution policy.
5.2 File results must be traceable
Conclusions derived from files should retain source location, processing time, and input version wherever possible. Users need to know which material a judgment came from, and they need to recognize whether an old result is still valid after the material is updated.
When file capabilities are not yet supported by the client or the server side, capability negotiation should provide an alternative path rather than assuming availability. Alternatives can include submitting a controlled material reference, asking the user to supply structured fields, or stating clearly that the current task cannot continue.
6. Recommended Architecture: Layering Model Orchestration and Deterministic Execution
A governable collaboration system can be divided into four layers by responsibility.
The intent understanding and orchestration layer interprets requirements, selects skills, organizes steps, and produces user-readable explanations.
The capability and knowledge delivery layer provides tool descriptions, skill content, version information, and capability declarations.
The task execution layer handles state management, background scheduling, retries, checkpoints, result persistence, and compensation.
The security and governance layer handles authentication, permission checks, auditing, sensitive data protection, and resource limits.
These four layers do not have to map to four separate services, but the responsibility boundaries should be clear. The key principle: let the model handle open-ended understanding and planning, and let deterministic programs handle authorization, state transitions, and critical business constraints.
A statement in the model’s reply that “the task is complete” must not update business state to complete. The final state should be based on evidence returned by the executor, result validation, and confirmation from external systems where necessary.
7. How to Verify Reliability Before Launch
Verification cannot stop at checking whether the final answer reads well; it has to cover the execution process.
7.1 Verify skill and tool consistency
Check whether skills reference capabilities that do not exist, omit required authorization, or conflict with tool parameters or business rules. After a tool upgrade, run regression tests on the related skills.
7.2 Verify interruption and recovery
Simulate client disconnects, background process restarts, duplicate submissions, task timeouts, and permission changes while waiting for user input. Focus on whether duplicate business operations, lost state, or incorrect recovery occur.
7.3 Verify security boundaries
Test cross-tenant file access, malicious document content, unauthorized operations, expired confirmations, and forged task results. Security testing should target the real server-side execution path, not just whether the model refuses verbally.
7.4 Establish observability and audit
It should be possible to correlate user requests, task records, tool calls, and execution results, and to record skill versions, key confirmations, and failure reasons. Monitoring metrics can focus on task duration, time spent waiting for input, failure causes, and recovery outcomes, but complete sensitive materials should not be written into logs for the sake of easier tracing.
Logs are for troubleshooting; audit records are for proving who authorized what operation under which conditions. The two have different goals and should be designed separately.
8. Conclusion: The Real Upgrade Is a More Complete Collaboration Contract
Skill delivery, async tasks, interactive confirmation, and file exchange together address the collaboration problems that appear once agents enter real business work: knowing how to do something and being able to keep executing it; being able to invoke capabilities and also handle permissions, materials, exceptions, and responsibility boundaries.
For developers, the practical focus is not handing all business logic to the model, but building a verifiable collaboration contract. Skills provide the method, the task mechanism maintains the execution process, the confirmation mechanism controls key decisions, the file mechanism carries materials, and the governance system constrains permissions and risk.
Only when all of these hold can an agent grow from a tool caller in a demo into a reliable workflow participant in production.
