<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Shin</title>
    <description>The latest articles on DEV Community by Shin (@shin4141).</description>
    <link>https://dev.to/shin4141</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3738500%2Fd4e689e3-a4dd-4267-958a-e103740715ae.png</url>
      <title>DEV Community: Shin</title>
      <link>https://dev.to/shin4141</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/shin4141"/>
    <language>en</language>
    <item>
      <title>I found a security hole in my Codex PreToolUse hook: Bash could modify .env and AGENTS.md</title>
      <dc:creator>Shin</dc:creator>
      <pubDate>Sat, 05 Dec 2026 04:04:15 +0000</pubDate>
      <link>https://dev.to/shin4141/i-found-a-security-hole-in-my-codex-pretooluse-hook-bash-could-modify-env-and-agentsmd-5060</link>
      <guid>https://dev.to/shin4141/i-found-a-security-hole-in-my-codex-pretooluse-hook-bash-could-modify-env-and-agentsmd-5060</guid>
      <description>&lt;p&gt;Orchard Hook is a free, open-source PreToolUse security hook for the OpenAI Codex CLI on Apple Silicon Macs. It checks shell commands and file edits immediately before execution. During testing, I found that Bash routes such as &lt;code&gt;cat &amp;gt;&lt;/code&gt; and &lt;code&gt;sed -i&lt;/code&gt; could modify protected files including &lt;code&gt;.env&lt;/code&gt;, &lt;code&gt;AGENTS.md&lt;/code&gt;, Claude Code settings, and &lt;code&gt;package.json&lt;/code&gt; scripts without being judged by the same rules as direct editing tools. I fixed this in Release 3.3.2.&lt;/p&gt;

&lt;p&gt;I found it myself. It is fixed now.&lt;/p&gt;

&lt;p&gt;But think about it for a second. The hole was on my side, the side that had put a guard in place. If you have no guard at all, everything is a hole from the start.&lt;/p&gt;

&lt;p&gt;When an AI hands your information to someone outside, there is no malice. It truly believes the instruction is legitimate, and it goes all in, in good faith. That is one way prompt injection can turn into a real external action.&lt;/p&gt;

&lt;p&gt;That is why I am building a PreToolUse hook: something that checks a command right before the AI agent runs it, and stops it if it looks dangerous. Even if the AI has been fooled, it is fine as long as it stops at the last step. In AI agent security terms, it is a runtime guardrail.&lt;/p&gt;

&lt;h2&gt;
  
  
  Porting a Codex PreToolUse security hook to Claude Code
&lt;/h2&gt;

&lt;p&gt;Orchard Hook started on the OpenAI Codex CLI. I then ported it to Claude Code.&lt;/p&gt;

&lt;p&gt;Moving the shape was easy. Both Codex and Claude Code have a PreToolUse hook, called before a tool runs.&lt;/p&gt;

&lt;p&gt;But when I let the real Claude do ordinary work, the hook stopped all three tasks at the very first step. Claude has different habits from Codex in how it looks for files.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why shell command pattern matching is not enough
&lt;/h2&gt;

&lt;p&gt;Every time I fixed it, Claude wrote things a little differently. There are almost infinite ways to write a shell command. Shell command validation by pattern matching turns into cat and mouse.&lt;/p&gt;

&lt;p&gt;Then I noticed something. 1+1 and 9−7 both give 2. Instead of memorizing expressions to judge them, I should calculate and look at the answer.&lt;/p&gt;

&lt;p&gt;Orchard Hook also has a mode that runs the command in a copy of the real project folder and looks at what actually changed. Judging the effect, not the spelling of the command, is the more fundamental fix.&lt;/p&gt;

&lt;h2&gt;
  
  
  The same file edit bypassed protection through a different tool
&lt;/h2&gt;

&lt;p&gt;While testing the Claude Code port, I noticed something strange. If Claude overwrote a whole file with its Write tool, the hook stopped it. If it did the same thing with &lt;code&gt;cat &amp;gt;&lt;/code&gt; in Bash, it went through.&lt;/p&gt;

&lt;p&gt;It is like a bank that refuses to lend money to "Tanaka," but lends it if he says his name is "Kobayashi."&lt;/p&gt;

&lt;p&gt;When I looked into it, the public Codex version also still had a path. Codex's built-in &lt;code&gt;apply_patch&lt;/code&gt; edits were checked, but shell edits such as &lt;code&gt;cat &amp;gt;&lt;/code&gt; and &lt;code&gt;sed -i&lt;/code&gt; could change these files without being asked:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;.env&lt;/code&gt; (secrets)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;AGENTS.md&lt;/code&gt; (instructions for the AI)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;package.json&lt;/code&gt; scripts (commands that run the next time you run them)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I had let these through because "you can undo it with Git." That was wrong. If you never notice something was planted, there is nothing to undo.&lt;/p&gt;

&lt;p&gt;I fixed it right away in Release 3.3.2 and wrote it honestly in the &lt;a href="https://github.com/shin4141/orchard-agent-guardian/releases/tag/hook-r3.3.2-v1" rel="noopener noreferrer"&gt;release notes&lt;/a&gt;. In the current Release 3.3.3, unrequested changes to &lt;code&gt;AGENTS.md&lt;/code&gt; and &lt;code&gt;package.json&lt;/code&gt; scripts are held, and so is any change to files in &lt;code&gt;.claude/&lt;/code&gt; or &lt;code&gt;.codex/&lt;/code&gt;, whether it comes through &lt;code&gt;apply_patch&lt;/code&gt; or through shell edits such as &lt;code&gt;cat &amp;gt;&lt;/code&gt; and &lt;code&gt;sed -i&lt;/code&gt;. Shell edits to &lt;code&gt;AGENTS.md&lt;/code&gt; are held even when requested. The details are in the &lt;a href="https://github.com/shin4141/orchard-agent-guardian/blob/main/docs/COMPARISON.md" rel="noopener noreferrer"&gt;comparison table&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What enforcement means for an AI agent security hook
&lt;/h2&gt;

&lt;p&gt;What matters more than stopping less often is this:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Does every path that leads to the same result get judged by the same standard?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If another path gets through, that rule has no real force. &lt;code&gt;.env&lt;/code&gt; protection and &lt;code&gt;AGENTS.md&lt;/code&gt; protection only mean something if Write, &lt;code&gt;apply_patch&lt;/code&gt;, &lt;code&gt;cat &amp;gt;&lt;/code&gt;, &lt;code&gt;sed -i&lt;/code&gt;, and every other route to the same change are held to the same rule.&lt;/p&gt;

&lt;h2&gt;
  
  
  Claude Code field test: 9 tasks and 59 tool calls
&lt;/h2&gt;

&lt;p&gt;In a field test with Claude Code 2.1.335 and Orchard Hook 3.3.1, Claude completed all 9 tasks. Across 59 tool calls, the hook stopped 4. Three were intentional holds triggered by recursive searches that would read &lt;code&gt;.git&lt;/code&gt;; the fourth was a ToolSearch call the hook could not classify.&lt;/p&gt;

&lt;p&gt;In a separate six-task set prepared independently and run once per task against 3.3.2, 4 tasks completed and 2 did not. Across 34 tool calls, the hook stopped 6: one intended &lt;code&gt;.git&lt;/code&gt;-read hold and five over-stops.&lt;/p&gt;

&lt;p&gt;The two unfinished tasks were an offline install from a vendored dependency, and a move, rename, and delete that the user had explicitly asked for. A task with a Japanese file path hit one over-stop but still completed. The requested-deletion problem is still unresolved.&lt;/p&gt;

&lt;p&gt;The Claude Code version of Orchard Hook is not public yet.&lt;/p&gt;

&lt;h2&gt;
  
  
  Codex hook timeout behavior: fail-open vs fail-closed
&lt;/h2&gt;

&lt;p&gt;Once, at passport control on my way out of a country, an officer checked me with a scary face. Then time ran out, and it felt like I just kind of got through. The same thing happens to hooks: what happens when a security hook times out?&lt;/p&gt;

&lt;p&gt;In the Claude Kingdom, meaning Claude Code v2.1.295 or later, if the immigration check (the hook) times out, you get taken to a separate room. But only if you set &lt;a href="https://code.claude.com/docs/en/hooks" rel="noopener noreferrer"&gt;&lt;code&gt;onFailure: "block"&lt;/code&gt;&lt;/a&gt;. That makes the hook fail-closed. If you set nothing, the Claude Kingdom lets you walk through too.&lt;/p&gt;

&lt;p&gt;And here is the interesting part. In the Codex CLI version I tested, I could not configure an equivalent fail-closed path. In the Codex Kingdom, if you fumble in front of the officer long enough, you get in when time runs out. In &lt;a href="https://github.com/shin4141/orchard-agent-guardian/blob/main/research/codex-hook-failopen-20261202/ARTICLE.md" rel="noopener noreferrer"&gt;my measurement&lt;/a&gt; on Codex CLI 0.171.0-alpha.13.2, when the PreToolUse hook timed out on a shell command, Codex ran the command. In that tested case, the Codex hook timeout was fail-open. File-edit timeouts were outside that measurement.&lt;/p&gt;

&lt;h2&gt;
  
  
  Who needs an AI agent execution guardrail, and who does not
&lt;/h2&gt;

&lt;p&gt;This tool actually works against you if you don't need it.&lt;/p&gt;

&lt;p&gt;You need it if you:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;let the AI run commands automatically without checking each one&lt;/li&gt;
&lt;li&gt;have the AI read ZIPs, repositories, or READMEs from people you don't know&lt;/li&gt;
&lt;li&gt;run the AI where there are &lt;code&gt;.env&lt;/code&gt; files, API keys, or production keys&lt;/li&gt;
&lt;li&gt;leave the AI working on its own for long stretches&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You don't need it if you:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;look at every command the AI suggests before you allow it&lt;/li&gt;
&lt;li&gt;only work with code you wrote yourself&lt;/li&gt;
&lt;li&gt;only run the AI in a throwaway environment with no secrets&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Think of it this way. If you only have two drinks, you don't need a hangover supplement. But if you are going to drink tequila, Jäger, gin, and champagne until morning, maybe you do.&lt;/p&gt;

&lt;p&gt;Because it is not 100%, it sometimes stops things it didn't need to. If you got stopped at a sobriety checkpoint twice on the way home without having had a drink, you'd be annoyed, right? (In the independent six-task test above, 5 of the 6 holds were over-stops.)&lt;/p&gt;

&lt;p&gt;But if handing over permissions means you could die from one critical hit, you should put some clothes on your AI. It listens to your command and heads into an unknown world to complete the mission, completely naked. When an AI is fooled into handing your information to outsiders, there is no malice. It truly believes the instruction is legitimate, and ends up charging in naked.&lt;/p&gt;

&lt;p&gt;So the more permissions you give, the more you need to think about where it gets stopped.&lt;/p&gt;

&lt;p&gt;In my case: check before opening, check with the hook after opening, stop rewrites of instruction files (MD) with the hook, and watch their size too. That's overkill lol. It's like wearing a hazmat suit every time I go to the convenience store lol.&lt;/p&gt;

&lt;p&gt;Still, I don't think I'll catch a cold that easily. And you absolutely do not need to go this far.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to start: one high-impact Codex project
&lt;/h2&gt;

&lt;p&gt;Even if you want to use it, you don't need it on all your work from the start.&lt;/p&gt;

&lt;p&gt;I think a good way is to turn it on only for one Codex project dedicated to high-impact work, and route only the work that handles secrets, sends things outside, changes production, or deletes files through that project. Everything else can stay as it is.&lt;/p&gt;

&lt;p&gt;For the detailed setup, ask your AI. It knows your environment better than I do. If you tell it "I want to enable the hook only for this project," it will be quick.&lt;/p&gt;

&lt;p&gt;Public version (OpenAI Codex CLI, Apple Silicon macOS only):&lt;br&gt;
&lt;a href="https://github.com/shin4141/orchard-agent-guardian/releases/tag/hook-r3.3.3-v1" rel="noopener noreferrer"&gt;https://github.com/shin4141/orchard-agent-guardian/releases/tag/hook-r3.3.3-v1&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The Claude Code version is in progress. If you want it, let me know in the comments.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;I wrote this in Japanese and translated it into English with help from an AI.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>claudecode</category>
      <category>ai</category>
      <category>codex</category>
      <category>security</category>
    </item>
    <item>
      <title>Stop / Delay / Block: a minimal execution safety gate (30-second demo)</title>
      <dc:creator>Shin</dc:creator>
      <pubDate>Mon, 02 Feb 2026 11:29:37 +0000</pubDate>
      <link>https://dev.to/shin4141/stop-delay-block-a-minimal-execution-safety-gate-30-second-demo-31lj</link>
      <guid>https://dev.to/shin4141/stop-delay-block-a-minimal-execution-safety-gate-30-second-demo-31lj</guid>
      <description>&lt;p&gt;In Part 1, I argued that convenience tends to eat security.&lt;br&gt;
In Part 2, I showed why point-wise safety breaks once time and irreversibility enter the system.&lt;/p&gt;

&lt;p&gt;This final post is intentionally practical.&lt;/p&gt;

&lt;p&gt;No benchmarks.&lt;br&gt;
No alignment claims.&lt;br&gt;
Just a small, deterministic gate you can run before an irreversible action.&lt;/p&gt;

&lt;p&gt;The problem this gate addresses&lt;/p&gt;

&lt;p&gt;Most failures don’t come from a single bad output.&lt;br&gt;
They come from executing too early.&lt;/p&gt;

&lt;p&gt;Deployments, payments, permission grants, public releases —&lt;br&gt;
once executed, uncertainty collapses into reality.&lt;/p&gt;

&lt;p&gt;This gate does one thing only:&lt;br&gt;
it forces an explicit outcome before execution.&lt;/p&gt;

&lt;p&gt;PASS — proceed&lt;/p&gt;

&lt;p&gt;DELAY — preserve uncertainty, gather more signals&lt;/p&gt;

&lt;p&gt;BLOCK — do not execute&lt;/p&gt;

&lt;p&gt;What makes this different&lt;/p&gt;

&lt;p&gt;The gate is designed to be:&lt;/p&gt;

&lt;p&gt;Deterministic — same inputs, same outcome&lt;/p&gt;

&lt;p&gt;Order-robust — reordering checks may affect cost or latency, but should not flip safe → unsafe&lt;/p&gt;

&lt;p&gt;Evidence-preserving — uncertainty is not hidden, it is logged&lt;/p&gt;

&lt;p&gt;Delay is treated as a first-class outcome, not a fallback.&lt;/p&gt;

&lt;p&gt;30-second demo (CLI)&lt;/p&gt;

&lt;p&gt;Clone the repo and run one command:&lt;br&gt;
git clone &lt;a href="https://github.com/shin4141/decision-os-paper" rel="noopener noreferrer"&gt;https://github.com/shin4141/decision-os-paper&lt;/a&gt;&lt;br&gt;
cd decision-os-paper&lt;br&gt;
python cli.py examples/decision_request_delay.json&lt;/p&gt;

&lt;p&gt;You’ll see a structured verdict like:&lt;br&gt;
{&lt;br&gt;
  "verdict": "DELAY",&lt;br&gt;
  "reason": "High impact with unresolved uncertainty",&lt;br&gt;
  "evidence": ["impact=high", "confidence=low"],&lt;br&gt;
  "next_action": "human_review"&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;Change the input scenario and re-run.&lt;br&gt;
The behavior is deterministic.&lt;/p&gt;

&lt;p&gt;Why this matters&lt;/p&gt;

&lt;p&gt;This gate does not predict the future.&lt;br&gt;
It does not try to be smarter than the system it protects.&lt;/p&gt;

&lt;p&gt;It simply ensures that irreversible actions are never taken&lt;br&gt;
while uncertainty is still unresolved.&lt;/p&gt;

&lt;p&gt;Safety here is not a moment.&lt;br&gt;
It is a trajectory.&lt;/p&gt;

&lt;p&gt;Open question&lt;/p&gt;

&lt;p&gt;If reordering safety checks can turn a safe outcome into an unsafe one,&lt;br&gt;
is the system actually safe — or just lucky?&lt;/p&gt;

&lt;p&gt;What invariants should hold before we allow irreversible execution?&lt;/p&gt;

&lt;p&gt;Code: &lt;a href="https://github.com/shin4141/decision-os-paper" rel="noopener noreferrer"&gt;https://github.com/shin4141/decision-os-paper&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>python</category>
      <category>opensource</category>
      <category>security</category>
    </item>
    <item>
      <title>Why point-wise safety breaks over time</title>
      <dc:creator>Shin</dc:creator>
      <pubDate>Fri, 30 Jan 2026 05:37:58 +0000</pubDate>
      <link>https://dev.to/shin4141/why-point-wise-safety-breaks-over-time-3l07</link>
      <guid>https://dev.to/shin4141/why-point-wise-safety-breaks-over-time-3l07</guid>
      <description>&lt;p&gt;In Part 1, I argued that many real-world AI failures happen at execution time, not generation time.&lt;/p&gt;

&lt;p&gt;There is a deeper reason this keeps recurring.&lt;/p&gt;

&lt;p&gt;Most safety mechanisms still treat decisions as isolated points — a moment to be classified, filtered, or approved.&lt;br&gt;
That assumption works only as long as time does not matter.&lt;/p&gt;

&lt;p&gt;But time always matters.&lt;/p&gt;

&lt;p&gt;Safety is rarely a moment&lt;/p&gt;

&lt;p&gt;In deployed systems, decisions are not singular events.&lt;/p&gt;

&lt;p&gt;They accumulate.&lt;/p&gt;

&lt;p&gt;Permissions granted today affect actions tomorrow&lt;/p&gt;

&lt;p&gt;Small uncertainties compound&lt;/p&gt;

&lt;p&gt;Delayed consequences surface long after the original decision&lt;/p&gt;

&lt;p&gt;A system may behave “safely” at every individual step, yet still drift into an unsafe trajectory.&lt;/p&gt;

&lt;p&gt;Point-wise evaluation has no way to see this coming.&lt;/p&gt;

&lt;p&gt;Irreversibility changes everything&lt;/p&gt;

&lt;p&gt;The most dangerous decisions share one property: they cannot be undone.&lt;/p&gt;

&lt;p&gt;Deployments, payments, access grants, public releases — once executed, they collapse uncertainty into reality.&lt;/p&gt;

&lt;p&gt;Point-based safety implicitly assumes reversibility:&lt;br&gt;
if something goes wrong, we can fix it later.&lt;/p&gt;

&lt;p&gt;In practice, the fix often comes too late.&lt;/p&gt;

&lt;p&gt;When irreversibility enters the system, safety must move before the final step, not after it.&lt;/p&gt;

&lt;p&gt;Why binary judgments fail under time&lt;/p&gt;

&lt;p&gt;Many systems reduce safety to a binary outcome:&lt;br&gt;
allow or deny.&lt;/p&gt;

&lt;p&gt;This forces uncertainty to collapse early.&lt;/p&gt;

&lt;p&gt;But uncertainty is not noise — it is information.&lt;br&gt;
Collapsing it prematurely creates two failure modes:&lt;/p&gt;

&lt;p&gt;False confidence: risky actions pass because uncertainty was hidden&lt;/p&gt;

&lt;p&gt;Overblocking: safe actions are denied because nuance was lost&lt;/p&gt;

&lt;p&gt;Neither scales over time.&lt;/p&gt;

&lt;p&gt;As systems run longer, both errors accumulate.&lt;/p&gt;

&lt;p&gt;Delay is not indecision&lt;/p&gt;

&lt;p&gt;One missing primitive in many safety designs is delay.&lt;/p&gt;

&lt;p&gt;Delay is often treated as a fallback or exception.&lt;br&gt;
In reality, it is a first-class safety outcome.&lt;/p&gt;

&lt;p&gt;Delay allows uncertainty to persist without triggering irreversible actions.&lt;br&gt;
It buys time for:&lt;/p&gt;

&lt;p&gt;additional signals&lt;/p&gt;

&lt;p&gt;human review&lt;/p&gt;

&lt;p&gt;correlation across events&lt;/p&gt;

&lt;p&gt;Most importantly, it prevents a single moment from defining the future state of the system.&lt;/p&gt;

&lt;p&gt;From moments to trajectories&lt;/p&gt;

&lt;p&gt;Point-wise safety answers the question:&lt;/p&gt;

&lt;p&gt;“Is this action safe right now?”&lt;/p&gt;

&lt;p&gt;Trajectory-aware safety asks a different one:&lt;/p&gt;

&lt;p&gt;“Does this action keep the system on a safe path over time?”&lt;/p&gt;

&lt;p&gt;The difference is subtle — and critical.&lt;/p&gt;

&lt;p&gt;Failures that seem sudden are usually visible long before they happen, if time is treated as part of the decision.&lt;/p&gt;

&lt;p&gt;An open question&lt;/p&gt;

&lt;p&gt;If safety mechanisms are evaluated and triggered at different times,&lt;br&gt;
should reordering them ever turn a safe outcome into an unsafe one?&lt;/p&gt;

&lt;p&gt;If the answer is yes, then safety depends on execution order — not on principles.&lt;/p&gt;

&lt;p&gt;If the answer is no, then safety must be designed as an invariant over time.&lt;/p&gt;

&lt;p&gt;That boundary is where many long-horizon failures begin.&lt;/p&gt;

&lt;p&gt;In Part 3, I’ll look at what it means to treat stop, delay, and block as explicit safety outcomes — and how this changes system behavior before irreversible decisions occur.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>python</category>
      <category>security</category>
      <category>opensource</category>
    </item>
    <item>
      <title>Convenience is eating security: why “one-click agents” need a stop button</title>
      <dc:creator>Shin</dc:creator>
      <pubDate>Thu, 29 Jan 2026 08:25:08 +0000</pubDate>
      <link>https://dev.to/shin4141/convenience-is-eating-security-why-one-click-agents-need-a-stop-button-397e</link>
      <guid>https://dev.to/shin4141/convenience-is-eating-security-why-one-click-agents-need-a-stop-button-397e</guid>
      <description>&lt;p&gt;AI tools are getting easier to use every month.&lt;/p&gt;

&lt;p&gt;One-click agents.&lt;br&gt;
Auto-approve workflows.&lt;br&gt;
Bots that execute actions on our behalf.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Convenience is clearly winning.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;But almost every serious incident I’ve seen lately didn’t happen because an AI gave a wrong answer.&lt;br&gt;
It happened because someone executed an irreversible step too easily.&lt;/p&gt;

&lt;p&gt;The damage didn’t come from intelligence.&lt;br&gt;
It came from friction disappearing at the wrong place.&lt;/p&gt;

&lt;p&gt;The real failure point isn’t generation — it’s execution&lt;/p&gt;

&lt;p&gt;Most AI safety discussions focus on outputs:&lt;/p&gt;

&lt;p&gt;Is the answer correct?&lt;/p&gt;

&lt;p&gt;Is it aligned?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Does it pass a benchmark?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Those questions matter.&lt;br&gt;
But they miss where real-world failures concentrate.&lt;/p&gt;

&lt;p&gt;Execution is different from generation.&lt;/p&gt;

&lt;p&gt;Once an action is executed:&lt;/p&gt;

&lt;p&gt;A transaction is signed&lt;/p&gt;

&lt;p&gt;Access is granted&lt;/p&gt;

&lt;p&gt;A message is sent&lt;/p&gt;

&lt;p&gt;Data is deleted or leaked&lt;/p&gt;

&lt;p&gt;There is no “undo”.&lt;/p&gt;

&lt;p&gt;In practice, the highest-risk moments are when:&lt;/p&gt;

&lt;p&gt;Confidence is uncertain&lt;/p&gt;

&lt;p&gt;Impact is high&lt;/p&gt;

&lt;p&gt;And the action is irreversible&lt;/p&gt;

&lt;p&gt;Ironically, these are exactly the moments where modern tools try to be most convenient.&lt;/p&gt;

&lt;p&gt;Convenience quietly removes the last safety boundary&lt;/p&gt;

&lt;p&gt;Automation systems are very good at optimizing for speed:&lt;/p&gt;

&lt;p&gt;Fewer prompts&lt;/p&gt;

&lt;p&gt;Fewer confirmations&lt;/p&gt;

&lt;p&gt;Fewer human interruptions&lt;/p&gt;

&lt;p&gt;But safety often needs the opposite.&lt;/p&gt;

&lt;p&gt;It needs:&lt;/p&gt;

&lt;p&gt;Time&lt;/p&gt;

&lt;p&gt;Explicit judgment&lt;/p&gt;

&lt;p&gt;Escalation paths&lt;/p&gt;

&lt;p&gt;Evidence&lt;/p&gt;

&lt;p&gt;When everything is reduced to a single allow / deny decision, we lose important options.&lt;/p&gt;

&lt;p&gt;Binary decisions force systems to pretend they are confident — even when they are not.&lt;/p&gt;

&lt;p&gt;Why binary decisions are brittle&lt;/p&gt;

&lt;p&gt;Real-world risk is not binary.&lt;/p&gt;

&lt;p&gt;Two dimensions matter independently:&lt;/p&gt;

&lt;p&gt;Confidence (how sure are we?)&lt;/p&gt;

&lt;p&gt;Impact (what happens if we’re wrong?)&lt;/p&gt;

&lt;p&gt;Low confidence + low impact → probably fine&lt;br&gt;
High confidence + high impact → maybe fine&lt;br&gt;
Low confidence + high impact → this is where systems fail&lt;/p&gt;

&lt;p&gt;Binary decisions collapse these cases into the same path.&lt;/p&gt;

&lt;p&gt;That’s how accidents slip through.&lt;/p&gt;

&lt;p&gt;What’s missing: an explicit stop button&lt;/p&gt;

&lt;p&gt;Instead of asking only “Is this allowed?”, systems should also be able to ask:&lt;/p&gt;

&lt;p&gt;Should we stop?&lt;/p&gt;

&lt;p&gt;Should we delay?&lt;/p&gt;

&lt;p&gt;Should we escalate to a human?&lt;/p&gt;

&lt;p&gt;Not as an exception.&lt;br&gt;
As a first-class decision.&lt;/p&gt;

&lt;p&gt;A stop button isn’t a failure of intelligence.&lt;br&gt;
It’s an admission that execution safety is different from reasoning quality.&lt;/p&gt;

&lt;p&gt;A question worth discussing&lt;/p&gt;

&lt;p&gt;If an AI system is uncertain — but the potential impact is high —&lt;br&gt;
what should the system do?&lt;/p&gt;

&lt;p&gt;Should it:&lt;/p&gt;

&lt;p&gt;Force a binary verdict anyway?&lt;/p&gt;

&lt;p&gt;Or allow explicit delay and escalation?&lt;/p&gt;

&lt;p&gt;I’m curious how others think about this tradeoff, especially in systems that operate at scale.&lt;/p&gt;

&lt;p&gt;(Part 2 will dig into why point-in-time judgments break down, and why we need to think in trajectories instead.)&lt;/p&gt;

</description>
      <category>ai</category>
      <category>python</category>
      <category>security</category>
      <category>opensource</category>
    </item>
    <item>
      <title>Convenience is eating security: why “one-click agents” need a stop button</title>
      <dc:creator>Shin</dc:creator>
      <pubDate>Thu, 29 Jan 2026 03:13:05 +0000</pubDate>
      <link>https://dev.to/shin4141/convenience-is-eating-security-why-one-click-agents-need-a-stop-button-2leo</link>
      <guid>https://dev.to/shin4141/convenience-is-eating-security-why-one-click-agents-need-a-stop-button-2leo</guid>
      <description>&lt;p&gt;AI tools are getting easier to use every month.&lt;/p&gt;

&lt;p&gt;One-click agents.&lt;br&gt;
Auto-approve workflows.&lt;br&gt;
Bots that execute actions on our behalf.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Convenience is clearly winning.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;But almost every serious incident I’ve seen lately didn’t happen because an AI gave a wrong answer.&lt;br&gt;
It happened because someone executed an irreversible step too easily.&lt;/p&gt;

&lt;p&gt;The damage didn’t come from intelligence.&lt;br&gt;
It came from friction disappearing at the wrong place.&lt;/p&gt;

&lt;p&gt;The real failure point isn’t generation — it’s execution&lt;/p&gt;

&lt;p&gt;Most AI safety discussions focus on outputs:&lt;/p&gt;

&lt;p&gt;Is the answer correct?&lt;/p&gt;

&lt;p&gt;Is it aligned?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Does it pass a benchmark?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Those questions matter.&lt;br&gt;
But they miss where real-world failures concentrate.&lt;/p&gt;

&lt;p&gt;Execution is different from generation.&lt;/p&gt;

&lt;p&gt;Once an action is executed:&lt;/p&gt;

&lt;p&gt;A transaction is signed&lt;/p&gt;

&lt;p&gt;Access is granted&lt;/p&gt;

&lt;p&gt;A message is sent&lt;/p&gt;

&lt;p&gt;Data is deleted or leaked&lt;/p&gt;

&lt;p&gt;There is no “undo”.&lt;/p&gt;

&lt;p&gt;In practice, the highest-risk moments are when:&lt;/p&gt;

&lt;p&gt;Confidence is uncertain&lt;/p&gt;

&lt;p&gt;Impact is high&lt;/p&gt;

&lt;p&gt;And the action is irreversible&lt;/p&gt;

&lt;p&gt;Ironically, these are exactly the moments where modern tools try to be most convenient.&lt;/p&gt;

&lt;p&gt;Convenience quietly removes the last safety boundary&lt;/p&gt;

&lt;p&gt;Automation systems are very good at optimizing for speed:&lt;/p&gt;

&lt;p&gt;Fewer prompts&lt;/p&gt;

&lt;p&gt;Fewer confirmations&lt;/p&gt;

&lt;p&gt;Fewer human interruptions&lt;/p&gt;

&lt;p&gt;But safety often needs the opposite.&lt;/p&gt;

&lt;p&gt;It needs:&lt;/p&gt;

&lt;p&gt;Time&lt;/p&gt;

&lt;p&gt;Explicit judgment&lt;/p&gt;

&lt;p&gt;Escalation paths&lt;/p&gt;

&lt;p&gt;Evidence&lt;/p&gt;

&lt;p&gt;When everything is reduced to a single allow / deny decision, we lose important options.&lt;/p&gt;

&lt;p&gt;Binary decisions force systems to pretend they are confident — even when they are not.&lt;/p&gt;

&lt;p&gt;Why binary decisions are brittle&lt;/p&gt;

&lt;p&gt;Real-world risk is not binary.&lt;/p&gt;

&lt;p&gt;Two dimensions matter independently:&lt;/p&gt;

&lt;p&gt;Confidence (how sure are we?)&lt;/p&gt;

&lt;p&gt;Impact (what happens if we’re wrong?)&lt;/p&gt;

&lt;p&gt;Low confidence + low impact → probably fine&lt;br&gt;
High confidence + high impact → maybe fine&lt;br&gt;
Low confidence + high impact → this is where systems fail&lt;/p&gt;

&lt;p&gt;Binary decisions collapse these cases into the same path.&lt;/p&gt;

&lt;p&gt;That’s how accidents slip through.&lt;/p&gt;

&lt;p&gt;What’s missing: an explicit stop button&lt;/p&gt;

&lt;p&gt;Instead of asking only “Is this allowed?”, systems should also be able to ask:&lt;/p&gt;

&lt;p&gt;Should we stop?&lt;/p&gt;

&lt;p&gt;Should we delay?&lt;/p&gt;

&lt;p&gt;Should we escalate to a human?&lt;/p&gt;

&lt;p&gt;Not as an exception.&lt;br&gt;
As a first-class decision.&lt;/p&gt;

&lt;p&gt;A stop button isn’t a failure of intelligence.&lt;br&gt;
It’s an admission that execution safety is different from reasoning quality.&lt;/p&gt;

&lt;p&gt;A question worth discussing&lt;/p&gt;

&lt;p&gt;If an AI system is uncertain — but the potential impact is high —&lt;br&gt;
what should the system do?&lt;/p&gt;

&lt;p&gt;Should it:&lt;/p&gt;

&lt;p&gt;Force a binary verdict anyway?&lt;/p&gt;

&lt;p&gt;Or allow explicit delay and escalation?&lt;/p&gt;

&lt;p&gt;I’m curious how others think about this tradeoff, especially in systems that operate at scale.&lt;/p&gt;

&lt;p&gt;(Part 2 will dig into why point-in-time judgments break down, and why we need to think in trajectories instead.)&lt;/p&gt;

</description>
      <category>ai</category>
      <category>opensource</category>
      <category>python</category>
      <category>security</category>
    </item>
  </channel>
</rss>
