Dashboardopencodepty_write fragmented authorization

pty_write fragmented authorization

Category: gotcha
Confidence: 1.00
ID: 01a07f11-748f-7836-a25d-f0b491befe33
Project ID: c0425955-02bc-4c17-9af2-b114c00077e7
Cross-project: No
Recalled in other projects: 0
Source session: 07PmcXIbo6QNZwYRV
Created: 2026-09-08 02:32:47
Updated: 2026-09-08 03:30:45

Content

Trap: permission: "shell" on pty_write or pty_kill looks like authorization, but tool permission metadata only filters catalog definitions; ownership checks also provide isolation, not consent. Fix: call canonical ctx.permission.assert immediately before each mutation using the active tool source. Never authorize reconstructed write fragments as shell commands because fragments can combine into denied commands.

Move to: