Manuscript Offprint
arXiv:2611.04321ATC: Agent Trajectory Control for Role-Contract Enforcement in Black-Box Multi-Agent Systems
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Multi-agent LLM systems assign different responsibilities to different agents: one plans, another retrieves evidence, another verifies, another executes. This division of labor is only meaningful if each agent stays within the functions it is authorized to perform. Over many turns, however, an agent can produce a locally reasonable message that exercises authority belonging to another role: a verifier that begins planning, a retriever that asserts unsupported conclusions, an executor that changes state no one approved. We formalize this as role drift, a turn-level breach of an agent's role contract. We introduce Agent Trajectory Control (ATC), which makes each role's authority explicit as a contract and enforces it at the point where a message would enter the shared conversation. ATC scores a proposed output for out-of-role deviation, leakage into the functions of other roles, impermissible speech acts, and logical contract breaches, then computes a leakage-regularized target that constrains regeneration; the revised message is re-checked before admission. Enforcement acts on the message rather than the generator, so ATC governs agents whose internal representations are unavailable. Across homogeneous and heterogeneous teams, ATC improves task performance and role consistency while lowering role-drift energy relative to strong baselines spanning prompting, memory, workflow control, and activation editing, with the largest gains under explicit role-confusion stress tests and in larger, more diverse teams. Our code and evaluation artifacts are publicly available.¹
1 Introduction
Multi-agent large language model (LLM) systems increasingly divide work among specialized agents
for planning, retrieval, verification, memory management, tool use, and execution (Li et al., 2023; Wu et al., 2024; Park et al., 2023; Hong et al., 2024). The usefulness of this decomposition depends on more than the quality of each individual message: it also depends on whether the agent producing that message is authorized to perform the function it has taken on. Over a long interaction, a verifier may begin planning, a retriever may draw conclusions unsupported by its evidence, or an executor may modify state that should first have been approved. Such outputs can be locally sensible and still violate the organization of the team. We study this mismatch between assigned function and realized behavior as role drift. Empirical analysis of more than 1,600 execution traces across seven multi-agent frameworks corroborates the concern, identifying inter-agent misalignment and task-verification failures among the principal categories of multi-agent failure (Cemri et al., 2025).
Prompted roles, memory, activation editing, and workflow constraints each address a different part of this problem. Role prompts declare responsibilities but do not test every realized output against them. A-MEM and related memory systems preserve state and experience, but memory does not determine which agent is entitled to retrieve, approve, or act on that information (Xu et al., 2025). CAA and SEA shift model behavior along global behavioral directions, but do not model the coupled structure of role alignment and cross-role leakage, nor enforce an explicit contract over the functions a given agent may perform (Rimsky et al., 2024; Qiu et al., 2024). SOP-style systems such as MetaGPT constrain communication order, yet a role-violating message can still be produced inside an otherwise valid workflow (Hong et al., 2024). What is missing is a message-boundary mechanism that can inspect a proposed contribution, decide whether it respects the producing agent's contract, and repair it before
¹https://github.com/VishalPramanik/ATC.git
ATC: Agent Trajectory Control for Role-Contract Enforcement in Black-Box Multi-Agent Systems

Figure 1: Overview of ATC. At each turn, an agent output is encoded into a functional behavior vector, scored for role drift using subspace deviation, cross-role leakage, linguistic violations, and logical-contract violations, then corrected through a leakage-regularized role-preserving target before constrained regeneration. The corrected output is re-evaluated before entering the shared multi-agent conversation.
other agents condition on it.
We introduce Agent Trajectory Control (ATC) for this purpose. ATC makes each role's authority explicit as a contract over the functions an agent may perform, and enforces that contract at the point where a message would enter the shared conversation. Each proposed output is checked for four kinds of violation: out-of-role deviation, leakage into the functions of other roles, speech acts the role is not permitted to make, and breaches of the role's logical contract. When a proposal exceeds its permitted authority, ATC computes a leakage-regularized target and uses it to constrain regeneration; the revised output is re-checked before admission. Because enforcement acts on the message rather than on the generator, ATC applies to agents whose internal representations are unavailable, unlike methods that steer hidden states during generation (Rimsky et al., 2024; Qiu et al., 2024).
Our contributions are: (i) a formulation of role drift as a turn-level breach of an agent's role contract, rather than a loss of task coherence; (ii) a role-drift energy combining geometric, linguistic, and logical contract signals with a closed-form leakage-regularized correction target; and (iii) an evaluation across homogeneous and heterogeneous teams showing improved task performance and role consistency, together with lower role-drift energy, under controlled baselines and role-confusion stress tests.
We examine this hypothesis using traces from EntCollabBench (Yu et al., 2026) and MultiAgent-Bench (Zhu et al., 2025). Because these bench-
| Metric | Stable | Drifted |
|---|---|---|
| 0.18 | 0.57 | |
| 0.11 | 0.49 | |
| 0.07 | 0.36 | |
| 0.05 | 0.31 | |
| 0.36 | 1.47 | |
| out-leak corr. | 0.76 |
Table 1: Pilot role-drift analysis. Values are class-conditional means of uncorrected candidate turns from the diagnostic pilot sample. Energy is reported on the raw, unnormalized per-turn scale of Eq. (8), using , , , and . These descriptive pilot means do not define lower or upper bounds for the benchmark-level RDE values, which average method-specific released outputs over the corresponding evaluation set. Lower is better.
marks lack native role-drift labels, we annotate turns using a fixed role-consistency rubric and measure four signals: deviation from the assigned role subspace, leakage into another role space, invalid speech acts, and role-contract violations. This distinction is important because an output may be factually correct while still being produced by an agent without the appropriate functional authority.
As shown in Table 1, drifted turns have substantially higher energy than stable turns (1.47 vs. 0.36). Out-of-role deviation and cross-role leakage are also strongly correlated (), indicating that agents often move toward another agent's function rather than merely away from their own. Once such an output enters the shared context, downstream agents may treat it as valid state, allowing a local role violation to alter the subsequent collaboration trajectory. The resulting failures can therefore accumulate even when individual messages appear locally useful.
Existing role prompts, memory systems, activation editing, and fixed workflows do not directly verify the functional role of each completed output. ATC addresses this gap by scoring each proposal, correcting role-inconsistent behavior, and re-evaluating the regenerated output before it enters the shared conversation.
3 Method
ATC is an external control loop over proposed agent outputs. It does not assume that the controller can read or modify the generator's hidden activations. At each turn it asks a narrow question: does the candidate message remain within the producing agent's functional role and explicit contract? The answer draws on a behavior representation, geometric leakage between role subspaces, speech-act constraints, and symbolic contract checks. When correction is required, ATC computes the nearest leakage-regularized target inside the assigned role and uses it to guide regeneration, and the revised message is re-evaluated before release. Every agent turn therefore follows one trajectory: encode, score, correct, regenerate, and re-evaluate.
This message-boundary placement is what makes the controller portable. In a black-box deployment, the regeneration operator is a constrained revision call to the same or another model; in an open-weight deployment, the same target may additionally inform decoding or latent steering. The controller itself is unchanged, because it acts on the functional representation of the proposed output rather than on any internal state of the generator.
3.1 Behavior Representation
We consider a multi-agent system with agents interacting over turns. Each agent is assigned a role , such as planner, verifier, retriever, executor, critic, summarizer, or safety monitor. The method is general and does not assume any fixed role taxonomy.
At turn , agent proposes an utterance or action . We map this proposal to a functional behavior vector
where is a fixed behavior encoder, is the local history available to agent , and is the shared multi-agent context. The vector captures the semantic, pragmatic, operational, and interactional behavior of the proposed output.
Each role is represented by a role subspace , spanned by a role basis . The columns of correspond to interpretable functional primitives of the role. Since these columns may be linearly dependent, we define the role projection using the Moore–Penrose pseudoinverse:
Thus, is the role-aligned component of the behavior, while is the component outside the assigned role.
3.2 Role-Drift Energy
The first source of drift is out-of-role deviation, measured by the squared distance from the agent's assigned role subspace:
Role drift can also occur when one agent begins to perform another agent's function. For agent , we define the forbidden-role space as the span of all other agents' role bases. Let be a basis for this space. The corresponding projection is
If there is no other role space, we set . The cross-role leakage is then
This term softly penalizes behavior that enters another agent's role space without requiring strict orthogonality between roles, since different roles may legitimately share semantic directions such as reasoning, evidence use, or clarification.
We also impose linguistic and logical role consistency. The proposed output is mapped to a speechact vector , where each coordinate represents the confidence of an interaction function such as asserting, questioning, retrieving, verifying, executing, delegating, or summarizing. Each role has an allowed linguistic profile . The linguistic violation is
Each role also has a logical contract , where is the set of required behaviors and is the set of prohibited behaviors. A symbolic mapper extracts . The logical violation is
Combining these terms gives the role-drift energy:
where control the contribution of geometric role deviation, cross-role leakage, linguistic inconsistency, and logical contract violation. The cumulative drift of agent is , with , and the system-level drift is .
3.3 Role-Preserving Correction
Before a proposed output is released to the rest of the system, we compute a role-preserving target vector. The correction keeps the behavior inside the assigned role subspace while softly suppressing leakage into other roles:
where controls the strength of cross-role suppression. The first term preserves the original behavior, while the second discourages the corrected representation from entering other agents' role spaces.
Since every feasible can be written as , the optimization in Eq. (9) has the closed-form coefficient solution
The corrected role target is then . This is the leakage-regularized closest role-aligned representation to the original behavior.
The final released output is produced by a constrained regeneration operator:
The operator rewrites or regenerates the proposed output so that it remains close to the original intent while aligning with the corrected role target. For black-box agents, can be implemented as role-constrained revision. For open-weight agents, it may be implemented through decoding constraints or latent steering. After regeneration, the released output is re-evaluated with the same maps , , and to obtain its corrected energy .
The correction step satisfies a local objective-monotonicity property:
This follows because minimizes the correction objective over , while is a feasible comparison point. Eq. (12) applies to the vector correction objective, not necessarily to the full post-regeneration energy, because the linguistic and logical terms depend on the realized text . Therefore, the method applies the same sequence at every agent turn: . An overview of ATC is shown in Figure 1, and the full procedure is summarized in Algorithm 1.
4 Experiments
4.1 Evaluation Setup
We evaluate ATC on extended multi-agent collaboration, where agents must preserve role boundaries while completing the task. Each method is tested under three team settings. S1: Hom-10 uses ten cooperative agents with the same backbone model. S2: Het-10 uses the same ten-agent topology but assigns different model families to planning, retrieval, verification, execution, and monitoring roles. S3: Het-12 expands the system to twelve cooperative agents using at least five model families, adding a POLICY-AUDITOR and a DOMAIN-SPECIALIST. This setting creates the strongest role-boundary stress because agents differ in model behavior, capability, and communication style.
Across settings, the core ten roles are COORDINATOR, PLANNER, RETRIEVER, MEMORY-WRITER, MEMORY-READER, VERIFIER, CRITIC, EXECUTOR, MONITOR, and SUMMARIZER. All methods use the same role prompts, total context budget, retrieval budget, tool access, maximum turns, and stopping criteria. All reported values are means over three seeds.
4.2 Benchmarks and Metrics
We use three benchmarks. EntCollabBench evaluates role-specialized enterprise collaboration with permission-scoped workflows and approval decisions (Yu et al., 2026). MultiAgentBench evaluates general multi-agent collaboration and interaction across diverse scenarios (Zhu et al., 2025). SWE-bench Verified evaluates software-engineering agents on human-validated GitHub issue-resolution tasks (Jimenez et al., 2024; Chowdhury et al., 2024). For each benchmark, we report one task metric and two role-control metrics. Primary is the benchmark-specific task score. For EntCollabBench, it is workflow task success. For MultiAgentBench, it is the official scenario-level completion score. For SWE-bench Verified, it is the resolved issue rate. Role Consistency (RC) is the percentage of turns in which the agent output is judged consistent with the assigned role. Role Drift Energy (RDE) is the average value of Eq. (8), where lower values indicate less role drift.
Formally, for evaluated agent-turns with , we define
where indicates that the output is consistent with the assigned role. We define average role-drift energy as .
4.3 Baselines
We compare against seven baselines. Prompt-Only uses the same agents and role prompts but no runtime role controller. Struct-Role adds an explicit role field to every message. A-MEM adapts dynamic agentic memory construction, linking, and evolution to the multi-agent setting (Xu et al., 2025). CAA applies contrastive activation addition using role-consistent and role-drift contrast pairs (Rimsky et al., 2024). SEA applies spectral activation editing with positive role-consistent and negative role-drift demonstrations (Qiu et al., 2024). SOP-Role uses a fixed role-specialized workflow with prescribed communication order, following SOP-style multi-agent control (Hong et al., 2024). Single-Agent replaces the multi-agent system with one monolithic agent given the same total context budget as the team.
4.4 Main Results
Table 2 shows that ATC achieves the best performance across all benchmarks and team settings. In the homogeneous setting (S1: Hom-10), ATC improves over the strongest baseline by 6.5 points on EntCollabBench, 6.8 points on MultiAgentBench, and 5.4 points on SWE-bench Verified. These gains indicate that explicit role correction improves both role stability and downstream task success.
The advantage widens in heterogeneous settings. In S2: Het-10, ATC leads the strongest baseline by 8.3, 8.1, and 6.8 points on EntCollabBench, Multi-AgentBench, and SWE-bench Verified respectively. Heterogeneous teams appear to amplify role drift: different model families follow instructions, communicate, and recover from errors differently, making runtime role control more valuable.
The strongest results appear in S3: Het-12, which has the most agents and at least five model families, and therefore the most opportunity for role overlap and authority confusion. There ATC improves the three benchmarks by 9.6, 9.6, and 7.8 points over the best non-ATC baseline, indicating that it scales to larger cooperative teams rather than depending on a homogeneous backbone.
Role-control metrics explain the source of the improvement. Across all settings, ATC obtains the highest RC and the lowest RDE. In S3, for example, ATC reduces RDE on EntCollabBench from 0.29
Table 2: Main results across benchmarks and team settings. Primary = benchmark-specific task score. RC = Role Consistency (↑). RDE = Role-Drift Energy (↓). Values are means over three seeds.
| Setting | Method | EntCollabBench | MultiAgentBench | SWE-bench Verified | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Primary ↑ | RC ↑ | RDE ↓ | Primary ↑ | RC ↑ | RDE ↓ | Primary ↑ | RC ↑ | RDE ↓ | ||
| S1: Hom-10 | Single-Agent | 54.8 | 68.1 | 0.39 | 49.6 | 65.4 | 0.42 | 27.4 | 63.2 | 0.45 |
| Prompt-Only | 61.3 | 72.6 | 0.34 | 55.2 | 70.8 | 0.36 | 31.8 | 68.7 | 0.39 | |
| Struct-Role | 64.7 | 78.9 | 0.28 | 58.4 | 76.1 | 0.31 | 33.9 | 74.5 | 0.33 | |
| A-MEM | 66.5 | 77.3 | 0.27 | 60.1 | 75.6 | 0.30 | 35.6 | 73.8 | 0.32 | |
| CAA | 65.2 | 79.8 | 0.26 | 59.3 | 78.4 | 0.29 | 34.8 | 76.2 | 0.31 | |
| SEA | 66.9 | 81.4 | 0.24 | 60.8 | 79.7 | 0.27 | 36.1 | 77.5 | 0.29 | |
| SOP-Role | 68.1 | 82.6 | 0.23 | 61.9 | 80.2 | 0.26 | 36.9 | 78.6 | 0.28 | |
| ATC | 74.6 | 91.8 | 0.13 | 68.7 | 90.4 | 0.15 | 42.3 | 88.7 | 0.17 | |
| S2: Het-10 | Single-Agent | 55.6 | 66.9 | 0.41 | 50.4 | 64.1 | 0.44 | 28.1 | 62.5 | 0.46 |
| Prompt-Only | 60.5 | 69.7 | 0.38 | 54.8 | 67.9 | 0.40 | 31.2 | 65.8 | 0.43 | |
| Struct-Role | 63.8 | 75.2 | 0.32 | 57.9 | 73.4 | 0.34 | 33.4 | 71.2 | 0.37 | |
| A-MEM | 66.1 | 74.5 | 0.31 | 60.6 | 72.8 | 0.33 | 35.9 | 70.6 | 0.36 | |
| CAA | 64.9 | 77.6 | 0.29 | 59.2 | 75.7 | 0.31 | 34.7 | 73.4 | 0.34 | |
| SEA | 66.8 | 79.1 | 0.27 | 61.3 | 77.8 | 0.29 | 36.5 | 75.1 | 0.32 | |
| SOP-Role | 67.5 | 80.4 | 0.26 | 62.1 | 78.5 | 0.28 | 36.8 | 76.3 | 0.31 | |
| ATC | 75.8 | 92.7 | 0.12 | 70.2 | 91.6 | 0.14 | 43.6 | 89.9 | 0.16 | |
| S3: Het-12 | Single-Agent | 55.1 | 65.8 | 0.43 | 49.9 | 63.5 | 0.46 | 27.9 | 61.8 | 0.48 |
| Prompt-Only | 59.2 | 67.4 | 0.41 | 53.6 | 65.9 | 0.43 | 30.7 | 64.1 | 0.45 | |
| Struct-Role | 62.9 | 72.6 | 0.35 | 56.8 | 70.4 | 0.37 | 32.6 | 68.9 | 0.40 | |
| A-MEM | 65.7 | 72.1 | 0.34 | 60.3 | 70.2 | 0.36 | 35.5 | 68.5 | 0.39 | |
| CAA | 64.1 | 74.8 | 0.32 | 58.5 | 72.7 | 0.34 | 34.1 | 70.3 | 0.37 | |
| SEA | 66.3 | 76.6 | 0.30 | 61.0 | 74.9 | 0.32 | 36.2 | 72.4 | 0.35 | |
| SOP-Role | 66.8 | 78.2 | 0.29 | 61.5 | 76.1 | 0.31 | 36.4 | 74.0 | 0.33 | |
| ATC | 76.4 | 93.5 | 0.11 | 71.1 | 92.8 | 0.13 | 44.2 | 91.2 | 0.15 | |
for SOP-Role to 0.11, and raises RC from 78.2 to 93.5. Similar trends hold on MultiAgentBench and SWE-bench Verified. This ties the task gains to reduced role drift rather than to stronger prompting or additional memory.
4.5 Discussion
The baseline comparison isolates why ATC is effective. Prompt-Only and Struct-Role declare roles but cannot keep produced behavior inside them; A-MEM preserves state without determining who may act on it; CAA and SEA edit representations without separating role alignment from cross-role leakage; and SOP-Role, the strongest baseline, fixes communication order but cannot repair a role-violating message once generated.
ATC directly targets this missing mechanism. By scoring each output with role-subspace deviation, cross-role leakage, linguistic-role violation, and logical-contract violation, ATC detects role drift before it propagates to future turns. The correction step then projects the behavior toward a role-preserving target and regenerates the output under the corrected role constraint. The largest gains in S2 and S3 support the central claim: explicit role-contract control becomes more valuable as teams grow more heterogeneous and the opportunity for
authority confusion increases over longer interactions.
4.6 Implementation Details
Role bases are constructed from role descriptions and role-consistent demonstrations. The same role descriptions are used for all methods to avoid prompting advantages. Speech-act vectors are obtained with a fixed classifier over interaction functions, and logical contracts specify required and prohibited behaviors for each role. The correction weight and energy weights are tuned on the validation split and then fixed across all benchmarks. For CAA and SEA, steering directions are trained from the same role-consistent and role-drift examples used to build ATC role bases. All methods use the same prompts, tools, retrieval budget, context budget, and maximum number of turns.
4.7 Ablation Studies
All ablations use EntCollabBench under S3: Het-12, the setting where role boundaries are most likely to collapse.
Table 3 shows that every component contributes. Removing the role-subspace term causes the largest drop, reducing RC from 93.5 to 80.1 and increasing RDE from 0.11 to 0.27, identifying the geometric
Table 3: Component ablation on EntCollabBench, S3: Het-12. Each row removes one component of the full method.
| Variant | Primary ↑ | RC ↑ | RDE ↓ |
|---|---|---|---|
| Full ATC | 76.4 | 93.5 | 0.11 |
| w/o role subspace term | 68.2 | 80.1 | 0.27 |
| w/o leakage penalty | 70.4 | 84.3 | 0.22 |
| w/o linguistic term | 72.1 | 87.5 | 0.19 |
| w/o logical contract | 71.6 | 86.8 | 0.20 |
| w/o regeneration | 69.7 | 82.9 | 0.24 |
Table 4: Correction-objective ablation on EntCollabBench, S3: Het-12. The full leakage-regularized projection is most stable.
| Correction | Primary ↑ | RC ↑ | RDE ↓ |
|---|---|---|---|
| No correction | 59.2 | 67.4 | 0.41 |
| Hard role reminder | 62.9 | 72.6 | 0.35 |
| Pure projection | 71.3 | 86.1 | 0.20 |
| Hard orthogonality to | 69.8 | 87.0 | 0.18 |
| Full ATC objective | 76.4 | 93.5 | 0.11 |
role representation as the principal mechanism. Removing the leakage penalty also hurts substantially, echoing the directional pattern in the pilot analysis: agents drift toward other roles, not merely away from their own. The linguistic and logical terms provide complementary control: the former catches inappropriate interaction functions, while the latter catches authority and obligation violations. Removing regeneration weakens the system because drift is detected but not reliably corrected before entering the shared context.
Table 4 isolates the correction rule. Pure projection improves over prompt-level control, but it does not penalize cross-role leakage. Hard orthogonality performs worse than the full objective because valid roles may share semantic directions such as reasoning, clarification, or evidence use. The full ATC correction is best because it keeps the behavior inside the assigned role while softly discouraging leakage into other roles.
4.8 Stress Tests
We next evaluate robustness under explicit role-drift stressors on EntCollabBench (S3: Het-12). Each episode receives one deterministic perturbation. Role-confuse asks an agent to perform another agent's function. Authority-swap routes a correct intermediate result through an agent that lacks authority to act on it. Late-correction revises an earlier decision and tests whether agents respect the updated division of labor.
Table 5 shows that ATC is most useful when the
Table 5: Role-drift stress tests on EntCollabBench, S3: Het-12. Values are task success under perturbation.
| Method | Role-confuse ↑ | Authority-swap ↑ | Late-correction ↑ |
|---|---|---|---|
| Prompt-Only | 42.5 | 39.8 | 44.1 |
| Struct-Role | 49.3 | 46.7 | 50.2 |
| A-MEM | 51.1 | 48.5 | 55.8 |
| SEA | 54.7 | 51.6 | 56.3 |
| SOP-Role | 57.9 | 55.2 | 58.6 |
| ATC | 70.8 | 68.4 | 72.1 |
Table 6: Sensitivity to leakage weight on EntCollabBench, S3: Het-12. Moderate leakage control performs best.
| Primary ↑ | RC ↑ | RDE ↓ | |
|---|---|---|---|
| 0.00 | 71.3 | 86.1 | 0.20 |
| 0.25 | 74.2 | 90.4 | 0.15 |
| 0.50 | 76.4 | 93.5 | 0.11 |
| 1.00 | 75.8 | 92.7 | 0.12 |
| 2.00 | 73.6 | 90.8 | 0.15 |
system is actively pushed toward role confusion. SOP-Role is the strongest baseline, but its fixed communication order cannot repair a role-violating message after generation. ATC improves success by more than 12 points over SOP-Role on all three perturbations, with the largest gain on Authority-swap. This supports the role-contract part of the method: the system must know not only what an agent can say, but what it is authorized to do.
4.9 Sensitivity Analysis
We analyze sensitivity to the leakage penalty , which controls how strongly ATC suppresses movement into other agents' role spaces. Very small allows cross-role contamination, while very large can over-penalize shared reasoning directions. We evaluate on EntCollabBench (S3: Het-12).
Table 6 shows that ATC is not overly sensitive to the exact value of within a moderate range. The best performance occurs at , but and remain strong. When , the method reduces to pure role projection and leakage increases. When is too large, the model becomes overly conservative, penalizing shared directions that may be useful across roles.
We also test whether ATC remains effective as team size and heterogeneity increase. We vary the number of agents and model families while keeping the benchmark, context budget, and task distribution fixed.
Table 7 shows that ATC works in both homogeneous and heterogeneous systems. Performance im-
Table 7: Sensitivity to team scale and heterogeneity on EntCollabBench. ATC remains stable as teams become larger and more diverse.
| Setting | Primary ↑ | RC ↑ | RDE ↓ |
|---|---|---|---|
| Hom-5 | 72.9 | 92.1 | 0.12 |
| Hom-10 | 74.6 | 91.8 | 0.13 |
| Het-10 | 75.8 | 92.7 | 0.12 |
| Het-12 | 76.4 | 93.5 | 0.11 |
| Het-16 | 75.1 | 91.4 | 0.14 |
proves from Hom-5 to Hom-10 because additional specialization helps task decomposition. Het-10 and Het-12 further improve because diverse models provide complementary strengths, while ATC prevents this diversity from turning into role confusion. Het-16 slightly drops, suggesting that very large teams introduce more communication overhead, but RC remains above 91%, showing that role control remains stable.
4.10 Cost and Latency
ATC adds behavior encoding, drift scoring, role-preserving correction, constrained regeneration, and re-evaluation before an agent output is released. We therefore evaluate whether the additional computation is justified by the resulting role-stability gain. Table 8 reports average model calls, generated tokens, wall-clock latency, and cost-normalized role consistency improvement on EntCollabBench under the most difficult setting, S3: Het-12.
We define cost-normalized role gain as
where is the role consistency of method , is the Prompt-Only role consistency, and is the average number of generated tokens per episode in thousands. Thus, RCG/C measures the role-consistency percentage-point gain over Prompt-Only per 10K generated tokens.
Table 8 and Figure 2 show that ATC is more expensive than prompt-only and fixed-workflow baselines, but its additional computation is efficient relative to the role-stability gain. ATC uses 132.8K tokens and 15.2 calls per episode, compared with 126.2K tokens and 13.6 calls for SOP-Role. However, ATC achieves an RCG/C of 1.97, more than twice the strongest non-ATC baseline. This indicates that the extra correction and re-evaluation steps are not merely overhead: they provide the largest role-consistency gain per unit token cost.
Table 8: Cost and latency on EntCollabBench, S3: Het-12. Tok. = average generated tokens per episode in thousands. Lat. = average wall-clock latency in seconds. RCG/C = RC gain over Prompt-Only per 10K tokens.
| Method | Calls ↓ | Tok. ↓ | Lat. ↓ | RCG/C ↑ |
|---|---|---|---|---|
| Prompt-Only | 12.4 | 116.0 | 24.3 | 0.00 |
| Struct-Role | 12.6 | 100.2 | 24.8 | 0.52 |
| A-MEM | 15.8 | 137.5 | 31.2 | 0.34 |
| CAA | 12.8 | 119.8 | 27.1 | 0.62 |
| SEA | 13.1 | 121.4 | 29.3 | 0.76 |
| SOP-Role | 13.6 | 126.2 | 28.5 | 0.86 |
| ATC | 15.2 | 132.8 | 32.4 | 1.97 |

Figure 2: Cost-normalized role-stability gain. ATC achieves the largest role-consistency improvement per 10K tokens, substantially exceeding the strongest non-ATC baseline.
5 Related Work
ATC’s framing draws on three established ideas: design by contract, which specifies obligations and prohibitions for a component (Meyer, 1992); role-based access control, which ties permissions to roles rather than to individuals (Sandhu et al., 1996); and enforceable security policies, which are exactly those a monitor can decide by observing execution (Schneider, 2000).
Research on LLM agents has developed reasoning–acting loops, tool use, self-reflection, embodied skill acquisition, and multi-agent workflows (Yao et al., 2023; Schick et al., 2023; Shinn et al., 2023; Wang et al., 2024a; Chen et al., 2024; Qian et al., 2024). Multi-agent frameworks and surveys further study orchestration, communication structures, and software-development pipelines (Shen et al., 2023; Hong et al., 2024; Wang et al., 2024b; Guo et al., 2024). These systems establish the value of specialized agents, but role assignment is usually expressed through prompts, workflow structure, or memory rather than checked as an executable contract on every proposed message. Role-playing benchmarks such as RoleLLM evaluate persona and character fidelity (Wang et al., 2024c), which is distinct from the functional authority ATC enforces, while COM-PASS improves long-horizon reasoning through evolving context (Wan et al., 2026), a concern orthogonal to authorization.
ATC is also related to representation editing and behavioral steering, including CAA and SEA (Rimsky et al., 2024; Qiu et al., 2024). The distinction is the control surface. These methods modify hidden states during generation and therefore require access to the model's internals. ATC instead scores a completed proposal in a functional behavior space, checks linguistic and logical role constraints, and regenerates the message without such access. The question it answers is also different: not whether a generator's internal representation remains coherent, but whether a produced output is permitted for the agent that produced it.
A complementary line of work checks agent behavior rather than steering it. NSF-CoT formally verifies chain-of-thought faithfulness, testing whether each reasoning step is evidently grounded in the given context and logically valid (Pramanik et al., 2026); ATC asks a different question of a different object, namely whether a completed message is authorized for the role that produced it. Closest to our setting, AgentSpec enforces user-specified safety rules over agent actions through a domain-specific language of triggers, predicates, and enforcement mechanisms (Wang et al., 2025); ATC differs in both object and mechanism, inferring functional speech acts and contract violations from natural-language messages and repairing them by constrained regeneration rather than blocking or substituting a declared action.
6 Robustness and Deployment Analyses
All methods use identical role prompts, tool access, retrieval and context budgets, maximum turns, and stopping criteria, and CAA and SEA are constructed from the same role-consistent and role-drift examples available to ATC. Under this control, the component ablation in Table 3 identifies the geometric role representation as the principal mechanism, with the linguistic and logical terms acting as complementary safeguards rather than carrying the gain on their own.
Appendix A4 reports further controls for behavior-encoder capacity, selective correction, legitimate role overlap, and deployment artifacts. The pattern is stable across three BGE v1.5 encoder scales: smaller encoders reduce latency while retaining most of ATC's gain over SOP-Role. Gating regeneration by the pre-correction drift energy produces a smooth reliability–cost trade-off rather than an abrupt collapse. Because role projectors are fixed, they can be precomputed, and the geometric correction is closed form, so most added runtime comes from regeneration and re-evaluation. Finally, ATC does not require mutually orthogonal roles: hard orthogonality and excessive leakage regularization both reduce performance, whereas the validation-selected better preserves legitimate shared functions such as reasoning, clarification, and evidence use. These analyses support the interpretation of ATC as a lightweight message-boundary controller whose expensive language-model step can be gated when budgets require it.
7 Conclusion
ATC addresses a specific coordination failure: a message may be locally plausible yet perform a function that does not belong to the agent that produced it. The method turns role compliance into an explicit runtime contract, combining role-subspace deviation, cross-role leakage, speech-act checks, and logical constraints before a proposed message enters the shared trajectory. Across EntCollabBench, MultiAgentBench, and SWE-bench Verified, ATC improves task performance and role consistency while reducing role-drift energy, with the largest gains in larger and heterogeneous teams. Ablations and stress tests show that the effect does not require strict role orthogonality, and gated regeneration provides a practical reliability–cost trade-off. Because the contract is enforced where messages are exchanged rather than inside any one model, the controller requires only message-level access to the generator, although its auxiliary encoder, classifiers, and contract artifacts remain inspectable. More broadly, the results indicate that deciding which agent may perform which function should be treated as a first-class coordination objective, rather than left to prompting or workflow structure.
8 Limitations
ATC provides a runtime mechanism for detecting and correcting role drift at the message boundary, but several limitations remain. First, it depends on the quality of the role representations, role contracts, and behavior encoder used to map agent outputs into functional vectors. If the role basis is incomplete or the contract is underspecified, the controller may miss subtle drift or over-correct behavior that is useful and legitimately shared between roles. Second, black-box deployment relies on role-constrained regeneration rather than direct intervention in the generating model. This broader applicability comes with less direct control over how the revised message is produced.
Third, our evaluation focuses on collaborative multi-agent settings with predefined roles such as planner, retriever, verifier, executor, monitor, and summarizer. While these roles cover many common agentic workflows, real-world systems may contain more fluid or overlapping responsibilities, where strict role boundaries are harder to define. Fourth, role consistency is measured using a fixed rubric and automated judging procedure, which may introduce evaluation bias. Although the same judging protocol is applied to all methods, future work should study more diverse evaluation protocols and robustness across different judges.
Fifth, ATC introduces additional computation through behavior encoding, drift scoring, correction, regeneration, and re-evaluation. Our cost and latency results suggest that this overhead is justified by improved role stability, but the trade-off may be less favorable in very low-latency or resource-constrained deployments. Finally, ATC reduces role drift but does not guarantee complete correctness, safety, or alignment of the overall multi-agent system. A role-consistent output can still be factually incorrect, biased, incomplete, or unsafe. Therefore, ATC should be viewed as a role-stability mechanism rather than a complete solution for reliable or safe autonomous agents.
9 Ethics Statement
This work studies role drift in multi-agent LLM systems and proposes ATC as a runtime control method for improving role consistency and collaboration reliability. The intended use of ATC is to reduce unintended role violations, authority confusion, and cross-agent functional leakage in systems that rely on specialized agents. By detecting and correcting role-inconsistent outputs before they enter the shared conversation, ATC may help make multi-agent systems more predictable, auditable, and easier to govern.
The work also introduces potential risks. A role-control mechanism could be misused to enforce overly rigid behavior, suppress useful disagreement, or constrain agents in ways that hide uncertainty or alternative viewpoints. Incorrectly specified role contracts may cause the system to reject valid outputs or preserve harmful role definitions. In high-stakes settings, such as healthcare, law, finance, or safety-critical operations, ATC should not be used as the only safeguard. It should be combined with factual verification, human oversight, domain-specific validation, and safety monitoring.
Our experiments use existing benchmarks and generated multi-agent traces. We do not collect new personal data or conduct human-subject experiments. Any released artifacts should remove personally identifying information from logs and should include documentation describing intended use, evaluation settings, and limitations. We cite the creators of the datasets, benchmarks, and baseline methods used in the study, and all artifacts should be used consistently with their licenses and research-use conditions. If AI assistants were used for writing, editing, or coding support, all final claims, experiments, and analyses should be reviewed and verified by the authors.
Acknowledgments
The authors acknowledge the NSF-supported Advanced Cyberinfrastructure Coordination Ecosystem: Services & Support (ACCESS) program for providing GPU computing resources and UFIT Research Computing for providing HiPerGator computational resources and support.
References
Mert Cemri, Melissa Z. Pan, Shuyi Yang, Lakshya A. Agrawal, Bhavya Chopra, Rishabh Tiwari, Kurt Keutzer, Aditya Parameswaran, Dan Klein, Kannan Ramchandran, Matei A. Zaharia, Joseph E. Gonzalez, and Ion Stoica. 2025. Why do multi-agent LLM systems fail? In Advances in Neural Information Processing Systems, volume 38, pages 135676–135729.
Weize Chen, Yusheng Su, Jingwei Zuo, Cheng Yang, Chenfei Yuan, Chi-Min Chan, Heyang Yu, Yaxi Lu, Yi-Hsin Hung, Chen Qian, Yujia Qin, Xin Cong, Ruobing Xie, Zhiyuan Liu, Maosong Sun, and Jie Zhou. 2024. AgentVerse: Facilitating multi-agent collaboration and exploring emergent behaviors. In The Twelfth International Conference on Learning Representations.
Neil Chowdhury, James Aung, Chan Jun Shern, Oliver Jaffe, Dane Sherburn, Giulio Starace, Evan Mays, Rachel Dias, Marwan Aljubeh, Mia Glaese, Carlos E. Jimenez, John Yang, Leyton Ho, Tejal Patwardhan, Kevin Liu, and Aleksander Madry. 2024. Introducing SWE-bench Verified. OpenAI technical announcement. Published 13 August 2024; updated 24 February 2025.
Taicheng Guo, Xiuying Chen, Yaqi Wang, Ruidi Chang, Shichao Pei, Nitesh V. Chawla, Olaf Wiest, and Xiangliang Zhang. 2024. Large language model based multi-agents: A survey of progress and challenges. In Proceedings of the Thirty-Third International Joint Conference on Artificial Intelligence, pages 8048–8057.
Sirui Hong, Mingchen Zhuge, Jonathan Chen, Xiawu Zheng, Yuheng Cheng, Jinlin Wang, Ceyao Zhang, Zili Wang, Steven Ka Shing Yau, Zijuan Lin, Liyang Zhou, Chenyu Ran, Lingfeng Xiao, Chenglin Wu, and Jürgen Schmidhuber. 2024. MetaGPT: Meta programming for a multi-agent collaborative framework. In The Twelfth International Conference on Learning Representations.
Carlos E. Jimenez, John Yang, Alexander Wettig, Shunyu Yao, Kexin Pei, Ofir Press, and Karthik R. Narasimhan. 2024. SWE-bench: Can language models resolve real-world GitHub issues? In The Twelfth International Conference on Learning Representations.
Guohao Li, Hasan Hammoud, Hani Itani, Dmitrii Khizbullin, and Bernard Ghanem. 2023. CAMEL: Communicative agents for “mind” exploration of large language model society. In Advances in Neural Information Processing Systems, volume 36, pages 51991–52008.
Bertrand Meyer. 1992. Applying “Design by Contract”. Computer, 25(10):40–51.
Joon Sung Park, Joseph C. O'Brien, Carrie J. Cai, Meredith Ringel Morris, Percy Liang, and Michael S. Bernstein. 2023. Generative agents: Interactive simulacra of human behavior. In Proceedings of the 36th Annual ACM Symposium on User Interface Software and Technology, pages 1–22. Association for Computing Machinery.
Vishal Pramanik, Maisha Maliha, Nathaniel D. Bastian, Alvaro Velasquez, Susmit Jha, and Sumit Kumar Jha. 2026. NSF-CoT: Neuro-symbolic formal verification of chain-of-thought faithfulness in contextual question answering. In Findings of the Association for Computational Linguistics: ACL 2026, pages 10645–10663, San Diego, California, United States. Association for Computational Linguistics.
Chen Qian, Wei Liu, Hongzhang Liu, Nuo Chen, Yufan Dang, Jiahao Li, Cheng Yang, Weize Chen, Yusheng
Su, Xin Cong, Juyuan Xu, Dahai Li, Zhiyuan Liu, and Maosong Sun. 2024. ChatDev: Communicative agents for software development. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 15174–15186, Bangkok, Thailand. Association for Computational Linguistics.
Yifu Qiu, Zheng Zhao, Yftah Ziser, Anna Korhonen, Edoardo M. Ponti, and Shay B. Cohen. 2024. Spectral editing of activations for large language model alignment. In Advances in Neural Information Processing Systems, volume 37, pages 56958–56987.
Nina Rimsky, Nick Gabrieli, Julian Schulz, Meg Tong, Evan Hubinger, and Alexander Turner. 2024. Steering Llama 2 via contrastive activation addition. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 15504–15522, Bangkok, Thailand. Association for Computational Linguistics.
Ravi S. Sandhu, Edward J. Coyne, Hal L. Feinstein, and Charles E. Youman. 1996. Role-based access control models. Computer, 29(2):38–47.
Timo Schick, Jane Dwivedi-Yu, Roberto Dessì, Roberta Raileanu, Maria Lomeli, Eric Hambro, Luke Zettle-moyer, Nicola Cancedda, and Thomas Scialom. 2023. Toolformer: Language models can teach themselves to use tools. In Advances in Neural Information Processing Systems, volume 36, pages 68539–68551.
Fred B. Schneider. 2000. Enforceable security policies. ACM Transactions on Information and System Security, 3(1):30–50.
Yongliang Shen, Kaitao Song, Xu Tan, Dongsheng Li, Weiming Lu, and Yueting Zhuang. 2023. HuggingGPT: Solving AI tasks with ChatGPT and its friends in Hugging Face. In Advances in Neural Information Processing Systems, volume 36, pages 38154–38180.
Noah Shinn, Federico Cassano, Ashwin Gopinath, Karthik Narasimhan, and Shunyu Yao. 2023. Reflexion: Language agents with verbal reinforcement learning. In Advances in Neural Information Processing Systems, volume 36, pages 8634–8652.
Guangya Wan, Mingyang Ling, Xiaoqi Ren, Rujun Han, Sheng Li, and Zizhao Zhang. 2026. COMPASS: Enhancing agent long-horizon reasoning with evolving context. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 3360–3380, San Diego, California, United States. Association for Computational Linguistics.
Guanzhi Wang, Yuqi Xie, Yunfan Jiang, Ajay Mandlekar, Chaowei Xiao, Yuke Zhu, Linxi Fan, and Anima Anandkumar. 2024a. Voyager: An open-ended embodied agent with large language models. Transactions on Machine Learning Research.
Haoyu Wang, Christopher M. Poskitt, and Jun Sun. 2025. Agentspec: Customizable runtime enforcement for safe and reliable llm agents. Preprint, arXiv:2503.18666.
Lei Wang, Chen Ma, Xueyang Feng, Zeyu Zhang, Hao Yang, Jingsen Zhang, Zhiyuan Chen, Jiakai Tang, Xu Chen, Yankai Lin, Wayne Xin Zhao, Zhewei Wei, and Ji-Rong Wen. 2024b. A survey on large language model based autonomous agents. Frontiers of Computer Science, 18(6):186345.
Noah Wang, Z.Y. Peng, Haoran Que, Jiaheng Liu, Wangchunshu Zhou, Yuhan Wu, Hongcheng Guo, Ruitong Gan, Zehao Ni, Jian Yang, Man Zhang, Zhaoxiang Zhang, Wanli Ouyang, Ke Xu, Wenhao Huang, Jie Fu, and Junran Peng. 2024c. RoleLLM: Benchmarking, eliciting, and enhancing role-playing abilities of large language models. In Findings of the Association for Computational Linguistics: ACL 2024, pages 14743–14777, Bangkok, Thailand. Association for Computational Linguistics.
Qingyun Wu, Gagan Bansal, Jieyu Zhang, Yiran Wu, Beibin Li, Erkang Zhu, Li Jiang, Xiaoyun Zhang, Shaokun Zhang, Jiale Liu, Ahmed Hassan Awadallah, Ryen W. White, Doug Burger, and Chi Wang. 2024. AutoGen: Enabling next-gen LLM applications via multi-agent conversations. In First Conference on Language Modeling.
Wujiang Xu, Zujie Liang, Kai Mei, Hang Gao, Juntao Tan, and Yongfeng Zhang. 2025. A-mem: Agentic memory for llm agents. Preprint, arXiv:2502.12110.
Shunyu Yao, Jeffrey Zhao, Dian Yu, Nan Du, Izhak Shafran, Karthik Narasimhan, and Yuan Cao. 2023. ReAct: Synergizing reasoning and acting in language models. In The Eleventh International Conference on Learning Representations.
Tao Yu, Hao Wang, Changyu Li, Shenghua Chai, Minghui Zhang, Zhongtian Luo, Yuxuan Zhou, Haopeng Jin, Zhaolu Kang, Jiabing Yang, YiFan Zhang, Xinming Wang, Hongzhu Yi, Zheqi He, Jing-Shu Zheng, Xi Yang, Yan Huang, and Liang Wang. 2026. Beyond the all-in-one agent: Benchmarking role-specialized multi-agent collaboration in enterprise workflows. Preprint, arXiv:2605.08761.
Kunlun Zhu, Hongyi Du, Zhaochen Hong, Xiaocheng Yang, Shuyi Guo, Zhe Wang, Zhenhailong Wang, Cheng Qian, Xiangru Tang, Heng Ji, and Jiaxuan You. 2025. MultiAgentBench: Evaluating the collaboration and competition of LLM agents. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 8580–8622, Vienna, Austria. Association for Computational Linguistics.
A1 Theoretical Properties
We establish three basic properties of the proposed correction mechanism. First, the matrices in Eq. (2) and Eq. (4) are valid orthogonal projectors onto the corresponding role subspaces. Second, the closed-form solution in Eq. (10) solves the correction objective in Eq. (9). Third, the correction step satisfies the local monotonicity property stated in Eq. (12). These results apply to the vector-space correction stage. They do not claim that the full post-regeneration energy always decreases, since the linguistic and logical terms in Eq. (8) depend on the realized text produced by the regeneration operator in Eq. (11).
A1.1 Projection Validity
Proposition 1. Let be any role-basis matrix, possibly with linearly dependent columns. Then
is the orthogonal projector onto .
Proof. For any matrix , is the standard orthogonal projector onto its column space. We verify the two projector properties.
First, is symmetric. Since is symmetric and positive semidefinite, its Moore–Penrose pseudoinverse is also symmetric. Therefore,
Second, is idempotent. Let . Then
By the Moore–Penrose identity , we obtain
A symmetric idempotent matrix is an orthogonal projector. Its range is , because is always a linear combination of columns of , and every vector satisfies . Hence, is the orthogonal projector onto . The same argument applies to in Eq. (4).
A1.2 Closed-Form Correction
Proposition 2. The coefficient vector in Eq. (10) solves the correction objective in Eq. (9).
Proof. The correction objective in Eq. (9) is
Since , every feasible vector can be written as . Substituting this into the objective gives
Expanding the objective,
Taking the gradient with respect to c gives
Setting the gradient to zero yields the normal equation
By Proposition 1, is an orthogonal projector, so it is symmetric and idempotent. Hence , and the normal equation becomes
When the coefficient matrix is invertible, this system has the usual inverse solution. In general, it may be singular, so the Moore–Penrose pseudoinverse gives a minimum-norm solution:
which is exactly Eq. (10). The corrected target is then .
A1.3 Objective Monotonicity
Proposition 3. The role-preserving correction satisfies the local monotonicity property in Eq. (12):
Proof. Define the correction objective
By Eq. (9), is a minimizer of over . Therefore, for every feasible ,
By Eq. (2), projects onto . Hence and is a feasible comparison point. Setting gives
Substituting the definition of yields
which proves Eq. (12).
A1.4 Interpretation of the Bound
The bound in Eq. (12) shows that the corrected target is never worse than the ordinary projection under the leakage-regularized correction objective. The first term preserves closeness to the original behavior vector from Eq. (1), while the second term penalizes leakage into the forbidden-role space defined by Eq. (4). Thus, the correction simultaneously maintains role alignment and suppresses cross-role contamination.
This guarantee is intentionally local. It applies to the continuous behavior vector before regeneration. After applying the constrained regeneration operator in Eq. (11), the realized text is re-encoded and re-evaluated. Therefore, the full role-drift energy in Eq. (8) should be measured again on the released output rather than assumed to decrease.
A2 Reproducibility Details
This appendix provides the implementation and evaluation details required to reproduce the ATC experiments. All methods use the same role prompts, tool interfaces, retrieval budget, context budget, maximum turn limit, and stopping criteria; only the role-control mechanism differs across methods.
A2.1 Model and Team Configuration
Table 9 summarizes the model composition used in the three team settings. S1 evaluates whether ATC works when all agents share the same model behavior. S2 and S3 evaluate whether ATC remains stable when agents come from different model families and therefore differ in instruction following, verbosity, uncertainty expression, and tool use.
For S1, all agents use the same instruction-tuned backbone. For S2 and S3, planning, retrieval, verification, execution, and monitoring roles are assigned to distinct model families. The core ten roles are COORDINATOR, PLANNER, RETRIEVER,
Table 9: Model and team configuration. S1 is homogeneous; S2 and S3 are heterogeneous. S3 is the hardest setting, with 12 agents and at least five model families.
| Setting | Agents | Families | Role Assignment |
|---|---|---|---|
| S1: Hom-10 | 10 | 1 | same backbone for all roles |
| S2: Het-10 | 10 | 5 | role groups by model family |
| S3: Het-12 | 12 | 5+ | S2 + auditor, specialist |
Table 10: Shared runtime settings. These settings are fixed across all methods unless otherwise stated.
| Parameter | Value |
|---|---|
| Temperature | 0.2 |
| Top-p | 0.95 |
| Max output tokens / turn | 512 |
| Max turns / episode | 200 |
| Context budget | 128K tokens |
| Retrieval budget | top-k = 10 |
| Seeds | 3 |
| Summary interval | every 20 turns |
| Evaluation split | fixed across all methods |
MEMORY-WRITER, MEMORY-READER, VERIFIER, CRITIC, EXECUTOR, MONITOR, and SUMMARIZER. S3 additionally includes a POLICY-AUDITOR and a DOMAIN-SPECIALIST. In the released code, we provide a configuration file listing each agent's exact checkpoint name, provider, version/date, context window, and role assignment.
A2.2 Decoding and Runtime Settings
Table 10 lists the shared decoding and runtime settings. We keep these fixed across ATC and all baselines to avoid confounding role control with decoding and context settings.
The behavior encoder maps each candidate output, local history, and shared context into a normalized functional behavior vector. The speech-act mapper is a fixed classifier over interaction functions such as ASSERT, RETRIEVE, VERIFY, EXECUTE, DELEGATE, SUMMARIZE, and REFUSE. The symbolic mapper extracts role-relevant predicates used by the logical contract, including whether the agent executed an unauthorized action, modified state without authority, answered outside its role, or failed to satisfy a required role obligation.
A2.3 ATC Hyperparameters
Table 11 reports the ATC hyperparameters used in the main experiments. We tune these values on the validation split and keep them fixed across all benchmarks and team settings. The same role-consistent and role-drift examples used to build ATC role bases are also used to train the steering

Logged per turn: original output , behavior vector , drift components, corrected target , regenerated output , tokens, latency
Figure 3: Reproducibility pipeline. Each run loads a fixed benchmark split, team configuration, role contract file, and method configuration. The logger records agent outputs, behavior vectors, drift scores, corrections, latency, token usage, and final benchmark metrics.
Table 11: ATC hyperparameters. Values are selected on validation and fixed across benchmarks.
| Symbol | Value | Meaning |
|---|---|---|
| 1.00 | out-of-role deviation weight | |
| 1.00 | cross-role leakage weight | |
| 0.50 | linguistic violation weight | |
| 0.75 | logical violation weight | |
| 0.50 | leakage penalty in correction | |
| 0.95 | temporal memory factor | |
| 16 | role-basis rank per agent |
directions for CAA and SEA.
A2.4 Hardware and Release
All experiments are run with identical hardware and batching settings across methods. We report wall-clock latency using end-to-end episode time, including agent calls, retrieval, ATC scoring, correction, regeneration, and re-evaluation.
Figure 3 summarizes the logging pipeline. Each agent turn is stored with the original output , behavior vector , role-drift components, corrected target , regenerated output , role-consistency judgment, token usage, and latency. This allows every aggregate score in the main paper to be recomputed from the turn-level logs.
A3 Qualitative Examples
Quantitative metrics show that ATC reduces role drift, but qualitative examples clarify what the correction changes at the turn level. Table 12 shows representative cases from EntCollabBench under S3: Het-12. Each example contains a drifted output, the ATC-corrected output, and the reason for the correction.
The examples show three common drift patterns. First, an agent may perform a neighboring role, such as a Verifier becoming a Planner. Second, an agent may exceed its authority, such as an Executor modifying shared memory. Third, an agent may transform evidence into a conclusion despite only being authorized to retrieve or store informa-

Figure 4: Example role-drift trace. The drifted Verifier output causes a spike in role-drift energy due to cross-role leakage into the Planner subspace. ATC correction lowers the released output's drift energy before it enters the shared conversation.
tion. ATC corrects these failures by combining role-subspace deviation, cross-role leakage, speech-act violation, and logical-contract violation.
Figure 4 illustrates the same phenomenon as a turn-level trace. The original Verifier output has high cross-role leakage and therefore high role-drift energy. After correction, the regenerated output preserves the useful intent of the message but expresses it as a verification action rather than a planning action. This prevents the local role violation from becoming shared context for downstream agents.
Figure 5 breaks down the correction for one representative turn. The drifted output is fluent and task-relevant, but it uses the wrong functional mode. The corrected output remains useful while respecting the assigned role, illustrating why task-level correctness alone is insufficient for evaluating role-stable multi-agent systems.
A4 Robustness and Deployment
This section provides additional analyses of ATC along four dimensions: dependence on auxiliary components and supervision, sensitivity to the behavior encoder, selective correction for lower-cost
Table 12: Qualitative role-drift corrections. ATC rewrites outputs so that each agent remains within its assigned function before the message is released to the shared conversation.
| Agent | Drifted Output | ATC Correction | Why Corrected |
|---|---|---|---|
| Verifier | "We should assign the retrieval task to the Memory-Reader, then ask the Executor to submit the final answer." | "The proposed plan requires verification. I will check whether the retrieval step matches the task constraints and whether the Executor has sufficient evidence before finalization." | Verifier leaked into Planner role. ATC suppresses planning behavior and restores verification behavior. |
| Retriever | "The contract likely requires approval from the finance lead, so the answer is yes." | "I found the relevant policy passage but cannot infer the final decision. The Verifier should check whether the approval condition is satisfied." | Retriever generated an unsupported conclusion instead of returning evidence. |
| Executor | "I will update the shared memory to mark this request as approved." | "I can produce the final response only after the Memory-Writer updates the state and the Verifier confirms the approval condition." | Executor attempted an unauthorized state update. ATC enforces the logical role contract. |
| Memory-Writer | "The user should choose option B because it is cheaper." | "I will store the updated constraint: option B has the lowest cost among the available choices." | Memory-Writer began making a recommendation. ATC restricts it to state maintenance. |

Figure 5: Component breakdown for a corrected turn. ATC reduces out-of-role deviation, cross-role leakage, linguistic violation, and logical contract violation. The largest reduction occurs in cross-role leakage, matching the qualitative observation that the Verifier was drifting into the Planner role.
deployment, and preservation of legitimate overlap between agent roles.
A4.1 Controls and Component Dependence
ATC does not introduce a task-specific learned controller, nor does it receive privileged supervision relative to the compared methods. Across all experiments, the role prompts, tool access, retrieval budget, context budget, maximum number of turns, and stopping criteria are held fixed. Moreover, the role-consistent and role-drift examples used to construct the ATC role representations are also used to construct the steering directions for CAA and SEA.
The component ablation in Table 3 shows grace-
ful degradation when the auxiliary linguistic and logical checks are removed. Without the linguistic term, ATC achieves 72.1 Primary and 87.5 RC; without the logical-contract term, it achieves 71.6 Primary and 86.8 RC. Both variants remain above SOP-Role at 66.8 Primary and 78.2 RC under the same S3: Het-12 setting. Removing the role-subspace term produces the largest degradation, supporting the geometric role representation as the principal control mechanism, while the linguistic mapper and symbolic mapper provide complementary checks on speech acts, authority, and obligations.
The runtime computation is also structured to avoid iterative optimization. Because each role basis is fixed during evaluation, the corresponding projectors and can be precomputed once per agent. Given a candidate behavior vector, Eq. (10) then produces the leakage-regularized correction in closed form. As reported in Table 8, relative to SOP-Role, full ATC adds 6.6K generated tokens and 3.9 s of wall-clock latency per episode (126.2K/28.5 s versus 132.8K/32.4 s). This additional computation accompanies an increase in Primary from 66.8 to 76.4 and RC from 78.2 to 93.5, together with a reduction in RDE from 0.29 to 0.11. ATC also obtains the highest cost-normalized role-consistency gain, with RCG/C = 1.97 compared with 0.86 for SOP-Role. Constrained regeneration therefore constitutes the primary additional runtime cost, while the geometric correction itself remains inexpensive.
Algorithm 1 ATC: Agent Trajectory Control
Require: Agents with roles
Require: Role bases ; encoder ; speech-act mapper ; symbolic mapper ; regeneration operator
Require: Contracts ; linguistic masks ; weights ; leakage weight ; memory factor
Ensure: Corrected trajectory , corrected drift scores , and system drift
Precomputation
1: for each agent do 2: 3: 4: if has no columns then 5: 6: else 7: 8: end if 9: 10: 11: 12: end for
Online control
13: for do 14: for each agent do 15: 16: end for 17: for each active agent do 18: Generate from history and shared context 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: Recompute from using the same drift terms 32: 33: Release and update the shared context 34: end for 35: end for 36: 37: return , and
A4.2 Behavior-Encoder Sensitivity
We test whether ATC's performance depends critically on the capacity of the fixed behavior encoder. To isolate encoder capacity without introducing a model-family confound, we compare the large, base, and small checkpoints of the BGE v1.5 family (exact model identifiers in Table 13). All experiments use EntCollabBench under S3: Het-12, with the interaction traces, role descriptions, role-consistent demonstrations, logical contracts, basis rank, ATC weights, and evaluation episodes held fixed. Because the checkpoints have different embedding dimensions, the role bases are reconstructed independently in each encoder's native representation space.
Performance degrades smoothly rather than collapsing as encoder capacity is reduced. The small encoder reduces encoding latency by approximately two thirds while retaining 73.6 Primary and 89.4 RC, and the base encoder recovers most of the large-encoder performance at relative encoding latency. All three configurations remain above SOP-Role (66.8 Primary, 78.2 RC, and 0.29 RDE). These results indicate that ATC's benefit is not specific to the largest encoder; the essential requirement is an embedding space that preserves distinguishable functional role directions.
A4.3 Gated Correction
Full ATC corrects every candidate output before it enters the shared conversation. This design maximizes role stability in extended collaboration, where a single role-violating output can become context for many subsequent decisions. For deployments with tighter latency or token budgets, we additionally evaluate a gated variant in which constrained regeneration is performed only when the pre-correction drift energy satisfies .
We evaluate on EntCollabBench under S3: Het-12. As reported in Table 1, stable and drifted turns have mean role-drift energies of 0.36 and 1.47, respectively. The selected thresholds range from below to slightly above the stable-turn mean while remaining below the drifted-turn mean, allowing us to vary how selectively ATC invokes constrained regeneration.
Table 14 shows a smooth cost-performance trade-off. Increasing the threshold reduces the fraction of regenerated turns, generated tokens, and latency, while progressively lowering task performance and role consistency. At , ATC corrects 72.6%
Table 13: Sensitivity to behavior-encoder scale on EntCollabBench, S3: Het-12. Relative encoding latency is normalized to bge-large-en-v1.5.
| Behavior encoder | Primary ↑ | RC ↑ | RDE ↓ | Relative encoding latency ↓ |
|---|---|---|---|---|
| BAAI/bge-large-en-v1.5 | 76.4 | 93.5 | 0.11 | 1.00× |
| BAAI/bge-base-en-v1.5 | 75.2 | 91.8 | 0.14 | 0.62× |
| BAAI/bge-small-en-v1.5 | 73.6 | 89.4 | 0.17 | 0.34× |
Table 14: Gated ATC cost-performance trade-off on EntCollabBench, S3: Het-12. Full ATC corrects every turn, whereas ATC-Gated regenerates only when .
| Correction policy | Corrected turns (%) | Primary ↑ | RC ↑ | RDE ↓ | Tokens (K) ↓ | Latency (s) ↓ |
|---|---|---|---|---|---|---|
| SOP-Role (no runtime correction) | 0.0 | 66.8 | 78.2 | 0.29 | 126.2 | 28.5 |
| ATC-Gated, | 24.7 | 71.3 | 85.1 | 0.21 | 128.1 | 29.7 |
| ATC-Gated, | 46.8 | 73.9 | 89.2 | 0.16 | 129.9 | 30.8 |
| ATC-Gated, | 72.6 | 75.6 | 92.1 | 0.13 | 131.5 | 31.7 |
| ATC (correction at every turn) | 100.0 | 76.4 | 93.5 | 0.11 | 132.8 | 32.4 |
of turns, reducing usage to 131.5K tokens and 31.7 s while retaining 75.6 Primary, 92.1 RC, and 0.13 RDE. Higher thresholds provide further cost reductions but allow additional role drift. The all-turn ATC configuration remains strongest in Primary, RC, and RDE, whereas the gated variants provide lower-cost operating points when exhaustive correction is unnecessary.
A4.4 Role Overlap and Over-Correction
ATC does not assume mutually exclusive or orthogonal role spaces. Different roles may legitimately share functional directions corresponding to reasoning, evidence use, clarification, or uncertainty expression. The leakage term in Eq. (9) is therefore a soft penalty rather than a hard orthogonality constraint. The correction-objective ablation in Table 4 supports this choice: enforcing hard orthogonality to the forbidden-role space yields 69.8 Primary, compared with 76.4 for the full leakage-regularized objective. Similarly, Table 6 shows that excessive leakage suppression is detrimental: increasing from the validation-selected 0.50 to 2.00 decreases Primary from 76.4 to 73.6 and increases RDE from 0.11 to 0.15.
To examine whether these changes correspond to harmful suppression of legitimate shared behavior, we conduct a targeted audit of 100 held-out turns containing valid overlap between agent responsibilities. We compare the selected with the deliberately over-constrained .
At , harmful over-correction occurs in only 5.6% of the audited cases and 94.3% of task-relevant content is preserved. Under the intentionally stronger penalty, harmful corrections rise to 18.4% and content preservation falls to 82.1%. This behavior is consistent with the accompanying decrease in Primary and increase in RDE. Together with the hard-orthogonality ablation, the audit indicates that validation-selected soft leakage control suppresses unauthorized role transfer without requiring semantic isolation between agents.
A4.5 Per-Domain Role Artifacts and Curation
Instantiating ATC in a new domain requires three groups of per-role artifacts: (i) a role description, (ii) role-consistent demonstrations, and (iii) linguistic and logical constraints specifying permitted interaction functions together with required and prohibited behaviors. No task-specific controller is trained. Role bases are constructed from the role descriptions and role-consistent demonstrations; once a basis is available, its role projector is computed automatically using Eq. (2), and the corresponding forbidden-role projector is precomputed from the other role bases.
The demonstrations are not an ATC-specific supervision advantage: the same role-consistent and role-drift examples are provided to CAA and SEA for constructing their steering directions. The released artifact comprises the role prompts, role contracts, role-basis construction scripts, benchmark wrappers, evaluation scripts, hyperparameter files, and anonymized turn-level logs. Consequently, adapting ATC to a new domain primarily requires specifying the role artifacts rather than training a new controller. Per-role demonstration counts, logical-predicate counts, and curation time should be reported alongside these configurations to make this authoring cost explicit.
Table 15: Audit of legitimate role overlap on held-out EntCollabBench turns. Moderate leakage control substantially reduces harmful over-correction while preserving task-relevant content.
| Leakage weight | Primary ↑ | RC ↑ | RDE ↓ | Harmful over-correction ↓ | Content preserved ↑ |
|---|---|---|---|---|---|
| 76.4 | 93.5 | 0.11 | 5.6% | 94.3% | |
| 73.6 | 90.8 | 0.15 | 18.4% | 82.1% |