Liking cljdoc? Tell your friends :D

hive-tmux.claude.caller

Who is calling, and is a pane row the caller's own session? (card 20261122175413-3d66aa77.)

The host stamps every call with _caller_id. A coordinator is coordinator:<token>, and since bb-mcp #45 (2026-11-18) the token is the first 8 hex digits of the Claude session id. bb-mcp falls back to the client pid only when no session record was readable. The pid-only reader this replaces returned nil for a hex token, so every own-pane guard built on it FAILED OPEN: a session could compact its own pane or answer its own dialog.

Ported from hive-self-steer's caller-token (PR #10). An 8-character token is always a session token, digits only included: a Linux pid has at most 7 digits (pid_max 4194304).

FAIL CLOSED. A coordinator: id whose token is neither form is :unresolvable. The guards refuse such a caller with a reason. They never treat it as "not the caller's pane".

Stratum: Promote. Pure; no tmux, no files.

Who is calling, and is a pane row the caller's own session? (card
20261122175413-3d66aa77.)

The host stamps every call with `_caller_id`. A coordinator is
`coordinator:<token>`, and since bb-mcp #45 (2026-11-18) the token is the
first 8 hex digits of the Claude session id. bb-mcp falls back to the
client pid only when no session record was readable. The pid-only reader
this replaces returned nil for a hex token, so every own-pane guard built
on it FAILED OPEN: a session could compact its own pane or answer its own
dialog.

Ported from hive-self-steer's caller-token (PR #10). An 8-character token
is always a session token, digits only included: a Linux pid has at most
7 digits (pid_max 4194304).

FAIL CLOSED. A `coordinator:` id whose token is neither form is
:unresolvable. The guards refuse such a caller with a reason. They never
treat it as "not the caller's pane".

Stratum: Promote. Pure; no tmux, no files.
raw docstring

caller-tokenclj

(caller-token caller-id)

What a coordinator:<token> caller id names: {:session-token s} or {:pid n}, never both. Nil for anything else, including a coordinator id whose token is neither form (see identity-of).

What a `coordinator:<token>` caller id names: {:session-token s} or
{:pid n}, never both. Nil for anything else, including a coordinator id
whose token is neither form (see `identity-of`).
sourceraw docstring

identity-ofclj

(identity-of caller-id)

How a guard must treat CALLER-ID: {:token t} a coordinator, caller-token T {:unresolvable id} a coordinator: id that names nothing: REFUSE nil no coordinator caller (none, a ling, the operator): no pane is its own

How a guard must treat CALLER-ID:
{:token t}               a coordinator, `caller-token` T
{:unresolvable id}       a `coordinator:` id that names nothing: REFUSE
nil                      no coordinator caller (none, a ling, the
                         operator): no pane is its own
sourceraw docstring

own-pane?clj

(own-pane? row token)

Does ROW show the session TOKEN (caller-token) names? A pid matches the row's :pid; a session token matches a row :session-id that starts with it. A bare number is read as a pid.

Does ROW show the session TOKEN (`caller-token`) names? A pid matches the
row's :pid; a session token matches a row :session-id that starts with it.
A bare number is read as a pid.
sourceraw docstring

prefixclj

source

session-token-lengthclj

Hex digits of the Claude session id bb-mcp stamps as the caller token.

Hex digits of the Claude session id bb-mcp stamps as the caller token.
sourceraw docstring

unresolvable-errorclj

(unresolvable-error id command)

The refusal data of an :unresolvable caller.

The refusal data of an :unresolvable caller.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close