MOON LINE LAB NOTE / 01

Two Gates

A teammate swap test · 27 November 2026

A scout knows which gate will open. A keeper holds the keys. The scout sends a single bit, then the keeper chooses left or right. Both earn one point if the keeper is right, zero otherwise. Nobody tells them what the bit means.

Change the partner, not the job

Frozen policiesSignal onForced to 0
Training partner64/64 (100%)32/64 (50%)
New partner1,156/1,984 (58.3%)992/1,984 (50%)

Each of 32 independently trained pairs solved both goals. Nine scouts used 0 for left; the other 23 used 0 for right. Their keepers learned the matching codes. With a new partner, the score was either perfect or zero depending on whether their codes agreed. The 58.3% average describes no individual pairing.

Arithmetic check: there are 32 × 31 ordered stranger pairings. Of those, 9 × 8 + 23 × 22 = 578 share a code. Test each pairing once per goal: 1,156 successes. These trials reuse the same 32 policies; they are not 1,984 independent samples of learning.

Replay it

Download experiment.py and run python3 experiment.py. Standard library only. Seeds 0–31; 12,000 one-round episodes per pair; uniform random goals. Both agents update their own two-by-two action-value tables from the shared reward (step size 0.08, decaying epsilon-greedy exploration). Tests are exhaustive, balanced, greedy, and use no further training.

Experiment 2 · Rotate the partners

What if the scout has to make itself understood by several keepers? Each pool has four scouts and four keepers. Scout 1 trains with keepers 2, 3, and 4, but never keeper 1; likewise for scouts 2–4. Thus every agent plays exactly 12,000 training rounds, as before, but some pairings are reserved entirely for the test. We trained 16 independent pools. As a baseline we trained 16 groups of four fixed pairs, with no contact between pairs.

Pairing testedFixed partnersRotating partners
Seen in training128/128384/384
Never paired, same pool168/384 (43.8%)128/128 (100%)
Different pools3,816/7,680 (49.7%)4,160/7,680 (54.2%)

Every rotating pool converged on one dictionary internally. A scout could therefore communicate perfectly with the one keeper it never played with in that pool. But eleven pools picked one dictionary and five picked its reverse. Cross-pool performance follows from that split alone: (11 × 10 + 5 × 4)/(16 × 15) = 54.2%. If the two symbol names are randomly swapped or preserved at the boundary, accuracy is exactly 50% in both treatments.

Takeaway: rotating teammates produced a local convention that traveled over a missing training link. It did not produce a universal language. Scores count exhaustive policy combinations on both goals, not independent trials; the experimental units in the rotating treatment are the 16 training pools. The numerical gap between 49.7% and 54.2% is not evidence of a reliable advantage across independent pools.

Download pools.py beside experiment.py and run python3 pools.py. Each epoch shuffles all twelve allowed edges once. Seeds 20000–20015 for rotating pools; 10000–10063 for fixed pairs. Frozen policies receive no feedback during evaluation. Nobody trained in, or connected this program to, a live game.

Control · When is a pool actually connected?

Gemini 4 Carbon checked the withheld edges, episode budget, and ordered-pair counts, then proposed a revealing control. With only two scouts and two keepers, withholding each scout’s corresponding keeper leaves two disconnected pairs. Being assigned the same pool name cannot help them agree.

Keepers per poolAgents connected to scout 0 (incl. itself)Withheld-pair score
22 of 436/64
36 of 696/96
48 of 8128/128

I reproduced these counts using the same 16 pool seeds and exactly 12,000 episodes per agent at each size. For three or more keepers, the training graph connects a scout to its withheld keeper through other teammates. That's a route for a convention to spread, not a theorem that learning must find it. This comparison changes partner count as well as connectivity; it is not an isolated causal estimate for graph structure.

To replay all three sizes, download connectivity.py alongside the two earlier scripts and run python3 connectivity.py.

What this does not test

This is a cooperative signaling game, not a CS2 agent. It isolates one part of teamwork: agreeing what a signal means without a common dictionary. No rendered views, motor controls, human reaction-time model, opponents, or strategic map play. A useful next comparison would give newly paired players a few labeled practice rounds and measure how quickly they adapt.