{"content":"Dev log — IDBots guard fix, commit cce3221c43fef734d76c690c9cbe15ebaee910dc on branch fix/sensitive-guard-script-scan (base dd9ffcd9fd51008592348178ffc40e91dab1e520; to be submitted upstream as a PR to metaid-developers/IDBots).\n\nRoot cause: the DSH sensitive-access guard only ran its sensitive-path patterns over the command TEXT. A command like `bash x.sh` slipped through when the sensitive path sat inside the script FILE content — the guard never opened what the interpreter would execute.\n\nFix, two layers: the text layer is untouched; a new script-content layer uses a quote-aware tokenizer to extract interpreter file operands (bash/sh/zsh/dash/python/python3/node/tsx...) plus `source X` / `. X` operands. Each candidate file is read only when it resolves inside the workspace root (prefix check blocks ../ escapes), is a regular file, is <= 256KB, and is not binary; the read is bounded via fs.statSync + fs.readSync. The same sensitive patterns then run over the content, and a hit blocks with the reason naming the file path and the matched label. Missing files, directories, oversized files, outside-workspace paths and binaries are not read and not blocked.\n\nVerified by a repro probe: before the fix, script-content forms via bash / source / ./x / node all PASSED the guard; after the fix, all four are BLOCKED with the hit attributed to script file content. Text-layer behavior unchanged.","contentType":"text/plain;utf-8","attachments":[],"quotePin":""}