SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2604.15373 · 2026

InfoChess: A Game of Adversarial Inference and a Laboratory for Quantifiable Information Control

Kieran Murphy

arXiv · PDF · Open in the Atlas

Code that ran

4 of 6 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 2 have no contract verdict; 2 failures of our instrument; 2 no recorded run), measured 2026-11-24; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2604.15373.json · badge: /api/ran/2604.15373.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
murphyka/infochess community
Papers with Code archive
4 ran · 2 no recorded run
FunctionStatusWhere it lives
BaseAgent Ran
ran on a synthesized input
murphyka/infochess/agents/hiding_belief_vismax_agent.py
code served (permissive licence) · get_code("72a0c90deaaae55c")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import random

class MockBoard:
    def __init__(self):
        self.fogs = {
            'team_a': MockFog(),
            'team_b': MockFog()
        }
    
    def get_legal_king_moves(self, team):
        return [(0, 0), (1, 1), (2, 2)]
    
    def get_opponent_king_position(self, team):
        return (3, 3)
    
    def get_legal_guesses(self, team):
        return [(0, 0), (1, 1), (2, 2), (3, 3), (4, 4)]

class MockFog:
    def __init__(self):
        self.visible = {(0, 0), (1, 1)}

class BaseAgent:

    def __init__(self, team):
        self.team = team

    def get_action(self, board):
        pass

    def get_king_action(self, board):
        """Return a king move, or None if no legal king moves."""
        moves = board.get_legal_king_moves(self.team)
        if not moves:
            return None
        return random.choice(moves)

    def get_guess(self, board):
        king_pos = board.get_opponent_king_position(self.team)
        if king_pos in board.fogs[self.team].visible:
            return {king_pos: 1.0}
        fogged = [pos for pos in board.get_legal_guesses(self.team) if pos not in board.fogs[self.team].visible]
        if not fogged:
            return {king_pos: 1.0}
        p = 1.0 / len(fogged)
        return {pos: p for pos in fogged}

    def get_team(self):
        return self.team


INIT_ARGS = {
    'team': 'team_a'
}

ARGS = {
    'board': MockBoard()
}

METHOD = 'get_guess'

if __name__ == '__main__':
    agent = BaseAgent(**INIT_ARGS)
    result = getattr(agent, METHOD)(**ARGS)
    print(f"Result: {result}")
    print(f"Agent team: {agent.get_team()}")
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
DualHeadGRU Ran
ran on a synthesized input
murphyka/infochess/agents/hiding_belief_vismax_agent.py
code served (permissive licence) · get_code("5ef1708337792e6e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

class DualHeadGRU(nn.Module):
    """GRU encoder with two output heads.

    first_order_head: predicts opponent king location (softmax probability over squares)
    second_order_head: predicts which squares are visible to the opponent (sigmoid per square)
    """

    def __init__(self, input_dim, output_dim, hidden_dim=128, num_layers=2):
        super().__init__()
        self.rnn = nn.GRU(input_dim, hidden_dim, num_layers, batch_first=True)
        self.first_order_head = nn.Sequential(nn.Linear(hidden_dim, hidden_dim), nn.ReLU(), nn.Linear(hidden_dim, output_dim))
        self.second_order_head = nn.Sequential(nn.Linear(hidden_dim, hidden_dim), nn.ReLU(), nn.Linear(hidden_dim, output_dim))

    def forward(self, x, hidden=None):
        x, hidden = self.rnn(x, hidden)
        return (self.first_order_head(x), self.second_order_head(x), hidden)


INIT_ARGS = {
    'input_dim': 4,
    'output_dim': 3,
    'hidden_dim': 16,
    'num_layers': 2,
}

ARGS = {
    'x': torch.randn(2, 5, 4),
    'hidden': None,
}

if __name__ == '__main__':
    model = DualHeadGRU(**INIT_ARGS)
    first_order, second_order, hidden = model(**ARGS)
    print(f"first_order shape: {first_order.shape}")
    print(f"second_order shape: {second_order.shape}")
    print(f"hidden shape: {hidden.shape}")
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
fog_filtered_copy Ran
ran; our contract draft was wrong, not the code
murphyka/infochess/agents/hiding_belief_vismax_agent.py
code served (permissive licence) · get_code("bff0e9d4543024be")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned MockBoard. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import copy

class MockFog:
    def __init__(self, visible_positions):
        self.visible = visible_positions

class MockPiece:
    def __init__(self, team, position):
        self.team = team
        self.position = position

class MockBoard:
    def __init__(self):
        self.pieces = []
        self.grid = [[None for _ in range(8)] for _ in range(8)]
        self.fogs = {
            'white': MockFog({(0, 0), (0, 1), (1, 0), (1, 1), (2, 2)}),
            'black': MockFog({(3, 3), (3, 4), (4, 3), (4, 4), (5, 5)})
        }
        
        # Add some friendly pieces (white team)
        white_piece1 = MockPiece('white', (0, 0))
        white_piece2 = MockPiece('white', (1, 1))
        self.pieces.append(white_piece1)
        self.pieces.append(white_piece2)
        self.grid[0][0] = white_piece1
        self.grid[1][1] = white_piece2
        
        # Add some enemy pieces (black team)
        black_piece1 = MockPiece('black', (3, 3))  # visible to white
        black_piece2 = MockPiece('black', (6, 6))  # not visible to white
        self.pieces.append(black_piece1)
        self.pieces.append(black_piece2)
        self.grid[3][3] = black_piece1
        self.grid[6][6] = black_piece2

board = MockBoard()
team = 'white'

ARGS = {
    'board': board,
    'team': team
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type MockBoard — a MockBoard output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a MockBoard output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_model Ran
ran; our contract draft was wrong, not the code
murphyka/infochess/agents/hiding_belief_vismax_agent.py
code served (permissive licence) · get_code("4dac3e8f15d9c31a")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
import tempfile
import os

torch.manual_seed(0)

class DualHeadGRU(nn.Module):
    """GRU encoder with two output heads.

    first_order_head: predicts opponent king location (softmax probability over squares)
    second_order_head: predicts which squares are visible to the opponent (sigmoid per square)
    """

    def __init__(self, input_dim, output_dim, hidden_dim=128, num_layers=2):
        super().__init__()
        self.rnn = nn.GRU(input_dim, hidden_dim, num_layers, batch_first=True)
        self.first_order_head = nn.Sequential(nn.Linear(hidden_dim, hidden_dim), nn.ReLU(), nn.Linear(hidden_dim, output_dim))
        self.second_order_head = nn.Sequential(nn.Linear(hidden_dim, hidden_dim), nn.ReLU(), nn.Linear(hidden_dim, output_dim))

    def forward(self, x, hidden=None):
        x, hidden = self.rnn(x, hidden)
        return (self.first_order_head(x), self.second_order_head(x), hidden)

def load_model(path):
    """Load model from path. Returns (model, metadata_dict)."""
    checkpoint = torch.load(path, weights_only=False)
    model = DualHeadGRU(checkpoint['input_dim'], checkpoint['output_dim'], checkpoint['hidden_dim'], checkpoint['num_layers'])
    model.load_state_dict(checkpoint['state_dict'])
    model.eval()
    return (model, checkpoint)

# Create a temporary checkpoint file
input_dim = 4
output_dim = 3
hidden_dim = 8
num_layers = 2

model = DualHeadGRU(input_dim, output_dim, hidden_dim, num_layers)

checkpoint = {
    'input_dim': input_dim,
    'output_dim': output_dim,
    'hidden_dim': hidden_dim,
    'num_layers': num_layers,
    'state_dict': model.state_dict()
}

temp_dir = tempfile.gettempdir()
checkpoint_path = os.path.join(temp_dir, 'test_checkpoint.pt')
torch.save(checkpoint, checkpoint_path)

ARGS = {
    'path': checkpoint_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
HidingBeliefVisMaxAgent Not yet run
unverified (harvested, no recorded run)
murphyka/infochess/agents/hiding_belief_vismax_agent.py
code served (permissive licence) · get_code("08c98a216f13c5a7")
How it ran

no invocation recorded.

NeuralAgent Not yet run
unverified (harvested, no recorded run)
murphyka/infochess/agents/hiding_belief_vismax_agent.py
code served (permissive licence) · get_code("07ee9c833660fece")
How it ran

no invocation recorded.

Also present in other papers' code

Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 6 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

We propose InfoChess, a symmetric adversarial game that elevates competitive information acquisition to the primary objective. There is no piece capture, removing material incentives that would otherwise confound the role of information. Instead, pieces are used to alter visibility. Players are scored on their probabilistic inference of the opponent's king location over the duration of the game. To explore the space of strategies for playing InfoChess, we introduce a hierarchy of heuristic agents defined by increasing levels of opponent modeling, and train a reinforcement learning agent that outperforms these baselines. Leveraging the discrete structure of the game, we analyze gameplay through natural informationtheoretic characterizations that include belief entropy, oracle cross entropy, and predictive log score under the action-induced observation channel. These measures disentangle epistemic uncertainty, calibration mismatch, and uncertainty induced by adversarial movement. The design of InfoChess renders it a testbed for studying multi-agent inference under partial observability. We release code for the environment and agents, and a public interface to encourage further study: https://github.com/murphyka/infochess.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2604.15373")
get_code_for_paper("2604.15373")
have("2604.15373")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2604.15373.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2604.15373.svg)](https://syntology.ai/paper/2604.15373)

Connect an agent — have() is free.