SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2608.02751 · 2026

Search, Inspect, Fetch: Exploiting Structure-Aware Boolean Retrieval for Deep-Research Agents

Shuai Wang, Guido Zuccon, Yu Yin, Shengyao Zhuang, Bevan Koopman, Haodong Chen

arXiv · PDF · Open in the Atlas

Code that ran

10 of 14 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, 2 violated it and 0 have no contract verdict; 8 failures of our instrument; 4 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/2608.02751.json · badge: /api/ran/2608.02751.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
ielab/skim-search-agent canonical (classifier label)
classifier basis: census
10 ran · 4 no recorded run
FunctionStatusWhere it lives
call_plain_ask Ran
ran; our contract draft was wrong, not the code
ielab/skim-search-agent/agent_search/agent/forced_answer.py
code served (permissive licence) · get_code("75535554df837605")
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
from unittest.mock import Mock, MagicMock

# Create a mock client that simulates OpenAI API behavior
mock_client = Mock()
mock_response = Mock()
mock_choice = Mock()
mock_message = Mock()

# Set up the response chain
mock_message.content = "The answer is 42."
mock_choice.message = mock_message
mock_response.choices = [mock_choice]
mock_client.chat.completions.create.return_value = mock_response

# Define arguments
ARGS = {
    'client': mock_client,
    'model': 'gpt-4',
    'messages': [
        {'role': 'user', 'content': 'What is 2+2?'},
        {'role': 'assistant', 'content': 'The answer is <answer>4</answer>.'}
    ],
    'max_tokens': 512,
    'temperature': 0.6,
    'seed': 42
}
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
call_prefill Ran
ran; our contract draft was wrong, not the code
ielab/skim-search-agent/agent_search/agent/forced_answer.py
code served (permissive licence) · get_code("dc4573c7f3c11bb4")
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 torch.nn as nn
from typing import Optional
from unittest.mock import Mock, MagicMock

torch.manual_seed(0)

# Create a mock client that simulates vLLM's OpenAI-compatible interface
class MockMessage:
    def __init__(self, content: str):
        self.content = content

class MockChoice:
    def __init__(self, content: str):
        self.message = MockMessage(content)

class MockChatCompletion:
    def __init__(self, content: str):
        self.choices = [MockChoice(content)]

class MockChatCompletions:
    def create(self, **kwargs):
        # Simulate returning an answer wrapped in tags
        return MockChatCompletion("This is the answer content")

class MockClient:
    def __init__(self):
        self.chat = Mock()
        self.chat.completions = MockChatCompletions()

# Create mock client instance
mock_client = MockClient()

# Define ARGS dict with all required parameters
ARGS = {
    'client': mock_client,
    'model': 'gpt-3.5-turbo',
    'messages': [
        {'role': 'user', 'content': 'What is 2+2?'},
        {'role': 'assistant', 'content': 'Let me think about this.'},
        {'role': 'user', 'content': 'Please calculate it.'}
    ],
    'max_tokens': 200,
    'temperature': 0.6,
    'seed': 42
}
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
clone_dir Ran
ran; our contract draft was wrong, not the code
ielab/skim-search-agent/agent_search/corpus/code_repo.py
code served (permissive licence) · get_code("5a6d4d1dc173f417")
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

# Analyze the function:
# - repo: str - used in repo.replace('/', '__') - just needs to be a string
# - cache_dir: str - used in os.path.join() - just needs to be a string

ARGS = {
    'repo': 'owner/repo_name',
    'cache_dir': '/tmp/cache'
}
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
get_files Ran
ran; our contract draft was wrong, not the code
ielab/skim-search-agent/agent_search/corpus/code_repo.py
code served (permissive licence) · get_code("b66a7a13685fe778")
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 os
import tempfile
from typing import Any

class MockInstance:
    def __init__(self, repo: str, base_commit: str, files: dict = None):
        self.repo = repo
        self.base_commit = base_commit
        self.files = files

# Test case 1: instance with files already cached
instance_with_files = MockInstance(
    repo="owner/repo",
    base_commit="abc123def456",
    files={"module.py": "print('hello')", "utils.py": "def foo(): pass"}
)

# Test case 2: instance without files (would need to fetch from git, but we won't)
instance_without_files = MockInstance(
    repo="another/repo",
    base_commit="def789ghi012",
    files=None
)

# Create a temporary cache directory
with tempfile.TemporaryDirectory() as tmpdir:
    cache_dir = tmpdir

ARGS = {
    "instance": instance_with_files,
    "cache_dir": cache_dir,
    "allow_clone": 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 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
is_openai_model Ran
ran, violated the contract we drafted
ielab/skim-search-agent/agent_search/models/backends.py
code served (permissive licence) · get_code("dbc5dded9ddbe8f3")
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 torch
import torch.nn as nn

ARGS = {
    "model": "gpt-4-turbo"
}
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 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
is_test_path Ran
ran, violated the contract we drafted
ielab/skim-search-agent/agent_search/corpus/units.py
code served (permissive licence) · get_code("bf54a131945c4696")
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 re

def is_test_path(path: str) -> bool:
    """SWE-bench's test-file heuristic (bm25_retrieval.py is_test / CoRNStack):
    split the path on separators and drop it if any word is test/tests/testing.
    Applied uniformly to the corpus of EVERY condition so test exclusion can
    never confound the method-vs-baseline comparison."""
    words = set(re.split('[_\\-/\\.]', path.lower()))
    return bool(words & {'test', 'tests', 'testing'})


ARGS = {
    'path': 'src/utils/test_helpers.py'
}
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
openai_compat_generate Ran
ran; our contract draft was wrong, not the code
ielab/skim-search-agent/agent_search/models/backends.py
code served (permissive licence) · get_code("01d7cbab4560dd92")
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 function. 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
import threading
from unittest.mock import Mock, MagicMock

# Create a mock OpenAI client that doesn't require actual network calls
mock_client = Mock()

# Create a mock response object
mock_message = Mock()
mock_message.content = "<tool_call>test_action</tool_call>"

mock_choice = Mock()
mock_choice.message = mock_message

mock_usage = Mock()
mock_usage.prompt_tokens = 100
mock_usage.completion_tokens = 50
mock_usage.prompt_tokens_details = None
mock_usage.completion_tokens_details = None

mock_response = Mock()
mock_response.choices = [mock_choice]
mock_response.usage = mock_usage

# Set up the mock client to return the mock response
mock_client.chat.completions.create = Mock(return_value=mock_response)

ARGS = {
    'model': 'Alibaba-NLP/Tongyi-DeepResearch-30B-A3B',
    'base_url': 'http://localhost:8000/v1',
    'api_key': 'test-key',
    'client': mock_client,
    'max_tokens': 4000,
    'temperature': 0.6,
    'seed': 42,
    'top_p': 0.95,
    'presence_penalty': 1.1,
    'stop': ['</tool_call>', '</answer>', '\n<tool_response>', '<tool_response>']
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
openai — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
prefill_messages_for Ran
ran; our contract draft was wrong, not the code
ielab/skim-search-agent/agent_search/agent/forced_answer.py
code served (permissive licence) · get_code("010519352a685285")
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 torch.nn as nn

torch.manual_seed(0)

# Construct a simple list of messages in the format expected by the function
messages = [
    {'role': 'user', 'content': 'Hello, how are you?'},
    {'role': 'assistant', 'content': 'I am doing well, thank you for asking.'},
    {'role': 'user', 'content': 'What is 2+2?'}
]

ARGS = {
    'messages': messages
}
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 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
units_from_documents Ran
ran; our contract draft was wrong, not the code
ielab/skim-search-agent/agent_search/corpus/units.py
code served (permissive licence) · get_code("7a614c4411d88d66")
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 dataclasses import dataclass
from typing import Mapping, Sequence

torch.manual_seed(0)

# Construct sample documents with various field combinations
docs = [
    {
        'doc_id': 'doc1',
        'title': 'Function foo',
        'section': 'utilities',
        'text': 'def foo():\n    return 42',
        'path': '/code/utils.py',
        'extra_field': 'extra_value'
    },
    {
        'id': 'doc2',
        'title': 'Class Bar',
        'body': 'class Bar:\n    pass',
        'url': '/code/classes.py'
    },
    {
        '_id': 'doc3',
        'section': 'helpers',
        'contents': 'def helper():\n    pass',
        'sections': [
            {'heading': 'Overview', 'text': 'This is an overview'},
            {'heading': 'Details', 'text': 'More details here'}
        ]
    },
    {
        'doc_id': 'doc4',
        'heading': 'Another heading',
        'text': 'some code here'
    }
]

ARGS = {
    'docs': docs
}
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
units_from_python_source Ran
ran; our contract draft was wrong, not the code
ielab/skim-search-agent/agent_search/corpus/units.py
code served (permissive licence) · get_code("f25a3234ae9c2958")
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 ast
from dataclasses import dataclass
from typing import Mapping, Sequence

# Minimal Python source code for testing
PYTHON_SOURCE_WITH_FUNCTIONS = '''
def simple_function():
    """A simple function."""
    return 42

class MyClass:
    def method_one(self):
        """First method."""
        pass
    
    async def async_method(self):
        """Async method."""
        await something()
    
    def nested_function(self):
        def inner():
            return 1
        return inner()

def decorated_function():
    @property
    def prop(self):
        return "value"
    return prop

def another_function(x, y):
    """Another function with args."""
    return x + y
'''

ARGS = {
    "path": "test_module.py",
    "source": PYTHON_SOURCE_WITH_FUNCTIONS,
}
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
ensure_repo Not yet run
unverified (harvested, no recorded run)
ielab/skim-search-agent/agent_search/corpus/code_repo.py
code served (permissive licence) · get_code("cdfce0b6dfb48477")
How it ran

no invocation recorded.

parse_tool_call Not yet run
unverified (harvested, no recorded run)
ielab/skim-search-agent/agent_search/agent/actions.py
code served (permissive licence) · get_code("66fc384f5ecf8196")
How it ran

no invocation recorded.

register_tool_engine Not yet run
unverified (harvested, no recorded run)
ielab/skim-search-agent/agent_search/agent/retriever.py
code served (permissive licence) · get_code("71ff7385c6362cba")
How it ran

no invocation recorded.

vllm_generate Not yet run
unverified (harvested, no recorded run)
ielab/skim-search-agent/agent_search/models/backends.py
code served (permissive licence) · get_code("08efcb1a2fd017e2")
How it ran

no invocation recorded.

Also present in other papers' code

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

Existing deep-research agents use a Search-Visit workflow that retrieves whole webpages without considering the structure they expose through titles, headings, sections, and metadata. This prevents agents from directly constraining retrieval to parts of a webpage and often carries irrelevant content into their context. We introduce SIEVE, a search-inspect-fetch strategy driven by a Boolean Query Language (BQL): it searches webpage fields to filter candidates, uses an interchangeable ranker to order them, presents structure-rich result cards for inspection, and fetches only selected sections. Across three QA collections, SIEVE is more accurate than the strongest conventional Search-Visit configuration on each collection while using 20.7-50.6% fewer tokens. Boolean filtering improves every tested ranker, and the accuracy-context advantage persists across retriever choices and agent backbones. Our implementation is included in the SkimSearchAgent library at https://github.com/ielab/skim-search-agent.

For agents

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

get_harvested_code_for_paper("2608.02751")
get_code_for_paper("2608.02751")
have("2608.02751")

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

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

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

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

Connect an agent — have() is free.