tokunseba
Watching it

Every signal

The full vocabulary of what the proxy records, and what each one means.

A signal is something the proxy decided, noticed, or refused to do. They appear in tokunseba stats, tokunseba report and on the dashboard, and every one of them is explained in the tool itself as well as here.

A signal nobody can interpret is noise, so the list below and the code that emits them are kept in step by a test: a signal with no explanation fails the build.

Cache

SignalWhat it means
cache_drifta cached prefix changed, so the next request re-read it in full
cache_injectedtokunseba added cache breakpoints a client had omitted
cache_miss_unexplaineda cached request read nothing back
ttl_advicethis session is slow-paced enough to benefit from the 1 hour cache

Routing

SignalWhat it means
route_signaldomain and difficulty read from the opening prompt
rule_routeda first turn matched a routing rule and went to the model it named
model_routedan easy first turn was sent to a smaller model
local_routedan easy first turn was sent to a local model
protocol_translateda turn was rewritten into the protocol its new upstream speaks, and the reply was rewritten back
route_refuseda routing rule matched but its target could not be used, so the turn was left alone
effort_setan easy turn was sent at low effort
judge_errorthe local judge failed or timed out; the conservative path was taken

Safety

SignalWhat it means
secret_detecteda credential was seen in an outbound request
secret_redacteda credential was replaced before the request left this machine
injection_suspecteda tool result looked like it was addressing the assistant
injection_corroboratedthe local judge was asked whether it agreed with a regex hit

Trouble

SignalWhat it means
passthrough_after_errora bug in tokunseba was hit, so the request was forwarded exactly as the tool sent it
upstream_errorthe upstream could not be reached and the request returned 502
failover_usedthe upstream failed and the same model was retried elsewhere
record_errora response was delivered but its usage could not be recorded
ref_danglinga stored reference lost its target and the full text was sent
context_overflow_riska local model was close to silently truncating the prompt
budget_exceededtoday's tokens passed the configured daily budget

Housekeeping

SignalWhat it means
prunedhistory past the retention window was deleted from this machine

Reading them

tokunseba stats --since 7d     # counts, with the explanation beside each
tokunseba report               # the same, grouped, with graphs
tokunseba dashboard            # the same, in a browser

The two worth acting on immediately:

  • cache_drift means a client is putting something changing inside its own cached prefix, so the cache misses on every turn. tokunseba report names the region.
  • passthrough_after_error means tokunseba hit a bug and forwarded your request untouched. Nothing was broken, but something in it is worth reporting.

On this page