FAQ
Frequently asked questions
Short answers, each drawn from the README and the docs. For anything not covered here, see the usage guide.
Where can the files be?
In an S3 bucket (or an S3-compatible server), on an SFTP server, or in a local directory of the console’s machine.
Each profile names one source, and keys outside its prefix are refused. Source profiles.
Which operating systems?
The console needs Linux, with Docker: Landlock and seccomp sandbox the plugins. On Windows, WSL 2 with Docker Desktop. The install script also installs the launcher on macOS, and the agent side (CLI and MCP server) runs there, but the console has no macOS build; the Homebrew formula is Linux only. Builds are for amd64 and arm64. Requirements.
Which AI agents does it work with?
Any MCP client. lockfile init wires Claude Code, Codex, Cursor and Gemini CLI.
An agent talks to the console through the MCP server (lockfile mcp, seven tools) or through the lockfile CLI from a shell; every command takes --json.
What exactly does the agent see?
Per plugin: 1, 0, or no answer (result: null with plugin_error).
Around that, only items from closed lists: random handles, plan and ticket ids, a pending answer with the lock’s instance name, plugin metadata from signed manifests (inputs included), the placeholder names a console holds (held_inputs), profile names, approval outcomes, refusal codes and the console state. Never the file’s bytes, size, type, hash, name or a listing. The exhaustive list.
How does the agent know which file to ask about?
It must be given the exact key, by you or by a ticket. There is no listing and no stat: key names and sizes are file information.
Is “no answer” the same as 0?
No. plugin_error means the plugin failed on the file (a crash, a timeout, a wrong output) and gave no answer. Treat it as unknown.
The precise cause is in the audit, which only the console account reads.
Can the agent approve its own plans, or turn approval off?
No. Every plan is a lockhub ticket, decided in lox run (or lox approve) outside the agent: by you, or by a lox run auto rule you keep. The console’s own decisions stay at its terminal, in a separate account and container.
No socket method approves, installs a plugin or loosens the policy. A plan with an unofficial plugin or with typed values is never auto-approved.
Can a plugin answer any question, like “is the amount above 10 000”?
The official marketplace refuses such questions at review. Questions are about format, structure, integrity or rendering, never about what the content means or says, and plugins take no value the agent chooses. A protocol-2 plugin may take up to 4 values that you type at approval.
An unofficial marketplace may not apply the same review. That is why its plugins are flagged in red and never auto-approved. Plugins.
Could many questions add up to reading the file?
Each answer is one bit, and max_plugins_per_handle (16 by default) caps the answers about one fetched file. Every approval screen states how many answers the plan reveals, so you see the total before you approve.
Can the agent learn something from how long a plugin takes?
Results leave the console only at the next multiple of answer_quantum (5 s by default) after the run started. A plan that takes longer than one quantum still shows that it took longer.
Where does the file go, and for how long?
Into a random 0700 workspace in the console account. It is deleted on lockfile release, after handle_ttl (30 minutes by default), on console exit, and swept at start.
Deletion is an unlink, not a secure erase.
What is logged?
The audit log, in the console account only, records each fetch (key, size, sha256, cause of a failure) and each plugin’s precise outcome, with the stderr byte count. Never file bytes. Read it with lockfile audit.
Can I write my own plugin?
Yes: a plugin reads the file from fd 3 and writes 1 or 0. Submit it to the official marketplace, or publish your own marketplace signed by your CI identity or a cosign key pair. Write a plugin.
What does lockfile not do yet?
There is no onboarding wizard of its own (setup; lox add lockfile asks the questions), and no macOS console. These are on the roadmap, not in the release.
How does it relate to the other Locks?
They are siblings in the Lock Family, built on the same idea and the same Go core, lockkit. Each runs its own console in its own account.
locksql covers SQL databases, lockmq RabbitMQ, lockhttp outbound HTTP(S), locklog logs and lockssh commands over SSH. One hub, lockhub, approves for all of them.