proxy request logs parsed: 51; upstream requests recorded: 10
stand-in upstream accepted only its own made-up key; any other presented key would be marked ok:false below.

## S2-claude-A: exit 0; upstream requests 2
   client stdout: ROUNDTRIP-OK: 1 probe-file-content: STAND-IN-PROBE-7f3a 2
   usage queue after the run: 2 event(s); client key sk-standin-agentA-021acca63aaddf78 (config-inline) failed=false status=200 | client key sk-standin-agentA-021acca63aaddf78 (config-inline) failed=false status=200
   upstream request 1: POST /v1/messages?beta=true  reply=tool stream=true tools=["Read"] tool_result_in_history=false
     key the proxy saw   : key A (Bearer sk-s...df78)  [header Authorization: Bearer]
     key the upstream saw: standin-upstream-key-0001 via authorization-bearer, accepted=true; client key present in upstream headers: false
     anthropic-version   : client 2023-06-01 -> upstream 2023-06-01
     anthropic-beta      : identical (9 flags upstream; client 9)
     cache_control blocks: client 3 -> upstream 3
     body                : byte-for-byte equal as JSON
     headers dropped: none; changed: x-stainless-package-version 0.128.0 -> 0.112.1; added: none
   upstream request 2: POST /v1/messages?beta=true  reply=text stream=true tools=["Read"] tool_result_in_history=true
     key the proxy saw   : key A (Bearer sk-s...df78)  [header Authorization: Bearer]
     key the upstream saw: standin-upstream-key-0001 via authorization-bearer, accepted=true; client key present in upstream headers: false
     anthropic-version   : client 2023-06-01 -> upstream 2023-06-01
     anthropic-beta      : identical (9 flags upstream; client 9)
     cache_control blocks: client 3 -> upstream 3
     body                : byte-for-byte equal as JSON
     headers dropped: none; changed: x-stainless-package-version 0.128.0 -> 0.112.1; added: none
## S2-pi-A: exit 0; upstream requests 2
   client stdout: ROUNDTRIP-OK: probe-file-content: STAND-IN-PROBE-7f3a
   client stderr: Warning: Model "claude-sonnet-5-5" not found for provider "anthropic". Using custom model id.
   usage queue after the run: 2 event(s); client key sk-standin-agentA-021acca63aaddf78 (config-inline) failed=false status=200 | client key sk-standin-agentA-021acca63aaddf78 (config-inline) failed=false status=200
   upstream request 1: POST /v1/messages?beta=true  reply=tool stream=true tools=["read"] tool_result_in_history=false
     key the proxy saw   : key A (sk-s...df78)  [header x-api-key]
     key the upstream saw: standin-upstream-key-0001 via authorization-bearer, accepted=true; client key present in upstream headers: false
     anthropic-version   : client 2023-06-01 -> upstream 2023-06-01
     anthropic-beta      : identical (1 flags upstream; client 1)
     cache_control blocks: client 3 -> upstream 3
     body                : byte-for-byte equal as JSON
     headers dropped: sec-fetch-mode, accept-language; changed: none; added: none
   upstream request 2: POST /v1/messages?beta=true  reply=text stream=true tools=["read"] tool_result_in_history=true
     key the proxy saw   : key A (sk-s...df78)  [header x-api-key]
     key the upstream saw: standin-upstream-key-0001 via authorization-bearer, accepted=true; client key present in upstream headers: false
     anthropic-version   : client 2023-06-01 -> upstream 2023-06-01
     anthropic-beta      : identical (1 flags upstream; client 1)
     cache_control blocks: client 3 -> upstream 3
     body                : byte-for-byte equal as JSON
     headers dropped: accept-language, sec-fetch-mode; changed: none; added: none
## S2-pi-env-A: exit 1; upstream requests 0
   client stdout: (empty)
   client stderr: Warning: Model "claude-sonnet-5-5" not found for provider "anthropic". Using custom model id. Connection error.
   usage queue after the run: 0 event(s)
## S3-claude-B: exit 0; upstream requests 1
   client stdout: STAND-IN-ANSWER-11 (streamed in three chunks)
   usage queue after the run: 1 event(s); client key sk-standin-agentB-aa6b32c15aeb2101 (config-inline) failed=false status=200
   upstream request 1: POST /v1/messages?beta=true  reply=text stream=true tools=["Read"] tool_result_in_history=false
     key the proxy saw   : key B (Bearer sk-s...2101)  [header Authorization: Bearer]
     key the upstream saw: standin-upstream-key-0001 via authorization-bearer, accepted=true; client key present in upstream headers: false
     anthropic-version   : client 2023-06-01 -> upstream 2023-06-01
     anthropic-beta      : identical (9 flags upstream; client 9)
     cache_control blocks: client 3 -> upstream 3
     body                : byte-for-byte equal as JSON
     headers dropped: none; changed: x-stainless-package-version 0.128.0 -> 0.112.1; added: none
## S4-claude-A-revoked: exit 124 (killed by the harness timeout); upstream requests 0
   client stdout: (empty)
   usage queue after the run: 0 event(s)
## S4-claude-B-after: exit 0; upstream requests 1
   client stdout: STAND-IN-ANSWER-15 (streamed in three chunks)
   usage queue after the run: 1 event(s); client key sk-standin-agentB-aa6b32c15aeb2101 (config-inline) failed=false status=200
   upstream request 1: POST /v1/messages?beta=true  reply=text stream=true tools=["Read"] tool_result_in_history=false
     key the proxy saw   : key B (Bearer sk-s...2101)  [header Authorization: Bearer]
     key the upstream saw: standin-upstream-key-0001 via authorization-bearer, accepted=true; client key present in upstream headers: false
     anthropic-version   : client 2023-06-01 -> upstream 2023-06-01
     anthropic-beta      : identical (9 flags upstream; client 9)
     cache_control blocks: client 3 -> upstream 3
     body                : byte-for-byte equal as JSON
     headers dropped: none; changed: x-stainless-package-version 0.128.0 -> 0.112.1; added: none
## S4-pi-A-revoked: exit 1; upstream requests 0
   client stdout: (empty)
   client stderr: Warning: Model "claude-sonnet-5-5" not found for provider "anthropic". Using custom model id. 401 {"error":"Invalid API key"}
   usage queue after the run: 0 event(s)
## S5-claude-missing: exit 1; upstream requests 0
   client stdout: Not logged in · Please run /login
   usage queue after the run: 0 event(s)
## S5-claude-unknown: exit 1; upstream requests 0
   client stdout: Failed to authenticate. API Error: 401 {"error":"Invalid API key"}
   usage queue after the run: 0 event(s)
## S5-pi-missing: exit 1; upstream requests 0
   client stdout: (empty)
   client stderr: Warning: Model "claude-sonnet-5-5" not found for provider "anthropic". Using custom model id. No API key found for anthropic. Use /login to log into a provider via OAuth or API key. See: /mnt/storage/
   usage queue after the run: 0 event(s)
## S5-pi-unknown: exit 1; upstream requests 0
   client stdout: (empty)
   client stderr: Warning: Model "claude-sonnet-5-5" not found for provider "anthropic". Using custom model id. 401 {"error":"Invalid API key"}
   usage queue after the run: 0 event(s)
## S6-claude-B-upstream-down: exit 124 (killed by the harness timeout); upstream requests 0
   client stdout: (empty)
   usage queue after the run: 1 event(s); client key sk-standin-agentB-aa6b32c15aeb2101 (config-inline) failed=true status=500
## S6-pi-B-upstream-down: exit 1; upstream requests 0
   client stdout: (empty)
   client stderr: Warning: Model "claude-sonnet-5-5" not found for provider "anthropic". Using custom model id. 500 {"type":"error","error":{"type":"api_error","message":"Post \"http://127.0.0.1:18400/v1/messages?beta=
   usage queue after the run: 4 event(s); client key sk-standin-agentB-aa6b32c15aeb2101 (config-inline) failed=true status=500 | client key sk-standin-agentB-aa6b32c15aeb2101 (config-inline) failed=true status=500 | client key sk-standin-agentB-aa6b32c15aeb2101 (config-inline) failed=true status=500

## direct probes (curl, one request each)
   S1-A-immediately key=sk-standin-agentA-021acca63aaddf78 -> HTTP 200 {"id":"msg_standin2","type":"message","role":"assist
      usage queue: 1 event(s); client key sk-standin-agentA-021acca63aaddf78 failed=false
   S1-B-immediately key=sk-standin-agentB-aa6b32c15aeb2101 -> HTTP 200 {"id":"msg_standin4","type":"message","role":"assist
      usage queue: 1 event(s); client key sk-standin-agentB-aa6b32c15aeb2101 failed=false
   S4-A-after-revoke key=sk-standin-agentA-021acca63aaddf78 -> HTTP 401 {"error":"Invalid API key"}
      usage queue: 0 event(s)
   S4-B-after-revoke key=sk-standin-agentB-aa6b32c15aeb2101 -> HTTP 200 {"id":"msg_standin14","type":"message","role":"assi
      usage queue: 1 event(s); client key sk-standin-agentB-aa6b32c15aeb2101 failed=false
   S4b-B-after-restart key=sk-standin-agentB-aa6b32c15aeb2101 -> HTTP 200 {"id":"msg_standin18","type":"message","role":"as
      usage queue: 1 event(s); client key sk-standin-agentB-aa6b32c15aeb2101 failed=false
   S4b-A-after-restart key=sk-standin-agentA-021acca63aaddf78 -> HTTP 401 {"error":"Invalid API key"}
      usage queue: 0 event(s)
   S5-unknown key=sk-standin-never-issued-0000 -> HTTP 401 {"error":"Invalid API key"}
      usage queue: 0 event(s)
   S5-missing key=- -> HTTP 401 {"error":"Missing API key"}
      usage queue: 0 event(s)
   S6-B-upstream-down key=sk-standin-agentB-aa6b32c15aeb2101 -> HTTP 500 {"type":"error","error":{"type":"api_error","messa
      usage queue: 1 event(s); client key sk-standin-agentB-aa6b32c15aeb2101 failed=true

proxy request logs with no upstream call: 25
proxy HTTP status counts (main.log): {"200 /v8/management/config/access/api-keys":4,"200 /v1/messages":10,"200 /v8/management/observability/usage/queue":42,"404 /api/hello":7,"200 /v8/management/observability/usage/api-keys":3,"200 /v0/management/api-keys":1,"401 /v1/messages":25,"500 /v1/messages":16,"200 /v8/management/observability/logs":1}
