Friction signals of agent coordination, counted locally for the retro
loop: <data>/agents/friction.jsonl, one {"at", "signal", "agent"?, "root"?} line per event (fixed keys and ids, never message text),
summed by lean-ctx agent friction [--since <dur>] and per hour, worker
and vault by the Cloud connector’s friction counter for the vault bus
(V16.1).
Mirror of a host’s own agent-to-agent message (Claude Code SendMessage)
onto the local bus scratchpad, so ctx_agent read and the dashboard see
direct traffic the host delivers outside lean-ctx.
What the person confirmed in LeanCTX Code for one release of a plan
directive (the JSON cloud plan release reads on stdin): the version,
the plan’s goal, and the agent’s own brief (null for an agent no part
of the plan names). Nothing else is accepted.
How long FileLock::acquire waits without progress. Threads of this
process queue for a crate::core::file_lock::Turn first, and that wait
restarts at every handover, so a moving queue never times out; the file
lock itself is then polled (25 ms steps) for at most this long, which
bounds other processes. Before (GitLab #1295) a waiter behind writers that
took it back to back could pass the former 750 ms and fail its tool call.
A dead holder’s lock is released by the OS, so waiting longer never makes
a stale lock permanent; it only lets a contended call through.
Metadata key under which a bus message carries its admission binding. The
on-disk shape of ScratchpadEntry is unchanged: metadata already is a
string map, and an entry written before bindings existed simply has no
such key (the legacy rule of context_admission::stored applies to it).
The file next to directives.json that holds the release ids of the
offered directives ({release_sha256: release_id}, mode 0600). Its name
is a secret path (crate::core::io_boundary::is_secret_like): no
ctx_* read, search or shell tool and no hooked native read opens it.
The permission role stated through the environment: LEAN_CTX_ROLE
only. LEAN_CTX_AGENT_ROLE names the agent on the bus (a host such as
LeanCTX Code sets it per worker) and never chooses what tools may do.
The one bus entry a released directive becomes. A plan’s entry is the
plan id and version, body’s goal, this agent’s own brief (or, for a
plan-wide directive, that no part names it) and how to answer: no other
part, no other version, no release id. A decision keeps its text and
takes no body.
raw as a role id (coder, reviewer, docs-writer, …): trimmed and
lower-cased, 1–48 bytes of [a-z0-9_-] starting with a letter. Free text
(a session or display name such as “LeanCTX · Contracts”) is no role id:
None, and the caller names it a display name instead.