VvectronodeAPIinvectronode.hashnode.dev·8m ago · 1 min readHow to Isolate Untrusted Context in RAG and AI AgentsRetrieved documents and tool output can contain text that resembles an instruction. Treat that material as untrusted data. Preserve trust classes Keep these inputs distinct: trusted application polic00
Xxbstackinxbstack.hashnode.dev·18m ago · 4 min readBuilding Durable Tool Approvals with OpenAI Agents SDK RunStateI wanted a tool approval to survive longer than one HTTP request. The Agent process should be allowed to exit, a separate service should record the human decision, and a worker should resume later. Op00
ABAshish Barmaiyainashishbarmaiya.hashnode.dev·20h ago · 11 min readWhy I Rewrote My Reverse Proxy from Node.js to GoIf you’ve read my previous posts, you know I spent months forcing Node.js to act like a production-grade API gateway. First, I tried building an optimized streaming pipeline, only to discover that unh00
SWShuoxin Wangintrtc.hashnode.dev·7h ago · 11 min readTreat User Feedback Like an Event-Routing SystemA feedback widget looks like a small UI feature: collect a message, notify someone, and display a reply. Architecturally, however, it crosses several boundaries: an anonymous or partially identified 00
ASAman Singhinamanksinghin.hashnode.dev·7h ago · 6 min readRedis Sorted Sets and Ranked DataIf you learn one Redis structure deeply, make it the sorted set. It's a set where every member carries a numeric score, and members stay ordered by that score. That one addition (a score) unlocks a re00
ASAman Singhinamanksinghin.hashnode.dev·7h ago · 6 min readRedis Sets and Set OperationsA Redis set is an unordered collection of unique strings. Two things make it valuable: membership tests are instant, and Redis can compute intersections, unions, and differences between sets inside th00
ASAman Singhinamanksinghin.hashnode.dev·7h ago · 6 min readRedis Lists and Simple QueuesA Redis list is an ordered sequence of strings you push and pop from either end. That simple shape makes it the natural fit for two common needs: a queue where producers add work and consumers take it00
ASAman Singhinamanksinghin.hashnode.dev·7h ago · 7 min readRedis Hashes: Storing ObjectsWhen the thing you're storing has more than one field, a plain string forces an awkward choice: serialize the whole object into JSON and rewrite it on every change, or spread the fields across many se00
ASAman Singhinamanksinghin.hashnode.dev·7h ago · 7 min readRedis Strings, Counters, and Atomic OperationsStrings are the simplest Redis type and the one people underestimate. Beyond storing a value, they give you atomic counters, which solve a problem that's genuinely hard to get right anywhere else: inc00
ASAman Singhinamanksinghin.hashnode.dev·7h ago · 7 min readRedis Data Structures: An OverviewThe reason Redis solves so many problems is that it isn't one thing, it's a collection of data structures, each with commands tuned for a specific access pattern. Picking the right structure for a pro00