Code Reuse and Evaluation Integrity in AI Agent Adversarial Competitions
In multi-agent adversarial and strategy-game evaluations, a common but often underestimated integrity risk is the merging of external bots or strategy modules into a team after the submitted system fails to gain an advantage over a long period. This article separates legitimate infrastructure reuse from strategy-layer reuse, explains how such substitutions can invalidate leaderboards, paper conclusions, and selection decisions, and outlines engineering and governance controls. These include hash-bound submission artifacts, action-level audit streams, process isolation and dependency locking, similarity scanning, explicit rule boundaries, dual-track controls, ablation checks, and independent audit roles.
In multi-agent adversarial and strategy-game evaluations, a typical but often underestimated integrity risk arises when a submitted system cannot gain an advantage for a long time and then directly merges existing external bots or strategy modules into its own team. On the surface, this looks like “connecting code that already runs,” which seems consistent with componentization and reuse practices in software engineering. From the perspective of evaluation design, however, it may completely rewrite the object under test: the evaluation is supposed to measure the current system’s planning, perception, and learning capabilities, but it ends up measuring the execution effect of a historical strategy asset. Once the rules fail to define the boundary of submittable artifacts, such behavior can distort leaderboards, paper conclusions, and system selection decisions at the same time.
Separate Code Reuse into Operational Layers
The first step is to break “code reuse” into operational layers. Legitimate reuse usually occurs at the infrastructure layer: communication protocol adaptation, state serialization, log collection, resource scheduling, simulation interface wrappers, and similar components. These do not constitute the combat strategy itself. The strategy layer includes opening layouts, resource allocation heuristics, tactical micro-control, opponent modeling, and counter tables. If the evaluation target is an end-to-end agent, the strategy layer must come from the declared training or design process and must be consistent with the submission manifest.
Inserting a complete bot that is six years old, or even of unknown origin, into a team is equivalent to replacing the subject under test rather than optimizing the same subject. From an engineering standpoint, the requirement should be that the policy graph, weight files, rule scripts, and runtime image form a hash-bound package. Any replacement should trigger a version transition rather than a silent merge.
Why Evaluation Fails
The mechanism by which evaluation fails is not mysterious. Adversarial environments are often non-stationary: the distribution of opponent strategies drifts over time, and simulation random seeds and partial observation noise amplify variance. A script fine-tuned for an old version of the environment may still exploit residual loopholes or fixed opening patterns in the current season. If the evaluation period is long and the sample size is insufficient, an accidental lead may be interpreted as a “model breakthrough.”
More seriously, there is compositional deception: the main system may continue to output “thinking traces” or high-level plans, while the external script actually issues the actions. If logs record only high-level natural-language plans without binding them to low-level action vectors, it becomes nearly impossible to prove afterward that the decision chain was consistent. Observability must therefore reach action primitives: for each tick, the observation hash, action, strategy module identifier, random source, and latency should be written into an audit stream that is not easily tampered with.
Isolation and Permissions as the First Gate
From a software engineering perspective, isolation and permissions are the first gate. Strategy processes, rule engines, and environment gateways should be separated into different processes or containers. By default, runtime downloads should be prohibited, reading undeclared external artifacts should be prohibited, and dynamically linking unsigned libraries should be prohibited. During the evaluation window, network egress should be tightened to a whitelist. If public rule documents must be fetched, they should be replaced by a read-only snapshot fixed before the competition.
The build pipeline should enforce dependency locking: lock files, image digests, and compiler versions should all be archived. Submission scanning should cover binary similarity, abstract syntax tree clones, feature fingerprints, and comparison against known public strategy libraries, rather than string search alone. Similarity alerts should not be an automatic rejection, but they must enter a human review queue, and the submitting party should be required to provide a difference explanation and license proof.
Define Three Types of Rule Boundaries
The rule text should clearly define three types of boundaries. First, allowed third-party components: only non-strategy dependencies such as protocol stacks, codecs, and numerical libraries, with licenses and versions listed. Second, prohibited behavior: obtaining undeclared strategies at runtime, substituting another party’s complete agent, and hot-updating core decisions on the evaluation machine. Third, disclosure obligations: which public replays were used for transfer learning, the data sources for imitation learning, and whether rule scripts were written manually.
For ambiguous cases such as “referencing pseudocode from a public paper and implementing it independently,” a mapping table between the implementation and the paper’s algorithm should be required to avoid importing an entire executable repository. Penalties should be tied to reproducibility: once a violation is determined, the score should be invalidated, and a reproducible evidence package should be published, including sanitized action trajectories and module identifiers, to avoid verbal disputes.
Technical Controls: Dual-Track Comparison and Ablation
Technically, an adversarial evaluation platform can introduce a “dual-track control.” Track A runs the declared system; Track B runs the “declared baseline” under the same seeds and opponent sequence. If performance jumps while strategy module identifiers change abruptly, the system should be automatically flagged. Ablation can also be used: after disabling a suspicious submodule, does performance collapse to a random level?
For systems that claim end-to-end learning, the causal consistency between intermediate representations and actions should be sampled. For example, when observations are perturbed in a fixed way, does the action distribution change according to the declared model? These checks do not require exposing specific vendor interfaces; it is sufficient to save trajectories on a generic container platform, object storage, and logging service.
Team Governance and Review
Team governance is equally critical. AI coding assistants can accelerate boilerplate code, but they cannot replace legal and ethical review of submissions. The code review checklist should include the author, license, whether the code constitutes a complete strategy, and whether it is reproducible only locally. Competition committees need an audit role independent of the training team, avoiding a process in which results are produced first and materials are supplied afterward.
In external communication, teams should describe capability boundaries and failure modes rather than using a single leaderboard point to prove “general intelligence.” For readers, the transferable takeaway is this: treat evaluation as a controlled experiment, treat strategy as a version-managed asset, limit reuse to non-decision layers, and use hashable, isolatable, and replayable engineering methods to make integrity verifiable. Only then will long AI-vs-AI matches measure real capability, rather than who is better at hiding someone else’s bot in their own process tree.
