Supported one-shot approval workflow after Gateway binding refusal (2026.10.7)

We need guidance on completing authorized maintenance without disabling execution safeguards.

Verified environment: OpenClaw 2026.10.7 (157d8c2), Linux, Node.js 24.22.1. Session /exec reports host=auto, effective=gateway, security=full, ask=off, node unset. Local tools.exec.strictInlineEval=true; the agent-specific leaf is unset. Local exec-policy inspection includes exec/process but marks execution unverified. This is not a complete live Gateway policy snapshot.

Existing compound shell commands and a multiline archive operation returned: SYSTEM_RUN_DENIED: approval cannot safely bind this command. No approval ID was returned; later approvals pending reported no pending approvals.

Command shapes included a shell loop reading documentation and a compound printf/grep/systemctl inspection with a pipeline intended to redact environment values. Private paths and values are omitted. These describe observed failures, not a runnable reproduction; no sanitized substitute has been executed.

We understand that strict inline evaluation can require approval despite full/off and that rejecting unbindable commands is intentional. Release documentation also says channel-origin per-call ask=always cannot force prompting when effective host ask is off.

What is the supported operator-enforced one-shot review and binding workflow while preserving strictInlineEval and existing security boundaries? Is a separately reviewed, byte-bound direct script supported, and how does the operator ensure genuine one-shot approval? What supported diagnostics distinguish an expected unsupported command shape from a binding defect on this release?

We are not requesting disabled safeguards, broader allowlists, or a way to evade a refusal. We have not established a product defect or a newer-version fix.

Short answer from the 2026.10.9 source, which is what we run (I haven’t checked 10.7, so look at the same file on yours): that refusal happens before an approval is minted. That’s why no approval ID came back and approvals pending was empty. It’s a shape refusal, not a lost approval.

The binder is dist/system-run-approval-binding-*.mjs. The words after “cannot safely bind” tell you which shape it rejected:

this command                     shell text the planner can't model
shell pipelines                  a pipeline
commands after cwd changes       cd / chdir / popd, then more commands
shell source operands            . file  or  source file
shell startup environment        BASH_ENV or ENV is set
this interpreter/runtime command inline eval, or no single file to bind
runtime code-loading or cwd options

A bare command name that doesn’t resolve gets a different line: “approval requires a resolved executable”.

So your redaction pipeline and your doc-reading loop are expected refusals under strict binding. A binding defect would look different: a plain single-file run that still gets refused.

What binds cleanly, per docs/tools/exec-approvals.md, is one executable plus one concrete local file: “For shell scripts and direct interpreter/runtime file invocations, OpenClaw also tries to bind one concrete local file operand. If that file changes after approval but before execution, the run is denied.” Writable executables are also bound by content hash. That is your byte-bound, reviewed script:

/bin/sh /abs/path/maint-2026-11-01.sh
/usr/bin/python3 /abs/path/inspect_units.py

Put the loop, the grep, the systemctl calls and the redaction inside the file. Review the file, then run it as that one argv. If anyone edits the file after approval, the run is denied.

For a real one-shot:

  1. Approve with allow-once. docs/tools/exec.md says allow-always can still persist benign interpreter/script invocations. Only inline-eval forms never become durable rules.
  2. Use a new dated file per job, so an old decision can’t match new content.
  3. A pending approval dies with its turn: “Closing or cancelling that turn invalidates its pending authority. A late approval cannot restart it.”
  4. Skip bash -lc / zsh -lc wrappers. Login and interactive shell wrappers skip the reviewer and always need a human, because their startup files are outside operand binding.

We hit the interpreter variant on our Mac node host twice: inline Python for PDF generation in March, and chained commands under /bin/zsh -lc in September. The fix was the same both times: a file-backed script, the real executable path as argv, no shell wrapper, and chained steps split into separate calls. It has been a standing rule in our AGENTS.md since.