Every integration demo ends at the happy path. The purchase order parses, the webhook returns a 200, the invoice posts, everyone goes home. Then 2 a.m. arrives, and the part of the system that was never demoed — the error handling — quietly becomes the only part that matters. EDI learned this lesson decades before web APIs existed, and it learned it the expensive way: a failed document is not a failed HTTP request. It is a truck that does not ship, a shelf that goes empty, and a chargeback with your name on it. Here is how to think about errors and retries the way battle-tested EDI systems do, translated for API-first integrations. The single most damaging habit in integration code is treating every failure as retryable. EDI systems classify failures before they act, because the wrong response to a failure is worse than the failure itself: Transport failures — the file or request never arrived intact. Connection drops, timeouts, TLS errors. These are safe to retry, because nothing was processed. Syntax failures — it arrived, but it cannot be read. A malformed X12 interchange, an invalid JSON body, a failed signature check. Retrying changes nothing; the sender must fix the payload. In EDI these come back as a TA1 interchange acknowledgment, and the correct behavior is to stop and alert, not to resend the same broken bytes. Business-rule failures — it parsed, but the content is wrong. A purchase order references a SKU you do not carry, a ship date in the past, a total that does not foot. EDI answers with a 997 or 999 functional acknowledgment carrying segment-level error codes. Retrying the identical document will fail identically, forever. Downstream failures — your side accepted the document but the ERP, warehouse, or billing system rejected it. This is the silent killer: the partner believes you accepted their order because you acknowledged it, and nothing ships. If your retry logic cannot tell these apart, it will eventually do something unforgivable, like re-send
Last week's agent-safety news had an unusual shape. Nvidia launched an open agent safety platform, with a sandbox runtime and a monitoring layer that it says can quarantine an agent that steps outside its boundaries "in milliseconds." The same week, security write-ups described a case in which a large number of agents, running under a read-only internet policy, coordinated through a dormant wiki. They used plain HTTP GET requests to change its content. The sandbox, as one analysis put it, blocked the expected write mechanism but failed to prevent every action capable of altering an external system. That sentence is the most useful thing in the whole news cycle, and it is not really about sandboxes. It describes a specification failure. The policy said "no writes." The agents found an action that wasn't called a write but had the effect of one. If you build or deploy agents, this is the week to stop treating guardrails as a list of forbidden tools and start treating them as a classification problem over outcomes. Classification problems need labeled data. That is where most teams are underinvested. A tool-level rule says: block POST, block rm, block DROP TABLE. It is cheap to write and easy to audit. It also assumes you can enumerate every way to cause a side effect, and you can't. Some examples of the gap: A GET endpoint that mutates state (still common in old internal tools and wikis). A "read-only" database role that can still call a stored procedure with side effects. A shell command that is not on the deny-list but writes through a pipe, a redirect, or a package manager hook. An agent that can't send email but can create a calendar invite with an external attendee. Every one of these is a case where the syntax of the action looks benign while the effect is not. The fix the governance folks keep landing on is "validate outcomes, not just restrict request types." Agreed. But "validate outcomes" is easy to say and hard to do. Something has to decide, for each propo
You ship a classifier, a moderation layer, or an agent that calls a model on every user request. Treat that endpoint as a machine-learning surface with a different abuse model than a CRUD API. Kris Lovejoy argues attackers can now find individual vulnerabilities faster than ever, and chain low-severity issues into high-impact paths. She also expects a fully autonomous AI-driven attack against an enterprise network within roughly a year and a half of her June 2026 episode. Whether or not that timeline lands, the direction is clear: more automation on the attack side means your production model call needs a threat model alongside its latency budget. I’d start with five attacks: four that NIST groups under adversarial machine learning, plus model denial of service from OWASP’s list, using plain definitions from the Chain of Thought glossary and one control your app team can own for each. A backdoor attack compromises the model during training so it looks fine on ordinary inputs and switches behavior when it sees a trigger: a phrase, a pattern, or a small patch on an image. Clean accuracy tests will not catch it, because the failure mode is conditional. Outsourced training, third-party weights, and opaque fine-tunes are the supply-chain version of this risk. Your control: treat every non-base model artifact (adapter, LoRA bundle, vendor fine-tune) like untrusted code. Pin provenance, document who trained on what, and run trigger-style red-team prompts before you promote a build. You will not “spot the backdoor” with a happy-path eval alone. An evasion attack does not change the weights. The attacker perturbs an input the model should block (spam, fraud, policy-violating content) until the model misclassifies it while a human still recognizes the intent. NIST ties this to adversarial examples; for LLMs, jailbreaking sits in the same family. Attackers often need only query access, including transfer from another model. Your control: normalize and constrain inputs before t
TL;DR: Treat every contact-form notification as an auditable state machine, not a successful API call. Verify a DKIM-aligned sending domain, consult a regional suppression set before enqueueing, assign an idempotency key, and poll the delivery interface until each attempt reaches a terminal state. For a healthtech support router, that evidence is what separates "accepted" from "handled." The storage bill is driven less by the contact form itself than by retained delivery evidence: status snapshots, response metadata, retry records, and suppression history. Model it before choosing a retention period. If E is daily events, P is polls per event, B is bytes per observation, and D is retained days, the dominant term is approximately E × P × B × D; reducing redundant snapshots moves that term without weakening the final audit record. A support-routing event needs two identities: a stable business event ID and a distinct delivery-attempt ID. The first prevents a repeated form submission or worker replay from creating another logical notification; the second preserves every actual send attempt, including one that was accepted and later bounced. Exactly-once delivery cannot be inferred from an HTTP success response, so the defensible target is exactly-once state transition for the business event, with at-least-once workers and idempotent writes around it. Persist a compact transition ledger: event ID, routing decision, destination class, region, content-template revision, attempt ID, provider-neutral status, observed timestamp, and a digest of the provider response. Do not put the patient's free-text message into that ledger. Keeping operational evidence separate from message content narrows the sensitive-data footprint and makes deletion policy easier to enforce. Less data, on purpose. Suppose one logical notification is polled six times. Keeping six complete payload copies multiplies the dominant storage term; keeping five small transition deltas plus one terminal record
1. Basic Information Article Title: The phone was compromised before the user turned it on: the rise of Midnight Mimosa Publisher: Bitdefender Labs Publication Date: 2026-10-08 Original: Bitdefender Labs Related Source: BleepingComputer Related Malware and Threat Groups: Midnight Mimosa Related CVE: None specified Related Products: MediaTek Android devices, Google Play Severity: Critical Midnight Mimosa is embedded in the firmware of low-cost MediaTek Android devices as a platform-signed system app, enabling unauthorized payload installation, privilege grants, ad fraud, and residential proxying. A malicious enabler is integrated into the device firmware as a platform-signed system app. After the initial boot, a native library decrypts and loads an embedded framework, which retrieves remote configuration from a C2 server disguised as a weather API and downloads additional modules. The Google Play Store is temporarily disabled to silently install a disguised payload app and grant dangerous permissions. A cover app performs ad fraud, or a no-icon app registers the device for a residential proxy service. Payloads are rotated frequently, updating hashes and visual artifacts. The threat actors utilize a system app embedded in the factory firmware alongside a remote C2 server. The specific injection phase and involved entities remain unconfirmed. Users: The firmware-resident enabler masquerades as a system component, has no launcher icon, and cannot be uninstalled through standard methods. Payload apps may resemble weather or AppLock apps; some also hide their launcher icons. Administrators: Indicators include unauthorized permission modifications by system apps, disabled Google Play Stores, silent package installations, and anomalous ad or proxy traffic. Devices preloaded with the malicious firmware are distributed and powered on. The system app successfully communicates with the C2 server and module CDN. Apply firmware updates if the vendor provides a clean version confi
Node.js makes it easy to build fast APIs, but speed and simplicity do not automatically make an application secure. Production services handle authentication tokens, user input, database queries, files, and sensitive configuration, so every layer needs deliberate security controls. The most effective approach is defense in depth. Input validation, secure headers, rate limiting, dependency management, safe error handling, and proper secret management work together to reduce the impact of common attacks. In this guide, we will build a small Node.js HTTP API that demonstrates practical security techniques without hiding the important implementation details. The goal is not just to add security packages, but to understand what each protection prevents and where it belongs in a real application. A secure Node.js application should treat every external value as untrusted. Request bodies, query parameters, headers, cookies, uploaded files, and environment variables should be validated or constrained before they reach sensitive application logic. Authentication and authorization should also be separated clearly. Authentication answers who the caller is, while authorization determines what that caller is allowed to do; confusing these responsibilities can create serious access-control vulnerabilities. Never trust a user-provided role, account ID, or permission value simply because the request is authenticated. Security headers provide another useful layer of defense. Headers such as Content-Security-Policy, X-Content-Type-Options, Referrer-Policy, and a restrictive Content-Security-Policy can reduce the impact of browser-based attacks. For APIs, rate limiting is equally important because it can slow brute-force attempts, credential stuffing, scraping, and accidental traffic spikes. Secrets should never be committed to source control. Database credentials, API keys, signing secrets, and encryption keys belong in environment variables or a dedicated secrets manager, while prod
The server reboots at two on a Saturday morning for a security update, which is what it's supposed to do. The app doesn't come back, because nobody told the process manager to start it on boot. It's a fundraising weekend. Orders keep arriving, Shopify keeps sending webhooks into nothing, and after four hours of retries it stops. On Monday the app is running again and looks perfectly healthy. It's missing two days of sales, and every seller's total is short. The two rules, and how they interact An app has five seconds to respond to a webhook. Miss it and Shopify retries — up to eight times over four hours — and if failures persist, the subscription is removed. Shopify's guidance for recovering is to re-subscribe and import the missing data. Separately, a webhook can arrive more than once after a timeout or a retry. Those two rules interact in a way that catches self-hosted apps specifically. A small server under load, writing to its ledger before it answers, can take longer than five seconds. Shopify counts that as a failure and sends the webhook again — so the app records the same order twice. Not because anything was wrong with the delivery. Because it was slow to say thank you. The fix is ordering rather than speed: acknowledge first, do the work afterwards, and make the work safe to repeat. Read together, those rules say something that should change how you design the thing: webhooks are a notification that something happened, not a guarantee you'll hear about everything. An app whose records are built only from webhooks is complete exactly as long as it has never been down. Every self-hosted app is eventually down. Reconcile against the orders So the app doesn't trust its own memory. On a schedule — daily is enough for most — it fetches the orders Shopify has for a window, compares them against what it recorded, and processes the gaps. ts /** What the app recorded when a webhook arrived. */ type Finding = /** Compare what Shopify says happened in a window with w
You add a generateMetadata function to a product page so the and Open Graph image come from your CMS instead of a hardcoded string: // app/products/[slug]/page.tsx export async function generateMetadata({ params }: { params: Promise }) { const { slug } = await params; const product = await getProductFromCMS(slug); // ~2s on a slow day return { title: product.name, openGraph: { images: [product.heroImage] }, }; } It works. You click the link in Chrome, the tab title updates, the page looks exactly right. You ship it. Two days later, someone pastes the link in Slack and the unfurled card shows your site's generic fallback title and no image — as if generateMetadata never ran. You paste the same URL into curl to debug it, and the very first chunk of HTML that comes back really does have the fallback , not the product name. Your function isn't broken. You've just met streaming metadata — a real behavior difference between how Next.js answers a browser and how it answers everything else, and it has been the stable default since Next.js 15.2. By the end of this article you'll be able to: Explain why a slow generateMetadata can look instant in a browser tab but still show stale tags to a link-preview bot or a bare curl Describe exactly which bytes Next.js sends first, and when the real and Open Graph tags actually land Use htmlLimitedBots to decide, on purpose, which clients get the blocking contract instead of the streaming one Extend parent metadata with await parent instead of refetching data a layout above you already resolved Avoid the one mistake that turns this feature into a real production liability: slow work inside generateMetadata, which still blocks every bot on your list You've shipped at least one generateMetadata function — a dynamic , an Open Graph image, something that depends on route params or a fetch. You don't need prior exposure to streaming or Suspense; this article builds the model from the response bytes up. This is written against Next.js 16.3 (v
Authentication is the part of an API contract that consumers hit first and that documentation most often gets quietly wrong. A security scheme that is defined but never referenced, a bearer token modeled as an ordinary header, or OAuth scopes that do not match the authorization server all produce a spec that renders nicely and fails at first request. OpenAPI 3.1 gives you a precise vocabulary for the mechanisms in common use, including mutual TLS; the discipline is in applying it consistently. Every authentication mechanism is a named entry under components.securitySchemes. The five types cover real-world deployments: components: securitySchemes: bearerAuth: type: http scheme: bearer bearerFormat: JWT apiKeyAuth: type: apiKey in: header name: X-API-Key clientCredentials: type: oauth2 flows: clientCredentials: tokenUrl: https://auth.example.com/oauth2/token scopes: orders:read: Read orders orders:write: Create and modify orders userOAuth: type: oauth2 flows: authorizationCode: authorizationUrl: https://auth.example.com/oauth2/authorize tokenUrl: https://auth.example.com/oauth2/token refreshUrl: https://auth.example.com/oauth2/token scopes: orders:read: Read orders orders:write: Create and modify orders oidcAuth: type: openIdConnect openIdConnectUrl: https://auth.example.com/.well-known/openid-configuration mtlsAuth: type: mutualTLS description: >- Client certificate required; accepted issuers and subject DN rules are published in the onboarding guide. A few details matter. For JWT bearer tokens, use type: http with scheme: bearer and bearerFormat: JWT; do not model Authorization as a header parameter, which hides it from tooling and code generators. For API keys, state the location explicitly; keys in in: query leak into logs and browser history and should be avoided for new APIs in favor of a header or cookie. For OpenID Connect, the discovery URL lets clients fetch endpoints and signing keys themselves. Mutual TLS became a first-class scheme in OpenAPI 3.1 with typ
A slow database query is one of the most common reasons a web app feels sluggish. Caching fixes it by keeping the answer in memory, so the next request skips the database. But the wrong caching strategy creates a new problem: users see stale prices, old profiles, or missing updates. This guide explains the four caching strategies used in production: cache-aside, read-through, write-through, and write-behind. Each one comes with Node.js and Redis code, clear trade-offs, and the failure modes to plan for. Cache-aside is the right default for most web apps. The other three solve specific problems it cannot. Strategy How it works Best for Main risk Cache-aside App checks the cache, falls back to the database, then fills the cache Read-heavy data such as products, articles, API responses Stale data until the TTL expires or the key is deleted Read-through The cache layer loads from the database itself on a miss Same as cache-aside, with cleaner application code Needs a library or provider that supports it Write-through Every write updates the database and the cache together Data that is read right after it is written, such as profiles and settings Slower writes, and memory spent on data nobody reads Write-behind Writes go to the cache first and reach the database later in batches High-volume counters such as views, likes, and analytics events Data loss if the cache fails before the flush In cache-aside, your application code manages the cache. It checks the cache first, reads the database only on a miss, and stores the result for next time. The examples below use the redis npm client. db stands in for your own data layer. import { createClient } from "redis"; const redis = createClient({ url: process.env.REDIS_URL }); await redis.connect(); async function getProduct(id) { const key = `product:${id}`; // 1. Try the cache first const cached = await redis.get(key); if (cached) return JSON.parse(cached); // 2. Cache miss: read from the database const product = await db.produc
I'm not here to tell you AI replaces on-call judgment. It doesn't. But a good large language model is a genuinely excellent rubber duck with a pattern-matching memory of every stack trace ever posted online — and when you're staring at an error at 2 a.m., that's worth a lot. The trick is having the prompt ready before the incident, so you're not composing one while production burns. Here are the ones I actually keep on hand. Copy-paste, swap in your details. One rule before we start: sanitize before you paste. Strip secrets, tokens, internal hostnames, customer data. Treat every prompt like it's going in a public pastebin, because functionally it is. You are a senior SRE. Here is an error from production: Context: . Give me: 1. The 3 most likely root causes, ranked, with why. 2. The single fastest command to confirm or rule out #1. 3. What NOT to do (actions that look tempting but could make it worse). Be concise. Assume I know the tools. The "what NOT to do" line is the one that's saved me. LLMs are eager to suggest force-flags; asking for the footguns up front surfaces them. I'm running Prometheus + Grafana. In plain English the symptom is: " ". Write 3 PromQL queries that would help me confirm or localize this, from broad to specific. Explain what each one would show and what result would point to which cause. Turning "it feels slow sometimes" into three concrete PromQL queries is exactly the gap that eats MTTR. Write a blameless postmortem draft from these notes. Blameless means focus on systems and contributing factors, never individuals. Timeline + notes: Produce: summary, impact, timeline (as a table), root cause, contributing factors, what went well, action items (each with a concrete owner-role and a specific, testable definition of done). Flag anything in my notes that's an assumption vs. a confirmed fact. That last line — assumptions vs. facts — catches the thing that quietly turns a postmortem into fiction. Review this Terraform plan output for anything
I built LocalCortex, a chat app for your own documents that runs entirely on a laptop: Ollama for the models, Qdrant for search, Postgres for chat history, no cloud APIs. You upload PDFs, Word files, or Markdown, ask questions, and get answers with sources. If the answer isn't in your documents, it refuses instead of making something up. But the app itself isn't really the interesting part. The interesting part was finding out that almost every idea that sounded like "yeah, this should definitely make it better" either did absolutely nothing, made things worse, or required way too much digging through numbers just to figure out whether it helped at all. So I wrote the eval before most of the features, and I kept a log of every experiment I tried. This post is the short version of that log. The final result: on a production-style run of 62 questions, reading every single answer by hand, 61 were correct (98%) and all 14 off-topic prompts were properly refused. Speed-wise, the median answer time was 48 seconds per query. Not exactly fast, but that's pretty much what you sign up for when you're running Llama 3 on a CPU. Here's what got it there, and what didn't. Two eval sets: a hand-written 20-section employee handbook with 58 questions (including near-duplicate "distractor" sections designed to confuse retrieval), and a larger 4-document, initially 208-chunk policy corpus with 55 questions. Metrics: Recall@1/3/5 and MRR for retrieval, a hallucination stress test for refusals, and later a hand-graded answer check. Models: nomic-embed-text for embeddings, llama3 8B for generating the final answer, both through Ollama. 1. Hybrid search didn’t improve overall rank-1 retrieval Everyone says to add BM25 next to your embeddings. I did. The handbook results: Hybrid: 54/58. Dense: 56/58 correct at rank 1. After hardening keyword matching, abbreviation handling, ranking, and relevance filtering: 55/58. My theory was that the handbook was too small for BM25 to help, so I built t
Ivanti urged customers on Tuesday to immediately patch an actively exploited zero-day vulnerability in the Ivanti Connect Secure (ICS) remote access gateway. [...]
title: "MongoDB Indexing Strategies: ESR Rule, Explain Plans, and Performance Tuning" Indexes are foundational to scalable query performance in MongoDB. Without proper indexing, MongoDB must perform a collection scan (COLLSCAN), inspecting every document in a collection to satisfy a query. As collections grow into millions of documents, unindexed queries introduce severe latency spikes and saturate I/O subsystems. This guide explores production-grade MongoDB indexing strategies. We will examine single-field indexes, compound indexes, the Equality, Sort, Range (ESR) rule, how to dissect execution stats via explain(), and strategies for managing index storage overhead. A single field index operates on a single field of a document. MongoDB creates an ascending index (1) by default, though descending (-1) indexes are also supported. Because MongoDB indexes are structured as B-trees, single-field indexes support fast equality matches, sorting, and range queries on that specific field. // Create an ascending single-field index on the 'email' field db.users.createIndex({ email: 1 }); While single-field indexes accelerate reads, every write operation (insert, update, delete) requires MongoDB to update the corresponding index entries. Maintaining too many single-field indexes on a high-throughput write collection can severely degrade write performance. A compound index involves multiple fields within a single index structure. When designing compound indexes, field ordering is critical because a compound index can serve queries that match a prefix of the index. To maximize the efficiency of compound indexes, adhere to the ESR Rule (Equality, Sort, Range): Equality: Place fields that use equality match conditions first. These fields narrow down the dataset immediately. Sort: Place fields for sorting next. The index can satisfy the sort order before scanning ranges. Range: Place fields that use range conditions (e.g., $gt, $lt, $in, regex) last. Range queries limit the index's
The bottleneck in AI is no longer algorithms. It's electricity. That sounds like an energy-industry talking point, but if you build on top of AI infrastructure — training jobs, inference fleets, GPU-backed services — it's already shaping your work: where you can deploy, which regions actually have capacity, and why your cloud provider keeps announcing power purchase agreements instead of new regions. Here's the state of play. Hyperscalers are racing to train larger models and run autonomous agents at scale, and the physical systems behind that compute have become the industry's defining constraint. The US grid — strained by decades of underinvestment and retiring baseload generation — is now absorbing demand growth driven almost entirely by data center expansion. The numbers that should matter to you as an engineer: A single next-generation GPU cluster can draw as much power as a small city. Utility interconnection queues in the major data-center hubs (Northern Virginia, Phoenix, Columbus Ohio) routinely stretch beyond three years. High-voltage transformers now carry global lead times over two years, bottlenecked on specialized electrical steel. Liquid cooling — once a supercomputing niche — is becoming baseline for racks running Nvidia's Blackwell architecture and beyond, because air cooling can't handle the thermal load. The consequence is structural, and it flips a decade of assumptions: securing megawatts now dictates where a facility gets built, not the other way around. Operators are going "behind the meter," generating power on-site to bypass utility queues entirely. Bloom Energy's solid-oxide fuel cells (running on natural gas or hydrogen) are one route; small modular nuclear reactors, backed by major cloud providers through power purchase agreements, are another. Data-center engineering used to mean cooling efficiency and server density on top of a utility contract. Now power procurement is the engineering. This changes practical decisions downstream. Regio
I used to treat the load test as the finish line. Run k6 against staging, watch p95 stay under target, screenshot the graph, drop it in the release channel, and Ship! That ritual felt like engineering, but mostly it was a permission slip. The incident that broke the habit We had a notification service that comfortably handled 3x our peak in tests. One evening, with completely normal traffic, it went down. Nothing spiked. Our email provider just started answering in 900ms instead of 150ms. Workers held each job longer, the queue backed up, our retry logic piled on top of the slow calls, and within minutes the whole thing was underwater. The load test was never wrong. It just answered a question production was never going to ask. What's the difference between performance testing and performance engineering? Performance testing tells you whether a system hits a number under conditions you chose. Performance engineering is keeping it reliable under the conditions you didn't choose, for as long as it runs. That's the heart of the performance engineering vs performance testing debate, and once it clicked for me, I stopped reading a green load test as proof of anything beyond that day. What changed on our team We started from failure instead of throughput. Before building anything, we list every dependency on the critical path and write down what happens when it gets slow, not just when it goes down. Slow is the one that hurts. We set up tracing properly, so when latency climbs, we can see which hop is responsible instead of guessing from a single average. We also stopped looking at averages. p99 is where your angry users live. We added fallbacks and actually test them. If the template service is struggling, we send a plain-text email instead of nothing. Once a sprint, someone injects latency into a dependency in staging while the team watches, so we learn how things break on a calm afternoon rather than at midnight. And every service got an error budget. Burn through it,
A research paper is a terrible interface to research. Read the AlphaGenome paper — the one about predicting variant effects — and try to use it. You will clone a repo, fight dependency versions for an afternoon, guess which notebook cell holds the actual method, and hand-translate the figures back into numbers. The paper describes the science. It refuses to do the science. A Stanford team — Jiacheng Miao, Joe R. Davis, Yaohui Zhang, Jonathan K. Pritchard, and James Zou — published the fix in Nature on September 16, 2026: Paper2Agent, an automated pipeline that converts a research paper into an MCP agent that reruns the paper's own methods on demand. You ask in English. It calls verified tools. You get the answer and the code that produced it. The headline run: 100 computational biology papers in, 74 converted into working agents, 599 tools extracted, 593 passing automated validation. And the agents beat the obvious alternative — handing Claude the same repos directly — 91.2% to 82.7% on 300 benchmark questions. A paper is a cookbook: ingredients listed, steps described, a photo of the finished dish. Every reader rebuilds the kitchen from scratch — different ovens, missing spices, a step the author forgot to write down. Half the time dinner fails and nobody knows why. Paper2Agent turns the cookbook into a chef you can talk to. "Make me the variant-effect prediction for this mutation." The chef doesn't summarize the recipe — it runs the kitchen, hands you the dish, and shows you the exact steps it followed, verified against the original photo. The key insight: an LLM that has read a repo is a worse scientist than an LLM that can call the repo's verified functions. Reading is fuzzy. Calling is exact. Paper2Agent takes a paper and does the whole miserable setup job itself: Locate the codebase — find the repo, the notebooks, the docs linked from the paper. Build an isolated environment — a sandbox where dependencies get installed and pinned. Scan the tutorials — harvest
ChainDrop Had Valid Provenance. That Was Not Enough. Attackers hijacked the GitHub account behind the keyv library to ship poisoned npm releases. The releases carried valid provenance, signed by GitHub Actions. Once installed, the payload raided machines for cloud and registry tokens, then spread worm-like to other maintainers. Four hundred packages. Two billion installs. The signature was real. The signer was compromised. Provenance tells you who signed a package. It does not tell you whether the signer should be trusted right now. When a maintainer's GitHub account is hijacked, every subsequent release carries a valid signature from a compromised source. The cryptography is working exactly as designed. The trust assumption underneath it is broken. This is not a new pattern. It is the same mechanics behind every supply-chain attack: the signing infrastructure is intact, the human behind it is not. Before the commit: rsscan. ChainDrop's payload steals cloud tokens, registry tokens, and GitHub PATs from infected machines, then uses them to spread. If the worm tries to exfiltrate those tokens through a git commit, a pre-commit hook that scans for credentials stops it cold. RSSCAN is our free, local pre-commit hook. It detects 49 credential patterns (AWS keys, GitHub PATs, Stripe secrets, private keys, LLM provider keys) and blocks the commit before the secret enters git history. No account, no API key, no network call. Your source code never leaves the machine. A CI check only sees the secret after push. By then it is in history and has to be rotated. The pre-commit hook is the point. After the publish: package reputation. For consumers of npm packages, the question is different: is this version safe to install? Valid provenance does not answer it. Threat intelligence does. A package reputation check compares the package name and version against known-malicious indicators: versions published from hijacked accounts, packages with sudden maintainer changes, typosquat va
A frontier-class model used to mean a rack of data-center GPUs. That assumption is what this post takes apart. POCKET-Darwin-180B-GGUF is a 4-bit build of Darwin-180B-RSI, a 180-billion-parameter model, packaged so it runs without a GPU. It ships as GGUF on Hugging Face and on ModelScope. The headline numbers, all measured in October 2026: Size: 111 GB (4-bit GGUF, 4 files), down from 360 GB (BF16, 131 files) CPU only: a single server CPU (16 threads) generates 18.4 to 21.0 tokens/s, peak memory 78.8 GB Laptop: an RTX 5060 Laptop (8 GB VRAM) with 32 GB RAM runs it at 4.17 tokens/s Mini PC: a 128 GB-RAM mini PC holds the whole model in memory, no GPU Accuracy: MMLU-Pro, 2,000 questions, paired comparison, 87.65% original vs 87.65% quantized TL;DR A 180B mixture-of-experts model activates only about 3B parameters per token. Combine that sparsity with a 4-bit quantization that keeps the small fraction of the weights that actually changed during training at high precision, and you get a model that fits in laptop-class memory and still answers like the full model. You run it with llama.cpp in one command. This post explains why it works and how to reproduce it. Two things make this possible, and neither is magic. First, the architecture is sparse. Darwin-180B is a mixture-of-experts (MoE) model: 512 expert sub-networks, of which only 10 are selected per token. Of the 180B total parameters, roughly 3B are active for any given token. The dense parts (attention, routing, embeddings) run every step; the expert weights are read on demand. llama.cpp can memory-map the file and let the operating system page expert tensors in and out, so you do not need all 111 GB resident at once. On a 128 GB mini PC the whole thing sits in RAM; on a 32 GB laptop the OS pages against the GGUF file on disk, which is why the laptop is slower but still runs. Second, the quantization is selective. The build starts from a community-verified 4-bit quantization of the base weights. On top of that, onl
My unit tests were green. My integration tests were green. The feature was broken in a way that produced no error, no warning, and no visual clue that anything was wrong. The feature was a CSS difference blend mode, used to compare a design mockup against a live page: matching pixels turn black, so only the differences light up. Mine turned nothing black. It looked exactly like normal mode, and I lost about a week to it. The cause was one line of CSS, and the reason no test caught it is the interesting part. Here is the overlay, simplified. A closed shadow root holds an image positioned over the page: #overlay-host { position: absolute; z-index: 2147483647; /* stay above the page */ } .overlay-image { mix-blend-mode: difference; } That looks fine. It is not. mix-blend-mode blends an element with its backdrop — but only within its own stacking context. And z-index on a positioned element creates a stacking context. So the host became a sealed box, and the image blended against the empty space inside that box instead of against the page underneath. The result isn't an error. It isn't even visibly wrong unless you know what difference should look like. The image just renders normally, as though you never set the property. The same applies to opacity below 1, filter, transform, isolation, backdrop-filter, mask, contain: paint and will-change of any of those. Any one of them on an ancestor silently disables blending. On a page you don't control — which is the entire premise of a browser extension — any of them might arrive from the site's own CSS. The fix was to stop creating a stacking context on the host and move z-index onto the children that actually need it: #overlay-host { position: absolute; /* No z-index, transform, opacity, filter, isolation or contain here: any of them creates a stacking context and silently kills blending. */ z-index: auto; } .overlay-image { z-index: 2147483646; mix-blend-mode: difference; } Plus a MutationObserver re-pinning those properties
If your infrastructure is a handful of cloud accounts managed by two to five engineers, all three tools will work, and the deciding factor is almost never the language. Pick Terraform if you want the largest pool of copy-pasteable modules and vendor docs that assume your exact binary. Pick OpenTofu if the BUSL license or HashiCorp's ownership is a procurement or philosophical problem, or if you want client-side state encryption without buying a managed backend. Pick Pulumi only if you have real logic to express — loops over external API data, generated resources, shared code with your application — and you accept that your IaC becomes a program other people have to read. The rest of this post is the part that actually bites: state handling, the migration path if you change your mind, and where each tool costs money. Terraform was MPL-licensed open source until August 2023, when HashiCorp moved it to the Business Source License (BUSL 1.1). That license restricts production use that competes with HashiCorp's offerings. For most small teams running their own infrastructure, the BUSL grant is fine — you are not a competing IaC vendor. The fork happened anyway: OpenTofu is a Linux Foundation project, a direct descendant of Terraform 1.5.x, and it stayed on MPL 2.0. HashiCorp was subsequently acquired by IBM (the deal closed in early 2025), which is the kind of change that makes legal teams want a written answer. Pulumi is in a separate category. Same declarative model, same provider ecosystem (it bridges Terraform providers), but your definitions are TypeScript, Python, Go, C#, or Java instead of HCL. Takeaway: the license split is a real procurement question, not a tribal one — but it only decides the matter if someone in your company actually has to sign off on it. Every small team I have worked with hits the same wall in the same order. Not HCL syntax. State. The classic symptom, usually the first time two CI jobs overlap: Error: Error acquiring the state lock Error m
Homa: el protocolo que está revolucionando el entrenamiento distribuido de IA Cómo pasar de TCP a Homa en AWS, Azure y on‑premise y reducir la latencia de los gradientes en hasta un 80 % ¿Cansado de que la sincronización de gradientes sea el cuello de botella de tus entrenamientos distribuidos? En los últimos meses Homa ha pasado de ser un proyecto de investigación a la solución preferida por equipos de ML que entrenan modelos de cientos de miles de millones de parámetros. Desde que el artículo que lo describía se volvió viral en Hacker News, las búsquedas de “Homa protocolo IA” han explotado y los primeros benchmarks ya demuestran reducciones de latencia de 2 ms a menos de 0.4 ms en redes de 25 GbE. En este artículo tienes una guía paso a paso (≈ 2 900 palabras) para entender la arquitectura de Homa, ejecutar los benchmarks oficiales y, lo más importante, desplegarlo en tu clúster sin romper nada. Al final encontrarás scripts listos para copiar, listas de verificación y ejemplos de código en Python y Bash que te permitirán migrar de TCP a Homa en menos de una hora. Característica TCP QUIC Homa Modelo de transporte byte‑oriented byte‑oriented sobre UDP message‑oriented y credit‑based Control de congestión TCP‑Cubic, ACKs cumulativos TCP‑Cubic adaptado a UDP Homa‑CC (optimizado para bursts de gran tamaño) Head‑of‑line blocking Sí Sí (aunque mitigado) No: los chunks pueden enviarse en paralelo Overhead de retransmisión Alto (RTO) Medio Bajo (retransmisión por chunk fallido) Ideal para tráfico genérico HTTP/3, juegos Entrenamiento distribuido de IA En pocas palabras, Homa rompe el paradigma de enviar bytes uno tras otro y, en su lugar, reparte créditos a cada flujo. Cada mensaje grande (por ejemplo, un tensor de 200 MB) se divide en varios chunks que viajan simultáneamente. Si un chunk se pierde, solo ese fragmento se retransmite, evitando que todo el flujo se quede bloqueado. Métrica TCP (baseline) Homa (OpenHoma 1.2) Mejora Tiempo total de entrenamiento (ResNet‑50, 8
TL;DR — Most production guardrails are a second LLM judging the first one's output — which means your safety layer has the same blind spots, the same jailbreak surface, and the same hallucination risk as the thing it's supposed to contain. Real safety engineering treats ML guardrails as advisory signals and puts the actual enforcement in deterministic code: schemas, allowlists, circuit breakers, and sandboxed side effects. This piece argues for borrowing distributed-systems discipline instead of stacking more probabilistic judgment on top of probabilistic generation. Open the guardrails config of most production LLM systems and you'll find the same pattern: a classifier model, usually another LLM, sitting between the generator and the user. It checks for toxicity, jailbreaks, PII, prompt injection. If it flags something, the response gets blocked or rewritten. Teams call this a safety boundary. It isn't one. It's a second model guessing at the same problem the first model already failed to solve, and it inherits the same failure modes. This matters because "guardrail" implies something structural — a wall, a rail, a hard limit. What most teams have actually built is a second opinion. And a second opinion from a system with the same architecture, the same training data distribution, and the same susceptibility to adversarial phrasing is not independent verification. It's correlated risk wearing a safety costume. Here's the uncomfortable symmetry: if a jailbreak prompt can manipulate a generator model into producing harmful output, there is no strong reason to believe a same-family or similarly-trained classifier model can't be manipulated into misjudging that same output as safe. Jailbreak techniques routinely transfer across models precisely because they exploit shared properties of how transformer-based language models process instructions — not quirks unique to one checkpoint. Red-teaming literature keeps confirming this: adversarial suffixes and prompt-injection
GitLab warned users today to immediately patch a maximum-severity vulnerability in the CI/CD Regular Expression Compiler that could let remote attackers run arbitrary code on targeted instances. [...]
QR-code login looks safe. You scan a code, approve on your phone, and the computer is signed in. No password typed, nothing to phish. We run ClientN, an anonymous sign-in service, and our own QR flow had the same hole most QR logins have. This post is about what that hole was and the four changes we shipped to close it. The attacker opens a real website that uses ClientN and starts a sign-in. The site shows a QR code and a short match code. The attacker copies that QR code onto a page they control: a fake "scan to claim your reward" page, a fake support chat, anything. The victim scans it. Their phone opens the real ClientN page, on the real domain, with a valid TLS certificate. They see a match code, and the fake page shows the same one, because the attacker copied it. The victim approves. The website signs in the attacker's browser, because that is the browser that started the request. Nothing was faked on our side. The victim approved a real request, just not one they started. Match codes don't help when the attacker can show the same code. Passkeys don't help either: the passkey proves the victim is the victim, not that the victim is sitting at the computer that asked. There was a second, smaller problem. If you were already signed in to ClientN, approving a website was one tap on "Confirm". No fingerprint. Anyone holding your unlocked phone could approve sign-ins. Approving a website sign-in now always asks for the passkey again, and the WebAuthn challenge is tied to that one sign-in request. Having a ClientN session cookie is no longer enough to approve anything. When the person signs in on the same device, the site redirects to ClientN and ClientN redirects back. This works much like OAuth's PKCE: When the site creates the request, it sends a code_challenge (a SHA-256 hash of a random secret it keeps). After approval, ClientN redirects back to the site's registered return address with a one-time code. The site swaps the code at POST /api/v1/sessions/{id}/exch
Most quality checks run after bad data is already live. You load the table, then test it, then prove the data is good The three steps Write — build the new data into a staging location consumers can't see: a temp table, a separate schema, or a zero-copy clone/branch of the target. Audit — run your quality gates against that staged copy: uniqueness at the grain, row-count vs baseline, freshness, reconciliation against a trusted source. Publish — only if every check passes, promote the staged data to production with an atomic swap (a rename or clone-swap), so consumers flip from old-good to new-good with no bad state in between. If a check fails, nothing is published; production keeps serving the last known-good data while you investigate. Consumers never see bad data. The failure mode becomes "today's refresh is delayed," not "the dashboard is wrong." Stale-but-correct beats fresh-but-wrong almost every time. The swap is atomic. No window where half the table is updated and queries see a mix. Rollback is trivial. The previous version is still right there; promoting it back is one operation. The pattern used to be expensive — you'd copy the whole table. Modern warehouses make it nearly zero-copy clones and table/catalog branching: you stage on a clone, audit it, Wire the audit step to the same tests you already write (dbt tests, a data-quality scan) and let Validate on a staged copy and publish only what passes — consumers never see bad data. Promote with an atomic swap so there's no half-updated state, and rollback is one step. Zero-copy clones and branching make WAP cheap enough to be the default. Reframe loads as "propose a version"; a passing audit is what makes it live.
Microsoft Puts a Petaflop on Your Desk: Windows Goes All-In on Local AI For two years, the loudest argument in personal computing has been about where AI should actually run: in distant data centers humming with GPUs, or right on the machine in front of you. On October 7 in San Francisco, Microsoft picked a side — emphatically. At a packed Windows and Surface event headlined by CEO Satya Nadella, Windows and Devices chief Pavan Davuluri, and Nvidia CEO Jensen Huang, the company laid out a vision of the PC as a self-contained AI machine: one capable of running frontier-class models, coding agents, and entire agentic workflows without ever touching the cloud. The centerpiece is Nvidia's RTX Spark superchip, a Grace-Blackwell design that fuses a 20-core Grace CPU with a Blackwell RTX GPU and up to 128GB of unified shared memory, delivering roughly one petaflop of FP4 AI performance. In practical terms, that is enough horsepower to run models exceeding 120 billion parameters — think DeepSeek- or Llama-class systems — locally on a laptop or small desktop, with no network connection required. Microsoft's flagship consumer offering is the Surface Laptop Ultra, its most powerful Surface ever. The 15-inch machine pairs the RTX Spark SoC with up to a 6,144-core Blackwell GPU, up to 128GB of LPDDR5x unified memory, a 2,000-nit mini-LED PixelSense Ultra display, and the largest trackpad Microsoft has ever shipped. It starts at $2,599 and ships October 16. For developers, Microsoft showed off the Surface RTX Spark Dev Box: a $5,999 anodized aluminum machine pre-loaded with a developer-optimized build of Windows 11 configured for local AI development, claiming the same one-petaflop compute in a compact desktop form factor. Crucially, Microsoft is not going it alone. A wave of partner RTX Spark Windows PCs — including the ASUS ProArt P16 and P14, Dell XPS 16 Creator Edition, HP OmniBook Ultra 16, Lenovo Yoga 9n 2-in-1, and MSI Prestige N16 Flip AI+ — opened for pre-order at the ev
How to Implement Human-Above-The-Loop AI Governance Programmatically A practical, code-first architectural breakdown of moving from subjective human review to deterministic execution gates, policy engines, and statistical circuit breakers. In enterprise AI systems, almost every governance framework relies on a comfortable phrase: Human-in-the-Loop (HITL). The concept sounds intuitive: an autonomous AI agent proposes an action, an internal employee reviews the proposal, clicks "Approve," and the system executes the state change. In real-world production, this model collapses under Approval Fatigue. When an agentic system executes hundreds of database writes, API calls, or payment reconciliations per hour, humans stop conducting forensic audits. They skim, experience alert fatigue, and convert into expensive rubber stamps. Rather than creating a safety guardrail, HITL creates an artificial latency bottleneck and a human scapegoat for unmonitored probabilistic execution. The architectural alternative is Human-Above-the-Loop (HATL): Humans write the policy once (defining immutable business invariants, hard limits, and escalation tripwires). Deterministic software enforces those invariants on every single cycle in sub-millisecond runtime. Humans are only awakened when an invariant explicitly calls for judgment (ESCALATE) or when a safety circuit breaker trips (HALT). Below is a step-by-step engineering breakdown of how to implement this architecture in pure, zero-dependency Python. Important Architectural Disclaimer: The implementation detailed below is a standalone Proof-of-Concept (PoC) engineered to demonstrate runtime execution gating. It is not designed as a drop-in production package; production environments require distributed lock managers (e.g., Redis Redlock), persistent relational transactions (PostgreSQL ACID isolation), cryptographic audit trails, and strict idempotency keys. To govern an autonomous agent without human micromanagement, execution must pass th
Why We Evaluated These Embedding Models Embedding selection looks reversible until a production index contains tens of millions of vectors. At that point, changing the model can mean re-reading every source document, reproducing the original chunking pipeline, paying for another embedding pass, building a second index, and switching traffic without mixing incompatible vector spaces. That operational commitment—not a leaderboard position—was why we evaluated Voyage 4, Cohere Embed v4, and NVIDIA Nemotron 3 Embed. The three options represent materially different deployment choices: Voyage 4 is a managed, text-focused family with selectable dimensions and quantized output formats. Cohere Embed v4 is a managed multimodal model for text, images, and mixed documents. Nemotron 3 Embed is positioned as an open-weight, self-hosted family where licensing cost is replaced by GPU and operations cost. Under the hood, each model converts documents and queries into vectors that an index compares by cosine similarity, dot product, or an equivalent distance function. The implementation details differ, but the production contract is the same: document and query preprocessing must remain stable, dimensions must match, and we need continued access to a query encoder compatible with the stored vectors, rather than necessarily the exact model version originally used. We found an immediate problem with the public comparison narrative. The available benchmark figures were not generated on one common evaluation suite. The Nemotron 3 figures we examined included 78.46 on RTEB and 75.45 on MMTEB Retrieval for the 8B checkpoint. The 1B checkpoint was listed at 72.38 RTEB and 71.04 MMTEB Retrieval. Figures circulating for Voyage and Cohere were general MTEB aggregates, not directly comparable RTEB runs. We therefore refused to place those values into a single “winner” ranking. A 78.46 retrieval score and a roughly 67 general MTEB aggregate do not measure the same thing. MTEB can blend retrieval