SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1912.03618 · 2019

Efficient Black-box Assessment of Autonomous Vehicle Safety

arXiv · PDF · Open in the Atlas

Code that ran

9 of 12 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; 1 honoured the contract we drafted, 0 violated it and 8 have no contract verdict; 0 failures of our instrument; 3 no recorded run), measured 2026-11-24; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; 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/1912.03618.json · badge: /api/ran/1912.03618.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
Trustworthy-AI/testpilot community (classifier label)
classifier basis not recorded on the link
8 ran · 3 no recorded run
Trustworthy-AI/trustworthysearch-demo community (classifier label)
classifier basis not recorded on the link
1 ran · 0 no recorded run
FunctionStatusWhere it lives
clip Ran
ran on a synthesized input
Trustworthy-AI/testpilot/testpilot/testpilot0.5/common/numpy_fast.py
code served (permissive licence) · get_code("d0e191ae9a348b4a")
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 int, ndim 0, dtype family int, 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 = {
    "x": 5,
    "lo": 2,
    "hi": 8
}
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 int, ndim 0, dtype family int, 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
getWorkerIndex Ran
ran on a synthesized input
Trustworthy-AI/trustworthysearch-demo/python/broker.py
code served (permissive licence) · get_code("b34c1e6652508ae9")
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 int64, ndim 0, dtype family int, 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 numpy as np
from concurrent.futures import Future, ThreadPoolExecutor
import time

# Create mock futures
executor = ThreadPoolExecutor(max_workers=2)

# Create a mix of futures: some done, some None
future1 = executor.submit(lambda: time.sleep(0.01))
future1.result()  # Make this one done

future2 = None  # This one is None

future3 = executor.submit(lambda: time.sleep(10))  # This one is not done yet

worker_futures = [future1, future2, future3]

ARGS = {
    "worker_futures": worker_futures
}
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 int64, ndim 0, dtype family int, 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
int_rnd Ran
ran on a synthesized input
Trustworthy-AI/testpilot/testpilot/testpilot0.5/common/numpy_fast.py
code served (permissive licence) · get_code("31cbffa1143cf607")
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 int, ndim 0, dtype family int, 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

def int_rnd(x):
    return int(round(x))

ARGS = {
    'x': 3.7
}
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 int, ndim 0, dtype family int, 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
interp Ran
ran on a synthesized input
Trustworthy-AI/testpilot/testpilot/testpilot0.5/common/numpy_fast.py
code served (permissive licence) · get_code("75cbbd8d6697e8ed")
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

torch.manual_seed(0)

# The function interp performs linear interpolation
# x: values to interpolate at (can be iterable or scalar)
# xp: x-coordinates of data points (must be iterable)
# fp: y-coordinates of data points (must be iterable, same length as xp)

# Create simple test data for interpolation
xp = [0.0, 1.0, 2.0, 3.0]  # x-coordinates of known points
fp = [0.0, 2.0, 4.0, 6.0]  # y-coordinates of known points (linear: y = 2x)

# Test with multiple x values to interpolate
x = [0.5, 1.5, 2.5]  # values where we want to interpolate

ARGS = {
    'x': x,
    'xp': xp,
    'fp': fp
}
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
is_valid_for_fingerprint Ran
ran on a synthesized input
Trustworthy-AI/testpilot/testpilot/testpilot0.5/common/fingerprints.py
code served (permissive licence) · get_code("7caa1f53f2d7f7ec")
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.

class Message:
    def __init__(self, address, src, dat):
        self.address = address
        self.src = src
        self.dat = dat

msg = Message(address=0x123, src=0, dat=b'\x01\x02\x03\x04')
car_fingerprint = {0x123: 4}

ARGS = {
    'msg': msg,
    'car_fingerprint': car_fingerprint
}
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
json_handler Ran
ran on a synthesized input
Trustworthy-AI/testpilot/testpilot/testpilot0.5/common/logging_extra.py
code served (permissive licence) · get_code("cc02670c10cca6f7")
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)

def json_handler(obj):
    return repr(obj)

# The function takes one parameter 'obj' and returns its repr()
# It's a generic JSON handler that can accept any object type
# Let's test it with a few different object types

ARGS = {
    "obj": torch.tensor([[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.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 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_robust_dumps Ran
ran on a synthesized input
Trustworthy-AI/testpilot/testpilot/testpilot0.5/common/logging_extra.py
code served (permissive licence) · get_code("3381496eae517481")
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 json
import numpy as np

torch.manual_seed(0)

def json_handler(obj):
    return repr(obj)

def json_robust_dumps(obj):
    return json.dumps(obj, default=json_handler)

# Construct test objects that will exercise the json_robust_dumps function
# The function calls json.dumps with a default handler that uses repr()

# Create a variety of objects that might need the custom handler
tensor_obj = torch.randn(2, 4)
numpy_array = np.array([[1, 2, 3], [4, 5, 6]])
complex_obj = {
    "tensor": tensor_obj,
    "numpy": numpy_array,
    "nested": {
        "value": 42,
        "list": [1, 2, 3],
        "another_tensor": torch.randn(2, 3)
    },
    "simple_string": "hello",
    "number": 3.14,
}

ARGS = {
    "obj": complex_obj
}
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
read_db Ran
ran on a synthesized input
Trustworthy-AI/testpilot/testpilot/testpilot0.5/common/params.py
code served (permissive licence) · get_code("73e73441da88a7b9")
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 bytes. 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 os

# Create a temporary directory to act as params_path
temp_dir = tempfile.mkdtemp()
params_subdir = os.path.join(temp_dir, 'd')
os.makedirs(params_subdir, exist_ok=True)

# Create a test file with some binary content
test_key = 'test_key'
test_file_path = os.path.join(params_subdir, test_key)
with open(test_file_path, 'wb') as f:
    f.write(b'test binary data')

ARGS = {
    'params_path': temp_dir,
    'key': test_key
}
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 bytes — a bytes output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a bytes 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
recv_array Ran
ran, honoured the contract we drafted
Trustworthy-AI/testpilot/testpilot/utils/Utils.py
code served (permissive licence) · get_code("c8f3c9a39e388827")
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 2, dtype family float, shape (2, 4) 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
from unittest.mock import Mock

# Create a mock socket object that mimics ZMQ socket behavior
mock_socket = Mock()

# Create sample numpy array data
sample_array = np.array([[1, 2, 3, 4], [5, 6, 7, 8]], dtype=np.float32)
array_shape = sample_array.shape
array_dtype = sample_array.dtype

# Mock the recv_json method to return metadata
mock_socket.recv_json.return_value = {
    'dtype': array_dtype,
    'shape': array_shape
}

# Mock the recv method to return the array as bytes
array_bytes = sample_array.tobytes()
mock_socket.recv.return_value = array_bytes

ARGS = {
    'socket': mock_socket,
    'flags': 0,
    'copy': True,
    'track': False
}
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 2, dtype family float, shape (2, 4) — shape (2, 4) 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
send_image Not yet run
unverified (harvested, no recorded run)
Trustworthy-AI/testpilot/testpilot/utils/Utils.py
code served (permissive licence) · get_code("b870fcb7e9e159a7")
How it ran

no invocation recorded.

set_poses Not yet run
unverified (harvested, no recorded run)
Trustworthy-AI/testpilot/testpilot/testpilot.py
code served (permissive licence) · get_code("c0a4bd4171aa4a0a")
How it ran

no invocation recorded.

set_realtime_priority Not yet run
unverified (harvested, no recorded run)
Trustworthy-AI/testpilot/testpilot/testpilot0.5/common/realtime.py
code served (permissive licence) · get_code("20576537238fa77f")
How it ran

no invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 0 later) and 11 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.

FunctionAlso present inEarliest-datedOthers named
recv_array 1 other paper
1 dated earlier
1811.00145 (2018-11)
Scalable End-to-End Autonomous Vehicle Testing via Rare-event Simulation

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

While autonomous vehicle (AV) technology has shown substantial progress, we still lack tools for rigorous and scalable testing. Real-world testing, the $\textit{de-facto}$ evaluation method, is dangerous to the public. Moreover, due to the rare nature of failures, billions of miles of driving are needed to statistically validate performance claims. Thus, the industry has largely turned to simulation to evaluate AV systems. However, having a simulation stack alone is not a solution. A simulation testing framework needs to prioritize which scenarios to run, learn how the chosen scenarios provide coverage of failure modes, and rank failure scenarios in order of importance. We implement a simulation testing framework that evaluates an entire modern AV system as a black box. This framework estimates the probability of accidents under a base distribution governing standard traffic behavior. In order to accelerate rare-event probability evaluation, we efficiently learn to identify and rank failure scenarios via adaptive importance-sampling methods. Using this framework, we conduct the first independent evaluation of a full-stack commercial AV system, Comma AI's OpenPilot.

For agents

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

get_harvested_code_for_paper("1912.03618")
get_code_for_paper("1912.03618")
have("1912.03618")

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

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

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

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

Connect an agent — have() is free.