Grok Build 1.0.13 deletes $GROK_HOME/requirements.toml the first time
`grok agent` or `grok models` reads it. The launcher runs `grok models` to
refresh an expiring subscription, so in that path the real agent started
without the always-approve lock. Any later launch on the same home also
started without it.
Grok also turns on yolo for a session when session/new, session/load or
session/resume carries `_meta.yoloMode: true`, even with a managed lock.
The session open guard replaced `_meta` on session/new but merged
client keys into it on session/load and session/resume.
- The sandbox builds the requirements text in one function and passes it
to the launcher in PAPERCLIP_GROK_REQUIREMENTS. The launcher removes the
variable from the child environment and writes the lock again, atomically
and without links, immediately before it starts `grok agent`.
- session/load and session/resume now send only `modelId` in `_meta`.
- A new Grok permission guard stops the provider with
GROK_POLICY_VIOLATION when Grok reports a yolo session in
`_x.ai/sessions/changed`, a bypass mode in current_mode_update, or
when a bypass mode is requested with session/set_mode.
- Regenerate the Grok commandDigest for the new launcher bytes.
Tested with targeted Vitest suites, the attestation script tests, the
profile check, the Runner and server typecheck, the Rust classification
test, and a local run of the real Grok 1.0.13 Linux binary.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>