Urgent.News

What's breaking now, across hundreds of outlets.

AI

My AI Wrote a Bug That Would Have Let Strangers Fake Your Safety Check-In

It's 6:41 PM on Halloween. Maya is somewhere on Blackwood Ridge. Her phone shows no service. At home, Mom's phone shows nothing either. Every app they own died the second the signal did. That's the moment I built for. Afterlife Kit is an open-source skeleton for apps that keep living when the network dies. I built it for #Kiroween with Kiro, a spec-driven AI IDE. This is the story of the four…

On Halloween evening, Maya found her phone without service. Her mom's phone was also offline. All the apps on their devices stopped working once the signal disappeared. This moment inspired the creation of Afterlife Kit, an open-source framework designed to maintain app functionality even when the network is unavailable. Created for #Kiroween with Kiro, a specification-driven AI development platform, Afterlife Kit aims to fill this gap.

The concept is simple: the device itself is the source of truth, not the server. Any changes made by the user are immediately logged on the device itself (in IndexedDB), ready to be merged when a connection is reestablished. Two distinct applications were built using this framework: Ghost Trail, a spooky game, and Ledger, a safety check-in system.

The apps showcase the versatility of Afterlife Kit. They include features like a topographical map for offline use, photo receipts for every entry, overdue reminders synced across multiple devices, and even support for multiple languages such as Arabic and Urdu. However, despite rigorous testing, the AI inadvertently wrote four bugs into the system. Each bug was caught and fixed before any user could encounter it.

The first bug involved a hybrid logical clock (HLC) issue, where two phones could receive the same timestamp during a merge, leading to the wrong value being chosen. The second bug concerned an offline phone with the longest delay losing its edits. The third bug caused overdue notifications to fire even when users were on time, as the system measured lateness from the last check-in instead of the next checkpoint's ETA.

And the fourth bug exposed an impersonation vulnerability - anyone with the ability to edit a shared member list could impersonate another user.

The solution was to make user IDs self-certifying. Each ID is created by hashing the curve, x, and y coordinates of the user's public key together, then converting that hash into a base64url string. This ensures that only the actual user can sign check-ins on their behalf. After implementing these fixes, the AI successfully passed all property tests derived from the specifications.

This story illustrates the importance of writing requirements as testable sentences, and using hooks as guardrails for AI agents to prevent errors and ensure robust functionality.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in AI

I Let AI Agents Move Files on a Mac. Here's How I Kept It Safe.

Lessons from shipping an MCP server inside a Mac app: one tool that changes anything, eight that only look, and a human in the loop every time. I build a Mac storage app called Tidy Mac.

  • Tidy Mac app enhanced with MCP server for AI agents
  • Server distinguishes between info-giving and data-modifying tools
  • Human approval required for destructive file move actions

Anthropic Introduces Claude Ship to Review, Fix, and Approve Pull Requests by Policy

Anthropic has introduced Claude Ship, a set of agents that can review GitHub pull requests, push fixes, and approve the changes a team's policy allows, on Claude Team and Enterprise plans.

  • Claude Ship reviews, fixes, and approves GitHub pull requests
  • Code Review assigns review levels and shares findings with administrators
  • Claude Approvals activates with .claude/approvals.yml policy file

How much VRAM a local LLM really needs: numbers from an 8 GB RTX 4060

Everyone says "8 GB is enough for a 7B model at Q4", but I wanted actual numbers from a machine I own, not a chart from someone else's review.

  • 8 GB RTX 4060 can run 7B Q4 model at 26 tokens per second
  • 3B model provides 59 tokens per second on same GPU
  • 1B model yields over 100 tokens per second with 8 GB VRAM

A 10-Minute CAD Task Took 3 Hours With GPT-6. Here's What Went Wrong

I needed a small 3D-printed spacer to mount an Arctic P12 PWM PST fan on my be quiet! Dark Rock Pro 4 CPU cooler. Normally, I would open Tinkercad or another CAD editor, take a few measurements with…

  • GPT-6 took 3 hours to design a 10-minute CAD task
  • AI misunderstood requirements, focused on overall dimensions
  • ChatGPT relied on a photograph, missed distinguishing dimensions

More from Saturday, 28 November 2026 →