🔧 Programmierung 🕛 vor 1 Monat 6 Min Lesezeit
0

The None That Broke Permissions: How a Single Null Crashed Hermes Agent Approvals

↗ Quelle (dev.to)
🗣️ Stimme:
📑 Inhaltsübersicht

A tiny missing check, a silent crash, and a denied permission that should have been safe. This is the story of how I fixed it.







About me and why this matters



I am Aniruddha Adak, a full stack developer from Kolkata, working across Next.js, React, TypeScript, Python and AI agent tooling. My GitHub profile is and it is merged.






What I changed



I added a guard clause right after the await. If the response is None, I return "deny" immediately. I added a dedicated unit test for this edge case and I kept the change minimal to avoid touching any other permission logic.



New logic looks like this




CODE
result = await request_permission(...)

if result is None:
return "deny"

if result.decision == "allow":
return "allow"
return "deny"






This is a classic fail safe pattern. In security code, when you do not know what happened, you deny. This pattern is simple, it is readable, and it prevents a whole class of crashes.






Why this fix is correct



It does not change the happy path at all. It prevents a crash that could be triggered by any ACP client. It aligns with the principle of least privilege and it adds test coverage so it will not regress in future releases.






How I used Google Antigravity and Google AI



I built this fix using Antigravity, the agentic IDE by Google, and it changed how I debug. For codebase exploration I used Gemini 2.5 Pro inside Antigravity to map all places where request_permission is called and where its return value is used. It gave me a full call graph in seconds and saved hours of manual search.



For reproduction scaffolding I prompted Antigravity to write a minimal async mock that returns None for ACP permission and triggers the approval callback. Antigravity generated the repro script and the test harness. For edge case reasoning I asked Gemini to list what else could be None in that bridge. It suggested checking for missing fields inside the result as a future hardening step.



I treat Antigravity as a pair programmer that never gets tired of reading large repos. It reads the whole codebase, I make the final decision. For the Best Use of Google AI category, this workflow shows how Gemini in Antigravity can find a security relevant bug faster and make the fix safer with tests.






All my merged bug fix PRs, only merged



I have kept this table to only merged PRs and only bug related ones. No drafts, no closed unmerged, no docs typo fixes. This shows breadth and consistency.





























Project PR Title Type PR Link
topoteretes/cognee fix(lancedb): automatically prefix windows paths to resolve OS Error 3 for long paths bug fix
Tracer-Cloud/opensre fix: Database logic expansion for QA Edge Cases Batch 2 bug fix
google-gemini/gemini-cli feat(ui): remove write todo list tool from UI tips cleanup bug

Dev profile is

Challenge page is https://dev.to/bugsmash

Vollständiger Original-Artikel
Den kompletten Beitrag mit allen Details direkt auf dev.to lesen.
↗ Original-Artikel auf dev.to lesen
Wie bewertest du diesen Beitrag?
1 Klick Feedback
Teilen mit Netzwerk & Team:

Community-Analysen & Experten-Meinungen 0

Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
Community Pulse: Relevanz-Einschätzung
1 Klick Experten-Votum
🔴 Akute Relevanz 0%
🟡 In Evaluierung 0%
🟢 Keine Auswirkung 0%
Spannende Innovation 0%
Verwandte Story-Cluster & Quellen (Vektor-KI)
Port 8095 Engine
6 Quellen
CVE-2022-44255 | TOTOLINK LR350 9.3.5u.6369_B20220309 buffer overflow (EUVD-2022-47204)
2 Quellen
CVE-2026-68426 | Linux Kernel up to 6.18.41/7.1.5/7.2-rc3 xfrm validate_xmit_skb_list use after free (Nessus ID 346426)
1 Quelle
Windows 11 Probleme mit gültiger Domänenanmeldung nach September-Update [Workaround]
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten The None That Broke Permissions: How a Single Null Crashed Hermes Agent Approvals

Thematisch verwandte Begriffe: None, That, Broke, Permissions · 6 Treffer

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-61591 | djust provides Phoenix LiveView-style reactive server-side rendering for…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
News ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

↗ Original-Quelle