SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2606.16603 · 2026

VeriGraph: Towards Verifiable Data-Analytic Agents

Guanting Dong, Zhicheng Dou, Xiaoxi Li, Jiajie Jin, Yutao Zhu, Zhao Yang, Yuyang Hu, Wenle Liao, Final Answer

arXiv · PDF · Open in the Atlas

Code that ran

9 of 9 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, 1 violated it and 0 have no contract verdict; 8 failures of our instrument; 0 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/2606.16603.json · badge: /api/ran/2606.16603.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
ignorejjj/VeriGraph canonical (classifier label)
classifier basis: census
9 ran · 0 no recorded run
FunctionStatusWhere it lives
build_working_dir Ran
ran; our contract draft was wrong, not the code
ignorejjj/VeriGraph/src/training/rl/recipe/verigraph/preprocess_verigraph_rl.py
code served (permissive licence) · get_code("515b5e0a98bccb3c")
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 os
from typing import Any, Dict, Optional

# Analyze the function:
# - item: Dict[str, Any] with possible keys: 'working_dir', 'context_dir', 'dir_id'
# - context_root_dir: Optional[str]
# The function checks item.get() for these keys and uses os.path.join()

# Build test arguments
item_case1 = {
    'working_dir': '/path/to/working',
    'context_dir': '/path/to/context',
    'dir_id': 42
}

item_case2 = {
    'context_dir': '/path/to/context',
    'dir_id': 123
}

item_case3 = {
    'dir_id': 999
}

item_case4 = {}

context_root_dir = '/root/context'
context_root_dir_none = None

# Use the first case as main test
ARGS = {
    'item': item_case1,
    'context_root_dir': context_root_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 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
classify_source_type Ran
ran; our contract draft was wrong, not the code
ignorejjj/VeriGraph/demo/server.py
code served (permissive licence) · get_code("3bc6fcffe8f99848")
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

def classify_source_type(tool_name: str) -> str:
    name = str(tool_name or '').strip().lower()
    if not name:
        return 'external'
    if name in {'web_search', 'open_page', 'browse', 'open_search_result'}:
        return 'web'
    if name in {'stock_price', 'stock_profile', 'stock_metrics', 'shareholding', 'balance_sheet', 'income_statement', 'cash_flow', 'us_market_index', 'us_cpi', 'us_gdp', 'us_unemployment', 'us_rates', 'mock_stock_price', 'mock_market_index'}:
        return 'finance_api'
    if name.startswith('fetch_') or name.startswith('us_') or name.endswith('_statement'):
        return 'finance_api'
    return 'web'

ARGS = {
    'tool_name': 'web_search'
}
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
env_bool Ran
ran, violated the contract we drafted
ignorejjj/VeriGraph/demo/server.py
code served (permissive licence) · get_code("1ef04b5219b95ec0")
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 bool, 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 os

# The function env_bool takes a name (str) and an optional default (bool)
# It reads an environment variable and converts it to a boolean
# We need to provide valid arguments for both parameters

# Set up a test environment variable
os.environ['TEST_VAR'] = 'true'

ARGS = {
    'name': 'TEST_VAR',
    'default': False
}
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 bool, 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
extract_final_claims Ran
ran; our contract draft was wrong, not the code
ignorejjj/VeriGraph/src/training/rl/verl/utils/verigraph_rl.py
code served (permissive licence) · get_code("1c3fbaed44899d71")
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 torch
import numpy as np
from typing import Any, Dict, List, Optional

# Construct a valid exported_graph dictionary
exported_graph = {
    'final_claim_ids': [1, 2, 3],
    'graph': {
        'claims': [
            {
                'id': 1,
                'content': 'First claim about something important'
            },
            {
                'id': 2,
                'content': 'Second claim with details'
            },
            {
                'id': 3,
                'content': 'Third claim conclusion'
            },
            {
                'id': 4,
                'content': 'Unused claim not in final_ids'
            }
        ]
    }
}

ARGS = {
    'exported_graph': exported_graph
}
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 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
extract_last_code_block Ran
ran; our contract draft was wrong, not the code
ignorejjj/VeriGraph/src/training/rl/verl/utils/verigraph_rl.py
code served (permissive licence) · get_code("2a8b8c43fcf57be0")
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
from typing import Any, Dict, List, Optional

# Analyze the function to understand what it needs:
# - text: str - the main input to search within
# - start_marker: str - default CODE_CALL_TAGS[0] = '<code_interpreter>'
# - end_marker: str - default CODE_CALL_TAGS[1] = '</code_interpreter>'
# 
# The function:
# 1. Converts text to string
# 2. Uses regex to find content between start_marker and end_marker
# 3. Strips fenced code blocks (markdown code fences with ```)
# 4. Returns the last code block found or None

# Test case 1: Text with properly wrapped code blocks
text_with_markers = """
Some text before.
<code_interpreter>

print("hello world")

</code_interpreter>
More text after.
"""

# Test case 2: Text with multiple code blocks
text_multiple = """
<code_interpreter>
first_code()
</code_interpreter>
Some other text
<code_interpreter>

second_code()

</code_interpreter>
"""

# Test case 3: Text with unclosed marker
text_unclosed = """
Some preamble
<code_interpreter>

final_code()

"""

# Use the first test case for ARGS
ARGS = {
    'text': text_with_markers,
    'start_marker': '<code_interpreter>',
    'end_marker': '</code_interpreter>'
}
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
find_value Ran
ran; our contract draft was wrong, not the code
ignorejjj/VeriGraph/src/training/rl/recipe/verigraph/preprocess_verigraph_rl.py
code served (permissive licence) · get_code("bf30b07239934176")
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 numpy as np

torch.manual_seed(0)

# Construct arguments for find_value(payload, candidate_keys)
# The function searches through nested dicts/lists for keys matching candidate_keys

# Create a nested payload with various data structures
payload = {
    "level1_key": None,
    "empty_string": "",
    "nested_dict": {
        "target_key": "found_value",
        "other_key": "other_value"
    },
    "nested_list": [
        {"another_key": None},
        {"target_key": "also_found"},
        "string_item"
    ],
    "deep_nesting": {
        "level2": [
            {"level3_key": "deep_value"},
            {"target_key": "deep_found"}
        ]
    }
}

# Candidate keys to search for
candidate_keys = ["target_key", "level3_key", "missing_key"]

ARGS = {
    "payload": payload,
    "candidate_keys": candidate_keys
}
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 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
json_safe Ran
ran; our contract draft was wrong, not the code
ignorejjj/VeriGraph/demo/server.py
code served (permissive licence) · get_code("e43fdf13b90f65e7")
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 json
from typing import Any, Dict, List

# Test cases for json_safe function
# The function takes one parameter 'value' and tries to make it JSON-serializable

torch.manual_seed(0)

# Create various test values
simple_int = 42
simple_str = "hello"
simple_list = [1, 2, 3]
simple_dict = {"a": 1, "b": 2}

# Create a tensor (not JSON serializable by default)
tensor_value = torch.randn(2, 4)

# Create a complex nested structure with mixed types
complex_nested = {
    "tensor": torch.randn(2, 3),
    "list": [1, 2, torch.tensor([1.0, 2.0])],
    "tuple": (1, 2, 3),
    "set": {1, 2, 3},
    "nested_dict": {
        "inner_tensor": torch.randn(2, 4),
        "inner_list": [torch.randn(1, 2), 42],
    }
}

# Create a custom non-serializable object
class CustomObject:
    def __init__(self, value):
        self.value = value

custom_obj = CustomObject(42)

# Test case: dict with non-string keys and non-serializable values
dict_with_issues = {
    1: torch.randn(2, 4),
    "key": custom_obj,
    (1, 2): [1, 2, torch.randn(1, 3)],
}

# Define ARGS - one value to test the json_safe function
ARGS = {
    "value": complex_nested
}
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 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_benchmark_data Ran
ran; our contract draft was wrong, not the code
ignorejjj/VeriGraph/src/inference/run_inference.py
code served (permissive licence) · get_code("3b0c92c08b865b9e")
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 json
import os
import tempfile
import shutil

# Create a temporary directory structure for the benchmark data
temp_dir = tempfile.mkdtemp()

# Create the context subdirectory
context_dir = os.path.join(temp_dir, 'context')
os.makedirs(context_dir, exist_ok=True)

# Create sample questions data
questions_data = [
    {
        'id': 'question_1',
        'text': 'What is the capital of France?',
        'answer': 'Paris'
    },
    {
        'id': 'question_2',
        'text': 'What is the capital of Germany?',
        'answer': 'Berlin'
    }
]

# Create subdirectories for each question's context
for item in questions_data:
    question_context_dir = os.path.join(context_dir, item['id'])
    os.makedirs(question_context_dir, exist_ok=True)

# Write questions.json file
questions_file = os.path.join(temp_dir, 'questions.json')
with open(questions_file, 'w', encoding='utf-8') as f:
    json.dump(questions_data, f, ensure_ascii=False)

ARGS = {
    'dataset_dir': temp_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 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
ignorejjj/VeriGraph/src/inference/run_inference.py
code served (permissive licence) · get_code("860c94939e40e6cf")
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
import os

# Create a temporary JSON file for the function to load
temp_dir = tempfile.mkdtemp()
json_path = os.path.join(temp_dir, "test.json")

# Write a valid JSON file
test_data = {
    "key1": "value1",
    "key2": [1, 2, 3],
    "key3": {"nested": "object"}
}

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

ARGS = {
    "path": json_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

Also present in other papers' code

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

LLM-based agents have demonstrated strong capabilities in data-intensive analytical tasks, yet their outputs are rarely verifiable: a reliance on linear text trajectories makes their reasoning difficult to audit. In particular, deterministic computations over raw data and semantic deductions over natural-language claims are often entangled in an unstructured stream, leaving numerical conclusions hard to reproduce and qualitative judgments hard to inspect. To address this, we propose VeriGraph, a traceable neuro-symbolic reasoning framework that enables agents to construct an explicit heterogeneous evidence directed acyclic graph (DAG) during execution. VeriGraph introduces three evidence-expansion primitives, namely computational, grounding, and derivational expansion, to connect raw data, interpreter variables, computed results, and natural-language claims in a unified graph. Under this formulation, structural traceability is reduced to graph reachability from raw data sources to terminal claims, while semantic support is measured by claim-level evidence evaluation. To improve graph construction, we further design a graph-based policy optimization strategy with a composite reward that jointly supervises answer correctness, computational integrity, and derivational coherence. Experiments on four benchmarks show that VeriGraph-8B achieves the highest overall score among all baselines. More importantly, VeriGraph produces auditable evidence graphs with substantially stronger claim grounding, achieving a 87.61% Grounding Rate under our claim-level evidence support evaluation. These results suggest that explicit evidence-graph construction is a promising path toward verifiable data-analytic agents. Our code is available at https://github.com/ignorejjj/VeriGraph.

For agents

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

get_harvested_code_for_paper("2606.16603")
get_code_for_paper("2606.16603")
have("2606.16603")

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

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

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

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

Connect an agent — have() is free.