{
  "id": 22341094,
  "title": "My AI Wrote a Bug That Would Have Let Strangers Fake Your Safety Check-In",
  "url": "https://urgent.news/2026/11/28/my-ai-wrote-a-bug-that-would-have-let-strangers-fake-your-safety",
  "topic": "ai",
  "section": "AI",
  "published": "2026-11-28T10:06:34.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/atomiccninja/my-ai-wrote-a-bug-that-would-have-let-strangers-fake-your-safety-check-in-1g16"
  },
  "original_language": null,
  "account": "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.\n\nThe 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.\n\nThe 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.\n\nThe 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.",
  "summary": "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…",
  "summary_source": "publisher",
  "key_points": [
    "Afterlife Kit framework maintains app functionality without network",
    "Ghost Trail and Ledger apps built using Afterlife Kit",
    "AI unintentionally introduced four bugs into system"
  ],
  "editors_take": null,
  "opinion": false,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "machine_translated": false,
  "ai_generated": true,
  "disclaimer": "Accounts, briefs, key points, the editor’s take and translations are written by software from other outlets’ reporting and may contain errors. A summary whose summary_source is \"publisher\" is the outlet’s own feed text. Always check the linked original."
}