Agent Team Contagion: Measure, Forecast, Test
Tarun Martheswaran, Shilp Shah · Team The Owner Said So
Submitted to Swarm Alignment Hackathon. Sprint projects are early-stage work by participants, not Apart Research publications.
Teams of AI coding agents share files, so one bad instruction can spread through the team. We built Agent Team Contagion, an open pipeline that tells an operator in advance whether their team setup would contain or spread a bad rule. It runs a few cheap configurations of real Claude agent teams, fits per-exposure adoption, recovery and cleaning probabilities, simulates setups that were never run, and then tests that forecast, frozen in git beforehand, against new real runs. Across 105 runs, a pre-registered forecast for an unrun mix of Haiku and Sonnet workers passed against five new runs. Haiku adopted a “do not write tests” rule from a shared AGENTS.md in 45 of 45 exposures, but took a rule from an imported module’s header in 0 of 329 exposures across six settings. The same rule did spread when it arrived as a direct message claiming the owner’s authority. In exploratory runs, whether an Opus orchestrator obeyed the rule depended on reasoning effort and on an arbitrary marker word.

Reviews
The pre-registered, git-frozen forecast tested against new real runs is a strong, uncommon design for agent-safety work. The contrast is clear and useful. Haiku adopted the rule from a shared AGENTS.md in 45/45 exposures but took it from a module header in 0/329. The same rule spread when it came as a direct message claiming owner authority. Limits: only five validation runs, one model family, and exploratory Opus results that depend on reasoning effort and an arbitrary marker word, so they are hard to generalize. I would like to see more team setups and more rule types.
Cite this project
@misc{martheswaran2026agent,
title = {{Agent Team Contagion: Measure, Forecast, Test}},
author = {Tarun Martheswaran and Shilp Shah},
year = {2026},
month = nov,
note = {Submitted to Swarm Alignment Hackathon, an Apart Research Sprint},
howpublished = {\url{https://apartresearch.com/sprints/projects/agent-team-contagion-measure-forecast-test-yhw74k0r6s}},
url = {https://apartresearch.com/sprints/projects/agent-team-contagion-measure-forecast-test-yhw74k0r6s}
}Browse all projects