Projects

Exploring Implicit Coordination Through Signalling and Cue-Utilization in Multi-Agent RL for Autonomous Cyber Defence

A controlled study of implicit coordination between two RL cyber-defenders with no message channel to test whether one learns to read broken server links as a warning, and whether the other keeps causing them because it does.

GitHub (opens in a new tab)Blog Post (opens in a new tab)

  • 250trained teams1
  • +7.6mean reward gain per episode when trained and evaluated with cue visible2
  • βˆ’16.2mean reward drop when cue hidden at eval (hence showing dependence on cue)
  • 17–19 / 25teams retaining sender signal

1A team is the 2 agents (one Agent-A and one Agent-B) trained together and evaluated together in one world with one seed. Every team is trained twice, once with Agent-B able to see the disrupted link and once with it hidden, which gives 25 pairs of teams per study.

2In Study 1, where the team trained and evaluated with Agent-B able to see the disrupted link earned 7.6 more reward per episode on average than its counterpart trained and evaluated with it hidden, in 24 of the 25 pairs.

A deep-dive into the findings and what they mean is at Talking Between the Lines. The simulator, the training code, the five studies, every result table and figure, and the trained weights of all 250 teams are on GitHub here.

The simulatorTwo zones side by side. Each holds three computers, one employee computer and one robot, the agent. Each computer in zone A is connected by a cable to one computer in zone B. A2 and B2 are compromised. Agent-A is restoring A2, so the connection between A2 and B2 is disrupted, and Agent-B can see that disruption.!ABZone AZone BA1A2A3B1B2B3Connection disrupted whileAgent-A restores A2 andpatches the vulnerabilityAgent-B can seethis disruptionemployee’s computeremployee’s computerAgent-A’s monitoring systemsends a warning 2 intervalsafter compromiseAgent-B’s monitoring systemsends a warning 6 intervalsafter compromiseAgent-Asees only its own zone?Agent-Bsees only its own zone

Built with

  • Python 3.12
  • PyTorch
  • NumPy
  • Matplotlib
  • pytest
  • uv

Mechanism

Each zone has three paired servers (A1–B1, A2–B2, A3–B3). Intrusions spread laterally across pairs, and only one side effect crosses zones:

  1. Agent-A restores an infected server
  2. The server’s link to its partner server in zone-B drops
  3. Agent-B sees the failed link
  • Cue Agent-B treats the disrupted link as an early warning before its own detector warns it about the intrusion (Study 1).
  • Signal Agent-A keeps disrupting the link specifically because Agent-B reacts to it (Studies 2–5).

Results

  • Agent-B learned to use the cue in every world. In 24 of 25 pairs in Study 1, the team whose Agent-B could see the disrupted link earned more reward than its counterpart, the team in which Agent-B could not see it (+7.6 per episode on average). 23 of those 25 teams beat the better hand-written heuristic, compared to 1 of 25 without the cue.

  • Teams actually came to rely on it as opposed to just noticing it. When the disrupted link was hidden from those same 25 trained teams at evaluation, every single one did worse, losing 16.2 reward per episode on average, roughly twice what the cue had gained them.

  • Agent-A kept signalling, but never invented it from scratch. With Zone-A’s compromise penalty set to 0, Agent-A still cut off the attacked server in 45.6% of intrusions in Study 4 (17 of 25 teams) and 55.2% in Study 5 (19 of 25) when Agent-B could see the disrupted link, compared to 0.4% and 3.7% when Agent-B couldn’t see it. From random weights (Study 3) or beside a still-learning Agent-B (Study 2), it dropped to almost zero (1 of 25 teams each).

  • Routine outages broke the sender side. Adding one harmless 3-interval outage per episode (World 5) made Agent-A drop the signal in every Study 4 team and 4 of 5 Study 5 teams, even though Agent-B still benefited from the cue there in Study 1.

  • Hence, cue-utilization by the receiver emerged in every world whereas signalling by the sender was mostly retained instead of emerging from scratch, and only when all three of these held:

    1. Agent-B could see the disrupted link.
    2. Agent-A was already causing it when training began.
    3. Agent-B already knew how to make use of it.

    Agent-A gave the signal up when even one of the three was removed.

Team Reward Per Episode

  • Agent-B Can See the Disruption
  • Agent-B Cannot See the Disruption
  • Mean of the 5 Teams
  • Better Hand-Written Heuristic
Team reward per episode in Study 1In every one of the five worlds the five teams in which agent-B can see the disruption sit above the five in which it cannot, by 8.4, 9.4, 6.5, 7.1 and 6.8 reward per episode on average, and above the better of the two hand-written heuristics in 23 of 25 cases.βˆ’70βˆ’60βˆ’50βˆ’40Seed 0: -38.43Seed 1: -35.99Seed 2: -35.99Seed 3: -42.25Seed 4: -40.5Seed 0: -44.6Seed 1: -47.53Seed 2: -53.96Seed 3: -43.96Seed 4: -45.22+8.4Seed 0: -41.85Seed 1: -43.35Seed 2: -42.12Seed 3: -44.8Seed 4: -42.76Seed 0: -54.61Seed 1: -55.81Seed 2: -50.33Seed 3: -50.86Seed 4: -50.37+9.4Seed 0: -42.24Seed 1: -47.52Seed 2: -44.75Seed 3: -51.03Seed 4: -44.19Seed 0: -51.18Seed 1: -53.56Seed 2: -51.24Seed 3: -50.93Seed 4: -55.46+6.5Seed 0: -51.89Seed 1: -56.22Seed 2: -56.92Seed 3: -55.07Seed 4: -58.23Seed 0: -61.97Seed 1: -62.55Seed 2: -64.66Seed 3: -61.83Seed 4: -62.66+7.1Seed 0: -66.14Seed 1: -64.48Seed 2: -67.6Seed 3: -65.2Seed 4: -62.41Seed 0: -73.74Seed 1: -69.07Seed 2: -71.56Seed 3: -73.32Seed 4: -71.93+6.81. Reliablewarnings2. One falsewarning3. Two falsewarnings4. False andmissedwarnings5. False, missedand outages
Study 1: Each dot is one team. In every world, the teams whose Agent-B could see the disruption (blue) outscored those whose Agent-B could not (gold), by the margin shown above each world.

Reward Lost Per Episode when Cue Hidden at Evaluation

  • Team Trained with the Disruption Visible
  • Mean of the 5 Teams
  • What the Cue Had Gained There
Reward lost per episode when the disruption is hidden at evaluationAll 25 teams that trained with the disruption visible lost reward when it was hidden from them at evaluation, 16.2 per episode on average. In the worlds with one and two false warnings and with missed warnings most teams lost more than the disruption had gained there.010203040Seed 0: 6.53Seed 1: 10.44Seed 2: 7.18Seed 3: 3.93Seed 4: 4.14Seed 0: 33.1Seed 1: 7.5Seed 2: 37.19Seed 3: 23.03Seed 4: 11.94Seed 0: 35.21Seed 1: 22.77Seed 2: 35.86Seed 3: 34.02Seed 4: 25.63Seed 0: 11.67Seed 1: 6.09Seed 2: 20.89Seed 3: 20.21Seed 4: 12.62Seed 0: 6.11Seed 1: 8.27Seed 2: 6.8Seed 3: 4.81Seed 4: 8.011. Reliablewarnings2. One falsewarning3. Two falsewarnings4. False andmissedwarnings5. False, missedand outages
Study 1: Each dot is one team trained with the cue, then evaluated with it hidden. All 25 lost reward, 16.2 per episode on average, and in three worlds far more than the cue had gained.

The Five Studies

StudyQuestionAgent-A starts fromAgent-BZone-A penaltyHow the cue is hiddenOutcome
1ReceiverPre-training on the inspect-then-restore ruleThe same pre-training, learning alongside agent-A2 per interval, as in zone-BEvery request to zone-A shown as β€œunknown”Cue used. 24 of 25 pairs, +7.6 reward per episode
2SenderSoftened pre-training, the restore fit to a 60% target instead of 95%The same pre-training, learning alongside agent-A0A failure from zone-A’s side shown as a successSignal dropped. 0.2% of intrusions, 1 of 25 teams
3SenderRandom weightsThe trained agent-B of the Study 1 team with the same world and seed, frozen0A failure from zone-A’s side shown as a successNever took hold. 1.2% of intrusions, 1 of 25 teams
4SenderSoftened pre-trainingThe same frozen agent-B0A failure from zone-A’s side shown as a successSignal kept. 45.6% of intrusions, 17 of 25 teams, against 0.4% without the cue
5SenderThe trained agent-A of the Study 1 teamThe same frozen agent-B0A failure from zone-A’s side shown as a successSignal kept. 55.2% of intrusions, 19 of 25 teams, against 3.7% without the cue
Every study has 5 worlds, 5 seeds, two versions of every team (agent-B can or cannot see the disruption), 3,000 iterations of 16 episodes, evaluation on the same 2,000 episodes against the always-wait, random and two hand-written rule baselines (Studies 3 to 5 add an agent-A that always waits beside the frozen agent-B), and both hiding methods applied to every trained team as a control. The outcome for Studies 2 to 5 is how often agent-A still cut off the attacked server, as a share of intrusions, and how many of the 25 teams did so in at least 1% of them, with agent-B able to see the disruption.

Share of Intrusions Where Agent-A Cut Off the Attacked Server

Sender Studies, i.e. 0 reward / direct incentive to clean compromised servers in zone-A

  • Agent-B Can See the Disruption
  • Agent-B Cannot See the Disruption
  • Bar Height: Mean of All 25 Teams
  • Dot: Mean of One World’s 5 Teams
  • Teams That Cut It Off in at Least 1% of Intrusions
How often Agent-A still cut off the attacked server in Studies 2 to 5With Agent-B able to see the disruption, Agent-A cut off the attacked server in 0.2% of intrusions in Study 2, 1.2% in Study 3, 45.6% in Study 4 and 55.2% in Study 5. With it hidden, 0%, 0%, 0.4% and 3.7%. The behaviour survived only in Studies 4 and 5, in 17 and 19 of 25 teams.0%25%50%75%100%Study 2, Agent-B can see the disruption: 0.2% of intrusions, 1 of 25 teams at 1% or more0.2%1. Reliable warnings: 0.0%2. One false warning: 0.0%3. Two false warnings: 0.0%4. False and missed warnings: 0.8%5. False, missed and outages: 0.0%1 of 25Study 2, Agent-B cannot see the disruption: 0.0% of intrusions, 0 of 25 teams at 1% or more0.0%1. Reliable warnings: 0.0%2. One false warning: 0.0%3. Two false warnings: 0.0%4. False and missed warnings: 0.0%5. False, missed and outages: 0.0%0 of 25Study 2Agent-A from Pre-TrainingAgent-B LearningStudy 3, Agent-B can see the disruption: 1.2% of intrusions, 1 of 25 teams at 1% or more1.2%1. Reliable warnings: 0.0%2. One false warning: 6.2%3. Two false warnings: 0.0%4. False and missed warnings: 0.0%5. False, missed and outages: 0.0%1 of 25Study 3, Agent-B cannot see the disruption: 0.0% of intrusions, 0 of 25 teams at 1% or more0.0%1. Reliable warnings: 0.0%2. One false warning: 0.0%3. Two false warnings: 0.0%4. False and missed warnings: 0.0%5. False, missed and outages: 0.0%0 of 25Study 3Agent-A from Random WeightsAgent-B FrozenStudy 4, Agent-B can see the disruption: 45.6% of intrusions, 17 of 25 teams at 1% or more45.6%1. Reliable warnings: 59.3%2. One false warning: 65.7%3. Two false warnings: 64.0%4. False and missed warnings: 38.7%5. False, missed and outages: 0.0%17 of 25Study 4, Agent-B cannot see the disruption: 0.4% of intrusions, 3 of 25 teams at 1% or more0.4%1. Reliable warnings: 0.1%2. One false warning: 0.0%3. Two false warnings: 1.2%4. False and missed warnings: 0.7%5. False, missed and outages: 0.0%3 of 25Study 4Agent-A from Pre-TrainingAgent-B FrozenStudy 5, Agent-B can see the disruption: 55.2% of intrusions, 19 of 25 teams at 1% or more55.2%1. Reliable warnings: 66.2%2. One false warning: 93.3%3. Two false warnings: 60.0%4. False and missed warnings: 50.1%5. False, missed and outages: 6.3%19 of 25Study 5, Agent-B cannot see the disruption: 3.7% of intrusions, 3 of 25 teams at 1% or more3.7%1. Reliable warnings: 13.5%2. One false warning: 0.1%3. Two false warnings: 0.2%4. False and missed warnings: 4.5%5. False, missed and outages: 0.0%3 of 25Study 5Agent-A from Study 1 WeightsAgent-B Frozen
Studies 2 to 5: How often Agent-A still cut off the attacked server after training. The behaviour survived only beside a frozen Agent-B that already used the cue, and only where Agent-A was already doing it when training began.

How It Was Tested

  • Paired arms, same seeds. Every condition trains two identical teams from the same seed that differ only in whether Agent-B can see cross-zone link failures. Every comparison is within a pair of teams across 5 worlds (vary in realistic operating conditions; noise like false warnings, missed warnings, outages) and 5 seeds each.
  • Zeroing Agent-A’s own incentive. In Studies 2 to 5, a compromised server in Zone-A carries no penalty. This way, Agent-A has no direct reason of its own to restore a server, so any disruption it keeps causing can only pay off through Agent-B’s reaction.
  • In-distribution masking & evaluation-time ablations. Study 1 hides the cue as unknown; Studies 2 to 5 mask remote failures as succeeded so the frozen Study-1 Agent-B never sees out-of-distribution inputs. Both masks are also applied after training to test causal reliance directly.
  • Ablations over starting weights and partner learning. Studies 2 to 5 vary only where Agent-A starts (random weights, softened pre-training, or Study-1 weights) and whether Agent-B stays frozen or keeps learning, alongside 5 baselines (always-wait, random, two heuristics, and always-wait-A beside frozen B).
  • Fixed-observation probes. Because a reactive Agent-B changes how episodes unfold, every trained Agent-A in Studies 2 to 5 is also scored on the exact same static set of observations. On an infected finding in Study 4, cue-visible Agent-A interrupts with 19.2% probability versus 3.0% for cue-hidden (higher in 18 of 25 pairs, lower in none).
  • Locked evaluation & reproducibility. Every team, baseline, and control is evaluated on the same 2,000 episodes. The launcher doesn’t run with uncommitted changes, and stamps the commit into every run.json, verifies frozen weights before and after training, and replays episode 0 to confirm exact determinism (all backed by 505 tests).

Agent-A’s Probability of Disrupting the Connection When Shown an Infected Finding

Study 4; Agent-A doesn’t have a directly rewarding incentive of doing so

One Pair of Teams,Version in Which Agent-B Can See the DisruptionVersion in Which Agent-B Cannot See the DisruptionMean of the 25 That Can SeeMean of the 25 That Cannot See
The fixed-input probe in Study 4Shown the same inspection finding that a server is infected, the Agent-A trained beside an Agent-B that can see the disruption cuts the connection with a probability of 19.2% on average, against 3.0% for its counterpart. Within a pair the first is higher by more than a point in 18 of the 25 pairs and lower in none.0%20%40%60%19.2%3.0%1. Reliable warnings, seed 0: 11.6% with the disruption visible, 0.7% with it hidden1. Reliable warnings, seed 1: 2.3% with the disruption visible, 0.1% with it hidden1. Reliable warnings, seed 2: 52.0% with the disruption visible, 4.9% with it hidden1. Reliable warnings, seed 3: 27.4% with the disruption visible, 0.1% with it hidden1. Reliable warnings, seed 4: 2.7% with the disruption visible, 0.2% with it hidden2. One false warning, seed 0: 47.1% with the disruption visible, 14.2% with it hidden2. One false warning, seed 1: 0.1% with the disruption visible, 0.0% with it hidden2. One false warning, seed 2: 53.1% with the disruption visible, 4.8% with it hidden2. One false warning, seed 3: 24.6% with the disruption visible, 2.7% with it hidden2. One false warning, seed 4: 13.4% with the disruption visible, 0.0% with it hidden3. Two false warnings, seed 0: 48.7% with the disruption visible, 0.0% with it hidden3. Two false warnings, seed 1: 18.9% with the disruption visible, 15.4% with it hidden3. Two false warnings, seed 2: 41.2% with the disruption visible, 2.1% with it hidden3. Two false warnings, seed 3: 54.6% with the disruption visible, 9.8% with it hidden3. Two false warnings, seed 4: 22.1% with the disruption visible, 9.7% with it hidden4. False and missed warnings, seed 0: 0.9% with the disruption visible, 0.0% with it hidden4. False and missed warnings, seed 1: 21.1% with the disruption visible, 0.0% with it hidden4. False and missed warnings, seed 2: 0.2% with the disruption visible, 0.7% with it hidden4. False and missed warnings, seed 3: 34.8% with the disruption visible, 9.0% with it hidden4. False and missed warnings, seed 4: 2.1% with the disruption visible, 0.0% with it hidden5. False, missed and outages, seed 0: 0.6% with the disruption visible, 0.4% with it hidden5. False, missed and outages, seed 1: 0.0% with the disruption visible, 0.1% with it hidden5. False, missed and outages, seed 2: 0.1% with the disruption visible, 0.5% with it hidden5. False, missed and outages, seed 3: 1.5% with the disruption visible, 0.0% with it hidden5. False, missed and outages, seed 4: 0.1% with the disruption visible, 0.0% with it hidden1. Reliablewarnings2. One falsewarning3. Two falsewarnings4. False andmissedwarnings5. False, missedand outages
Study 4: Both versions of every Agent-A, shown the same inspection finding that a server is infected, with no episode running. The version trained beside an Agent-B that could see the disruption disrupts the connection in 19.2% of cases on average, opposed to 3.0% for the version trained beside an Agent-B that cannot (higher by more than a point in 18 of 25 pairs and lower in none). The inputs were identical, so the difference is in the weights.

Example Episode to See this Coordination and its Benefit

Study 1 Β· one-false-warning Β· team seed 1 Β· eval seed 2001, episode 161 (intervals 0–23)

Same intrusion played by both paired teams.

In interval 10, when Agent-A starts restoring A2 and drops the A2–B2 link, the Agent-B that can see the cue inspects B2 and cleans it before its own warning arrives at interval 13, while the Agent-B that cannot see it waits for that warning and loses 9 more reward.

One episode, played by both versions of the teamTwo timelines of the same evaluation episode. The intruder lands on A2 at interval 5 and spreads to B2 at 6. In both teams agent-A inspects A2 on its warning at 7 and restores it from 9, which takes the link between A2 and B2 down. In the team whose agent-B can see the disruption, agent-B inspects B2 at 10, the interval after the link went down, and restores it from 12; B2 is clean at 15 and the team ends at βˆ’55.5. In the team whose agent-B cannot see it, agent-B waits for its own warning at 13, inspects, restores from 15; B2 is clean at 18 and the team ends at βˆ’64.5. A false warning for B1 arrives at 17 in both, and both agent-Bs inspect B1 and find it clean.Agent-B can see the disruptionreward over the episode βˆ’55.5compromisedcut offclean and patchedlink down, requests failnegative rewardHover over any mark for the detail.01234567891011121314151617181920212223intervalA1Interval 0. A1 is clean.Interval 1. A1 is clean.Interval 2. A1 is clean.Interval 3. A1 is clean.Interval 4. A1 is clean.Interval 5. A1 is clean.Interval 6. A1 is clean.Interval 7. A1 is clean.Interval 8. A1 is clean.Interval 9. A1 is clean.Interval 10. A1 is clean.Interval 11. A1 is clean.Interval 12. A1 is clean.Interval 13. A1 is clean.Interval 14. A1 is clean.Interval 15. A1 is clean.Interval 16. A1 is clean.Interval 17. A1 is clean.Interval 18. A1 is clean.Interval 19. A1 is clean.Interval 20. A1 is clean.Interval 21. A1 is clean.Interval 22. A1 is clean.Interval 23. A1 is clean.A2Interval 0. A2 is clean.Interval 1. A2 is clean.Interval 2. A2 is clean.Interval 3. A2 is clean.Interval 4. A2 is clean.Interval 5. A2 is compromised. The intruder landed on it this interval.✢Interval 6. A2 is compromised.Interval 7. A2 is compromised.Interval 8. A2 is compromised.Interval 9. A2 is compromised, cut off.Interval 10. A2 is compromised, cut off.Interval 11. A2 is compromised, cut off.Interval 12. A2 is clean and patched, cut off.Interval 13. A2 is clean and patched.Interval 14. A2 is clean and patched.Interval 15. A2 is clean and patched.Interval 16. A2 is clean and patched.Interval 17. A2 is clean and patched.Interval 18. A2 is clean and patched.Interval 19. A2 is clean and patched.Interval 20. A2 is clean and patched.Interval 21. A2 is clean and patched.Interval 22. A2 is clean and patched.Interval 23. A2 is clean and patched.A3Interval 0. A3 is clean.Interval 1. A3 is clean.Interval 2. A3 is clean.Interval 3. A3 is clean.Interval 4. A3 is clean.Interval 5. A3 is clean.Interval 6. A3 is clean.Interval 7. A3 is clean.Interval 8. A3 is clean.Interval 9. A3 is clean.Interval 10. A3 is clean.Interval 11. A3 is clean.Interval 12. A3 is clean.Interval 13. A3 is clean.Interval 14. A3 is clean.Interval 15. A3 is clean.Interval 16. A3 is clean.Interval 17. A3 is clean.Interval 18. A3 is clean.Interval 19. A3 is clean.Interval 20. A3 is clean.Interval 21. A3 is clean.Interval 22. A3 is clean.Interval 23. A3 is clean.Agent-AAgent-A, intervals 7 to 8: inspects A2, which takes 2 intervals and costs 0.5.inspect A2Agent-A, intervals 9 to 12: restores A2. The server is cut off from the moment the restore starts and is clean and patched when it finishes.restore A2Agent-A, interval 13: reconnects A2.reconnect A2Interval 7. Agent-A receives a warning for A2.warning A2Interval 11. Agent-A receives a warning for A2.warning A2link A2 – B2Interval 0. The requests between A2 and B2 go through.Interval 1. The requests between A2 and B2 go through.Interval 2. The requests between A2 and B2 go through.Interval 3. The requests between A2 and B2 go through.Interval 4. The requests between A2 and B2 go through.Interval 5. The requests between A2 and B2 go through.Interval 6. The requests between A2 and B2 go through.Interval 7. The requests between A2 and B2 go through.Interval 8. The requests between A2 and B2 go through.Interval 9. The requests between A2 and B2 fail. Agent-B can only see this if the disruption is not hidden from it.Interval 10. The requests between A2 and B2 fail. Agent-B can only see this if the disruption is not hidden from it.Interval 11. The requests between A2 and B2 fail. Agent-B can only see this if the disruption is not hidden from it.Interval 12. The requests between A2 and B2 fail. Agent-B can only see this if the disruption is not hidden from it.Interval 13. The requests between A2 and B2 fail. Agent-B can only see this if the disruption is not hidden from it.Interval 14. The requests between A2 and B2 fail. Agent-B can only see this if the disruption is not hidden from it.Interval 15. The requests between A2 and B2 fail. Agent-B can only see this if the disruption is not hidden from it.Interval 16. The requests between A2 and B2 go through.Interval 17. The requests between A2 and B2 go through.Interval 18. The requests between A2 and B2 go through.Interval 19. The requests between A2 and B2 go through.Interval 20. The requests between A2 and B2 go through.Interval 21. The requests between A2 and B2 go through.Interval 22. The requests between A2 and B2 go through.Interval 23. The requests between A2 and B2 go through.B1Interval 0. B1 is clean.Interval 1. B1 is clean.Interval 2. B1 is clean.Interval 3. B1 is clean.Interval 4. B1 is clean.Interval 5. B1 is clean.Interval 6. B1 is clean.Interval 7. B1 is clean.Interval 8. B1 is clean.Interval 9. B1 is clean.Interval 10. B1 is clean.Interval 11. B1 is clean.Interval 12. B1 is clean.Interval 13. B1 is clean.Interval 14. B1 is clean.Interval 15. B1 is clean.Interval 16. B1 is clean.Interval 17. B1 is clean.Interval 18. B1 is clean.Interval 19. B1 is clean.Interval 20. B1 is clean.Interval 21. B1 is clean.Interval 22. B1 is clean.Interval 23. B1 is clean.B2Interval 0. B2 is clean.Interval 1. B2 is clean.Interval 2. B2 is clean.Interval 3. B2 is clean.Interval 4. B2 is clean.Interval 5. B2 is clean.Interval 6. B2 is compromised.Interval 7. B2 is compromised.Interval 8. B2 is compromised.Interval 9. B2 is compromised.Interval 10. B2 is compromised.Interval 11. B2 is compromised.Interval 12. B2 is compromised, cut off.Interval 13. B2 is compromised, cut off.Interval 14. B2 is compromised, cut off.Interval 15. B2 is clean and patched, cut off.Interval 16. B2 is clean and patched.Interval 17. B2 is clean and patched.Interval 18. B2 is clean and patched.Interval 19. B2 is clean and patched.Interval 20. B2 is clean and patched.Interval 21. B2 is clean and patched.Interval 22. B2 is clean and patched.Interval 23. B2 is clean and patched.B3Interval 0. B3 is clean.Interval 1. B3 is clean.Interval 2. B3 is clean.Interval 3. B3 is clean.Interval 4. B3 is clean.Interval 5. B3 is clean.Interval 6. B3 is clean.Interval 7. B3 is clean.Interval 8. B3 is clean.Interval 9. B3 is clean.Interval 10. B3 is clean.Interval 11. B3 is clean.Interval 12. B3 is clean.Interval 13. B3 is clean.Interval 14. B3 is clean.Interval 15. B3 is clean.Interval 16. B3 is clean.Interval 17. B3 is clean.Interval 18. B3 is clean.Interval 19. B3 is clean.Interval 20. B3 is clean.Interval 21. B3 is clean.Interval 22. B3 is clean.Interval 23. B3 is clean.Agent-BAgent-B, intervals 10 to 11: inspects B2, which takes 2 intervals and costs 0.5.inspect B2Agent-B, intervals 12 to 15: restores B2. The server is cut off from the moment the restore starts and is clean and patched when it finishes.restore B2Agent-B, interval 16: reconnects B2.reconnect B2Agent-B, intervals 17 to 18: inspects B1, which takes 2 intervals and costs 0.5.inspect B1Interval 13. Agent-B receives a warning for B2.warning B2Interval 17. Agent-B receives a warning for B1. It is a false warning; B1 is clean, and the inspection that follows finds it so.warning B1costInterval 5. Shared reward βˆ’2.0.Interval 6. Shared reward βˆ’4.0.Interval 7. Shared reward βˆ’4.5.Interval 8. Shared reward βˆ’4.0.Interval 9. Shared reward βˆ’7.0.Interval 10. Shared reward βˆ’7.5.Interval 11. Shared reward βˆ’7.0.Interval 12. Shared reward βˆ’6.0.Interval 13. Shared reward βˆ’5.0.Interval 14. Shared reward βˆ’5.0.Interval 15. Shared reward βˆ’3.0.Interval 17. Shared reward βˆ’0.5.B2 was compromised for 9 intervals. Agent-B inspected it at 10, the interval after the link went down, and had it restored before its own warning arrived at 13.Agent-B cannot see the disruptionreward over the episode βˆ’64.5compromisedcut offclean and patchedlink down, requests failnegative rewardHover over any mark for the detail.01234567891011121314151617181920212223intervalA1Interval 0. A1 is clean.Interval 1. A1 is clean.Interval 2. A1 is clean.Interval 3. A1 is clean.Interval 4. A1 is clean.Interval 5. A1 is clean.Interval 6. A1 is clean.Interval 7. A1 is clean.Interval 8. A1 is clean.Interval 9. A1 is clean.Interval 10. A1 is clean.Interval 11. A1 is clean.Interval 12. A1 is clean.Interval 13. A1 is clean.Interval 14. A1 is clean.Interval 15. A1 is clean.Interval 16. A1 is clean.Interval 17. A1 is clean.Interval 18. A1 is clean.Interval 19. A1 is clean.Interval 20. A1 is clean.Interval 21. A1 is clean.Interval 22. A1 is clean.Interval 23. A1 is clean.A2Interval 0. A2 is clean.Interval 1. A2 is clean.Interval 2. A2 is clean.Interval 3. A2 is clean.Interval 4. A2 is clean.Interval 5. A2 is compromised. The intruder landed on it this interval.✢Interval 6. A2 is compromised.Interval 7. A2 is compromised.Interval 8. A2 is compromised.Interval 9. A2 is compromised, cut off.Interval 10. A2 is compromised, cut off.Interval 11. A2 is compromised, cut off.Interval 12. A2 is clean and patched, cut off.Interval 13. A2 is clean and patched.Interval 14. A2 is clean and patched.Interval 15. A2 is clean and patched.Interval 16. A2 is clean and patched.Interval 17. A2 is clean and patched.Interval 18. A2 is clean and patched.Interval 19. A2 is clean and patched.Interval 20. A2 is clean and patched.Interval 21. A2 is clean and patched.Interval 22. A2 is clean and patched.Interval 23. A2 is clean and patched.A3Interval 0. A3 is clean.Interval 1. A3 is clean.Interval 2. A3 is clean.Interval 3. A3 is clean.Interval 4. A3 is clean.Interval 5. A3 is clean.Interval 6. A3 is clean.Interval 7. A3 is clean.Interval 8. A3 is clean.Interval 9. A3 is clean.Interval 10. A3 is clean.Interval 11. A3 is clean.Interval 12. A3 is clean.Interval 13. A3 is clean.Interval 14. A3 is clean.Interval 15. A3 is clean.Interval 16. A3 is clean.Interval 17. A3 is clean.Interval 18. A3 is clean.Interval 19. A3 is clean.Interval 20. A3 is clean.Interval 21. A3 is clean.Interval 22. A3 is clean.Interval 23. A3 is clean.Agent-AAgent-A, intervals 0 to 1: inspects A1, which takes 2 intervals and costs 0.5.inspect A1Agent-A, intervals 7 to 8: inspects A2, which takes 2 intervals and costs 0.5.inspect A2Agent-A, intervals 9 to 12: restores A2. The server is cut off from the moment the restore starts and is clean and patched when it finishes.restore A2Agent-A, interval 13: reconnects A2.reconnect A2Interval 7. Agent-A receives a warning for A2.warning A2Interval 11. Agent-A receives a warning for A2.warning A2link A2 – B2Interval 0. The requests between A2 and B2 go through.Interval 1. The requests between A2 and B2 go through.Interval 2. The requests between A2 and B2 go through.Interval 3. The requests between A2 and B2 go through.Interval 4. The requests between A2 and B2 go through.Interval 5. The requests between A2 and B2 go through.Interval 6. The requests between A2 and B2 go through.Interval 7. The requests between A2 and B2 go through.Interval 8. The requests between A2 and B2 go through.Interval 9. The requests between A2 and B2 fail. Agent-B can only see this if the disruption is not hidden from it.Interval 10. The requests between A2 and B2 fail. Agent-B can only see this if the disruption is not hidden from it.Interval 11. The requests between A2 and B2 fail. Agent-B can only see this if the disruption is not hidden from it.Interval 12. The requests between A2 and B2 fail. Agent-B can only see this if the disruption is not hidden from it.Interval 13. The requests between A2 and B2 go through.Interval 14. The requests between A2 and B2 go through.Interval 15. The requests between A2 and B2 fail. Agent-B can only see this if the disruption is not hidden from it.Interval 16. The requests between A2 and B2 fail. Agent-B can only see this if the disruption is not hidden from it.Interval 17. The requests between A2 and B2 fail. Agent-B can only see this if the disruption is not hidden from it.Interval 18. The requests between A2 and B2 fail. Agent-B can only see this if the disruption is not hidden from it.Interval 19. The requests between A2 and B2 go through.Interval 20. The requests between A2 and B2 go through.Interval 21. The requests between A2 and B2 go through.Interval 22. The requests between A2 and B2 go through.Interval 23. The requests between A2 and B2 go through.B1Interval 0. B1 is clean.Interval 1. B1 is clean.Interval 2. B1 is clean.Interval 3. B1 is clean.Interval 4. B1 is clean.Interval 5. B1 is clean.Interval 6. B1 is clean.Interval 7. B1 is clean.Interval 8. B1 is clean.Interval 9. B1 is clean.Interval 10. B1 is clean.Interval 11. B1 is clean.Interval 12. B1 is clean.Interval 13. B1 is clean.Interval 14. B1 is clean.Interval 15. B1 is clean.Interval 16. B1 is clean.Interval 17. B1 is clean.Interval 18. B1 is clean.Interval 19. B1 is clean.Interval 20. B1 is clean.Interval 21. B1 is clean.Interval 22. B1 is clean.Interval 23. B1 is clean.B2Interval 0. B2 is clean.Interval 1. B2 is clean.Interval 2. B2 is clean.Interval 3. B2 is clean.Interval 4. B2 is clean.Interval 5. B2 is clean.Interval 6. B2 is compromised.Interval 7. B2 is compromised.Interval 8. B2 is compromised.Interval 9. B2 is compromised.Interval 10. B2 is compromised.Interval 11. B2 is compromised.Interval 12. B2 is compromised.Interval 13. B2 is compromised.Interval 14. B2 is compromised.Interval 15. B2 is compromised, cut off.Interval 16. B2 is compromised, cut off.Interval 17. B2 is compromised, cut off.Interval 18. B2 is clean and patched, cut off.Interval 19. B2 is clean and patched.Interval 20. B2 is clean and patched.Interval 21. B2 is clean and patched.Interval 22. B2 is clean and patched.Interval 23. B2 is clean and patched.B3Interval 0. B3 is clean.Interval 1. B3 is clean.Interval 2. B3 is clean.Interval 3. B3 is clean.Interval 4. B3 is clean.Interval 5. B3 is clean.Interval 6. B3 is clean.Interval 7. B3 is clean.Interval 8. B3 is clean.Interval 9. B3 is clean.Interval 10. B3 is clean.Interval 11. B3 is clean.Interval 12. B3 is clean.Interval 13. B3 is clean.Interval 14. B3 is clean.Interval 15. B3 is clean.Interval 16. B3 is clean.Interval 17. B3 is clean.Interval 18. B3 is clean.Interval 19. B3 is clean.Interval 20. B3 is clean.Interval 21. B3 is clean.Interval 22. B3 is clean.Interval 23. B3 is clean.Agent-BAgent-B, intervals 13 to 14: inspects B2, which takes 2 intervals and costs 0.5.inspect B2Agent-B, intervals 15 to 18: restores B2. The server is cut off from the moment the restore starts and is clean and patched when it finishes.restore B2Agent-B, interval 19: reconnects B2.reconnect B2Agent-B, intervals 20 to 21: inspects B1, which takes 2 intervals and costs 0.5.inspect B1Agent-B, intervals 22 to 23: inspects B3, which takes 2 intervals and costs 0.5.inspect B3Interval 13. Agent-B receives a warning for B2.warning B2Interval 17. Agent-B receives a warning for B1. It is a false warning; B1 is clean, and the inspection that follows finds it so.warning B1costInterval 0. Shared reward βˆ’0.5.Interval 5. Shared reward βˆ’2.0.Interval 6. Shared reward βˆ’4.0.Interval 7. Shared reward βˆ’4.5.Interval 8. Shared reward βˆ’4.0.Interval 9. Shared reward βˆ’7.0.Interval 10. Shared reward βˆ’7.0.Interval 11. Shared reward βˆ’7.0.Interval 12. Shared reward βˆ’5.0.Interval 13. Shared reward βˆ’2.5.Interval 14. Shared reward βˆ’2.0.Interval 15. Shared reward βˆ’5.0.Interval 16. Shared reward βˆ’5.0.Interval 17. Shared reward βˆ’5.0.Interval 18. Shared reward βˆ’3.0.Interval 20. Shared reward βˆ’0.5.Interval 22. Shared reward βˆ’0.5.B2 was compromised for 12 intervals. Agent-B inspected it only when its own warning arrived at 13, and the team ended 9 reward lower.

How the Agents Learn

  1. Heuristic plays 600 episodes
  2. Behaviour cloning pre-trains both agents
  3. Independent PPO for 3,000 iterations (16 eps each)
  4. Greedy eval on 2,000 shared episodes
  5. Controls, fixed-input probe & metrics
  • Warm-start before PPO: From random weights, both agents collapsed to always waiting, as any action on a clean server costs reward immediately, while acting only pays off on the one infected server. Pre-training on a simple inspect-then-restore rule avoids that collapse without teaching anything about cross-zone links.
  • Softened start for the sender: In Studies 2 and 4, behaviour cloning fits Agent-A’s restore action to a 60% target instead of 95% (wait is fit to 60% in every study), so it starts with a weaker habit and the test isn’t stacked toward keeping it.
  • Two small actor-critic networks: Each agent has its own actor and critic (two 64-unit hidden layers) trained from its own observations and the shared reward, along with
    • Ξ³ = 0.99
    • GAE Ξ» = 0.95
    • clip Ξ΅ = 0.2
    • entropy = 0.001
    • epochs = 4 of decision minibatches = 64
  • Multi-step decisions: Jobs take 1 to 4 intervals and agents only act when free, so rewards and GAE advantages are discounted across the full span of each busy decision (Ξ³^k) rather than one interval at a time.
  • One dependency graph: The launcher schedules all five studies as a single job graph (Studies 3 to 5 wait for Study 1’s weights), completing all 250 teams in about 11 hours on 16 CPU cores.

Environment

  • Topology: 2 zones, each with 3 file servers, an employee workstation, and 1 defender; each Zone-A server is paired with one in Zone-B.
  • Intruder: Lands on a random server in 80% of episodes (at a random interval from 0 to 30) and spreads laterally to its partner over 2 intervals.
  • Episode loop: 50 intervals per episode, stepped in a fixed order: intrusions and outages, attacks, defender actions, workload requests, monitoring, then reward.
  • Asymmetric monitoring: Warnings arrive 2 intervals after compromise for Agent-A, and 6 intervals after for Agent-B.
  • Observations: Each defender sees only its own zone as a 59-element vector rebuilt every interval.
  • Actions: 13 actions per defender, consisting of wait, or inspect (2 intervals), isolate (1), restore (4, patches server), or reconnect (1) on any of its 3 servers.
  • Shared reward: Charged every interval is a reward composed of βˆ’1 per failed request, βˆ’2 per compromised server (set to 0 in Zone-A for Studies 2 to 5), and βˆ’0.5 per inspection started.
  • 5 worlds: In order of escalating noise:
    1. Reliable warnings
    2. One false warning per episode
    3. Two false warnings per episode
    4. False warnings and missed warnings: one false warning per episode, and one real warning in five never arrives
    5. False warnings, missed warnings and outages: the same, plus one 3-interval outage per episode

Reproducing It

Everything in the repository, the 250 trained teams, their evaluations, the measurements and the figures, comes from one command on a clean checkout. It needs Python 3.12 and uv, and runs on the CPU.

uv run --locked python -m studies.launch --all --jobs 32

--smoke runs the whole pipeline in minutes on one world and two seeds, and --only measure,draw recomputes the tables and figures from the saved records without training anything. The launcher cannot start with uncommitted changes, so every team’s run.json names one clean commit. The rest is in the README.