An approval mechanism can store a durable record that names an approved command exactly while omitting an effect of the workflow that command starts. We call this coverage gap approval laundering. When a pre-specified effect policy requires different decisions and the complete policy-visible inputs are identical, no record-only policy can guarantee both outcomes. With npm run build held fixed, a change only in the pre-approval script leaves command semantics allowing both the local script and the script that fetches. Coding agents are the measured setting. We present the first systematic security analysis of this gap as closure-bound approval over six operational effect classes. The Approval-to-Action Security Benchmark binds captured approval objects and inspectable decision-time metadata to immutable post-execution evidence. Across 111 fixed approval-object/trace pairs, residual records fall from 40 under explicit fields to 17 with command semantics and 13 when post hoc analysis adds metadata available at decision time. Across 11 fixed-SHA project executions, the same retrospective ladder reaches zero metadata residuals; two exact mappings recur across three product frontends. For prospective recovery, effect-bound records commit frozen, source-backed effect predictions and provenance before authorization. On 17 target-executed workflows from a prespecified holdout, predictions achieve 0.926 macro recall and 0.941 macro precision. Binding them cuts residual effect instances from 10 to 3. The evaluated policy requests another approval for 17/18 protocol cases; a stricter added-effect rule reduces that demand to 7/18. A Claude Code hook can place one frozen record on an existing permission path. On that npm run build pair, a study metadata gate does not launch the network arm after the metadata denial.
翻译:暂无翻译