From 24ca58d764dbcc2bad57a914a10e9e9b89a3f66e Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Tue, 23 Jun 2026 23:06:46 -0400 Subject: feat(inbox): consolidate three inbox workflows into one engine I merged process-inbox, monitor-inbox, and inbox-zero into one inbox.org engine. A shared core (value gate, skeptical review, disposition ladder, reply discipline, capture-guard, priority-scheme check) holds the logic that used to be duplicated and cross-referenced across the three files. Each mode (process, monitor, roam) references the core by name instead of restating it. Every trigger phrase still works, now routing to a mode, so there's nothing to relearn. I added the interactive auto inbox zero mode: ask for an interval, run roam mode on /loop, acknowledge-only on an empty cycle, surface a find to a queue gated on a yes. The fully-unattended /schedule pass stays vNext, tracked separately. I repointed every live caller (INDEX, protocols, startup Phase C, wrap-up Step 3, triage-intake, broadcast) at inbox.org and its modes, then deleted the three old files. triage-intake and no-approvals stay separate by design. The value gate, dispositions, capture-guard, and reply discipline all behave as before. Built from the Ready spec. Workflow-integrity and sync-check pass on both the canonical and mirror trees, the stale-reference grep is clean, and the full suite is green. Claude-Session: https://claude.ai/code/session_017PtX1nt1rtYVATuzmzBS4f --- .ai/scripts/capture-guard | 4 ++-- .ai/scripts/tests/capture-guard.bats | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to '.ai/scripts') diff --git a/.ai/scripts/capture-guard b/.ai/scripts/capture-guard index 1958309..52f4e06 100755 --- a/.ai/scripts/capture-guard +++ b/.ai/scripts/capture-guard @@ -5,8 +5,8 @@ # Editing a file on disk while Emacs has an indirect org-capture buffer # cloned from it reverts the base buffer underneath the capture, wedging it: # the capture can no longer finalize cleanly with C-c C-c, and a freshly-typed -# item can be lost or written back against post-edit content. inbox-zero -# Phase D edits ~/org/roam/inbox.org, the file Craig captures into constantly, +# item can be lost or written back against post-edit content. inbox.org +# roam mode Phase D edits ~/org/roam/inbox.org, the file Craig captures into constantly, # so it calls this guard first. See claude-rules/emacs.md. # # Usage: capture-guard [TARGET_FILE] (default ~/org/roam/inbox.org) diff --git a/.ai/scripts/tests/capture-guard.bats b/.ai/scripts/tests/capture-guard.bats index 12ecb83..2bfee61 100644 --- a/.ai/scripts/tests/capture-guard.bats +++ b/.ai/scripts/tests/capture-guard.bats @@ -2,7 +2,7 @@ # # Tests for claude-templates/.ai/scripts/capture-guard — detects live # org-capture buffers visiting a target file before a workflow edits that -# file on disk (the roam inbox, in inbox-zero Phase D). Editing the file +# file on disk (the roam inbox, in inbox.org roam mode Phase D). Editing the file # underneath an indirect org-capture buffer wedges the capture (see emacs.md). # # Contract under test: -- cgit v1.2.3