> A local, tamper-evident flight recorder and prompt-injection firewall for Claude Code. Audit last month's sessions in one command, no install. Looking for beta testers. Quick question: **what d id your AI coding agent do last month?** Not what you asked it to do. What it actually did. Which files it read. Which URLs it fetched. Which curl it ran while you were getting coffee. If you're like most of us, the honest answer is: no idea. We hand Claude Code (or Cursor, or Codex) a shell, our repo, our .env, and the open internet, and then we click "allow" until the feature works. So I built a black box for it. It's called agent-blackbox, it's open source (Apache-2.0), and I'm looking for beta testers. npx agent-blackbox scan That's it. It replays your existing Claude Code history (~/.claude/projects) through a security policy and tells you: how many sessions read secrets how many ingested untrusted web content how many made outbound calls and which calls would have been blocked Want something prettier? npx agent-blackbox scan --html # local HTML report: tools, projects, skills, MCP servers, hosts npx agent-blackbox scan --card me.svg # a shareable card, numbers only Everything runs on your machine. No account, no cloud, no telemetry. Nothing is ever uploaded. Run it, then come back. I'd genuinely love to see your numbers in the comments. Prompt injection stops being a curiosity the moment an agent has three things at once (the pattern Simon Willison named the "lethal trifecta"): Private data — your .env, ~/.ssh, a keystore, the output of gh auth token Untrusted content — a web page, an MCP tool result, a README someone else wrote A way out — curl, WebFetch, git push, npm publish… Any one alone is fine. All three in the same session means a hidden instruction in a docs page can quietly walk your API key out the door, and the agent will think it's being helpful. Here's what that looks like with agent-blackbox watching: $ blackbox demo allowed Read /tmp/demo-repo/.env all
I built CyberRef to solve a problem I kept seeing in labs and on engagements: nobody remembers the exact syntax of a command under pressure. You know the command exists. You know roughly what it does. But it's 2 AM during an incident, or you're mid-engagement with a client watching, and the exact flags slip away. So you open twelve tabs of cheatsheets, dig through your notes app, ask Slack — and twenty minutes disappear on something you knew cold last week. CyberRef is my attempt to fix that. This article is a walkthrough of what it does, the design decisions behind it, and what I learned building it. What It Is A single binary you download and run. It opens a local web UI at http://localhost:8787 with a searchable command reference and a set of guided lab scenarios. No install. No server. No internet required. Everything is embedded — the UI, the datasets, the assets. Written in Go for the backend, Alpine.js + vanilla CSS for the frontend, all served from one binary via embed.FS. Why Offline-First Most cheat-sheet tools are websites. That's fine until you're in an air-gapped lab, an isolated client environment, or a VM with no network egress. In those settings, an online tool is dead on arrival. Offline-first isn't a limitation — it's a constraint that shaped every decision: Data is embedded at build time. YAML files are compiled into the binary via go:embed. No external file reads at runtime. No network calls at startup. The binary doesn't phone home, doesn't check for updates, doesn't do telemetry. Stateless by default. Nothing is written to disk unless the user explicitly exports something. Single binary distribution. One .exe on Windows. Copy it to a USB stick, run it on any machine. This means the tool works in the environments where cyber work actually happens — not just where developers are comfortable. Why Not React The obvious frontend choice would have been React with Vite and a build pipeline. I went with vanilla HTML/CSS/JS + Alpine.js instead. Here's w
When an Agent Reaches Root: The Zammad Attack and Machine-Speed Intrusion Vulnerability overview The Zammad compromise at DIVD is memorable for two reasons. Technically it is a two-stage chain: CVE-2026-102489 for session hijacking and remote code execution as the zammad user, CVE-2026-102490 for escalation to root. Operationally, DIVD says the intrusion "indicates an agentic AI powered attack, something we had not seen before." The mechanics are conventional enough. CVE-2026-102489 requires no privileges and only some passive user interaction, scoring 8.7 standalone on CVSS 4.0. CVE-2026-102490 needs local access, scoring 8.5 alone, and completes the path to root. Both records rate the chain 9.4, Critical, and mark it automatable — a label that fits the observed behaviour. The outcome was still severe. Attackers took volunteer data, including DIVD email addresses and possibly contact details, and DIVD warns this makes it easier for someone to pose as a volunteer. Network segmentation limited the damage. For defenders the practical lesson is that speed of exploitation is no longer bounded by a human operator's typing, so dwell time assumptions need revision. CVE-2026-102489 is exploitable on Zammad 6.3.0 through 6.5.4; versions 7.0.0 to 7.1.3 contain the defect but are assessed as not exploitable due to environment conditions. CVE-2026-102490 covers Zammad 1.5.0 to the 7.1.0 alpha. Linux and Docker deployments are affected. At collection time, app="Zammad" matched 11,977 instances on ZoomEye (2026-10-02T06:12:32Z). This measures fingerprint exposure, not confirmed vulnerable systems; a vul.cve query for CVE-2026-102490 returned zero results. Machine-speed exploitation raises the value of knowing which instances are reachable before an incident begins. Upgrade to Zammad version 7 or take the service offline to remove the remote stage. The escalation bug remains in current releases pending a vendor fix. Additional steps recommended by DIVD: run the published log check
What if a CPU could reveal information from an operation that, architecturally, never happened? That sounds like a contradiction. Either an operation executed or it didn't. If it didn't, how can it expose anything? Modern CPUs execute instructions speculatively before knowing whether those instructions belong on the actual execution path. When they find out they were wrong, they discard the architectural results of that speculative work. The program behaves as if the incorrect path never ran. But discarding architectural results is not the same as erasing every physical effect inside the processor. Some effects can persist at the microarchitectural level. And some of those effects are indirectly observable through timing. That gap between what architecturally happened and what physically happened is where Spectre lives. A CPU executing instructions strictly in order, one at a time, waiting for every result before starting the next instruction, would leave enormous amounts of hardware idle. Memory is slow compared to the processor. An instruction might need to wait dozens or hundreds of cycles for data to arrive. While it waits, every execution unit sits unused. Modern CPUs are built around the insight that sequential, one-at-a-time execution is almost never necessary. Most instructions do not depend on the one immediately before them. A processor can execute multiple independent instructions simultaneously, dispatch them out of order to available execution units, and produce the same architecturally correct result as sequential execution would. This is out-of-order execution. It is complemented by pipelining, which overlaps the stages of instruction processing so that while one instruction is being decoded, the next is being fetched, and the one before it is being executed. Both techniques require the CPU to be working on instructions before all the information needed to fully resolve those instructions is available. The processor is constantly running ahead of what
Photo by Daniel Hatcher on Unsplash I'd already picked the GPU. I was checking a motherboard's spec sheet for the second slot I'd need down the line, and the box said "x16/x16." The manual, three pages in, said that only holds when one slot is populated — put a card in the second slot and both drop to x8. Nothing about the GPU I'd chosen was wrong. The board I was about to buy would have quietly halved it. I've spent years picking AWS instance types without ever thinking about what's inside one. g5.2xlarge just works — AWS already matched the GPU, vCPUs, RAM, and network throughput for you. Building a box yourself means every one of those ratios is now your problem, and the one that bites first isn't the one people warn you about. Goal: run 13B-70B quantized models locally, on one GPU today, with a real path to a second GPU later if I need the pooled VRAM for something bigger. (I didn't fix a hard dollar budget going in — the number that mattered more was price-per-GB of VRAM, below.) Everyone tells you to start with VRAM. Fair — VRAM is the hard ceiling: if the model plus its KV cache doesn't fit, it either doesn't load or spills to system RAM and gets 10-50x slower. So you pick a GPU on VRAM alone. I landed on a used RTX 3090: 24GB GDDR6X, 936 GB/s bandwidth, $700-900 on the secondary market. The alternative was a 4090 or 5090 for more bandwidth and newer memory, but the 5090's price has come apart from its spec sheet — $1,999 MSRP, but street prices as of this fall are running $3,800-11,565 depending on retailer, driven by GDDR7 supply constraints. Every guide still quoting $1,999 is stale. The 3090 isn't touching that shortage, so its price has stayed put. Two 3090s pooled (48GB, ~$1,600 total) would even beat a single 4090 on VRAM for the same money — which is what put a second GPU on my radar at all. With the GPU picked, the next line item was the motherboard. I wasn't buying a second GPU yet, but I wanted the option without having to rebuild the whole machine
Attackers are exploiting a maximum-severity vulnerability in SonicWall SMA1000 appliances (CVE-2026-102255) that was patched on Tuesday, three days ago. [...]
Introduction: The Critical Imperative of AI Agent Security in Production Systems As AI agents increasingly integrate with production systems, the security of their access has become a paramount concern. The central issue lies in default permission inheritance, where AI agents automatically acquire full user permissions. This mechanism creates a systemic vulnerability: AI agents, lacking human-like contextual judgment, may execute unintended or unauthorized actions with the same authority as human users. The risk materializes through the combination of over-permissioned access and absence of real-time oversight, culminating in a critical failure pathway that can lead to catastrophic outcomes. Consider the analogy of an industrial robot programmed to tighten bolts but granted access to all tools in a factory. While the robot may mistakenly use a hammer instead of a wrench, the immediate consequences are subtle—a deformed bolt head. However, repeated misuse propagates systemic failures downstream. Similarly, AI agents with unrestricted permissions may execute actions that appear benign in isolation but accumulate latent risk. For instance, an agent deleting temporary files—perceived as unnecessary—may inadvertently disrupt a critical backup process, resulting in system failure during recovery and irreversible data loss. Teams face a critical decision when managing unexpected AI actions: immediate blocking or flagging for review. Blocking prevents immediate harm but risks disrupting legitimate operations, akin to a circuit breaker halting a system during a minor anomaly. In contrast, flagging introduces latency, during which the action may propagate through the system, causing irreversible damage. For example, an agent initiating an erroneous database migration increases data corruption risk with each passing second. The causal sequence is unambiguous: unreviewed action → system processes the action → data integrity compromised. Edge cases highlight the limitations of c
OpenAI's Decisions API (POST /v1/decisions, GPT-6 Luna Decisions, public beta since 2026-10-06) and the System One request that TypeSafe's Jev introduced say the same things in different words. If you already have code for one, the other is a mechanical translation. This post maps the two field by field, lists the two gotchas that silently give wrong answers, and shows how to send OpenAI-shaped requests to the other twelve decision models. Checked 2026-10-08 against OpenAI's API reference and OpenRouter's /api/alpha/decisions. OpenAI /v1/decisions System One (Jev and the rest) input: a string, or user messages with input_text / input_image parts state: a string, a JSON object, or text and image parts questions: an array [{type, name, ...}] questions: an object { id: {type, ...} } predicate {instructions} noul {instructions, criteria: {true, false}} choice {choices: [{value, description}]} choice {criteria: {value: description}} score {levels: [{label, description}]} score {criteria: ["label: description", ...]} answers: an array in question order answers: an object keyed by your ids probability / choice / score noul / choice / score refusal a question that comes back without an answer Pricing has the same shape on both sides: input tokens only. GPT-6 Luna Decisions is $0.10 per million input tokens, Jev $0.042, and no decision model I tested bills output. Images. OpenAI takes input_image parts carrying a data URL. OpenRouter's Decisions API reads images only as chat-style image_url parts. Send it an input_image part and it does not error — it answers from the base64 read as text. In my test a solid red square came back "blue" from three image models until the part type was changed. Option caps. Not every model takes every question. Upstage's Solar Decide accepts at most 26 choice options and Together's Tev1 at most 20; Respan's Span-01 models answer yes/no only. Route a 77-intent classifier to one of those and the request is refused. type OaiQ = | { type: "predicate
I'm Hiroshi Shibata (hsbt), a Ruby committer and the lead maintainer of RubyGems and Bundler. RubyGems and Bundler 4.1.0.beta2 shipped on October 8, 2026. This is Part 1 of a three-part series on what's new in 4.1, and it covers two features. override in the Gemfile rewrites version constraints declared by your dependencies, transitive ones included, and can even drop or replace a dependency. The prune setting makes Bundler delete download caches and .git directories after install, replacing the rm -rf line in your Dockerfile. Both hand back to you a decision RubyGems and Bundler used to make on their own, and both are opt-in. Nothing changes until you ask for it. override in the Gemfile When an upper bound gets in your way A gem you depend on declares something like , : The target is a gem name string or :all. The field is version:, required_ruby_version:, or required_rubygems_version:, for the dependency's version requirement, the Ruby version requirement, and the RubyGems version requirement. There are three operations. A requirement string replaces the existing constraint entirely. The original constraint is discarded, whether it comes from a direct or a transitive dependency. :ignore_upper removes the upper-bound operators collapses into a >= that keeps only the lower bound. nil drops every constraint and leaves >= 0. Here is what each operation does. Original Operation Result >= 1.0, = 8.0" >= 8.0 ~> 1.5 :ignore_upper >= 1.5 >= 1.0, = 1.0 != 1.2, = 0 Keeping != 1.2 under :ignore_upper is intentional. The first implementation used an allow-list that kept only lower bounds, but that brought back versions the user had explicitly excluded, such as one with a known vulnerability. Review caught it, and I switched to a reject-list that drops only the upper-bound operators. What makes override worth having is that it works on dependencies you never wrote yourself. Say qux depends on bar ( = 2.0", Bundler re-resolves right away. The flip side is that the lockfile alone
I built an OpenAPI changelog generator because writing API release notes was eating my afternoons: diff two specs, output a structured list of breaking changes, no LLM rewriting history. First real dogfood run — comparing my own API's v3 spec against v2 — it flagged exactly one breaking change. Except that change had shipped a week earlier and nothing broke. The delta: a status field's enum went from ["queued","shipped","failed"] to ["queued","shipped"]. Textbook breaking change, the differ said. But that field lived in a response schema. A server returning fewer enum values cannot surprise a client that already handles all three — the client's switch statement still compiles. The server promised less variety, not less data. That's when it clicked: breaking-ness has a direction, and the same textual delta flips meaning depending on which way the schema points. Request schema (the server gets stricter): shrinking an enum, making a property required, narrowing number to integer — all breaking. Old clients start sending rejected payloads. Response schema (the server guarantees less): removing a required property, widening an enum, loosening a type — breaking. Clients receive things they never planned for. The inverse bit me earlier too: adding a value to a response enum means old clients suddenly receive data their validators reject. Same operation, opposite verdict, depending on the boundary side. Second fix, less glamorous: I now normalize specs before diffing — expand $refs, sort keys, canonicalize. Without that, two semantically identical specs whose properties happened to be ordered differently produced a wall of fake diffs. JSON comparison is not semantic comparison. The direction-aware version now gates my own spec releases before anything ships. I eventually packaged it as the OpenAPI Changelog Generator — it takes a base spec URL plus the new spec and returns a human-readable changelog alongside a machine-readable change list. If you diff specs with a naive pr
A useful error record for a logistics agent must connect the failure to one shipment, one request, and the work already consumed by the agent loop. Capture request context and cumulative usage at the same boundary that records the stack trace. Otherwise, a rejected model call may be visible while the latency and token spend that preceded it disappear into aggregate charts. The implementation below uses Express, AsyncLocalStorage, and a small structured event sink; it keeps the transport replaceable and the cost ledger explicit. TL;DR: give every inbound request a correlation ID, maintain per-request agent totals in async-local state, turn route failures into structured events in the final Express error handler, and reserve process-level handlers for last-chance reporting plus shutdown. Do not put raw prompts, authorization headers, or shipping addresses into that context. For a shipment-planning endpoint, the record should answer four operational questions: which request failed, where it failed, how long the agent loop ran, and how much billable usage accumulated before failure. That is enough to group failures by route and agent step while attributing work to a shipment's internal reference. It is deliberately not a copy of the entire request. Context is the ledger. Use stable, bounded fields for aggregation: route template, HTTP method, error type, agent step, and model family. Keep high-cardinality values such as requestId and shipmentRef in event fields, not metric names or labels. Prometheus naming guidance recommends a common prefix, base units, and labels that preserve meaningful aggregation. A metric such as logistics_agent_step_duration_seconds can aggregate; a metric name containing a shipment ID cannot. Severity also needs a boring rule. A handled validation error is not the same operational event as a process-ending exception. RFC 5424 defines severity levels, including Error, Critical, Alert, and Emergency. Map the application's small internal severity
TL;DR: For an HR SaaS 2FA login or password-reset flow near a shift boundary, choose SMS OTP or email OTP at runtime according to the employee's verified, reachable destination. Allow one controlled fallback, and keep code validity independent from message delivery. The operational target is a completed login or reset inside the expiry window; a provider acceptance event, an email open, or an SMS handoff is only an intermediate signal. Integration effort should be judged against that whole path. A channel that takes one afternoon to wire up but gives the on-call engineer no trustworthy state transitions is unfinished integration work. The user story sounds small: deliver a reset code with a short expiry so an employee can see shift reminders. The system behind it has at least four separately observable stages: create one challenge, enqueue one message attempt, record the channel outcome, and accept the code once. Keep those identities separate. Retries then belong to the delivery attempt, while expiry, attempt limits, and one-time use belong to the challenge. This distinction matters under deadline pressure. If an SMS attempt stalls, issuing a fresh code by email leaves two valid secrets in circulation and makes the audit trail harder to explain. A safer fallback reuses the same challenge while rendering the message for a different verified destination. The displayed code may stay the same; the delivery-attempt identifier must not. Use a capacity-planning reflex before choosing defaults. Estimate peak reset starts per minute around shift changes, multiply by the maximum permitted delivery attempts, and provision the queue for that upper bound rather than the daily average. A policy allowing one initial send and one fallback has a worst-case delivery fan-out of 2 per challenge. That is a planning bound, not a prediction. Deadlines expose ambiguity. Email and SMS expose different evidence, but neither can prove that the intended employee read the code. For email, doma
The Model Context Protocol (MCP) is becoming the standard for AI-tool integration. Claude Desktop, Cursor, Windsurf — they all use it. The protocol is well-designed. The official SDKs give you transport, routing, and session management. What they don't give you is security. This post is the technical deep-dive into AegisGate MCP — a standalone MCP server framework with 22 security layers, zero external Go dependencies, and a vendored neural ML inference pipeline. We'll cover the architecture, the tricky implementation details, and the tradeoffs we made. The hardest constraint wasn't security — it was zero external Go module dependencies. Not "minimal dependencies." Zero. No require directives in go.mod. Nothing. // go.mod module github.com/aegisgatesecurity/aegisgate-mcp go 1.26.6 // That's it. No require block. No transitive deps. This means every piece of functionality — HTTP routing, JSON-RPC handling, SSE formatting, regex scanning, ML inference — is implemented in our own code or vendored as source. Two reasons: Air-gapped deployment. You can git clone and make build on a machine with no network access. No go mod download. No proxy. No vendored module cache to maintain. Supply chain attack surface. Every transitive dependency is a potential CVE vector. Zero dependencies means zero transitive CVEs. For a security product, this is architectural, not aesthetic. The hardest part of zero-deps was the ML inference. We use a CharCNN-BiLSTM neural network (~1.6M parameters) for adversarial prompt injection detection. The model is trained offline and exported as ONNX. At runtime, we need to load it and run inference. The standard approach in Go is to use onnxruntime-go or similar bindings. But that's a dependency. Instead, we vendor the ONNX Runtime shared libraries directly: lib/ amd64/ libonnxruntime.so # 28MB - vendored binary libonnxruntime.so.1 # symlink LICENSE arm64/ libonnxruntime.so # 24MB - vendored binary libonnxruntime.so.1 # symlink LICENSE models/ threat_c
TL;DR: For a Node.js SaaS error alerting API, preserve queryable checkout events, then let a cron worker poll them with a durable cursor and notify your support channel. The deciding constraint is incident reconstruction: an alert that says "checkout failed" is cheap to send and expensive to investigate. A useful record connects the customer report, workflow step, deployment, and notification without storing payment details. For a small Node.js SaaS, I would start with polling rather than make alert delivery depend on the request that just failed. The request path records the event; a separate worker reads it. That split adds one cursor and one scheduled job, but it gives support a stable artifact after the original process or chat integration is gone. The first design is tempting: catch an exception and post its message to a chat webhook. It feels finished because the message arrives quickly. It is not enough for customer support. A customer may report the problem hours later with an order reference, while the alert contains only a stack trace and a timestamp from a different clock. That's the trap. Keep the failure envelope narrow. A practical record needs an event ID, occurrence time, checkout attempt ID, workflow step, normalized error class, deployment identifier, and trace ID when one exists. Include a retry count and final outcome so a transient failure does not look identical to an abandoned purchase. Do not put card data, session secrets, raw request bodies, or unrestricted model prompts in this record. OpenTelemetry treats logs as timestamped records and describes correlation through trace and span identifiers. That makes the failure record useful even when application logs, traces, and support data live in separate stores. The standard supplies correlation vocabulary; it does not choose your retention period, redaction policy, or alert threshold. Those remain application decisions. One constraint matters more than field count: the checkout attempt ID must
Error Handling for AI Agent Web Tools: Retryable Errors, Timeouts and Partial Pages An agent loop that treats every failure the same way does two expensive things. It retries pages that will never load, and it pastes raw error text into the model as if the model were the retry layer. Web tools fail in two different shapes, and only one of them should ever reach the model. This guide is the handling layer in front of the AgentSearch web tools on the Pocket Agentic Portal: Web Search, Web Extract and Web Render. Each call is $0.005 in USDC, over x402 on Base or MPP on Tempo, with no signup and no API key. The payment client itself is covered in Pay-per-call APIs for AI agents. What follows is what you do with the response. The call did not go through. The portal answers with a non-2xx status and a JSON body that is not the usual envelope: { "error": { "code": "UPSTREAM_ERROR", "message": "...", "retryable": true } } The tool never returned a page. Retry in your own code when retryable is true, and honor a Retry-After header. A 503 with Retry-After means the service is temporarily not offered. A 400 with UPSTREAM_REJECTED (retryable: false) means the service refused your request body; sending the same body again gets the same answer, so fix the input instead of retrying. If the supplier does not deliver, the portal settles nothing on x402, so that attempt is not a paid call. (With an MPP push payment the transfer has already moved; it stays redeemable for 15 minutes on a retry with the same credential.) The call went through, and the website (or the search backend) did not. Search, Extract and Render still answer HTTP 200. Through the portal that body is wrapped: { "portal": { "provenance": "third-party-supplier", "serviceId": "agentsearch-web-extract-v1", "schemaCheck": "passed" }, "data": { "url": "https://example.com/slow", "requested_url": "https://example.com/slow", "markdown": "", "error": { "code": "TARGET_TIMEOUT", "retryable": true } } } data is the supplier's
Two apps can write the exact same Apple Health records to disk and behave nothing alike the moment a sync gets interrupted. I benchmarked it on 2026-10-08: 3,200 daily records, 400 days across 8 metrics, written once as a JSON array and once as JSONL, then both truncated at 100,000 bytes to simulate a cut-off iCloud sync. The JSON array returned a parse error and 0 recoverable records. The JSONL file gave back 1,355. The two files differed by 1 byte. The reason is structural. A JSON array is one document, valid only once the closing bracket lands, so a half-written snapshot is not JSON at all. JSONL is one object per line, valid incrementally, so a reader keeps every complete record it already has. Check any snapshot yourself: jq -c . yourfile.jsonl jq -c 'select(.metric=="hrv_sdnn")' health.jsonl grep 2026-10-07 health.jsonl For the other side of the trade, HealthMirror writes plain-text JSONL into its own iCloud container and its local server reads per-metric subfolders. MetricBridge takes the whole-file route: a compact .health-cache.json snapshot a zero-dependency MCP server reads, with get_freshness reporting the age. Different read patterns, different formats. Full write-up with the benchmark table and the failure modes: https://www.healthexport.dev/blog/healthkit-to-jsonl-vs-json?utm_source=devto&utm_medium=social&utm_campaign=exp-20261008-hea195-jsonl
A push notification looks like a one-liner: call Firebase Cloud Messaging with a device token, a title and a body. Then the real questions arrive. What happens when FCM is down for a minute? What if the user turned reminders off? What if the token belongs to a phone that was wiped last month? And how do you know whether anyone opened the thing? We're building MotionLab, personalized stretching and mobility sessions. In an earlier post we covered how AI sessions pick exercises. This one is about a less glamorous part of the same MotionLab-Web repo: the notification backend. There's no queue service and no worker fleet. One Postgres table is the queue, the state machine and the audit trail, and a handful of Next.js route handlers drive it. Stack: Next.js 16.2 (App Router route handlers on the Node runtime), Supabase Postgres, firebase-admin for FCM, and Vercel Cron. Snippets are trimmed from the real code. Every notification is a row, and its status column is the state machine: pending, sent, delivered, retrying or dead. create table if not exists public.notifications ( id uuid primary key default gen_random_uuid(), user_id uuid not null references auth.users(id) on delete cascade, type text not null, -- maps to a preference category title text not null, body text not null, data jsonb not null default '{}'::jsonb, channel text not null default 'push', -- push | email | sms (future) status text not null default 'pending', attempt_count int not null default 0, next_attempt_at timestamptz not null default now(), failed_reason text, created_at timestamptz not null default now(), sent_at timestamptz, delivered_at timestamptz, opened_at timestamptz, read_at timestamptz ); -- Cron dispatch query: due rows still in flight create index if not exists notifications_due_idx on public.notifications(next_attempt_at) where status in ('pending', 'retrying'); A few things this buys: Retries are just data. attempt_count, next_attempt_at and failed_reason live on the row, so a retry is
A version number is a string a human edits. When two release tags declare the same version and the code differs, one address now points to two artefacts. Nothing notices, because the version is all anyone recorded. I wanted to know how often this happens, so I built a small tool to check it and ran it on the 100 most-downloaded PyPI projects with a public repository. The method was fixed before the first run, and no project was tuned. result repositories every version names one code state 59 at least one version names two 29 not enough tags compared 4 no version found, or inconclusive 8 Every collision is listed and can be checked by hand. In requests: $ closure-drift --compare v2.16.0 v2.16.1 DIFFERS UNDER ONE LABEL: both declare 2.16.0, and the code differs in 2 path(s). Mostly not carelessness. A tag created before the version was bumped, branch markers such as 7.x, and monorepos where several tag families share one version file. I asked the maintainers of three projects about their cases; all three confirmed what the tool measured. pipx install git+https://github.com/luizfnsilva/closure_drift@v1.0.0 closure-drift # inside any git repository It is one file, standard library only, read-only, no network. Exit 0 means clean, 1 means drift, 2 means it could not tell, and the report says why. To stop it before it happens, --would-tag checks a commit before you tag it, and runs as a GitHub Action or a pre-commit hook. The full study, the method and every collision: https://github.com/luizfnsilva/closure_drift
If you've only ever added tracking to Shopify by pasting a script into theme.liquid, building a Web Pixel extension feels strange the first time. Your code doesn't run on the page. It can't touch the DOM. It receives events from Shopify, and what it does with them is up to you, within a sandbox. That's a good thing. It's also why a lot of "just paste this snippet" tracking advice doesn't work anymore, especially at checkout. This post walks through building an app pixel (the kind you ship inside a Shopify app) that subscribes to events, respects consent, and forwards purchases to your own endpoint, plus the gotchas that cost me the most time. Note: Shopify's Web Pixels API evolves. I've linked to the official docs where behavior matters, and you should check them before shipping. Treat the snippets here as a starting point, not a drop-in implementation. Shopify has two kinds of pixels: Custom pixels are code a merchant pastes into Settings → Customer events. Good for one store. App pixels are web pixel extensions shipped as part of an app. Good when you're building something for many stores. Both run in the same sandboxed environment and use the same event API. App pixels add a shopify.extension.toml configuration, merchant-editable settings, and declared privacy requirements. Pixels run isolated from the storefront, in a sandbox (Shopify documents it as a Web Worker for app pixels). The practical consequences: No DOM access. You can't query selectors, read document.cookie directly or inject script tags. No access to the theme's window or dataLayer. If your old tracking relied on window.dataLayer, it won't be there. You subscribe to standard events and receive structured data instead of scraping the page. Network calls are allowed (fetch), so you can send data to your own server or a platform's API. The upside is that one pixel works across the storefront and checkout, because you're not depending on the theme. From your app directory, using the Shopify CLI: shopify
Most Claude Code setups for React Native stop at a CLAUDE.md file. That's the foundation: it tells the agent your conventions. But conventions alone don't stop the two failures I see most often in agent-built Expo features: The agent starts writing before it understands the codebase, and you get a feature that works but ignores how the rest of the app is built. The agent says "done" when it isn't: types don't check, a Supabase table has no RLS, and the screen has never rendered an error state. This post is the workflow I use to fix both: four stages, each backed by a Claude Code feature, with the files to set it up. It assumes you already have a CLAUDE.md with your commands and conventions. Stage Claude Code feature What it prevents Plan Plan mode Code written before the codebase is understood Build A project skill (/new-feature) Inconsistent structure across features Review Read-only subagents Security and convention mistakes the builder can't see Verify A verifier subagent + a Stop hook "Done" that isn't done Start every non-trivial feature in plan mode. Press Shift+Tab to cycle permission modes until plan mode is active, or type /plan. In plan mode Claude explores and proposes but can't edit files. When it needs to research the codebase, it delegates to a built-in read-only Plan subagent, so the exploration output stays out of your main conversation. A good planning prompt for an Expo + Supabase feature: Plan a "favorites" feature: users can heart a workout and see a Favorites tab. Before planning, find: - how existing features are structured under features/ - how data fetching is done (queries/ hooks) - the most recent migration in supabase/migrations/ and its RLS pattern - how tabs are defined in app/(tabs)/_layout.tsx The plan must list: the migration (with RLS and policies), the query hooks, the route files, the components, and the tests. Don't write code yet. Then read the plan. This is the cheapest moment to catch a wrong assumption: a plan that puts supaba
The page is broken, and you’re the middleman: open DevTools, copy the red console error, paste it into Claude Code, go back for the failed network request, paste again, then explain the layout shift in words. Claude Code can read your source, but it’s debugging blind and guessing from whatever you remembered to copy. Chrome DevTools MCP takes you out of that loop. It’s the official server from the Chrome DevTools team (~52k GitHub stars), and setup is one command. The agent opens a real Chrome, then reads console messages (with source-mapped stack traces), inspects network requests, records performance traces, runs Lighthouse audits, and takes heap snapshots. It then fixes the code based on what it actually saw. Already using our Playwright MCP setup? The two are complementary. Playwright is built for driving the browser through flows. DevTools MCP is built for finding out why a page is broken or slow. One command (needs Node.js LTS and Chrome): claude mcp add chrome-devtools --scope user npx chrome-devtools-mcp@latest Restart Claude Code, then ask: “Check the performance of https://developers.chrome.com”. Chrome should open and record a trace. Total time: about 2 minutes. Skip the manual steps below and hand the whole job to the agent instead: You have shell access and the `claude mcp` CLI on this machine. Set up the Chrome DevTools MCP server and report back. Do not tell me it's done unless step 5 actually confirms it: 1. Check `node --version`. It needs a current Node.js LTS (20.19+ or 22.12+). If Node is missing or older, install the current LTS using whatever this machine already uses (nvm, Homebrew, winget, or the official installer from nodejs.org), then confirm `node --version` and `npx --version` work in this shell. 2. Confirm Google Chrome (stable) is installed. If it isn't, stop and tell me. Don't substitute another browser. 3. Run `claude mcp list` to see what's already configured. 4. Add the server: - macOS / Linux: `claude mcp add chrome-devtools --sco
Moving Beyond the Isolate Paradigm The serverless and edge computing landscape is currently undergoing a significant shift. For years, the industry standard for fast, ephemeral execution has been the V8 isolate. However, as infrastructure demands grow and security requirements tighten, developers are rethinking the balance between speed and isolation. Netlify recently made headlines by migrating their Edge Functions away from V8 isolates and onto Firecracker microVMs. This transition led to a dramatic reduction in median warm latency, dropping from the 25-40 ms range down to a blistering 5-6 ms. For those familiar with traditional virtualization, this sounds counterintuitive. We usually categorize isolates as the lightweight, high-performance option and virtual machines as heavy, slow, and resource-intensive. To understand why this change makes sense, we need to peel back the layers of the architecture and look at what happens under the hood when a request hits the edge. The performance gains reported are not just about the runtime itself but about the elimination of unnecessary network hops and the clever orchestration of microVM lifecycles. A V8 isolate functions as a discrete heap and execution context contained within a single process. By utilizing a single runtime instance to manage thousands of these isolated contexts, platforms achieve remarkably fast startup times. Because there is no need to boot a kernel or manage a separate process for every tenant, isolates are effectively the speed-kings of serverless functions. However, this speed comes at a cost regarding the isolation boundary. In a shared-process model, the security wall between your code and another tenant's code is maintained by the memory safety mechanisms of the engine itself. If that engine has a vulnerability, or if the runtime environment shares too many system-level resources, the isolation is significantly weaker than what hardware virtualization provides. Netlify’s move underscores a vital
When building an autonomous agent to conduct technical engineering interviews, the margin for error is zero. If an AI customer service bot hallucinates a return policy, it is an inconvenience. If an AI interviewer hallucinates a candidate's technical score or gets tricked by prompt injection into discussing philosophical hypotheticals instead of system design, it destroys the integrity of the hiring pipeline. Standard conversational AI wrappers—where a massive system prompt is fed into a single LLM call—are fundamentally unsuited for objective technical evaluations. They suffer from conversational drift, they are easily manipulated, and they struggle to enforce strict grading rubrics. To solve this at TechEval.ai, we abandoned the single-prompt approach. Instead, we architected Kovi as a deterministic state machine using LangGraph, deployed entirely on serverless infrastructure. Here is a look under the hood at how we built a hallucination-free AI interviewer capable of running 1,000+ concurrent WebRTC screens with sub-400ms latency. Rather than relying on one omnipotent AI model to handle conversation, proctoring, and evaluation simultaneously, Kovi utilizes a strict LangGraph supervisor-worker architecture. The Supervisor Node: This node controls the flow of the interview. It acts as a rigid state machine that tracks the 60-minute timer, monitors the required tech stack parameters, and ensures all "Must-Ask" questions are covered before the session terminates. The Context Engine (RAG): Before the interview begins, Kovi parses the candidate's resume and the specific Job Description. Using Pinecone and Neon DB, this worker retrieves exact candidate experiences to tailor the opening questions. The Deep-Dive Worker: If a candidate provides a superficial answer about a technology (e.g., FastAPI or microservices), the supervisor routes the state to this worker, which dynamically generates a highly specific architectural follow-up question to test true depth. The Isolate
I asked my agent to move a price tag 8 px down. It edited the wrong : the one in the desktop layout, three components away from the one I was looking at. I rebuilt, looked, described it again — "no, the small grey one under the title, in the card, on mobile" — and lost another five minutes. Coding agents can read your whole codebase. They still can't see which pixel you mean. So I built layout-debug-mcp: a local window over your running UI where you click the element, drag it where you want it, and send that to your agent together with the element's file:line, box, parents and the measured delta. It works with any MCP client (Claude Code, Cursor, Codex CLI, VS Code Copilot, Gemini CLI, Claude Desktop, Zed) and installs with one line: { "command": "npx", "args": ["-y", "layout-debug-mcp"] } A typical UI fix with an agent goes like this: Take a screenshot, maybe circle the button. Describe it: "the secondary button in the footer of the pricing card". The agent greps, picks a candidate, edits it. Rebuild, look, it's the wrong one or the wrong amount. Go to 2. Two things are lost in step 2. Identity: words don't map to one node in the tree, especially with repeated components, responsive variants and wrappers. Quantity: "a bit lower" isn't a number, and the agent can't measure your screen. The fix for both is the same: stop translating. Let the human point at the real node and show the change, and let the tool turn that into data the agent can act on. You tell your agent one sentence: Open the layout-debug window and listen for my edits. The agent calls the open_window tool. A local server starts on 127.0.0.1, a window opens in your browser with your dev page inside (or a bundled demo page until you set your own URL). Hold Alt and the tightest box under the cursor lights up. Alt+click selects it. Breadcrumbs go up to parents, "Details" lists children. It works on wrappers and layout containers, not only on accessible nodes, because the selection is about layout, not sem
After ten years in asset management, I started a full-stack developer path in 2024 and spent my time between blockchain and AI. Becoming an AI engineer felt out of reach. Then I joined the Udacity AWS & AI Scholars — Future Agent Engineer program, and its third project asked for something very concrete: build the AI layer of a customer support team. This post is the story of that project: what I built, what broke, and what it taught me. NovaMart is a fictional e-commerce company. Its support agents look up orders, check policies and draft answers by hand. The goal: a system that understands a request, gathers facts, applies company policy and replies, with no human in the loop, and with safety and observability built in. I built it with the Strands Agents SDK and deployed it on Amazon Bedrock AgentCore Runtime: an Orchestrator (Claude Haiku 4.5, temperature 0) that only routes, and never answers itself; an Inventory agent that reads orders and customers from DynamoDB and reports facts only; a Refund agent that decides return eligibility: 30 days for Standard customers, 60 for Premium; a Policy agent that runs three retriever sub-agents in parallel, one per Bedrock Knowledge Base (returns, shipping, warranty); a Communication agent that writes every final reply. The agents never talk to each other directly. Each one writes its findings into a shared DynamoDB record, the WorkflowState, with optimistic locking: every write states which version it expects. A Bedrock Guardrail sits on every model call, and every request becomes an X-Ray trace. The automated test suite scored 120/120. The interesting part is what happened along the way. The guardrail had to deny three topics: competitor products, legal threats and pricing negotiations. My first version blocked the brief's own test question: "How much would 5 items at $29.99 be with a 10% discount?" Reading the guardrail's assessment told me exactly which policy fired: Pricing negotiations. My topic definition mentioned di
The calendar record, not the chatbot’s wording, decides whether an appointment exists. A booking reply is a commit acknowledgement, not a writing task. If the calendar has not accepted the appointment, the chatbot cannot truthfully say it is booked. The failure is easy to create. A visitor asks for Tuesday afternoon. The assistant offers a time and writes, “You are booked.” Meanwhile the calendar request times out. The customer arrives expecting a slot that the business cannot see. The words were coherent; the state was wrong. Conversation is useful for gathering the service, location, preferred time, and necessary contact details. It can explain available choices in plain language. But an offered time is provisional until the booking system accepts it. Availability can change between the question and the write. Make that boundary visible. Before the write, say the time is available to request. After a successful write, return the confirmed time, time zone, and reference. If the write fails, say the booking did not complete. If the result is unknown, say it is unconfirmed while the system checks. Never use the same confirmation sentence for all three states. Both Google Calendar and Microsoft Graph create an event through an authenticated write and return an event resource. That resource, not the assistant's prose, is the evidence of a committed appointment. A timeout does not reveal whether the first write succeeded. Blindly sending another create request can produce two bookings. Give the customer intent a stable identity, check for an existing result, and let a retry continue that same attempt. Google Calendar describes caller-supplied event IDs as one way to keep a local record in sync and avoid duplicates after an ambiguous result. Stripe documents the same general principle for safe request retries with an idempotency key. The exact mechanism depends on the booking provider. The design requirement does not: one customer request should lead to at most one commi
Compliance evidence changes the SMS API decision: choose the provider and architecture that let you prove what your e-commerce signup system requested, what the carrier-facing network reported, and how your application reacted, without storing the verification secret in logs. Short answer: model delivery as an asynchronous state machine, poll through a narrow internal interface, retain append-only status observations under a documented policy, and set an SLO on terminal evidence rather than treating an accepted API call as delivery. Acceptance is not delivery. This is not a claim that SMS proves account ownership. NIST treats use of the public switched telephone network for out-of-band authentication as a restricted authenticator and tells verifiers to consider risks such as SIM change and number porting. A verification link sent by SMS is therefore one signal in a signup control, not a reason to discard session binding, expiration, rate limits, and abuse detection. The bounded incident worth designing around is ordinary: a shopper requests a verification link, the messaging API accepts the transactional notification, and the SaaS app marks the signup notification as complete. Later, support needs to answer whether the message reached a terminal delivery state. The original response cannot answer that question. The invariant is sharper than “send SMS reliably”: every accepted request needs a correlation ID, a sequence of timestamped observations, and an explicit terminal outcome or timeout. Education attendance alerts expose the same evidence gap, but they have different content, consent, and escalation policies; this implementation stays with e-commerce account signup so those policies are not casually conflated. Start with the questions an investigator will actually ask. Which signup initiated the send? Which destination region and policy applied? What content version was selected? When did the provider accept the request? Which status transitions were observed, a
TASK#STOMP: A Windows Backdoor That Lives in Scheduled Tasks and VBS Securonix published an analysis of TASK#STOMP, a Windows backdoor that uses only components already present on the host. The payload is PowerShell, persistence comes from scheduled tasks and the Startup folder, and collection targets documents, clipboard contents, screenshots and saved Wi-Fi passwords. The design goal is long-term espionage rather than immediate disruption. The observed chain begins with a randomly named VBS file in a user-writable path, for example 95c9050t66.vbs. Securonix has not confirmed how it arrives, and the available evidence cannot separate phishing, a browser download, removable media, remote access or archive extraction. task.xml, task2.xml, task3.xml and task4.xml, and the task names rotate to resemble Windows services. A copy of the script, msdiag.vbs, is dropped into the Startup folder. The loader terminates earlier instances, sets several file timestamps to 15 January 2024, then launches PowerShell with a hidden window and execution policy bypass parameters. The core module walks every fixed drive for Word, PDF, PowerPoint and Excel files plus archives. Documents that are recent take priority, and files larger than 500 MB are skipped. A file monitor keeps watching for new or modified files, so later edits are collected as well. The module also runs the Windows netsh wlan command to enumerate stored wireless profiles and recover Wi-Fi passwords held in plaintext. csc.exe, and accepts invalid TLS certificates. Type Value C2 domain corecloudfileshare[.]xyz C2 domain attachmentsharingdrive[.]xyz File sys_loader.ps1 File diag_pack.dat File win_conn.ps1 File win_conn_cfg.dat File purge.bat The published hash values for these files were truncated in the source material and are not reproduced here. Script block logging, AMSI records, scheduled task logs and endpoint file events together preserve the commands and temporary files needed to rebuild the chain. Detection should
Yield Strategy Optimization Report: PancakeSwap AMM Target Protocol: PancakeSwap AMM (TVL: $1834.0M) Protocol: PancakeSwap Automated Market Maker (AMM) Chain(s): Ethereum (Mainnet) & L2 roll‑ups (Arbitrum, Optimism) – aggregated TVL ≈ $1.834 B Date: 7 Oct 2026 Prepared by: Senior DeFi Security Researcher – Smart‑Contract Auditing Team PancakeSwap’s AMM remains one of the most capital‑intensive liquidity‑provision platforms in the multi‑chain DeFi ecosystem. Its core contracts (Factory, Pair, Router, MasterChef‑style farms, and the newer V3‑style concentrated‑liquidity modules) have been battle‑tested for over three years, but the rapid migration of TVL to Ethereum L2s and the introduction of novel yield‑optimisation strategies (auto‑compound vaults, leveraged LP positions, and cross‑chain arbitrage bots) have expanded the attack surface. Our audit focused on the yield‑strategy layer that sits atop the vanilla AMM – i.e., the smart‑contract modules that (a) auto‑harvest and reinvest PancakeSwap rewards, (b) manage leveraged LP positions via external lending protocols, and (c) execute cross‑chain rebalancing. The review covered the latest main‑net deployments (v2.3.1‑router, v3‑pair contracts, and the YieldOptimizer suite v1.4) and the corresponding L2 proxies. Key Findings # Category Severity Brief Description 1 Reward‑Harvest Re‑entrancy High (8/10) The harvest() function in YieldOptimizer calls external IPancakeRouter.swapExactTokensForTokens before updating the internal lastHarvest timestamp, enabling a re‑entrancy that can double‑claim rewards. 2 Oracle Manipulation (TWAP) Medium‑High (7/10) The strategy relies on a 30‑minute TWAP from the PancakeSwap pair contract for slippage checks. An attacker controlling a modest amount of liquidity can shift the TWAP during the vulnerable window, causing the strategy to execute sub‑optimal swaps. 3 Leveraged LP Liquidation Loop Medium (5/10) When a leveraged LP position is under‑collateralised, the contract calls an externa