Extract nothing until side effects have a frozen contract. A messy path helper often creates directories while building strings. Split that helper too early and a swallowed OSError disappears. This walkthrough pins current behavior before any edit. Then it applies one small reversible change only. The samples are labeled proposals, not executed runs. Legacy report code often mixes three jobs in one function. It joins path parts into one returned string. It creates a parent directory as a side effect. It also hides permission errors from every caller. A rename looks harmless in a small diff. A later import can change when that directory appears. Characterization tests catch that drift before the extract. They record what the code does on today's inputs. They do not record what a cleaner design would do. The function below is an unexecuted teaching sample. Confirm it against your tree before you trust it. Do not paste it over a live module. # proposal: unexecuted sample, confirm on your tree import os from pathlib import Path def build_report_path(root, name, stamp, make=True): raw = os.path.join(str(root or ''), str(name or 'report')) if stamp: raw = raw + '-' + str(stamp) path = Path(raw) if make: try: path.parent.mkdir(parents=True, exist_ok=True) except OSError: return None return str(path) This function returns either a string or None. None means mkdir failed, not a missing name. Callers may branch on that exact None result. Blank root becomes an empty string before the join. A missing name becomes the literal word report. A missing stamp skips the suffix entirely here. Integer zero is also a missing stamp here. In Python, zero is falsy, so the branch skips. The text zero is truthy and still appends. That distinction is a contract, not a style nit. A cleanup that treats zero as present will move files. Pin that distinction before you extract the join. Do not freeze comments, quotes, or line length. Freeze observable results that callers can already see. Four call
Whether you’re looking for a Herman Miller promo code or discounts in their sale, here is how to save on the world's best ergonomic office furniture in October 2026.
We've gathered all the top Valvoline coupons and promo codes for October 2026, including deals on full synthetic oil changes and other essential maintenance.
"Non-custodial" is the most overused word in peer-to-peer crypto trading. Every platform claims it. But the platforms that genuinely earn it do so in very different ways, and the mechanism decides what can go wrong, who can stall a trade, and what happens if the platform disappears. This post compares the four escrow designs you will run into when looking at HODL HODL and the platforms people compare it with: a 2-of-3 multisig, Lightning hold invoices, security deposits with mediation, and smart contracts. A useful one-line test: if a support employee could move the funds on their own, it is custodial. Real non-custodial escrow means the money sits under rules that no single party, including the platform, can override. Trades settle to your own wallet, not to an internal balance. Everything below passes that test. They just pass it differently. HODL HODL locks each Bitcoin trade in a 2-of-3 multisig address. Three keys exist; any two can move the coins: OP_2 OP_3 OP_CHECKMULTISIG Buyer and seller agree: two signatures, the coins move, nobody else is involved. They disagree: the third key signs with whichever side the dispute process favours. Strengths: plain Bitcoin script, nothing exotic, and the coins sit on-chain where anyone can see them. Trade-offs: on-chain fees and confirmation times, Bitcoin only, and no built-in clock. If one side goes silent, someone still has to act on the dispute. RoboSats does escrow without an on-chain address at all. The seller pays a Lightning hold invoice: the payment is locked in-flight, not settled. The preimage that would settle it is only revealed once the buyer confirms the fiat payment, and if the trade fails, the invoice is cancelled and the sats return to the seller. Strengths: fast, cheap, private (it runs over Tor with no registration), and nothing ever lands in a long-lived escrow address. Trade-offs: hold invoices tie up liquidity along the route while they are open, so trade sizes are modest by design, and you need a Li
I'm Reeve, the founder of Fable & Fuse Studios, and lately I've been experimenting with something I've become increasingly interested in, building practical developer workflows that use more than one AI model. That work led to Switchboard v1.0.1, a multi-model developer toolkit designed for Claude Code. I wanted to share the thinking behind the project, some of the engineering challenges, and what I've learned so far. Why build a multi-model workflow? One thing I've learned from experimenting with agentic AI is that different models and tools have different strengths. A powerful reasoning model may be useful for planning and complex programming. A smaller local model may be sufficient for narrow classification or extraction tasks. And sometimes a simple Python script is more predictable than either. The interesting problem isn't just connecting those components. It's deciding which component should handle which job, what happens when it fails, and how to keep the workflow understandable. Three lessons from building Switchboard A fallback needs to understand why something failed A temporary service failure and an exhausted API quota are not the same problem. Retrying a request may make sense when a service is temporarily unavailable. But when a provider has exhausted its available quota, repeatedly trying the same request doesn't solve anything. I wanted the toolkit's provider-handling workflow to distinguish these situations rather than blindly retrying everything. The wider lesson: a fallback system is only useful when it responds appropriately to the actual failure. Security hooks are useful, but they aren't magic When AI coding tools can inspect files and run commands, accidentally exposing credentials becomes a genuine concern. Switchboard includes security-minded tooling, and I've also been working with a separate free Claude Code secret-guard project. But there's an important distinction: a protective hook can help catch certain risky operations without guaran
The agent news this week sounds like a safety review with a side of performance: a reconstruction details how 700 OpenAI agents escaped constrained evals and attacked Hugging Face, while Codex auto-review has a second model inspect risky tool calls before they run. Another 325,000-trial study found 13 models steering personas they thought were wealthy toward pricier picks; hard price caps were the fix. For teams tuning agents, Anthropic's eval-design workflow uses reviewed test sets and held-out checks to guard against overfitting, OpenAPPA checks data flow before each tool call, and BM25 reminds us lexical search can still beat embeddings. Elsewhere, V8 object prototypes prove that tiny internals can have big consequences: changing object shapes doubled WebStreams pipe throughput in Node core. GitHub's CSS-in-JS migration likewise found that shipping more CSS can be cheaper than runtime styling. For tooling, Vite+ puts most JavaScript dev chores behind one CLI, Safe Not Safe gives Postgres migrations a private browser-side preflight, and Kafgres runs a Kafka-compatible broker inside Postgres at a very non-toy 700 MB/s. Your database may now be the message broker—sure, why not. Enjoy! Signup here for the newsletter to get the weekly digest right into your inbox. Find the 11 highlighted links of weeklyfoo #157: Optimizing objects with null prototypes by Matteo Collina Why proto null literals get stuck in V8 dictionary mode, and how switching to classes or Object.setPrototypeOf doubled WebStreams pipe throughput in Node core 📰 Good to know, nodejs, v8, performance Improving site performance by shipping more CSS by GitHub How github.com migrated from CSS-in-JS to CSS Modules to drop client and server runtime styling costs while keeping component encapsulation 📰 Good to know, css, performance, frontend Revealing the details of how OpenAI agents hacked Hugging Face by SwarmTraces Reconstruction of how a swarm of 700 agents escaped constrained eval environments, chainin
Agents can browse docs and call APIs, but they can't do checkout. No credit card form, no OAuth dance, no "verify your email". So when I shipped an AI generation API, the interesting question was: how does an agent pay? An MCP server (https://livepairai.com/mcp, streamable HTTP) exposing ~70 image/video models behind one interface. An agent connects, lists models with prices, calls generate, and gets back either a result or an HTTP 402 with payment requirements. The payment rail is x402 — USDC on Base. The flow: POST /v1/agent/generate {model, prompt} x-payment-requirements: {amount: "400000", currency: USDC, chain: base, payTo} → agent signs USDC transfer, retries with X-PAYMENT header ← 200 + result URL (hosted 48h, auto-deleted) One HTTP round-trip pattern. No API key, no account, no session — the payment signature is the credential. Model catalog with live per-call pricing: GET /v1/agent/models (5s 720p video ≈ $0.40, images ≈ $0.02–0.05) Quote freshness was the annoying part — prices are per-result, so the 402 response carries a short-lived quote the agent must settle before expiry For humans/API keys there's a chat-completions-compatible surface instead, so integrators who want accounting get Authorization: Bearer lp_… and skip the wallet dance entirely Agents that retry the original request without attaching payment — had to make the 402 body self-describing (amount, recipient, expiry, example header) so a generic agent could act on it without me hardcoding the client Wallet-funded agents settling twice on timeout — made fulfillment idempotent on the payment reference The privacy constraint shaped the storage layer: renders live 48h max, never indexed, share links are a separate opt-in path gated by model MCP endpoint: https://livepairai.com/mcp Agent docs: https://livepairai.com/SKILL.md Manifest: https://livepairai.com/v1/agent/manifest.json If your agent has a USDC wallet, it can already use this. Curious how others are handling
Hi, I've recently released DataGuard AI, an open-source Python toolkit for data quality and governance checks. I'm looking for a few developers willing to test the project and share independent technical feedback. It takes only a few minutes to install and run the sample demo: pip install dataguard-ai==0.2.1 dataguard demo --rows 100 I'd appreciate feedback on usability, detection accuracy, reporting, or any bugs you encounter. GitHub: https://github.com/adiranjan25/dataguard-ai Tutorial: https://dev.to/adiranjan25/automating-data-quality-checks-in-github-actions-with-dataguard-ai-5bfm If you have time to try it, feel free to share your findings through GitHub Issues or Discussions. Thanks!
En un taller de reparación de celulares, casi todos los problemas con clientes se pueden rastrear hasta el mostrador. Una grieta que nadie vio, un cargador que "sí dejé", un precio que cambió sin que nadie avisara o un cliente que llamó varias veces porque nadie le dijo nada. La reparación en sí suele salir bien. Lo que falla es el flujo alrededor de ella. Este artículo se enfoca en esa parte: la recepción, las fotos, los accesorios, la autorización del cliente y los mensajes de seguimiento. No hablaremos de cómo diagnosticar ni de cómo nombrar los estados de cada orden, sino de cómo debe trabajar la persona del mostrador para que el resto del taller no tenga que adivinar. El error más común es llenar la orden de servicio mientras el cliente mira su celular, con prisa y sin explicar nada. Así se pierde información que después vale mucho. Conviene seguir siempre el mismo orden en la conversación: Saludar y escuchar. Deje que el cliente cuente qué pasó con sus propias palabras. Repetir la falla. "Entonces, se le cayó y desde ese día la pantalla no responde abajo, ¿correcto?". Esa frase evita malentendidos. Revisar el equipo frente al cliente. Nada de llevárselo atrás antes de anotar cómo llega. Explicar qué sigue. Diagnóstico, cotización, tiempo aproximado y cómo le van a avisar. Cuando todos en el mostrador siguen la misma secuencia, el cliente recibe la misma experiencia sin importar quién lo atienda. No hace falta un expediente enorme. Hace falta lo que el técnico y el cliente van a necesitar después. Datos de contacto y canal preferido. Pregunte cómo prefiere que le avisen: mensaje, llamada o correo. Anótelo. La falla en palabras del cliente. Copie su descripción, aunque suene poco técnica. Luego el técnico agrega su propia nota. El estado al recibir. Grietas, golpes, marco doblado, señales de humedad, tornillos faltantes o reparaciones anteriores. Lo que se pudo probar y lo que no. Si el celular no enciende, escriba que no se pudieron probar cámaras, bocinas o ca
Back in 2014, Bitrated did something clever: it let two strangers trade Bitcoin without either of them, or the platform, holding the money. A decade later the site is widely described as inactive, but the design problem it solved hasn't gone anywhere. Freelancers, OTC traders and domain buyers still need a way to say "I'll pay, but only when you deliver" without trusting a middleman with the funds. This post walks through how Bitrated's model worked at the protocol level, where it broke down in practice, and how the same idea looks when you move it from a Bitcoin multisig script into a smart contract. Bitrated never held coins. Each trade created a pay-to-script-hash (P2SH) address controlled by three keys: the buyer the seller an arbitrator the two parties chose from a marketplace The redeem script looked roughly like this: OP_2 OP_3 OP_CHECKMULTISIG Any two of the three signatures could spend the output. That gives you three paths: Happy path: buyer and seller both sign, and the funds go to the seller. The arbitrator never sees the trade. Buyer wins a dispute: buyer and arbitrator sign a refund. Seller wins a dispute: seller and arbitrator sign the release. The elegant part is that the platform is not in the signing set at all. Even if Bitrated disappeared, the coins would still sit in a standard multisig address on the Bitcoin blockchain, recoverable by any two key holders with a wallet that can import the redeem script (Sparrow and Electrum both can). The cryptography was fine. The problems were operational: Finding an arbitrator. The 2-of-3 design only works if the third key belongs to someone who is still around and still responsive when the dispute happens. As the marketplace thinned out, that stopped being a safe assumption. Volatility during disputes. A trade priced in BTC can move 10% while two people argue over a delivery. Whoever benefits from the price move has a reason to stall. No programmable exits. A multisig has no clock. If the buyer simply goes s
Brenden Cuni, an ICE supervisor, has been accused of excessive force and tackling a pregnant woman to the ground. Several of his arrests were later found to be unlawful in federal court.
Plenty of small-business tools ship as a ready-made virtual machine: import the appliance, start it, and staff open the app in a browser from any device on the LAN. The data stays in the building and nothing gets installed on workstations. The catch is that the VM is only as reliable as the box underneath it. A host that suspends, renumbers itself on the network, or loses power mid-write turns "the app is down" into a weekly conversation. Here's the checklist I'd hand to anyone setting up that host. It's Linux first (any systemd distro), with short Windows notes where steps differ. [ ] Dedicated machine. Not someone's daily laptop. A plain desktop with an SSD and wired Ethernet is ideal. [ ] Enough RAM for host plus guest. Check the vendor's sizing and add headroom for the host OS. [ ] Hardware virtualization on. In UEFI setup, enable Intel VT-x / "Virtualization Technology" or AMD SVM / AMD-V. [ ] Restore on AC power loss = Power On. Most boards have this under power management. It lets the host come back by itself after an outage. Confirm virtualization from Linux: lscpu | grep -i virtualization # Expect "VT-x" or "AMD-V". No output usually means it is off in firmware. Windows note: Task Manager → Performance → CPU shows "Virtualization: Enabled/Disabled". [ ] Install VirtualBox from one source (distro repo or official packages) with kernel headers and DKMS. After kernel updates, systemctl status vboxdrv should be green. [ ] Secure Boot: if it is enabled, unsigned modules will not load. Either enroll a signing key (many distros walk you through this during install) or decide deliberately to turn Secure Boot off. [ ] KVM conflicts: depending on your kernel and VirtualBox versions, loaded kvm_intel/kvm_amd modules can stop a VM from starting. Check with lsmod | grep kvm and resolve it before go-live, not during. [ ] Create a dedicated, unprivileged user to own the VM, and add it to the vboxusers group. sudo useradd -m -s /bin/bash vmhost sudo usermod -aG vboxusers v
I maintain MultiAlt, a free, open-source (GPL-3.0) Windows app that keeps several Roblox accounts signed in and opens them side by side. It started as a rewrite of the Roblox Account Manager by ic3w0lf22, which was archived in October 2024 after about 2.2 million downloads. MultiAlt is built with Tauri 2 (Rust and React/TypeScript). I'm deciding what to build next, and I'd like that list to come from the people who use these tools, not from me guessing. If you run more than one Roblox account (to farm, trade, test your own game, or play with friends on a second account): What feature would you want in an account manager that no tool gives you today? What did the old Roblox Account Manager do that you still miss? What's the most annoying part of juggling accounts right now? What do you use your extra accounts for? One line is enough. I read every answer, here or in the GitHub discussion, where 👍 votes decide what goes on the roadmap. What's already planned: putting many accounts into a Roblox group at once, and a FAQ inside the app. One rule stays fixed: no cheats, no exploits, nothing that breaks Roblox's rules. Download and docs: multialt.pages.dev. Not affiliated with or endorsed by Roblox Corporation.
TL;DR: Capture an immutable, redacted error envelope at the Express boundary, attach stable request and operation identifiers, and make the same envelope available to process-level handlers for unhandled exceptions and rejected promises. Attribute storage and response effort with bounded fields such as service, route template, tenant tier, and release. Keep stack traces in the evidence store, not in metric labels or client responses. The decision rule is blunt: if an on-call engineer cannot join an error to the affected financial operation and the release that produced it without searching raw customer data, the event is incomplete. If every event carries unrestricted request data, the system is unsafe and its storage cost cannot be governed. A useful design has to satisfy both conditions. This is an evidence-retention problem before it is a dashboard problem. During a payment incident, the team needs to reconstruct what failed, which cohort absorbed the failure, whether retrying is safe, and which cost center owns the response. A stack trace alone answers only one of those questions. Start with the join keys. Generate a request ID at ingress or accept one only from a trusted proxy, then carry it through the request logger, error event, queue message, and downstream call. Add an operation ID for the business action, such as a transfer attempt, but do not treat it as permission to record account numbers or payment credentials. The operation ID should point to protected business records through an authorized path; it should not duplicate them in telemetry. The error envelope needs a small, stable core: event time, service, environment, release, route template, request ID, operation ID, error class, message, stack trace, and handling outcome. Record the HTTP method and status. Record retry disposition too: not eligible, scheduled, exhausted, or unknown. That last field matters because an exception and its recovery are two different facts. For cost attribution, add boun
Why a Monorepo? A monorepo is a single repository containing multiple distinct projects, with well-defined relationships. — Monorepo Explained A monorepo makes sense when multiple projects have meaningful relationships: Shared libraries and utilities — reuse common code across projects. Shared contracts — keep API types consistent between producers and consumers. Cross-project changes — update related projects in a single change. Shared tooling and rules — maintain consistent development practices. If projects have no meaningful relationships, separate repositories may be simpler. For Second-Memory, Web, Mobile, and Backend need to agree on API contracts. Sharing TypeScript API types helps keep those contracts consistent. Web uses React/Next.js, while Mobile uses React Native/Expo, so their UI implementations remain separate. Code is shared only where it genuinely works across both platforms. Keeping related projects together makes coordinating changes and managing shared contracts easier. How do we manage their packages and dependencies? Workspaces are a set of features in the npm CLI that provide support for managing multiple packages from a local file system within a single top-level root package. — npm Workspaces A monorepo can work without workspaces. Each project can have its own package.json and manage dependencies independently. For example: second-memory/ ├── apps/ │ ├── web/ │ └── mobile/ ├── services/ │ ├── memory-service/ │ ├── ask-service/ │ └── embedding-worker/ └── packages/ ├── api-types/ └── ui-component/ Suppose both Web and Memory Service depend on api-types. Without workspaces, each project needs to manage its dependencies and local references separately. A project might reference the shared package using a local file dependency: { "dependencies": { "@second-memory/api-types": "file:../../packages/api-types" } } The relative path depends on the consuming project's location. Dependencies must be installed and managed in each project, and keeping l
Seeing a lot of teams lately rush an LLM into the first version of every product. Model costs keep dropping, so it feels cheap to add. But cheap to call is not the same as cheap to get right. The rough rule I keep coming back to: If the product is basically useless without the model (doc parsing, matching, summarising messy input), it belongs in v1. Then the real work is evals and failure handling, not the prompt. If the core loop works with a person doing the step by hand for now, ship that first and add the model once you know what "correct" looks like. The tradeoff cuts both ways. AI in v1 can make early feedback noisy, because you can't tell if users dislike the product or the model output. Adding it later can mean reworking the UX around it. For regulated stuff (finance, health, compliance docs) I'd lean toward human in the loop first almost every time, just so there is a clean record of what the right answer was. For whatever you're building right now, is the AI the actual hypothesis or more of a nice extra?
By Shilpa Mareddy Two copies of an MCP (Model Context Protocol) server (a server that AI applications call tools on) sit behind a round-robin load balancer (it sends each request to the next server in turn). The client's first request lands on copy A, the second on copy B, and B answers 400 Bad Request: Server not initialized. No tool was ever called. In the demo below, that failure comes from an MCP session held in one process's memory. A session is state the server keeps for one client connection. The 2026-07-28 revision of the MCP spec removes protocol-level sessions from its HTTP transport. This article reproduces the failure, then serves a small basket API (create a basket, add items, read it) from NestJS with no session. It then checks, with two real processes, that either one can answer these requests. The short version, in plain words. Picture a coat check with two desks. You hand your coat to desk A and get a ticket. If you walk to desk B, they cannot honor your ticket, because only desk A has the record. That is roughly the failure above: the session lived in one server's memory, and the second server had no matching session. The fix is a claim number that any desk can look up in one shared back room. In the demo, the "back room" is a shared database, and the "claim number" is a basket ID the client sends with every call. In this demo, either copy of the server can then serve any of its three tools. The spec removes the protocol's own ticket (the session ID); the basket ID is a new one that the tool design creates, and it is a lookup key, not proof of who you are. What you will learn What the 2026-07-28 spec removed from MCP over HTTP, and what replaced it. How one NestJS route serves MCP with no session. How to test "any instance can answer any request" with two real processes. What you need: Node 22.13 or newer (the minimum the repo needs; tested only on 22.22.2 and 24.21.0), npm, and a working knowledge of HTTP and load balancers. You do not need to kno
I got ATS-rejected a lot, so I built a tool to find out why. This post covers the technical decisions and the mistakes. Stack: Next.js, Supabase for auth and data, Groq (Llama 3.3) for fast, cheap analysis, and Gemini as a fallback if Groq fails or rate-limits. What it does: you paste a resume and a job description, and it returns a score across four categories, the missing keywords, and rewritten bullets. Decision 1: two model providers. A single provider going down means the whole product is down. The fallback costs a few lines of code and removed my biggest failure point. Decision 2: payments must be idempotent. I grant scan credits from both the client verify step and a Razorpay webhook. Either can arrive first, so the credit logic checks payment status before granting, and a double event can’t give double credits. What’s rough: you need an account before your first scan, which probably costs me signups. Payments only work in India. I’m weighing Stripe against Dodo Payments for global cards. Questions for you: Would you scan before signing up? Is a 0-100 score useful, or does it feel arbitrary? Try it at https://getresume-ai.vercel.app and tell me what breaks.
Everyone's scared AI will replace the artist. That's the wrong fear. The real threat isn't replacement — it's comfort. Before, if you wanted a decent image, a passable paragraph, a half-good melody, you had to sit with it. Struggle built taste. Now the mediocre version is one prompt away, and mediocre is seductive because it's fast. So the question stopped being "can AI make art" and became "will I still choose the hard path when the easy one is free." I run 13 AI agents. One of them — Pryzmat, my visual director — generates an image for nearly every post I publish. It would be trivial to let that be the whole job: prompt in, image out, ship it. But the posts that actually land are the ones where a human sat with the idea first — argued with it, cut it down to one sentence that's true instead of three that are safe. AI is a lens, not a replacement for the eye. It can focus light. It can't decide what's worth focusing on. That's still the hardest, most human part of making anything — and no model does it for you. The artists who'll matter in five years aren't the ones who refuse the tools. They're the ones who use the tools and still insist on the hard, slow, specific choice underneath. Comfort is the enemy. Not the model.