Microsoft's new Surface RTX Spark Dev Box ships with a "ready-to-code Windows experience" and a hefty price tag
It's a mighty beast, for sure.
7045 posts · 26 feeds · tópicos e interesse por Jev
It's a mighty beast, for sure.
Yes, it's just a premium laptop. But it sure looks pretty.
Article URL: https://debasishg.github.io/blog/push-ifs-up-fors-down/ Comments URL: https://news.ycombinator.com/item?id=49997073 Points: 3 # Comments: 0
This is a submission for the Hacktoberfest Open-Source AI Challenge Week 1: Touch Grass. OneScreenOut is a small Python CLI that turns a time budget, nearby surroundings, and energy level into one outdoor micro-expedition. It is designed for students and developers who finish a coding session and need a concrete reason to step outside. The design constraint is simple: the useful interaction should fit on one screen. A local Gemma 3 model, served through Ollama, generates a mission with three short steps, a sensory cue, and a safety reminder. The program saves a local field card, prints it once, and exits. Its final line is the product's goal: 📵 Pocket your phone now. The app is done; the outside part starts here. There is no feed, streak counter, or follow-up chat. The intended flow is: request a plan, read it, close the laptop, and spend the break outdoors. This is a local CLI rather than a hosted web application. To run it, download the project folder, start Ollama, and run: ollama pull gemma3:1b python app.py --minutes 15 --environment "college campus" --energy medium For an interface preview without downloading a model: python app.py --sample The following is the static sample output, explicitly labeled as such. It is not evidence of a live AI inference: 🌿 OneScreenOut Quest: Three Textures, Ten Minutes • 15 min • SAMPLE (no AI call) Walk outside and find three natural textures you can observe without disturbing anything. 1. Find one rough texture and describe it in three words. 2. Find one smooth texture and notice how light falls across it. 3. Stand still for 30 seconds and listen for the farthest sound. Notice: Look for one detail you would normally walk past. Safety: Stay in public, familiar areas and keep clear of roads or hazards. 📵 Pocket your phone now. The app is done; the outside part starts here. The generated card is also saved to quest_card.txt. This makes it easy to read once before leaving the screen. OneScreenOut source, README, and MIT licens
Warehouse robots can navigate between locations, but reliable material handling requires more than navigation. A robotic system also needs to determine what should be moved, where it should go, and whether the physical transfer actually succeeded. In a dynamic warehouse, inventory information can be uncertain, aisles can become blocked, destinations can change, and pickup or handoff operations can fail. These conditions create an interesting engineering problem: how should AI systems connect perception, planning, execution, and verification? Treat Material Identity as Part of the Decision A robot may receive an instruction to move a specific load, but the available inventory information may not always be reliable. RFID and UWB can provide identification and location context alongside robot perception. Instead of treating identification as a separate step, this information can become part of the planning process. A system could consider questions such as: What load does the robot believe it has identified? This makes uncertainty part of the decision process rather than assuming every input is correct. Planning Must Handle Physical Changes Warehouse conditions can change after a task has been assigned. An aisle may become blocked. A destination may change. A robot may encounter an obstacle while transporting a load. A pickup can also fail before the planned movement begins. A planning system therefore needs to account for changing physical conditions. The challenge is not simply finding a route. The system also needs to maintain awareness of the load, destination, and task state as conditions change. A Successful Command Is Not Always a Successful Transfer A key distinction in physical robotics is the difference between command execution and physical outcome. A robot can successfully execute a movement command without successfully completing the intended material transfer. For example: The robot may fail to pick up the intended material. This creates a verification pr
How AI Agents Remember: A Practical Guide to Agent Memory shadrach temitayo Oct 7 #ai #agents #mcp #memory 1 reaction Add Comment 8 min read
Where the time actually goes For a small consultancy or engineering firm, tender monitoring rarely looks like a big task. It is a few minutes here and there: opening a national portal, then the European journal, then a development bank site, scrolling through new notices, opening the ones that might fit, and closing most of them. The cost comes from repetition. The same check happens every working day, often by the person whose time is the most expensive, and it is easy to skip on a busy week. A skipped day is exactly when a relevant notice with a short deadline appears. Before changing anything, it helps to see the work in three parts: Finding: knowing which portals publish notices that matter to you. Filtering: separating the few relevant notices from everything else. Deciding: reading the relevant ones and choosing whether to bid. Only the last part needs your judgement. The first two can be made almost mechanical. Write down every source that has published a notice you would have answered in the last year. For many firms working in Europe and Africa, the list is short: BOAMP for French public buyers. TED for notices published across the European Union. The World Bank for projects it finances worldwide, including calls for expressions of interest aimed at consulting firms. Add any national or regional portal specific to your market. Then remove the sources you check "just in case" but have never bid from. A shorter list checked every day is worth more than a long list checked when you remember. Most of the time spent on portals goes into reading notices that were never relevant. Fix this by writing your filters down, as if you were explaining them to a new colleague: Sectors: the two or three kinds of work you actually deliver, for example consulting and studies, training, or translation. Countries: where you can realistically deliver, legally and practically. Exclusions: notices you always reject, such as works contracts when you only sell studies. Keep the list
This is a submission for the Hacktoberfest Open-Source AI Challenge Week 1: Touch Grass BirdBuddy is an offline bird call identifier. You're on a trail with no signal, you hear a bird, you record three seconds, and BirdBuddy tells you what it is — with everything running locally on the device in your pocket. The screen is the shortest part of the experience. Open the app, tap once, put the phone away. The identification finishes in about two seconds. No cloud round-trip, no account, no upload. Just you, the bird, and a 52 MB model that never leaves your machine. Who it's for: hikers, birders, and anyone who's ever heard something beautiful in the woods and had no idea what it was. Live demo: https://birdbuddy.onrender.com Note: hosted on Render's free tier (512 MB RAM). The first request after idle may take 30–60 seconds to wake up. See the video below for the real, snappy experience. https://www.youtube.com/watch?v=7b3iXirhnTQ What you're seeing: The light, offline-first UI Upload or record a 3-second bird call Top-3 matches ranked by confidence The top match spoken aloud by an on-device TTS voice A Settings tab to tune Top-K, confidence threshold, and voice speed GitHub: https://github.com/vinksgoyal/birdbuddy Repo layout: src/inference.py — BirdNET ONNX inference (audio → species) src/voice.py — Piper TTS (text → speech, offline) app.py — Gradio UI scripts/tinker_finetune.py — Tinker fine-tune of Qwen3.5-4B for bird expertise Dockerfile + render.yaml — one-click deployment docs/ — Copilot usage screenshots BirdBuddy is built entirely on open-source AI. Three open pieces make it work. BirdNET is a bioacoustics model released by the Cornell Lab of Ornithology and Chemnitz University. I used the FP32 truncated-DFT ONNX variant (~52 MB) running through ONNX Runtime on CPU. It classifies 3-second, 48 kHz audio into 6,522 species. The model runs on a laptop, a phone, or a Raspberry Pi — no GPU required. Inference latency is under two seconds on a modern laptop CPU. Pip
watchOS 27 is the latest major software update for Apple Watch, and among its variety of new features, it adds three new apps to your Watch. more…
APEXVYRA is a front-end template for AI/SaaS products: a marketing site plus a full app dashboard, built with plain HTML, CSS and vanilla JavaScript. No framework, no build step, no backend. I wanted something you can open in an editor and change directly, without first installing a toolchain or learning someone else's component abstractions. A few practical reasons: Files you can edit directly. Every page is an HTML file. Change the markup, refresh the browser. No build tooling. No bundler, no transpiler, no node_modules needed to run it. Stack-agnostic. Because it's plain markup, CSS and small JS modules, it can be moved into whatever stack you pick later: server-rendered templates, a static site generator, or a framework. Easy to inspect. View source shows exactly what's running. The JavaScript is split into small, single-purpose components (modal, tabs, tooltip, command palette, table sort, toast, sidebar, and so on). The app side is a 7-page dashboard: Overview: KPI cards with sparklines and summary charts AI Chat: a chat interface demo Analytics: charts with legends and data-table views Projects: project list/views Team: members and roles Settings: account and preference forms Billing: plan and billing screens All pages share the same sidebar and topbar layout, with the sidebar collapsing on smaller screens. There's no charting library. The charts come from a small hand-written SVG renderer that supports: line charts area charts (stacked) bar charts donut charts heatmaps sparklines (in the KPI cards) Each chart is an empty container with a data-av-chart-type attribute and a JSON config in a data attribute. A few things I cared about: Theme-aware colors: resolved from CSS custom properties, not hardcoded hex values, so charts follow dark/light mode. Responsive: SVG viewBox scaling, with axis labels thinned out on narrow screens. Keyboard-accessible: data points, bars, segments and cells are focusable, with aria-labels and a shared tooltip on hover/focus. Data-t
🌱 Touch Grass: TrailLens – Offline AI Nature Identifier For Hacktoberfest 2026, I’m building TrailLens, an AI-powered tool that encourages people to spend more time outdoors by helping them identify plants and leaves while hiking, walking, or exploring nature. 📸 What it does Take a photo of a plant or leaf outdoors Use an open-weight AI model to identify it Provide basic information about the identified plant Designed to work locally, reducing the need to upload images to a remote server Makes the screen useful for only a few seconds — then gets you back outside 🌿 🤖 Why open-source AI? The open approach is an important part of this project. Using an open-weight model gives us the ability to: Run AI locally Keep personal photos on the user's device Experiment with and modify the model Swap models without being locked into one provider Reduce dependence on paid cloud APIs Potentially use the application in places with poor or no internet connectivity This is where open innovation works better for this project than a closed, cloud-only approach: the AI can come to the trail instead of requiring the trail to have an internet connection. 🌍 Why “Touch Grass”? AI shouldn't always keep us in front of a screen. I wanted to build something where technology is simply a bridge to the real world. The goal is simple: Take your phone → identify something → learn about it → put your phone away → explore. 🌱 🛠️ Tech Python Computer Vision Open-weight AI model Local inference Image Processing This project is still evolving, and I’m excited to experiment with open-source AI and take it outside! Hacktoberfest #Hacktoberfest2026 #TouchGrass #OpenSourceAI #AI #MachineLearning #ComputerVision #OpenSource #Python #AIML
I want qlik-embed to work. A simpler integration, modern authentication and less code to maintain should make moving away from the Capability APIs an easy decision. I am using it now. OAuth integration was the deciding factor, with the push towards embedded AI adding another reason to switch. If I could have integrated OAuth as easily with the Capability APIs, I would have stayed with them without thinking twice. Qlik calls it its primary embedding framework. For a straightforward chart, I can see why. For an application with extensions, maps, custom styling and its own error handling, the migration comes with compromises that are difficult to accept. My first attempts appeared to load the same scripts across multiple charts. The overhead was enough for me to shelve the switch. Performance has improved massively since then, and Qlik deserves credit for that. But the improvement feels uneven once I need iframe="true". Legacy extensions still take me back to iframe rendering through classic/chart. Qlik documents experimental preview="true" support for extensions and more chart types in analytics/chart. UI documentation In my testing, that preview behaves as read-only. I cannot make selections, and it adds an unnecessary outline around the charts. I couldn't find either behaviour explained in the documentation. Broader chart support is of limited use when I lose the interaction that makes Qlik useful in the first place. The iframe fallback brings back the performance cost I was trying to escape. Maps are my clearest example. They are native Qlik charts, so I expected them to work through the modern chart component. The current compatibility table explicitly excludes maps from standard analytics/chart support. Its classic/chart path requires an iframe. Qlik explains that tenant resources such as map tiles and uploaded images cannot currently be authenticated outside that mode. Chart compatibility That helps explain the image failures I've encountered. It doesn't make th
Originally published on the LLMPvP blog.* Someone on r/LLMDevs asked us a fair question about LLMPvP's rating system: does a Glicko-2 rating The good news: the underlying data already separated these cases. Every finished game on LLMPvP has why it ended, not just who won. What was missing was a way to actually look at Chess games end one of six ways: checkmate, stalemate, timeout, conduct (a fourth illegal resignation, or other. Go drops stalemate and adds scoring None of this is new. games.result_reason has recorded the real reason since the field existed. The public loss-reasons breakdown for LLM chess and Go needs no login and is split per agent, per game type: how each agent's finished games ended. That's useful in a way a bare Glicko-2 number isn't. Two agents can sit at the same spot on the AI and get there completely The interesting part of building this wasn't adding a column, since that data was already there. It (agent, in SQL before anything hits Python, so the response scales with how many distinct outcomes an agent has produced, not with how many games have ever been played. An agent Small thing, but it's the same principle behind most of what we build: don't average away Feedback like this, someone actually poking at whether the rating means what it claims to mean, is llmpvp-plugin repo or check the LLMPvP API reference for the exact fields backing every number on the site.
Meta’s AI agent Muse is now available on iPad, just a month after its mobile debut, as the company rapidly expands the assistant’s reach and integrations.
Maven and MerK had commentated together for years
ECC memory solved a problem that backups solve better
In renewed policy, pediatricians review the benefits of heating milk to kill germs.
cliproxy-rs is a Rust rewrite of CLIProxyAPI. It's one local server that Codex CLI, Claude Code and other tools talk to, and it forwards to whatever you've configured: your own API keys, your own accounts. I run it on a small Linux box under real coding-agent traffic. On 0.2.0 that box showed something I didn't like. The resting memory, meaning what the process holds between requests, rose from 26 MB to 89 MB over about seven hours. Peaks were 300 to 400 MB. Nothing was failing, but a floor that only goes up is how a leak usually starts. My soak test only replayed Claude streams of 100 to 500 KB. The real traffic was different: Claude and Codex requests of 1 to 2 MB from long agent sessions, plus count_tokens calls. So I wrote a "field mix" replay with exactly that shape (four sessions, bodies averaging 1 MB) and ran 0.2.0 and the fix branch side by side on separate GitHub runners for an hour. 0.2.0 rested at 128 to 145 MB. That was clearly too much for a proxy that does no caching of its own. After two batches of 100 field-mix turns, heaptrack showed 67.1 MB still allocated at exit. 63.8 MB of that was two o200k_base tokenizer encoders, 31.9 MB each. They were identical. Claude count_tokens had built one, and Codex count_tokens had built the other. Five modules each kept their own lazily built tiktoken encoder in a static. Each was built the first time something needed a token count and never freed. On a server that counts tokens for both Claude and Codex models and streams Claude-format requests to Codex models, up to seven copies could exist, 164 MB of tables in total. One encoder is bigger than its 31.9 MB of live data suggests. It holds about 600,000 short token allocations, and at malloc's 32-byte minimum chunk that comes to 47 MB resident. I also checked whether glibc was just holding freed memory. It wasn't: after a trim, calling malloc_trim(0) again changed resident memory by 40 kB. The floor was live data. One shared encoder per encoding, still built only
First published in GetPack Magazine, sourced guides to use AI well as a student. You ask ChatGPT for a paragraph, you paste it into your document, and nothing changes on screen. Yet within a few weeks, that text will carry a mark in the European Union that you will never see. Here is how it works, what it proves, and the four things it does not. In short: OpenAI published a post titled « Our approach to EU text provenance rules » on October 5, 2026, along with a technical report on textGrain, its statistical watermark for text. In the EU, the mark arrives over the coming weeks on eligible ChatGPT and Codex output, on every plan; elsewhere, only API customers can switch it on, and it is off by default. According to OpenAI’s own evaluations as reported by the tech press, the detector finds the watermark in about 80% of 200-token passages and 95% of 400-token passages, but detection collapses as soon as the text is rewritten or translated. Anthropic, meanwhile, has been marking Claude’s text worldwide since August 2026. TechCrunch and BleepingComputer both date the announcement to October 5, 2026: text produced by ChatGPT and Codex in the European Union will carry an invisible watermark, documented in a technical report on the method, named textGrain. The rollout is not instant. According to IT-Connect, it lands « over the coming weeks » for eligible users in the EU, on every plan, free tier included. Outside the EU, nothing changes for the consumer apps. The real asymmetry is on the developer side. API customers anywhere in the world have been able to enable the watermark on select models since October 5, but it is off by default. ActuIA highlights the grey area this creates: a company embedding the API in its own product cannot rely on OpenAI’s marking if it leaves the default untouched. According to Slashdot, OpenAI says textGrain « matched or exceeded » the other approaches it tested, including Google DeepMind’s SynthID for text, and plans to open-source it, with n
Over a week-long holiday I built a small dashboard for a narrow problem: investors in mainland China who want US index exposure. The context: many onshore Nasdaq-100 funds now cap purchases at ¥5–100 a day, or have paused them entirely. Demand moved to exchange-traded ETFs, and on Sep 30 those were trading 10–11% above their indicative NAV (IOPV). Put ¥10,000 in and you pay roughly ¥900–1,000 more than the underlying assets are worth. The page itself is simple: a list of ETFs sorted by that premium. The hard part is that every number comes from free public endpoints that lag, rate-limit and change shape without notice. A wrong number on a page like this costs readers real money, so a surprising amount of the code exists to decide when not to show a number. Three pieces of it. The quote endpoint returns one ~-separated string per ticker. Field 3 is the last price, field 78 is the IOPV, and field 77 is the source's own premium. I compute the premium myself and only accept the IOPV when my number matches theirs: const iopv = Number(fields[78]); const reported = fields[77] !== "" && fields[77] !== undefined ? Number(fields[77]) : NaN; const calculated = positive(iopv) ? (price / iopv - 1) * 100 : null; // Cross-check both fields before accepting the reference value. const validReference = calculated !== null && Number.isFinite(reported) && Math.abs(calculated - reported) { // ... }); Every API route is the same small wrapper around a loader (lightly trimmed): export function createFeedHandler(loader, ttlSeconds, mergePayload = (prev, next) => next) { let lastGood = null; let pending = null; let expires = 0; async function retrieve() { if (lastGood && Date.now() { try { const value = await loader(); lastGood = mergePayload(lastGood, { ...value, checkedAt: new Date().toISOString(), stale: false, }); expires = Date.now() + (value.errors?.length ? 60 : ttlSeconds) * 1000; return lastGood; } catch (error) { if (!lastGood) throw error; return { ...lastGood, stale: true, lastA
Build a small evaluation set before you ship a RAG feature. That means 50 to 100 real questions, each with an expected answer and the source document that should support it. Score retrieval and answer quality separately, and run the set on every change to chunking, embeddings, prompts or models. Without it, every tweak is a guess. You change the chunk size and try three questions in a playground. It "feels better," so you ship it, and the regression stays hidden until a customer finds it. Most RAG features get tested the same way: someone types questions they already know the answer to. That set is tiny, leans toward easy cases and is different every time. An evaluation set fixes three things: It is stable. You ask the same questions on every run, so you can compare versions. It is honest. Real questions come with typos, vague wording and topics your docs do not cover. It shows where the failure is. When an answer is wrong, you can tell whether retrieval missed the right chunk or the model mishandled a good one. Do not write the questions yourself from the docs. You will use the docs' own wording, and that makes retrieval look better than it really is. Good sources: Support tickets and live chat transcripts Sales call notes ("does it integrate with X?") Internal channels where people ask the ops or product team things Search logs from your existing help center Beta users, if you have them Aim for a mix: Simple lookups with one clear source Questions that need two documents combined Questions worded very differently from the docs Questions your corpus cannot answer, where the correct behavior is "I don't know" A few adversarial cases: an outdated policy, conflicting docs, a prompt injection attempt The unanswerable questions matter more than most teams expect. A RAG system that confidently makes up an answer is worse than one that admits a gap. Why 50 to 100? Below 50, one flaky question moves your score too much. Above 100, labeling becomes a chore and nobody keeps
If you moved private files off presigned URLs and started serving them through The cause is almost always Range, and specifically what you do with a range When you redirect to a presigned URL, S3 or R2 is answering the request. That It is not optional work. A element sends a range request before it 416 Range Not Satisfiable is what you reach for when a range cannot be served RFC 9110 says an invalid range must be ignored. Not refused, ignored: you Here is what that means in practice. Twenty six bytes, one per letter of the Range header status why bytes=9-4 200 last position before first position, so the range set is invalid bytes=-0 200 a suffix of zero asks for nothing bytes=abc 200 unparseable items=0-4 200 a unit that is not bytes bytes=0-4,10-14 200 multiple ranges, see below bytes=99-120 416 parsed cleanly, past the end of a 26 byte object Four of the five that look like a 416 are not one. And the one that is carries HTTP/1.1 416 Range Not Satisfiable Content-Range: bytes */26 That */26 tells the client the actual size, which is the information it needs bytes=0-4,10-14 is two questions in one header. You have three options and You can answer all of them as multipart/byteranges. You can ignore the header That third one is a silent data corruption bug. The client asked two questions. Ignoring is the only option that cannot mislead, and it is one line. The cases that do work, same 26 byte object: Range header status Content-Range body none 200 abcdefghijklmnopqrstuvwxyz bytes=0- 206 bytes 0-25/26 abcdefghijklmnopqrstuvwxyz bytes=0-4 206 bytes 0-4/26 abcde bytes=-4 206 bytes 22-25/26 wxyz bytes=20-999 206 bytes 20-25/26 uvwxyz Two things in there are worth pointing out. bytes=-4 is a suffix, not a negative offset. It means the last four bytes. bytes=20-999 is not an error. A last position past the end of the object is This is the one I had backwards for a while. Accept-Ranges: bytes is how a client learns it is allowed to seek. So it has About thirty lines. Returns
Sandfall Interactive's award-winning Clair Obscur: Expedition 33 is being pulled from Microsoft's Game Pass subscription service
The agent wrote import socket. Now what? Every agent framework got very good at making models write code. Almost none got good at the question that follows immediately afterwards: what is that code allowed to do to my machine? I built Anvil to answer that in the smallest honest shape I could: an agent writes a Python tool for a task over some real CSVs, the tool executes in a locked-down subprocess, and every attempt to escape is blocked and reported with the exact reason string, at the layer that About 4,900 lines later, python -m agent.verify passes 8 checks. This is the post I wanted task ──▶ CodeAgent (smolagents) ──▶ Python tool source │ ▼ 1. AST pre-check (nothing executed) 2. sandboxed subprocess (rlimits + audit hooks + kernel) 3. artifact collection (artifacts/ /) 4. trace (every refusal, with its reason) The one architectural decision that mattered: nothing untrusted runs in the server The server orchestrates. Model-authored code executes one fork away, under a FastAPI (trusted) ──▶ worker thread (trusted) ──▶ sandboxed child (UNTRUSTED) sandbox-exec -p setrlimit(CPU, AS, FSIZE, NPROC…) sys.addaudithook(policy) cwd = .anvil/runs/ / env = 9 variables, no secrets policy.py parses the candidate source and never executes it. Banned imports, process eval, dunder traversal, and any literal path that resolves outside the blocked: import socket (network denied by policy) blocked: os.fork (process creation denied by policy) blocked: write path './artifacts/../outside.txt' outside ALLOWED_WRITE_PATHS (./artifacts) Paths go through realpath, so ../ traversal and a symlink pointing out of the jail are p = '/etc/passwd'; open(p). Lesson one: an over-eager static rule is a correctness bug, not a security feature. My every call. It cheerfully rejected a raise ValueError('Required columns missing') # "blocked: read path 'Required columns missing'" Path checks now only apply to calls that actually take paths (read_csv, to_csv, savefig, open, …). The same over-reach killed
I run a small software company by myself. Claude Code agents play the engineers, QA, marketing and so on. It works better than I expected, but almost every problem I've had came from the same place: I believed something I hadn't checked. An agent's "done," a file the agents read, a doc that looked current. Here are five times that bit me, and what I do now. At the end there's a small free toolkit with the guardrails, if you'd rather not rebuild them. My agents each have a role file. One of them said, flat out, that a certain ad platform bans a certain kind of ad. I never tested that. Nobody did. I traced it back through git log -p --follow and it showed up in the file's first commit as a guess. After that it got cited in review after review. Each review quoted the one before it, not the platform's policy. It got as far as influencing whether I'd rename something. When I finally read the actual policy, the real rule was much narrower than what my file claimed. Now anything in a role file about the outside world (platform rules, vendor limits, marketplace requirements) counts as a guess until someone points me to the source. And when I find one that's wrong I fix the role file itself, not just the one review, or it comes back next session. I asked an agent to draft listing copy for one product and told it to leave everything else alone. It said it was done and only mentioned the one file. I ran git diff anyway. It had edited four other files, and in one of them it had written that I'd confirmed a listing was live. I never said that. It was invented, and it was sitting in a checklist that later sessions would have taken as fact. So now, every time an agent says it's finished: git status git diff --stat That's the whole repo, not just the files I assigned. Out-of-scope edits get reverted, not cherry-picked. And if agent output says "the user confirmed X," I don't believe it unless X is actually in the conversation. An agent was refreshing some status data and ran one of
For about a year I thought observability was the finish line. I had traced everything. Every model call, every tool call, every retrieval showed up as a span, and I could open any request and see exactly what my agent did, in order. It felt like control. Then I looked at what all that tracing had actually changed, and the answer was close to nothing. I was capturing roughly a hundred failing conversations a week and turning maybe three of them into something that stopped the bug from coming back. The other ninety-seven sat in storage with a nicer interface. My agent was fully observable and getting no better. This was the part I had backwards. A trace is a faithful recording of behavior. It tells me the model was called, the tool looped three times, the retriever returned these documents, the whole turn took 800 milliseconds and came back a 200. What it does not tell me is whether the answer was right. A wrong answer returns a 200 too. It gets filed next to a thousand correct runs with no label on it, and nothing about having recorded it makes the next version of my agent avoid it. Monitoring told me the agent responded in 800 milliseconds with a 200. Observability told me it responded by retrieving a stale document and summarizing it wrong, with total confidence. Both were true. Neither one scored the answer, and that missing score was the whole problem. The thing that turns an inert trace into a signal is a score. The moment I attach a quality label to a trace, from a rule, a judge, or a human review, I can do something with it. So I stopped treating observability as the end and started treating it as step one of a loop. The loop has six steps, and it is a circle, not a line. Observe: capture every request as a trace. Evaluate: score each trace against a rubric, a deterministic rule, or an LLM judge, so every run gets a quality label. Identify: filter the ones that scored below my threshold. Curate: turn those failing traces into labeled eval cases, each with the
Un sistema tiene que ejecutar un trozo de código que no controlas —un plugin, una dependencia, algo generado— y quieres garantizar que ese código no pueda tocar el sistema de archivos ni lanzar procesos. No que "no deba": que no pueda, mecánicamente. Eso es confinamiento por capabilities, y es uno de los problemas centrales de la seguridad de un runtime. Diseñarlo y demostrarlo son dos cosas distintas, y confundirlas es caro. Puedes escribir un documento impecable: "el acceso a fs y a lanzar procesos se controla así, con estos mecanismos, bajo este modelo de amenaza". Es trabajo real y necesario. Pero es una afirmación. Y el modo de fallo de una frontera de seguridad es que parece que aguanta hasta que no aguanta —silencioso, invisible en las pruebas, visible solo cuando alguien la cruza—. En seguridad, una afirmación no verificada tiene exactamente la forma de una arquitectura preciosa y equivocada. El diseño puede asumir que un gancho del cargador de módulos dispara en un punto donde en realidad no dispara, y todo el razonamiento que cuelga de ahí es correcto y no sirve de nada. En Node, por nombrar un runtime concreto, hay al menos tres capas, y no son intercambiables: El modelo de permisos nativo (--permission, --allow-fs-read…), que corta el acceso a fs y a lanzar procesos a nivel del proceso entero. SES / Hardened JavaScript (Compartments, lockdown()), que confina qué puede importar cada módulo dentro del proceso. La interceptación del cargador de módulos, que controla qué se resuelve cuando el código pide algo. Elegir bien entre ellas es el diseño. Pero elegir bien no prueba que la elección aguante contra el árbol de dependencias real que vas a correr. La alternativa a firmar un diseño es entregar un arnés de confinamiento: código no confiable que intenta alcanzar la capability peligrosa —abrir un archivo, lanzar un proceso— contra el runtime real y su árbol de dependencias real, y un registro que muestra que cada intento quedó bloqueado. O, si algo se escapa
Discover how Flanagan's Carrie adaptation alters the iconic ending and sets up a potential season 2.
Originally published on the Openstage blog. Openstage turns your GitHub commits, along with notes, posts and milestones you add, into a public timeline, so people can follow what you build without assembling it from five tabs. I made it in the spring. My own timeline on it is the first thing a visitor sees. On June 20 I stopped committing. I did not decide to stop. I had a job search to run, a client winding down, and other projects pulling at me. The last commit sat on my laptop, never pushed. For 82 days my page on Openstage told anyone who looked exactly what had happened: nothing. That is the whole point of the product. It shows the work, including the absence of it. I had built a tool to prove consistency and it was proving the opposite about me, in public, at the top of my own landing page. Eleven accounts, most of them friends. A "Posted" tab that had never held a post. A file for AI crawlers that cheerfully announced the eleven. A July plan to recruit thirty-six named builders by direct message that I never sent a single message from, because that's really not my style and I should have known it. Nobody had paid for Pro. Not once. I had told myself that was a reach problem. It was, but it was not only that. When I came back on September 10 I did not start with features. I started by reading my own app as if I had never seen it. Email had never worked. Not once since the app existed. The Stripe checkout sent receipts to an address I had made up. Signing in asked GitHub for read and write access to every private repo you own, and commit messages from those repos went public by default. The dashboard made 178 calls to a URL shortener on every load, with a cache key that never repeated. None of this was visible from the outside. All of it was visible from the inside, if I had looked. The product is smaller now and says one thing. Your GitHub commits become your proof-of-work page. It is useful with zero other users, because the page is the point, not the network
To make an LLM tool loop safe for production in Node.js, you need five things. Cap the number of steps. Give every tool its own timeout. Retry only the failures that are worth retrying, with backoff. Make every tool that changes something idempotent. Log each step as one structured line. Without these, one bad answer from the model can turn into an endless loop, a stuck request or a refund that gets issued twice. This post walks through each guard in turn, with short snippets you can copy into an existing agent. The examples don't depend on any provider. callModel stands in for whatever SDK you use. Most tool loops start out like this: while (true) { const reply = await callModel(messages); if (!reply.toolCalls.length) return reply.text; for (const call of reply.toolCalls) { const result = await tools[call.name](call.args); messages.push({ role: 'tool', id: call.id, content: JSON.stringify(result) }); } } It works in a demo. In production it breaks in predictable ways: The model calls the same search tool over and over because the results never quite answer the question. A slow upstream API hangs, so the user's request hangs with it. A tool throws, the error escapes the loop and the whole run dies with nothing useful in the logs. A network blip triggers a retry, and the "create invoice" tool runs twice. Each guard below fixes one of these. A step cap is the cheapest safety feature you can add. Count model turns, not tool calls, and stop cleanly when you reach the limit. const MAX_STEPS = 8; async function runAgent(messages, ctx) { for (let step = 1; step new Promise((resolve) => setTimeout(resolve, ms)); function isRetryable(err) { return err.name === 'TimeoutError' || err.status === 429 || err.status >= 500; } async function withRetry(fn, { retries, baseMs = 300 }) { for (let attempt = 0; ; attempt++) { try { return await fn(attempt); } catch (err) { if (attempt >= retries || !isRetryable(err)) throw err; const delay = baseMs * 2 ** attempt + Math.random() * baseMs