Development blog

How FileTomb got built

  • 37 posts
  • Nov 7 – Nov 30
  • About 249 min of reading

Development blog for FileTomb (formerly Obituary) — posts before v2.0.0 keep the original name as historical record.

Latest

Timeline

By development date, newest first

    • Replacing 25 Docker checks with one provider contract—and the two bugs review caught after

      When Docker container branches spread to 25+ call sites across four packages, every future resource gets locked out by hardcoding. On 29 November we unified obit doctor, proposal views, and background discovery behind a stdlib-only 6-method extres.Provider plus optional Doctor and Discoverer traits—and independent read-only review caught two sharp bugs before merge: volume.go crossing 500 lines with a decorator purge trap, and auto discovery missing zero CreatedAt and relative Project paths.

      Post 358 min read

    • Putting a cap on the graveyard: why one oversized file must never evict older graves

      Capping Obituary's graveyard disk usage sounds like a textbook FIFO cache—until a single 3 GB build artifact hits a 2 GB cap and naive eviction permanently destroys 200 recoverable graves from the past week. Here is how we designed Plan A oversized isolation, excluded temporary graves, prevented double eviction, and added lockless drift-checked previews.

      Post 326 min read

    • Making obit doctor readable at a glance: a 1-day self-burying report, and three cross-platform boundaries

      obit doctor used to dump 50+ lines of raw check output and obit init --show flooded 433 to 553 lines across 30 agents, hiding the single broken setting users needed to fix. Across 24–25 November we compressed CLI diagnostics into an instant summary backed by a 1-day self-burying local HTML report, merged our resident JSON obit list across all three OSes, and drew three honest cross-platform boundaries.

      Post 318 min read

    • Why obit list slows down under concurrency: five causes, found by measuring in segments

      Routing concurrent AI-agent hooks through our resident daemon slashed hook latency below 400 ms, yet obit list stayed stuck above 250 ms. Segment instrumentation exposed five surprises—including a 24 ms Cobra double-click tax, a 12 MiB GC ceiling smaller than one decode, and a fast path real ledgers never hit—bringing p95 down to 80–139 ms.

      Post 307 min read

    • A dozen agents writing at once: measure where it is slow before changing anything

      Running a dozen AI coding agents simultaneously slowed Obituary's hooks to a crawl. Before rewriting storage, we profiled real hook processes and real Git under load—discovering 1,049 ms single-hook p95 and 469 ms list latency at 16 concurrent writers—then gated five optimization batches on paired benchmarks and shipped Batch A the same day.

      Post 236 min read

    • Continuous-curvature corners, and the 40 minutes of blank page they caused

      We fit a 1.78 radius compensation factor across 13 UI sizes and built a zero-dependency PostCSS plugin to bring Apple-style continuous-curvature squircles to Obituary without changing source CSS—then watched the live homepage turn blank white three minutes after merging. Here is both the math and the @import-inside-@layer postmortem.

      Post 226 min read

    • Linux and macOS windows: checking a menu-bar icon without a Mac

      Shipping Obituary's desktop window and tray daemon to Linux and macOS without a physical Mac on our desk meant proving visually in CI that the menu-bar icon actually rendered—and post-release testing of the real 1.6.0 DMG caught a fatal macOS 15 launch failure caused by a hidden minos 26.0 mismatch.

      Post 217 min read

    • The landing page's first screen: mobile Lighthouse from 47 to 99

      Embedding Obituary's real React desktop calendar straight into the homepage hero dropped mobile Lighthouse to 55 with a 5.2-second LCP. Here are the three targeted changes—HTML-first hero copy, per-locale splitting without entrance animation libraries, and hero-only hydration—that took mobile Lighthouse to 99–100 in three and a half hours.

      Post 206 min read

    • Ten languages: keeping the README, the website and the software readable in every one

      Translating an open-source project into ten languages once is easy; keeping nine translations from drifting, stopping German and Russian labels from bursting out of SVG boxes, and keeping AI-agent outputs untranslated takes mechanical enforcement. Here is how Obituary tests 40 browser-measured diagrams, go-i18n catalogs, and line-by-line native audits.

      Post 196 min read

    • The China mirror and the release pipeline

      GitHub Releases frequently times out or crawls inside mainland China, so Obituary shipped a geo-routed China mirror on launch day. Serving static files was trivial—getting every new release archive onto the mirror reliably and atomically took three complete pipeline rewrites.

      Post 185 min read

    • How backticks in release notes wiped our main checkout

      During the 1.4.2 release, a patch command using a quoted Bash heredoc wiped our entire main checkout in under a minute—executed by a Markdown example (`find -delete`) inside the changelog itself. Here is the postmortem, why our first diagnosis was dead wrong, how 1.4.3's EmbeddedDeletion closes cross-shell quote corruption, and where a delete guard's protection ends.

      Post 179 min read

    • Building with AI: who decides, who executes, gates and evidence

      Obituary exists to clean up AI agent debris and stop accidental wipes—and most of its own codebase was built with a multi-agent workflow. Here is how our four-role split, irreversible-action gates, and raw-evidence discipline emerged after we became the first victims of 2.4 GB of forgotten temp folders and a silently grayed-out tray button.

      Post 166 min read

    • Doing nothing when idle: zero wakeups for a resident process

      Our resident tray daemon obitd was burning 0.37 CPU cores while seemingly idle—then 0.02 cores seconds later. Profiling with pprof exposed an unexpected culprit: Explorer date-label syncing walking node_modules on every sweep. Here is how we rebuilt obitd around pure event-driven wakeups, cutting burst CPU per commit from 2.9 s to 0.15 s.

      Post 154 min read

    • Automatic registration: from asking first to off by default

      Obituary 1.2.0 shipped at 21:00 with tiered automatic registration enabled by default; under seven hours later, 1.3.0 turned it off by default. Here are the four real-machine failures that forced the reversal, why Git-ignored never means disposable, and the retry backoff and lock fixes that landed alongside.

      Post 146 min read

    • macOS and Linux: no rename by handle

      On Windows, Obituary verifies file identity and renames into the graveyard through the exact same handle. Neither macOS nor Linux exposes rename-by-fd, and POSIX immediately reuses inodes after deletion. Here is how we built non-overwriting move-verify-rollback, stopped inode reuse with file-handle generations and birth times, and shipped 1.1.0 across all three platforms.

      Post 136 min read

    • 1.0.0: the first release

      Obituary 1.0.0 shipped less than four days after our first commit, followed by 1.0.1 under five hours later. Here is why we skipped v0.1 and shipped Windows-first, why install.ps1 offers no flag to bypass SHA-256 verification, why our top install option is a single sentence for your AI agent, and why Go 1.26.11 triggered an immediate rebuild.

      Post 115 min read

    • Tests our machines could not run: two tiers

      You cannot prove a file-deletion tool is safe using only mocks, yet real filesystems, real Git repos, and real PowerShell stalled local runs past 1,500 seconds under parallel workers. Here is how we split testing into a 60-second local tier and sharded CI, solved Go's testlog stall and a Git Bash ACL bug, and guaranteed zero host contamination.

      Post 105 min read

    • Tray, window and context menu: the half for humans

      Obituary started agent-first, yet approving folder policies, browsing buried files, and rescuing a mistake are human decisions. Here is why we moved from a 5-minute scheduled task to the resident obitd tray daemon, why the tray refuses to call resurrect --last, why we chose Wails for the desktop calendar, and the trade-offs behind File Explorer desktop.ini date labels.

      Post 97 min read

    • Editing someone else's config file without breaking it

      To wire Obituary into AI coding agents, obit init has to edit third-party files like settings.json and hooks.json while editors and running agents may be saving them too. Here is why Windows ReplaceFileW failed 68% of concurrent reads, how handle-pinned replacement brought that to zero, and how we ported the same discipline to POSIX.

      Post 87 min read

    • The ledger: JSON, SQLite, and a rewrite we did not merge

      In a standalone prototype, moving Obituary's ledger from JSON to SQLite ran ten times faster on scattered writes—yet our first real implementation ran slower than JSON. Here is why we shelved the SQLite branch and how three structural changes to JSON—batching, compaction, and hot/cold snapshots—delivered the real speedup.

      Post 76 min read

    • Thirty agents: hooks, plugins, or rule files plus MCP

      AI coding agents expose wildly different extension points: shell hooks, in-process TypeScript or Python plugins, or only rule files and MCP. Here is how we scaled Obituary from two agents to 30 in a day without duplicating safety logic, why the delete guard has the strictest eligibility bar, and how our capability table reports every host limit honestly.

      Post 67 min read

    • Why Obituary uses Go instead of Rust

      Our first design plan recommended Rust and we had already created Cargo.toml before switching to Go minutes later. At 13,600 lines and again at 64,000 lines we ran the full rewrite math—here is why the original reason for Rust never materialized, why compile speed and real shell parsing matter more than memory safety for a deletion tool, and what a 13–20 week rewrite actually costs.

      Post 511 min read

    • Catching an agent's rm -rf: how the delete guard is designed, and what it can and cannot stop

      Agent cleanup commands like rm -rf, git clean -fdx, and Remove-Item bypass both the OS Recycle Bin and editor checkpoints. Here is why Obituary's delete guard strictly denies without rewriting, the five-day mistake of conflating detection with verbatim replacement, what 3 million fuzz inputs found in our shell parser, and the exact boundaries the guard cannot cross.

      Post 411 min read

    • Twelve review rounds: how to trust a tool that deletes files

      A tool that automatically buries and purges files for AI agents only needs one path or state race to wipe uncommitted work. Here is why we ran 40 adversarial review rounds in a single day across three core stages, the five highest-impact bugs they caught, how we stopped reviews from looping forever, and the 654 compile-time mutations that guard every fix.

      Post 39 min read

    • Lifespans, a graveyard, cremation: why not just use the Recycle Bin

      Sending expired files to the OS Recycle Bin sounded like the easiest design, and our first prototype did exactly that—until we replaced it with a private graveyard on the same night. Here is why the Recycle Bin breaks down for AI agent workflows, how single-handle renames and pre-move manifests keep restores exact, and when the Recycle Bin still makes sense.

      Post 210 min read

    • It started with a small question: a countdown for a file

      AI coding agents flood workspaces with throwaway scripts, logs, and screenshots, yet rule-file reminders fade after context compaction and manual cleanups default to irreversible rm -rf. Here is how Obituary started from that concrete annoyance, why file identity beat paths on night one, and the three bug classes exposed by our first code audit.

      Post 17 min read