Documentation
¶
Overview ¶
Command third-party-hand is the smallest "hands" a third party can write against the SDK and the executor contract alone (ADR-0029): this computer registers with BMA, and whichever brain a session binds - on the platform, on another computer, or in a sandbox - uses it to run bash and file tools (read, write, edit, glob, grep) and processes in the session's workspace.
The SDK's Core is the hands: it runs the tools, keeps one workspace per session under -work-root, enforces the file roots and ends a session's processes when it stops. The machine's owner decides what may use it:
-labels narrow where BMA may place sessions (accepted as given; BMA never bases an authorization on them);
-remote-brain lets a brain that is NOT on this computer use it as its hands. It is off unless given, the platform cannot turn it on, and a platform-hosted brain does not need it.
BMA_MACHINE_TOKEN=<machine token> go run ./examples/third-party-hand \ -base-url https://executor.example -machine-id mch_... \ -work-root ~/bma-work -labels team-a,gpu -remote-brain