SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2604.20043 · 2026

TriEx: A Game-based Tri-View Framework for Explaining Internal Reasoning in Multi-Agent LLMs

Qi Wu, Ziyi Wang, Chen Zhang, Xinyu Wang, Wenjun Peng

arXiv · PDF · Open in the Atlas

Code that ran

19 of 20 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; 5 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 14 failures of our instrument; 1 no recorded run), measured 2026-11-23; 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.20043.json · badge: /api/ran/2604.20043.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
Einsam1819/TriEx canonical (classifier label)
classifier basis: census
19 ran · 1 no recorded run
FunctionStatusWhere it lives
compute_rank_gap Ran
ran; our contract draft was wrong, not the code
Einsam1819/TriEx/experiments/exp3b_window/3b_deepseek.py
code served (permissive licence) · get_code("8de150d245706c70")
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, through the batch API) 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 pandas as pd

# Define test arguments for compute_rank_gap
model_vals = {
    'opponent_a': 85.5,
    'opponent_b': 72.3,
    'opponent_c': 91.2,
    'opponent_d': 68.7
}

obj_vals = {
    'opponent_a': 80.1,
    'opponent_b': 75.8,
    'opponent_c': 89.5,
    'opponent_d': 70.2
}

match_tol = 1.5

ARGS = {
    'model_vals': model_vals,
    'obj_vals': obj_vals,
    'match_tol': match_tol
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — 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: none by the harness; any seed is in the setup block
corr Ran
ran; our contract draft was wrong, not the code
Einsam1819/TriEx/experiments/exp2b_profiling/2B_analysis.py
code served (permissive licence) · get_code("c63d4513f0f536ab")
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, through the batch API) 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 torch
import numpy as np
from scipy.stats import spearmanr, pearsonr

torch.manual_seed(0)

# The function corr takes two arguments: x and y
# It calls spearmanr(x, y) and pearsonr(x, y)
# These functions from scipy.stats expect array-like inputs (1D or 2D)
# We'll create simple 1D arrays with distinct values

x = np.array([1.0, 2.0, 3.0, 4.0, 5.0])
y = np.array([2.1, 3.9, 6.2, 7.8, 10.1])

ARGS = {
    'x': x,
    'y': y,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy, torch — 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: none by the harness; any seed is in the setup block
display_name Ran
ran; our contract draft was wrong, not the code
Einsam1819/TriEx/experiments/exp2a_ranking/exp2a_rank.py
code served (permissive licence) · get_code("cbc7bc1a020a3dfa")
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, through the batch API) and returned str. 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

player_to_llm = {'Alex Chen': 'GPT-4.1-mini', 'Sarah Johnson': 'Llama-4-Maverick', 'Emily Zhang': 'DeepSeek-V3.2', 'Jessica Liu': 'Gemini-2.5-Flash-Lite', 'Robert Garcia': 'Qwen-3-32B', 'Niko Grey': 'Grok-3-Mini'}

def display_name(player_name: str) -> str:
    return player_to_llm.get(player_name, player_name)

ARGS = {
    'player_name': 'Alex Chen'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
extract_profiles_section_from_final_prompt Ran
ran; our contract draft was wrong, not the code
Einsam1819/TriEx/experiments/exp2c_intervention/exp2C.py
code served (permissive licence) · get_code("5d50a631843b3be4")
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, through the batch API) 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 re
from typing import Optional, Tuple

# Create a valid final_prompt string that matches the expected pattern
final_prompt = """Some initial content here.

Opponent profiling information (long-term tendencies):
  * Aggression: This opponent is very aggressive
  * Patience: They are impatient
  * Bluffing: They bluff frequently

- RiskTolerance: how willing this opponent is to take risks.

Some trailing content here."""

ARGS = {
    "final_prompt": final_prompt
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
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 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
find_model_dirs Ran
ran; our contract draft was wrong, not the code
Einsam1819/TriEx/experiments/exp2c_intervention/build_global_summary.py
code served (permissive licence) · get_code("af4192bcc51332e0")
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, through the batch API) and returned list, 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 tempfile
from pathlib import Path

# Create a temporary directory structure with some subdirectories
temp_dir = tempfile.TemporaryDirectory()
root = Path(temp_dir.name)

# Create some model directories
(root / "model_1").mkdir(exist_ok=True)
(root / "model_2").mkdir(exist_ok=True)
(root / "model_3").mkdir(exist_ok=True)

# Create a file (not a directory) to ensure filtering works
(root / "readme.txt").touch()

ARGS = {
    "root": root
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
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 list, ndim 1, dtype family float — a list 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
fmt Ran
ran; our contract draft was wrong, not the code
Einsam1819/TriEx/experiments/exp2c_intervention/draw.py
code served (permissive licence) · get_code("a382113ab2825052")
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, through the batch API) and returned str. 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 math

torch.manual_seed(0)

ARGS = {
    'v': 3.14159
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
list_profile_opponents Ran
ran; our contract draft was wrong, not the code
Einsam1819/TriEx/experiments/exp2c_intervention/exp2C.py
code served (permissive licence) · get_code("9a6c0c34212b35d5")
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, through the batch API) and returned list, 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 re
from typing import List

def list_profile_opponents(opponent_profiles_text: str) -> List[str]:
    names = re.findall('^\\-\\s+(.+?)\\s*:\\s*$', opponent_profiles_text, flags=re.MULTILINE)
    return [n.strip() for n in names if n.strip()]

# Construct a valid opponent_profiles_text string that matches the regex pattern
opponent_profiles_text = """- Alice : 
- Bob Smith :
- Charlie :
- Diana Jones :"""

ARGS = {
    "opponent_profiles_text": opponent_profiles_text
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
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 list, ndim 1, dtype family float — a list 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
load_json Ran
ran; our contract draft was wrong, not the code
Einsam1819/TriEx/experiments/exp2c_intervention/build_global_summary.py
code served (permissive licence) · get_code("7698cf0c526ea351")
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, through the batch API) 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 json
from pathlib import Path
import tempfile
import os

# Create a temporary directory and a temporary JSON file
temp_dir = tempfile.mkdtemp()
temp_file = Path(temp_dir) / "test.json"

# Write a valid JSON file
test_data = {"key": "value", "number": 42, "list": [1, 2, 3]}
with open(temp_file, 'w', encoding='utf-8') as f:
    json.dump(test_data, f)

# Define ARGS
ARGS = {
    "p": temp_file
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
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: none by the harness; any seed is in the setup block
load_model_summaries Ran
ran; our contract draft was wrong, not the code
Einsam1819/TriEx/experiments/exp2c_intervention/build_global_summary.py
code served (permissive licence) · get_code("2cad942be33ce5d3")
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, through the batch API) 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 tempfile
import json
from pathlib import Path

# Create temporary directory with test JSON files
tmpdir = tempfile.mkdtemp()
model_dir = Path(tmpdir)

# Create sample summary JSON files with trait and direction metadata
summary1 = {
    "meta": {
        "trait": "intelligence",
        "direction": "positive"
    },
    "data": [1, 2, 3]
}

summary2 = {
    "meta": {
        "trait": "creativity",
        "direction": "negative"
    },
    "data": [4, 5, 6]
}

# Write summary files
with open(model_dir / "summary1.json", "w") as f:
    json.dump(summary1, f)

with open(model_dir / "summary2.json", "w") as f:
    json.dump(summary2, f)

ARGS = {
    "model_dir": model_dir
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
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: none by the harness; any seed is in the setup block
rank_desc Ran
ran; our contract draft was wrong, not the code
Einsam1819/TriEx/experiments/exp3b_window/3b_deepseek.py
code served (permissive licence) · get_code("50f8e5db762de4ea")
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, through the batch API) 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 torch
import numpy as np
import pandas as pd

# Construct arguments for rank_desc function
values = {
    'model_a': 0.95,
    'model_b': 0.87,
    'model_c': 0.92,
    'model_d': 0.88,
    'model_e': 0.91
}

ARGS = {
    'values': values
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas, torch — 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: none by the harness; any seed is in the setup block
rankdata_average Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Einsam1819/TriEx/experiments/exp3a_oracle/3A_Ex.py
code served (permissive licence) · get_code("ce8a106bb24cca62")
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, through the batch API) and returned ndarray, ndim 1, dtype family float, shape (6,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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 numpy as np

# rankdata_average takes a numpy array and performs ranking with average tie-breaking
# The function uses np.argsort, np.empty_like, and array indexing
# We need to provide a simple numpy array as input

a = np.array([3.5, 1.2, 3.5, 2.1, 1.2, 4.0])

ARGS = {
    "a": a
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (6,) — shape (6,) as a later run recorded it
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
read_json Ran
ran; our contract draft was wrong, not the code
Einsam1819/TriEx/experiments/exp3a_oracle/3A_Ex.py
code served (permissive licence) · get_code("53f776d10872e81a")
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, through the batch API) 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 json
import tempfile
from pathlib import Path

# Create a temporary JSON file with some test data
temp_dir = tempfile.TemporaryDirectory()
temp_path = Path(temp_dir.name) / "test.json"

test_data = {
    "key1": "value1",
    "key2": [1, 2, 3],
    "key3": {"nested": "object"}
}

with temp_path.open('w', encoding='utf-8') as f:
    json.dump(test_data, f)

ARGS = {
    "path": temp_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
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: none by the harness; any seed is in the setup block
replace_profiles_section_in_final_prompt Ran
ran; our contract draft was wrong, not the code
Einsam1819/TriEx/experiments/exp2c_intervention/exp2C.py
code served (permissive licence) · get_code("373e39f53d44a42d")
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, through the batch API) and returned str. 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 re

_PROFILE_SECTION_HEAD_RE = re.compile('(Opponent profiling information \\(long-term tendencies\\)\\s*:\\s*\\n)', re.IGNORECASE)

_PROFILE_SECTION_TAIL_RE = re.compile('\\n\\s*-\\s*RiskTolerance\\s*:\\s*how willing this opponent is to take risks\\.', re.IGNORECASE)

def extract_profiles_section_from_final_prompt(final_prompt: str):
    if not final_prompt:
        return None
    m_head = _PROFILE_SECTION_HEAD_RE.search(final_prompt)
    if not m_head:
        return None
    start = m_head.end()
    m_tail = _PROFILE_SECTION_TAIL_RE.search(final_prompt, pos=start)
    if not m_tail:
        return None
    end = m_tail.start()
    prefix = final_prompt[:start]
    profiles_text = final_prompt[start:end]
    suffix = final_prompt[end:]
    return (prefix, profiles_text, suffix)

def replace_profiles_section_in_final_prompt(final_prompt: str, new_profiles_text: str) -> str:
    parts = extract_profiles_section_from_final_prompt(final_prompt)
    if not parts:
        return final_prompt
    prefix, _, suffix = parts
    return prefix + (new_profiles_text or '') + suffix

# Construct valid arguments
final_prompt_with_profiles = (
    "Some preamble text\n"
    "Opponent profiling information (long-term tendencies):\n"
    "- Aggression: high\n"
    "- Patience: medium\n"
    "\n"
    "- RiskTolerance: how willing this opponent is to take risks.\n"
    "Some suffix text"
)

new_profiles_text = (
    "- Aggression: very high\n"
    "- Patience: low\n"
)

ARGS = {
    "final_prompt": final_prompt_with_profiles,
    "new_profiles_text": new_profiles_text,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
safe_div Ran
ran, honoured the contract we drafted
Einsam1819/TriEx/experiments/exp1_rulebase/exp1_rulebase.py
code served (permissive licence) · get_code("2bba255a9e44ab2a")
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, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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 numpy as np

torch.manual_seed(0)

# Analyze safe_div function:
# - Takes two parameters: a (float) and b (float)
# - Both are passed to safe_float() which converts them to float
# - safe_float handles None, strings, empty strings, and numeric types
# - safe_div returns a / b if b is non-zero, else 0.0

ARGS = {
    'a': 10.5,
    'b': 2.0,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
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
safe_div Ran
ran, honoured the contract we drafted
Einsam1819/TriEx/experiments/exp2b_profiling/2B_analysis.py
code served (permissive licence) · get_code("52e0ce4db065ae0b")
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, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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

torch.manual_seed(0)

ARGS = {
    "a": 10,
    "b": 2
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
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
safe_div Ran
ran, honoured the contract we drafted
Einsam1819/TriEx/experiments/exp3b_window/3b_deepseek.py
code served (permissive licence) · get_code("33077ae16f5751b8")
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, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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

torch.manual_seed(0)

ARGS = {
    "a": 10.0,
    "b": 2.0
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
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
safe_float Ran
ran, honoured the contract we drafted
Einsam1819/TriEx/experiments/exp1_rulebase/exp1_rulebase.py
code served (permissive licence) · get_code("ae32806475f85f95")
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, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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 numpy as np

torch.manual_seed(0)

ARGS = {
    "x": 42.5,
    "default": float('nan')
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
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
safe_float Ran
ran, honoured the contract we drafted
Einsam1819/TriEx/experiments/exp3a_oracle/3A_Ex.py
code served (permissive licence) · get_code("168374ac8b49b0a4")
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, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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 numpy as np

# The safe_float function takes two parameters:
# - x: something that can be converted to float
# - default: a default value to return if conversion fails

ARGS = {
    "x": "123.45",  # Valid string that can be converted to float
    "default": None  # Default value if conversion fails
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
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
trait_group Ran
ran; our contract draft was wrong, not the code
Einsam1819/TriEx/experiments/exp2c_intervention/draw.py
code served (permissive licence) · get_code("752ee04d7a9fca61")
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, through the batch API) and returned str. 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

torch.manual_seed(0)

ARGS = {
    "trait": "aggressiveness"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
norm Not yet run
unverified (harvested, no recorded run)
Einsam1819/TriEx/experiments/exp1_rulebase/exp1_rulebase.py
code served (permissive licence) · get_code("55fc3acbd86ab6f6")
How it ran

no invocation recorded.

Also present in other papers' code

Of 20 samples lifted from this paper's linked repositories, 20 carry a function identity and 0 do not. Of the 20 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 20 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-23.

Repositories linked to this paper

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

Abstract

Explainability for Large Language Model (LLM) agents is especially challenging in interactive, partially observable settings, where decisions depend on evolving beliefs and other agents. We present TriEx, a tri-view explainability framework that instruments sequential decision making with aligned artifacts: (i) structured first-person self-reasoning bound to an action, (ii) explicit second-person belief states about opponents updated over time, and (iii) third-person oracle audits grounded in environment-derived reference signals. This design turns explanations from free-form narratives into evidence-anchored objects that can be compared and checked across time and perspectives. Using imperfect-information strategic games as a controlled testbed, we show that TriEx enables scalable analysis of explanation faithfulness, belief dynamics, and evaluator reliability, revealing systematic mismatches between what agents say, what they believe, and what they do. Our results highlight explainability as an interaction-dependent property and motivate multi-view, evidence-grounded evaluation for LLM agents. Code is available at https://github.com/Einsam1819/TriEx.

For agents

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

get_harvested_code_for_paper("2604.20043")
get_code_for_paper("2604.20043")
have("2604.20043")

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

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

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

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

Connect an agent — have() is free.