Inside the runtime, outside the runtime
A runtime is a program made by someone else. Allternit does not change it. It starts the runtime, gives it a session, adds its own layer to the prompt, and stands between the runtime and everything with side effects. What stays inside the runtime:- The agent loop and how it plans.
- The vendor’s own system prompt, which Allternit keeps.
- The runtime’s own settings and the files it reads, such as its
AGENTS.md.
- The decision on every tool call (the broker and policy).
- Your approvals. Allternit never approves a request on your behalf.
- Memory, the thread record and the usage records.
A prompt is not a boundary
A model can ignore an instruction, forget it, or be talked out of it. So the control layer does not ask the model to keep the rules. It enforces them where the tool runs:- The runtime asks to run a tool: for example, to write a file or run a shell command.
- The request reaches the tool broker. On Claude Code it arrives through
--permission-prompt-tool; on Codex through its approval requests; on ACP runtimes such as Kimi Code and Antigravity throughsession/request_permission. - The broker checks policy. An allowed call runs. A call that needs approval waits for you. A refused call goes back to the runtime as refused.
- The result, allowed or not, is recorded.
Not every runtime has a permission channel. Runtimes started with their own auto-approve or skip-permissions flag, and one-shot text runtimes, never ask before a tool runs. Those runtimes work in the session’s folder with their own permissions. The table in System layers lists which runtimes are brokered. Pick a brokered runtime for a bot that must ask before it writes.
How the layer stacks
The control layer adds one layer to each runtime’s prompt and enforces the rest beside it: Each runtime entry says how the Allternit layer is added (systemLayer.via): through the runtime’s own append flag, at the start of an ACP session, ahead of the message, or not at all. The full table is in System layers.
Provenance you can see
Every run in the Allternit view ends with one line that states where it ran and what the control layer did:
The provenance line under an answer: the runtime it ran on, how many tool calls passed policy, and that the run was saved to the record.