Skip to content

The agent that grows with you

docs(bot-screen): lease.py states the fence is tool-level, matching the threat model (#110040)

teknium156cf995545db
diff --git a/tools/bot_desktop/lease.py b/tools/bot_desktop/lease.py
index d7a0c2b86cd..ffba3d2e3bf 100644
--- a/tools/bot_desktop/lease.py
+++ b/tools/bot_desktop/lease.py
@@ -5,6 +5,11 @@ The lease is the single truth shared by the RFB bridge (drops human input from n
credential, so even screenshots are refused; fail closed rather than trusting the agent to pause
itself) and the Desktop UI (Watch / Take over / Hand back).
+Scope: the lease is a TOOL-LEVEL fence, not a property of the X server. ``computer_use`` and the browser
+tools consult it; a process the agent starts by hand against the published ``DISPLAY``/``XAUTHORITY``
+(the ``terminal`` tool, a script) is inside the documented same-user boundary and is not stopped by it
+(bot-screen.md, "Threat model"; #110040).
+
Authority lives ON DISK, ``<HERMES_HOME>/bot-desktop/lease.json`` under an fcntl lock, because the
processes that must agree do not share memory: ``hermes serve`` (viewer bridge), the messaging
gateway, a CLI turn and isolated workers all drive the same display. Every read goes to the file;