============================= test session starts ==============================
platform darwin -- Python 3.13.12, pytest-9.2.0, pluggy-1.7.0 -- prodapp/.venv/bin/python
cachedir: .pytest_cache
rootdir: prodapp
configfile: pytest.ini
testpaths: tests
plugins: platformdirs-4.14.5, langsmith-0.14.17, anyio-4.16.0, asyncio-1.5.0
asyncio: mode=Mode.AUTO, debug=False, asyncio_default_fixture_loop_scope=session, asyncio_default_test_loop_scope=session
collecting ... collected 27 items

tests/test_durability.py::test_kill_mid_refund_then_resume_refunds_once FAILED [  3%]
tests/test_durability.py::test_sigterm_lets_in_flight_run_finish FAILED  [  7%]
tests/test_durability.py::test_sigterm_past_deadline_checkpoints_and_resumes PASSED [ 11%]
tests/test_evals.py::test_eval[faq_return_window] PASSED                 [ 14%]
tests/test_evals.py::test_eval[faq_shipping_time] PASSED                 [ 18%]
tests/test_evals.py::test_eval[order_status] PASSED                      [ 22%]
tests/test_evals.py::test_eval[order_unknown] PASSED                     [ 25%]
tests/test_evals.py::test_eval[order_of_other_customer_is_hidden] PASSED [ 29%]
tests/test_evals.py::test_eval[refund_approved_once] FAILED              [ 33%]
tests/test_evals.py::test_eval[refund_rejected_has_no_side_effect] PASSED [ 37%]
tests/test_evals.py::test_eval[refund_asked_twice] FAILED                [ 40%]
tests/test_evals.py::test_eval[refund_tool_replay_is_idempotent] PASSED  [ 44%]
tests/test_evals.py::test_eval[ticket_for_a_human] PASSED                [ 48%]
tests/test_evals.py::test_eval[memory_saved_and_recalled] PASSED         [ 51%]
tests/test_evals.py::test_eval[memory_of_other_user_is_invisible] PASSED [ 55%]
tests/test_evals.py::test_eval[flaky_faq_is_retried] PASSED              [ 59%]
tests/test_evals.py::test_eval[hung_tool_times_out] FAILED               [ 62%]
tests/test_evals.py::test_eval[failed_ticket_is_not_retried] PASSED      [ 66%]
tests/test_evals.py::test_eval[primary_outage_uses_backup] PASSED        [ 70%]
tests/test_evals.py::test_eval[runaway_loop_hits_call_limit] PASSED      [ 74%]
tests/test_evals.py::test_eval[long_thread_is_summarized] PASSED         [ 77%]
tests/test_evals.py::test_eval[new_message_while_waiting_for_approval] FAILED [ 81%]
tests/test_evals.py::test_eval[status_then_refund_in_one_thread] PASSED  [ 85%]
tests/test_isolation.py::test_one_user_cannot_read_another_users_thread_or_memory PASSED [ 88%]
tests/test_isolation.py::test_missing_or_wrong_token_is_rejected PASSED  [ 92%]
tests/test_smith_off.py::test_langsmith_receives_nothing_unless_enabled PASSED [ 96%]
tests/test_workers.py::test_two_workers_racing_on_one_thread_give_one_run_and_one_409 PASSED [100%]

=================================== FAILURES ===================================
________________ test_kill_mid_refund_then_resume_refunds_once _________________

    async def test_kill_mid_refund_then_resume_refunds_once():
        RUN_DIR.mkdir(parents=True, exist_ok=True)
        env = {"AUTH_TOKENS": "tok-crash=crash", "REFUND_CONFIRM_DELAY": 3}
        server = Server(RUN_DIR, "crash-1", **env)
        reset_user("crash")
        client = Http(server.url, "tok-crash")
        thread = await client.thread()
        first = await client.say(thread, "Please refund ORD-crash-2")
        approving = asyncio.create_task(client.approve(thread))
        committed = await wait_for(lambda: refunds("ORD-crash-2"))
        killed_at = time.time()
        exit_code = server.kill()
        approve_error = None
        try:
            await approving
        except Exception as exc:
            approve_error = type(exc).__name__
        server.log.close()
    
        server = Server(RUN_DIR, "crash-2", AUTH_TOKENS="tok-crash=crash")
        client = Http(server.url, "tok-crash")
        after_restart = await client.state(thread)
>       resumed = await client.approve(thread)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/test_durability.py:58: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/procs.py:88: in approve
    return await self.post_sse(f"/threads/{thread_id}/approve", {"decision": decision})
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/procs.py:82: in post_sse
    return parse_sse(response.text)
           ^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

text = '{"detail":"nothing to resume"}'

    def parse_sse(text):
        events = []
        for block in text.strip().split("\n\n"):
            if block:
>               lines = dict(line.split(": ", 1) for line in block.splitlines())
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E               ValueError: dictionary update sequence element #0 has length 1; 2 is required

tests/procs.py:68: ValueError
____________________ test_sigterm_lets_in_flight_run_finish ____________________

    @contextlib.contextmanager
    def map_httpcore_exceptions() -> typing.Iterator[None]:
        global HTTPCORE_EXC_MAP
        if len(HTTPCORE_EXC_MAP) == 0:
            HTTPCORE_EXC_MAP = _load_httpcore_exceptions()
        try:
>           yield

.venv/lib/python3.13/site-packages/httpx/_transports/default.py:101: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.venv/lib/python3.13/site-packages/httpx/_transports/default.py:271: in __aiter__
    async for part in self._httpcore_stream:
.venv/lib/python3.13/site-packages/httpcore/_async/connection_pool.py:407: in __aiter__
    raise exc from None
.venv/lib/python3.13/site-packages/httpcore/_async/connection_pool.py:403: in __aiter__
    async for part in self._stream:
.venv/lib/python3.13/site-packages/httpcore/_async/http11.py:342: in __aiter__
    raise exc
.venv/lib/python3.13/site-packages/httpcore/_async/http11.py:334: in __aiter__
    async for chunk in self._connection._receive_response_body(**kwargs):
.venv/lib/python3.13/site-packages/httpcore/_async/http11.py:203: in _receive_response_body
    event = await self._receive_event(timeout=timeout)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.venv/lib/python3.13/site-packages/httpcore/_async/http11.py:213: in _receive_event
    with map_exceptions({h11.RemoteProtocolError: RemoteProtocolError}):
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/opt/homebrew/Cellar/python@3.13/3.13.12_1/Frameworks/Python.framework/Versions/3.13/lib/python3.13/contextlib.py:162: in __exit__
    self.gen.throw(value)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

map = {<class 'h11._util.RemoteProtocolError'>: <class 'httpcore.RemoteProtocolError'>}

    @contextlib.contextmanager
    def map_exceptions(map: ExceptionMapping) -> typing.Iterator[None]:
        try:
            yield
        except Exception as exc:  # noqa: PIE786
            for from_exc, to_exc in map.items():
                if isinstance(exc, from_exc):
>                   raise to_exc(exc) from exc
E                   httpcore.RemoteProtocolError: peer closed connection without sending complete message body (incomplete chunked read)

.venv/lib/python3.13/site-packages/httpcore/_exceptions.py:14: RemoteProtocolError

The above exception was the direct cause of the following exception:

    async def test_sigterm_lets_in_flight_run_finish():
        RUN_DIR.mkdir(parents=True, exist_ok=True)
        name = "drain-finish"
        server = Server(RUN_DIR, name, AUTH_TOKENS="tok-drain=drain", MODEL_LATENCY=1.0)
        client = Http(server.url, "tok-drain")
        thread = await client.thread()
        running = asyncio.create_task(client.say(thread, "How long does shipping take?"))
        await asyncio.sleep(0.3)
        started = time.time()
        exit_code = await asyncio.to_thread(server.term)
>       events = await running
                 ^^^^^^^^^^^^^

tests/test_durability.py:89: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/procs.py:85: in say
    return await self.post_sse(f"/threads/{thread_id}/runs", {"message": text})
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/procs.py:81: in post_sse
    response = await self.http.post(path, json=body)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.venv/lib/python3.13/site-packages/httpx/_client.py:1859: in post
    return await self.request(
.venv/lib/python3.13/site-packages/httpx/_client.py:1540: in request
    return await self.send(request, auth=auth, follow_redirects=follow_redirects)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.venv/lib/python3.13/site-packages/httpx/_client.py:1643: in send
    raise exc
.venv/lib/python3.13/site-packages/httpx/_client.py:1637: in send
    await response.aread()
.venv/lib/python3.13/site-packages/httpx/_models.py:979: in aread
    self._content = b"".join([part async for part in self.aiter_bytes()])
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.venv/lib/python3.13/site-packages/httpx/_models.py:997: in aiter_bytes
    async for raw_bytes in self.aiter_raw():
.venv/lib/python3.13/site-packages/httpx/_models.py:1055: in aiter_raw
    async for raw_stream_bytes in self.stream:
.venv/lib/python3.13/site-packages/httpx/_client.py:176: in __aiter__
    async for chunk in self._stream:
.venv/lib/python3.13/site-packages/httpx/_transports/default.py:270: in __aiter__
    with map_httpcore_exceptions():
         ^^^^^^^^^^^^^^^^^^^^^^^^^
/opt/homebrew/Cellar/python@3.13/3.13.12_1/Frameworks/Python.framework/Versions/3.13/lib/python3.13/contextlib.py:162: in __exit__
    self.gen.throw(value)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    @contextlib.contextmanager
    def map_httpcore_exceptions() -> typing.Iterator[None]:
        global HTTPCORE_EXC_MAP
        if len(HTTPCORE_EXC_MAP) == 0:
            HTTPCORE_EXC_MAP = _load_httpcore_exceptions()
        try:
            yield
        except Exception as exc:
            mapped_exc = None
    
            for from_exc, to_exc in HTTPCORE_EXC_MAP.items():
                if not isinstance(exc, from_exc):
                    continue
                # We want to map to the most specific exception we can find.
                # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to
                # `httpx.ReadTimeout`, not just `httpx.TimeoutException`.
                if mapped_exc is None or issubclass(to_exc, mapped_exc):
                    mapped_exc = to_exc
    
            if mapped_exc is None:  # pragma: no cover
                raise
    
            message = str(exc)
>           raise mapped_exc(message) from exc
E           httpx.RemoteProtocolError: peer closed connection without sending complete message body (incomplete chunked read)

.venv/lib/python3.13/site-packages/httpx/_transports/default.py:118: RemoteProtocolError
_______________________ test_eval[refund_approved_once] ________________________

number = 6, check = <function refund_approved_once at 0x10dc5b740>
client = <function client.<locals>.<lambda> at 0x10e23fc40>
sql = <function sql.<locals>.run at 0x10e23e700>
spans = <function spans.<locals>.read at 0x10e23fe20>
chaos = <tests.conftest.Chaos object at 0x10dd5af90>
app = <fastapi.applications.FastAPI object at 0x10dd5b0e0>

    @pytest.mark.parametrize("number,check", list(enumerate(CASES, start=1)), ids=[f.__name__ for f in CASES])
    async def test_eval(number, check, client, sql, spans, chaos, app):
        chaos.rules, chaos.attempts = {}, chaos.attempts.__class__()
        c = client(f"e{number:02d}")
        extras = SimpleNamespace(sql=sql, spans=spans, chaos=chaos, pool=app.state.svc.pool)
        outcome = "error"
        try:
>           await check(c, await c.thread(), extras)

tests/test_evals.py:255: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

c = <tests.conftest.Client object at 0x10e39f770>
t = '90dae25b-40be-4d81-bc56-40b0a7a795f9'
x = namespace(sql=<function sql.<locals>.run at 0x10e23e700>, spans=<function spans.<locals>.read at 0x10e23fe20>, chaos=<tests.conftest.Chaos object at 0x10dd5af90>, pool=<psycopg_pool.pool_async.AsyncConnectionPool 'pool-1' at 0x10e2bd2b0>)

    @case
    async def refund_approved_once(c, t, x):
        order = f"ORD-{c.user}-1"
        events = await c.say(t, f"Please refund {order}")
        [pending] = interrupts(events)
>       assert (pending["name"], pending["args"]["order_id"], pending["args"]["amount_cents"]) == ("refund_order", order, 12900)
E       AssertionError: assert ('refund_orde...e06-1', 10000) == ('refund_orde...e06-1', 12900)
E         
E         At index 2 diff: 10000 != 12900
E         
E         Full diff: (-: missing in left side, +: extra in left side)
E           (
E               'refund_order',
E               'ORD-e06-1',...
E         
E         ...Full output truncated, use '-vv' to show

tests/test_evals.py:99: AssertionError
------------------------------ Captured log call -------------------------------
INFO     support:telemetry.py:48 run.start
INFO     support:telemetry.py:48 run.end
________________________ test_eval[refund_asked_twice] _________________________

number = 8, check = <function refund_asked_twice at 0x10dc5b880>
client = <function client.<locals>.<lambda> at 0x10e23d4e0>
sql = <function sql.<locals>.run at 0x10e23e200>
spans = <function spans.<locals>.read at 0x10e23f6a0>
chaos = <tests.conftest.Chaos object at 0x10dd5af90>
app = <fastapi.applications.FastAPI object at 0x10dd5b0e0>

    @pytest.mark.parametrize("number,check", list(enumerate(CASES, start=1)), ids=[f.__name__ for f in CASES])
    async def test_eval(number, check, client, sql, spans, chaos, app):
        chaos.rules, chaos.attempts = {}, chaos.attempts.__class__()
        c = client(f"e{number:02d}")
        extras = SimpleNamespace(sql=sql, spans=spans, chaos=chaos, pool=app.state.svc.pool)
        outcome = "error"
        try:
>           await check(c, await c.thread(), extras)

tests/test_evals.py:255: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

c = <tests.conftest.Client object at 0x10e2c3020>
t = '4d1a439f-4f30-443f-9cbb-b97d7448b566'
x = namespace(sql=<function sql.<locals>.run at 0x10e23e200>, spans=<function spans.<locals>.read at 0x10e23f6a0>, chaos=<tests.conftest.Chaos object at 0x10dd5af90>, pool=<psycopg_pool.pool_async.AsyncConnectionPool 'pool-1' at 0x10e2bd2b0>)

    @case
    async def refund_asked_twice(c, t, x):
        order = f"ORD-{c.user}-2"
        await c.say(t, f"Refund {order} please")
        await c.approve(t)
        events = await c.say(t, f"Refund {order} again")
        if interrupts(events):
            await c.approve(t)
>       assert await refunds(x.sql, order) == [{"amount_cents": 8900}]
E       AssertionError: assert [] == [{'amount_cents': 8900}]
E         
E         Right contains one more item: {'amount_cents': 8900}
E         
E         Full diff: (-: missing in left side, +: extra in left side)
E         + []
E         - [
E         -     {...
E         
E         ...Full output truncated, use '-vv' to show

tests/test_evals.py:124: AssertionError
------------------------------ Captured log call -------------------------------
INFO     support:telemetry.py:48 run.start
INFO     support:telemetry.py:48 run.end
INFO     support:telemetry.py:48 run.start
INFO     support:telemetry.py:48 tool.done
INFO     support:telemetry.py:48 run.end
INFO     support:telemetry.py:48 run.start
INFO     support:telemetry.py:48 tool.done
INFO     support:telemetry.py:48 run.end
________________________ test_eval[hung_tool_times_out] ________________________

number = 14, check = <function hung_tool_times_out at 0x10dc5bc40>
client = <function client.<locals>.<lambda> at 0x10e23f060>
sql = <function sql.<locals>.run at 0x10e23d260>
spans = <function spans.<locals>.read at 0x10e23d1c0>
chaos = <tests.conftest.Chaos object at 0x10dd5af90>
app = <fastapi.applications.FastAPI object at 0x10dd5b0e0>

    @pytest.mark.parametrize("number,check", list(enumerate(CASES, start=1)), ids=[f.__name__ for f in CASES])
    async def test_eval(number, check, client, sql, spans, chaos, app):
        chaos.rules, chaos.attempts = {}, chaos.attempts.__class__()
        c = client(f"e{number:02d}")
        extras = SimpleNamespace(sql=sql, spans=spans, chaos=chaos, pool=app.state.svc.pool)
        outcome = "error"
        try:
>           await check(c, await c.thread(), extras)

tests/test_evals.py:255: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

c = <tests.conftest.Client object at 0x10e20c590>
t = '8d08b3e1-db7c-40a2-9db4-b8d11283a956'
x = namespace(sql=<function sql.<locals>.run at 0x10e23d260>, spans=<function spans.<locals>.read at 0x10e23d1c0>, chaos=<tests.conftest.Chaos object at 0x10dd5af90>, pool=<psycopg_pool.pool_async.AsyncConnectionPool 'pool-1' at 0x10e2bd2b0>)

    @case
    async def hung_tool_times_out(c, t, x):
        x.chaos.rules = {"read_order": "hang"}
        started = time.perf_counter()
        events = await c.say(t, f"Where is my order ORD-{c.user}-1?")
>       assert time.perf_counter() - started < 5
E       assert (3970507.372476958 - 3970494.393008291) < 5
E        +  where 3970507.372476958 = <built-in function perf_counter>()
E        +    where <built-in function perf_counter> = time.perf_counter

tests/test_evals.py:176: AssertionError
------------------------------ Captured log call -------------------------------
INFO     support:telemetry.py:48 run.start
INFO     support:telemetry.py:48 tool.error
INFO     support:telemetry.py:48 run.end
______________ test_eval[new_message_while_waiting_for_approval] _______________

number = 19
check = <function new_message_while_waiting_for_approval at 0x10dc5bf60>
client = <function client.<locals>.<lambda> at 0x10e23ee80>
sql = <function sql.<locals>.run at 0x10dee42c0>
spans = <function spans.<locals>.read at 0x10dee6340>
chaos = <tests.conftest.Chaos object at 0x10dd5af90>
app = <fastapi.applications.FastAPI object at 0x10dd5b0e0>

    @pytest.mark.parametrize("number,check", list(enumerate(CASES, start=1)), ids=[f.__name__ for f in CASES])
    async def test_eval(number, check, client, sql, spans, chaos, app):
        chaos.rules, chaos.attempts = {}, chaos.attempts.__class__()
        c = client(f"e{number:02d}")
        extras = SimpleNamespace(sql=sql, spans=spans, chaos=chaos, pool=app.state.svc.pool)
        outcome = "error"
        try:
>           await check(c, await c.thread(), extras)

tests/test_evals.py:255: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

c = <tests.conftest.Client object at 0x10df3d0d0>
t = '936a7c36-1e85-4e1b-9194-1ff36deff6de'
x = namespace(sql=<function sql.<locals>.run at 0x10dee42c0>, spans=<function spans.<locals>.read at 0x10dee6340>, chaos=<tests.conftest.Chaos object at 0x10dd5af90>, pool=<psycopg_pool.pool_async.AsyncConnectionPool 'pool-1' at 0x10e2bd2b0>)

    @case
    async def new_message_while_waiting_for_approval(c, t, x):
        order = f"ORD-{c.user}-3"
        events = await c.say(t, f"Refund {order}")
        assert [i["name"] for i in interrupts(events)] == ["refund_order"]
        assert await c.say(t, "Hello?") == 409
        await c.approve(t)
>       assert await refunds(x.sql, order) == [{"amount_cents": 2400}]
E       AssertionError: assert [{'amount_cents': 0}] == [{'amount_cents': 2400}]
E         
E         At index 0 diff: {'amount_cents': 0} != {'amount_cents': 2400}
E         
E         Full diff: (-: missing in left side, +: extra in left side)
E           [
E               {
E         -         'amount_cents': 2400,...
E         
E         ...Full output truncated, use '-vv' to show

tests/test_evals.py:233: AssertionError
------------------------------ Captured log call -------------------------------
INFO     support:telemetry.py:48 run.start
INFO     support:telemetry.py:48 run.end
INFO     support:telemetry.py:48 run.start
INFO     support:telemetry.py:48 tool.done
INFO     support:telemetry.py:48 run.end
==================================== PASSES ====================================
_________________________ test_eval[faq_return_window] _________________________
------------------------------ Captured log call -------------------------------
INFO     support:telemetry.py:48 run.start
INFO     support:telemetry.py:48 tool.done
INFO     support:telemetry.py:48 run.end
_________________________ test_eval[faq_shipping_time] _________________________
------------------------------ Captured log call -------------------------------
INFO     support:telemetry.py:48 run.start
INFO     support:telemetry.py:48 tool.done
INFO     support:telemetry.py:48 run.end
___________________________ test_eval[order_status] ____________________________
------------------------------ Captured log call -------------------------------
INFO     support:telemetry.py:48 run.start
INFO     support:telemetry.py:48 tool.done
INFO     support:telemetry.py:48 run.end
___________________________ test_eval[order_unknown] ___________________________
------------------------------ Captured log call -------------------------------
INFO     support:telemetry.py:48 run.start
INFO     support:telemetry.py:48 tool.done
INFO     support:telemetry.py:48 run.end
_________________ test_eval[order_of_other_customer_is_hidden] _________________
------------------------------ Captured log call -------------------------------
INFO     support:telemetry.py:48 run.start
INFO     support:telemetry.py:48 tool.done
INFO     support:telemetry.py:48 run.end
________________ test_eval[refund_rejected_has_no_side_effect] _________________
------------------------------ Captured log call -------------------------------
INFO     support:telemetry.py:48 run.start
INFO     support:telemetry.py:48 run.end
INFO     support:telemetry.py:48 run.start
INFO     support:telemetry.py:48 run.end
________________________ test_eval[ticket_for_a_human] _________________________
------------------------------ Captured log call -------------------------------
INFO     support:telemetry.py:48 run.start
INFO     support:telemetry.py:48 tool.done
INFO     support:telemetry.py:48 run.end
_____________________ test_eval[memory_saved_and_recalled] _____________________
------------------------------ Captured log call -------------------------------
INFO     support:telemetry.py:48 run.start
INFO     support:telemetry.py:48 tool.done
INFO     support:telemetry.py:48 run.end
INFO     support:telemetry.py:48 run.start
INFO     support:telemetry.py:48 tool.done
INFO     support:telemetry.py:48 run.end
_________________ test_eval[memory_of_other_user_is_invisible] _________________
------------------------------ Captured log call -------------------------------
INFO     support:telemetry.py:48 run.start
INFO     support:telemetry.py:48 tool.done
INFO     support:telemetry.py:48 run.end
_______________________ test_eval[flaky_faq_is_retried] ________________________
------------------------------ Captured log call -------------------------------
INFO     support:telemetry.py:48 run.start
INFO     support:telemetry.py:48 tool.done
INFO     support:telemetry.py:48 run.end
___________________ test_eval[failed_ticket_is_not_retried] ____________________
------------------------------ Captured log call -------------------------------
INFO     support:telemetry.py:48 run.start
INFO     support:telemetry.py:48 tool.error
INFO     support:telemetry.py:48 run.end
____________________ test_eval[primary_outage_uses_backup] _____________________
------------------------------ Captured log call -------------------------------
INFO     support:telemetry.py:48 run.start
INFO     support:telemetry.py:48 tool.done
INFO     support:telemetry.py:48 run.end
___________________ test_eval[runaway_loop_hits_call_limit] ____________________
------------------------------ Captured log call -------------------------------
INFO     support:telemetry.py:48 run.start
INFO     support:telemetry.py:48 tool.done
INFO     support:telemetry.py:48 tool.done
INFO     support:telemetry.py:48 tool.done
INFO     support:telemetry.py:48 tool.done
INFO     support:telemetry.py:48 tool.done
INFO     support:telemetry.py:48 tool.done
INFO     support:telemetry.py:48 tool.done
INFO     support:telemetry.py:48 tool.done
INFO     support:telemetry.py:48 run.end
_____________________ test_eval[long_thread_is_summarized] _____________________
------------------------------ Captured log call -------------------------------
INFO     support:telemetry.py:48 run.start
INFO     support:telemetry.py:48 tool.done
INFO     support:telemetry.py:48 run.end
INFO     support:telemetry.py:48 run.start
INFO     support:telemetry.py:48 run.end
INFO     support:telemetry.py:48 run.start
INFO     support:telemetry.py:48 run.end
INFO     support:telemetry.py:48 run.start
INFO     support:telemetry.py:48 tool.done
INFO     support:telemetry.py:48 run.end
INFO     support:telemetry.py:48 run.start
INFO     support:telemetry.py:48 tool.done
INFO     support:telemetry.py:48 run.end
INFO     support:telemetry.py:48 run.start
INFO     support:telemetry.py:48 tool.done
INFO     support:telemetry.py:48 run.end
_________________ test_eval[status_then_refund_in_one_thread] __________________
------------------------------ Captured log call -------------------------------
INFO     support:telemetry.py:48 run.start
INFO     support:telemetry.py:48 tool.done
INFO     support:telemetry.py:48 run.end
INFO     support:telemetry.py:48 run.start
INFO     support:telemetry.py:48 run.end
INFO     support:telemetry.py:48 run.start
INFO     support:telemetry.py:48 tool.done
INFO     support:telemetry.py:48 run.end
___________ test_one_user_cannot_read_another_users_thread_or_memory ___________
------------------------------ Captured log call -------------------------------
INFO     support:telemetry.py:48 run.start
INFO     support:telemetry.py:48 tool.done
INFO     support:telemetry.py:48 run.end
INFO     support:telemetry.py:48 run.start
INFO     support:telemetry.py:48 tool.done
INFO     support:telemetry.py:48 run.end
INFO     support:telemetry.py:48 run.start
INFO     support:telemetry.py:48 tool.done
INFO     support:telemetry.py:48 run.end
- generated xml file: prodapp/runs/2026-11-15-real/suite/qwen3-14b/rep-2/junit.xml -
============================== slowest durations ===============================
178.95s call     tests/test_evals.py::test_eval[long_thread_is_summarized]
169.05s call     tests/test_evals.py::test_eval[runaway_loop_hits_call_limit]
110.85s call     tests/test_smith_off.py::test_langsmith_receives_nothing_unless_enabled
41.51s call     tests/test_workers.py::test_two_workers_racing_on_one_thread_give_one_run_and_one_409
39.53s call     tests/test_evals.py::test_eval[refund_asked_twice]
38.34s call     tests/test_isolation.py::test_one_user_cannot_read_another_users_thread_or_memory
34.36s call     tests/test_evals.py::test_eval[status_then_refund_in_one_thread]
26.33s call     tests/test_evals.py::test_eval[memory_saved_and_recalled]
21.83s call     tests/test_durability.py::test_kill_mid_refund_then_resume_refunds_once
21.24s call     tests/test_evals.py::test_eval[refund_rejected_has_no_side_effect]
20.90s call     tests/test_evals.py::test_eval[primary_outage_uses_backup]
19.64s call     tests/test_evals.py::test_eval[faq_return_window]
18.79s call     tests/test_evals.py::test_eval[failed_ticket_is_not_retried]
18.26s call     tests/test_evals.py::test_eval[order_status]
16.38s call     tests/test_evals.py::test_eval[flaky_faq_is_retried]
16.09s call     tests/test_evals.py::test_eval[order_of_other_customer_is_hidden]
16.06s call     tests/test_evals.py::test_eval[new_message_while_waiting_for_approval]
15.62s call     tests/test_evals.py::test_eval[ticket_for_a_human]
15.03s call     tests/test_durability.py::test_sigterm_past_deadline_checkpoints_and_resumes
14.64s call     tests/test_evals.py::test_eval[faq_shipping_time]
14.45s call     tests/test_evals.py::test_eval[order_unknown]
13.14s call     tests/test_durability.py::test_sigterm_lets_in_flight_run_finish
12.99s call     tests/test_evals.py::test_eval[hung_tool_times_out]
11.79s call     tests/test_evals.py::test_eval[refund_approved_once]
10.01s call     tests/test_evals.py::test_eval[memory_of_other_user_is_invisible]
0.39s setup    tests/test_evals.py::test_eval[faq_return_window]
0.03s call     tests/test_evals.py::test_eval[refund_tool_replay_is_idempotent]
0.01s teardown tests/test_workers.py::test_two_workers_racing_on_one_thread_give_one_run_and_one_409

(53 durations < 0.005s hidden.  Use -vv to show these durations.)
=========================== short test summary info ============================
PASSED tests/test_durability.py::test_sigterm_past_deadline_checkpoints_and_resumes
PASSED tests/test_evals.py::test_eval[faq_return_window]
PASSED tests/test_evals.py::test_eval[faq_shipping_time]
PASSED tests/test_evals.py::test_eval[order_status]
PASSED tests/test_evals.py::test_eval[order_unknown]
PASSED tests/test_evals.py::test_eval[order_of_other_customer_is_hidden]
PASSED tests/test_evals.py::test_eval[refund_rejected_has_no_side_effect]
PASSED tests/test_evals.py::test_eval[refund_tool_replay_is_idempotent]
PASSED tests/test_evals.py::test_eval[ticket_for_a_human]
PASSED tests/test_evals.py::test_eval[memory_saved_and_recalled]
PASSED tests/test_evals.py::test_eval[memory_of_other_user_is_invisible]
PASSED tests/test_evals.py::test_eval[flaky_faq_is_retried]
PASSED tests/test_evals.py::test_eval[failed_ticket_is_not_retried]
PASSED tests/test_evals.py::test_eval[primary_outage_uses_backup]
PASSED tests/test_evals.py::test_eval[runaway_loop_hits_call_limit]
PASSED tests/test_evals.py::test_eval[long_thread_is_summarized]
PASSED tests/test_evals.py::test_eval[status_then_refund_in_one_thread]
PASSED tests/test_isolation.py::test_one_user_cannot_read_another_users_thread_or_memory
PASSED tests/test_isolation.py::test_missing_or_wrong_token_is_rejected
PASSED tests/test_smith_off.py::test_langsmith_receives_nothing_unless_enabled
PASSED tests/test_workers.py::test_two_workers_racing_on_one_thread_give_one_run_and_one_409
FAILED tests/test_durability.py::test_kill_mid_refund_then_resume_refunds_once
FAILED tests/test_durability.py::test_sigterm_lets_in_flight_run_finish - htt...
FAILED tests/test_evals.py::test_eval[refund_approved_once] - AssertionError:...
FAILED tests/test_evals.py::test_eval[refund_asked_twice] - AssertionError: a...
FAILED tests/test_evals.py::test_eval[hung_tool_times_out] - assert (3970507....
FAILED tests/test_evals.py::test_eval[new_message_while_waiting_for_approval]
=================== 6 failed, 21 passed in 916.59s (0:15:16) ===================
