All posts

6 min readPost 14

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.

On this page
  1. Step 1: when session-end proposals targeted uncommitted source code
  2. Step 2: 1.2.0 and the tempting leap to "why ask at all?"
  3. Step 3: the same-night audit on our real ledger
  4. Step 4: reversing inside seven hours—1.3.0 defaults to off
  5. Patch 1.3.1, thirty-seven minutes later

At 21:00 on 14 November, Obituary shipped 1.2.0 with tiered automatic file registration enabled by default—meaning scratch files created by an AI coding agent during a session automatically received lifespans without prompting. Less than seven hours later, at 03:30 the next morning, 1.3.0 reversed course completely: automatic registration became off by default, and upgrades safely revoked previously auto-registered dependencies and build caches.

Nothing about that reversal was theoretical. Every step was forced by concrete failures on our own daily machines.

Step 1: when session-end proposals targeted uncommitted source code ​

Alongside explicit obit mark calls, early Obituary tried to catch scratch files an agent forgot to register by diffing the workspace at session end and queuing proposals for user approval.

On 12 November that loop misfired badly: two proposals queued brand-new, uncommitted source files for burial three days later, leaving the agent to warn the user to reject both cards.

The bug was glaringly simple: session diffing invoked git ls-files --others --directory without --exclude-standard, mixing uncommitted source files together with Git-ignored artifacts.

Early on 13 November we narrowed proposals sharply:

  • Include only entries that are Git-ignored and match regenerable dependency, build-output, or cache patterns.
  • Never propose untracked non-ignored files: those are uncommitted work in progress.
  • Never propose arbitrary ignored files: .env, local settings, and *.tfstate are Git-ignored too, yet irreplaceable.
  • Restrict container proposals: propose only containers whose Compose working directory or bind mounts point inside the active project.

Step 2: 1.2.0 and the tempting leap to "why ask at all?" ​

Once proposals looked safe enough to approve routinely, we asked why interrupt the user for confirmation. On the evening of 14 November, 1.2.0 shipped [proposals] mode defaulting to tiered, automatically registering three narrow classes:

  1. Files created by the agent in the current session, guarded by three simultaneous checks: the hook observed the write; the session-start Git snapshot held neither the file nor its parent/child paths; and filesystem creation timestamps postdated session start (blocking tricks like renaming an old user folder to test-results/).
  2. Git-ignored regenerable artifacts.
  3. Containers launched for the current project during the session.

Four hard boundaries stayed non-negotiable in every mode (Git-tracked files, previously rejected projects, folder policies, and .obitrules trust), and every automatic registration emitted a durable receipt giving the agent obit spare, obit extend, and obit resurrect.

Screenshot of the Automatic registration card on the desktop For you page showing Off, Tiered, Full auto, and Ask for all options, with Off selected by default
The automatic registration toggle on the For you page: Off is now the default, alongside opt-in Tiered, Full auto, and Ask for all modes.

Step 3: the same-night audit on our real ledger ​

Right after releasing 1.2.0 and 1.2.1, we audited every single record in our own daily machine's ledger and hit four ugly realities at once:

  1. Dependencies and build caches had countdowns attached: one node_modules tree had already expired and was being retried for burial every single hour.
  2. 311 zombie records lingered forever: their parent worktrees had been deleted outside Obituary, and because nothing re-checked vanished paths, they piled up untouched.
  3. Silent retry loops: one 133 MB test directory had failed burial 54 times in a row—timing out inside a 100 ms in-lock Git scan budget, retrying hourly with no cap and zero UI visibility.
  4. Duplicate and misattributed container proposals: the same container surfaced twice and was filed under the user's home directory.

All four pointed back to one wrong premise:

Git-ignored means "do not commit this to version control," not "safe to throw away." node_modules, local databases, and warm build caches are all ignored by Git, and silently burying them costs developers real time to rebuild.

Step 4: reversing inside seven hours—1.3.0 defaults to off ​

Instead of stacking more exception lists onto an opt-out default, we flipped the default in 1.3.0 at 03:30:

  • When off, nothing enters Obituary silently and no proposals fire. Files enter only through explicit agent commands (obit mark, obit mktemp, obit bury) or human right-click actions.
  • The delete guard, grave notices, and wrap-up helpers continue working normally because they respond to explicit actions.
  • Even when a user explicitly enables tiered or full-auto mode, dependencies, build outputs, and caches are permanently excluded from both auto-registration and proposals.
  • Upgrading older installs flips existing configs to off and cancels previously auto-registered dependency/cache entries without touching files on disk; subsequent user choices always stick.

1.3.0 closed the other three bugs at the same time:

  • Out-of-lock Git scan: scanning a directory for nested .git repos now runs outside store.lock with a 30-second budget, followed by a 100 ms in-lock recheck that fails closed on timeout.
  • Exponential backoff with a circuit breaker: failed burials back off from 1 minute up to 1 day and pause after 12 consecutive failures, surfacing a clear failure card in the window.
  • Vanished-file cleanup and container deduplication: externally deleted paths settle on the next check instead of waiting for expiry; containers deduplicate cleanly and disable approval when Docker is stopped.

Testing both modes side by side in an isolated Git repo: under default off, writing a scratch log produces no output and no registration; after opting into tiered in a fresh session, newly created scratch-b.log registers immediately with undo commands while editing pre-existing old-notes.md stays untouched.

Terminal run in a Git worktree: under default off mode writing a log produces no registration; after switching to tiered in a new session, new scratch-b.log auto-registers with spare/extend/resurrect commands while pre-existing old-notes.md is untouched
Isolated Git worktree test: default off ignores writes; tiered mode registers newly created scratch-b.log with undo commands while leaving pre-existing old-notes.md untouched.

Patch 1.3.1, thirty-seven minutes later ​

Right after shipping 1.3.0, burying two temporary directories holding ~13,000 entries each failed twice. Explicit obit bury was already running an unbounded out-of-lock scan, yet the in-lock recheck wasn't crediting its result—tripping the 100 ms cold-cache limit again. Passing the verified out-of-lock scan through to the lock check shipped as 1.3.1 just 37 minutes after 1.3.0.

All posts