From 5d4f5ee5987740bcc2f9cc5bb7e667478329e9b4 Mon Sep 17 00:00:00 2001 From: Scott Idem Date: Tue, 5 May 2026 22:21:03 -0400 Subject: [PATCH] feat: OPERATIONS.md bootstrap doc + load at T2+; patch stale persona files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - New home/scott/persona/inara/OPERATIONS.md: self-maintenance workflow (cortex_update → review → cortex_restart), access control table, key paths, memory file map, distillation cadence, channel/architecture notes - context_loader.py: load OPERATIONS.md at Tier 2+ after PROTOCOLS.md - TOOLS.md: count 39→40, add web_push to Notifications section - PROTOCOLS.md: replace stale 10-tool list with reference to TOOLS.md - CONTEXT_TIERS.md: fix memory file names (MEMORY.md → LONG/MID/SHORT), update Tier 2 load list, fix Hard Rules credentials note Co-Authored-By: Claude Sonnet 4.6 --- cortex/context_loader.py | 4 ++++ cortex/static/TOOLS.md | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/cortex/context_loader.py b/cortex/context_loader.py index 2e18237..4c90bb1 100644 --- a/cortex/context_loader.py +++ b/cortex/context_loader.py @@ -65,6 +65,10 @@ def load_context( if proto_path.exists(): parts.append(f"--- PROTOCOLS.md ---\n{proto_path.read_text()}") + ops_path = inara_dir / "OPERATIONS.md" + if ops_path.exists(): + parts.append(f"--- OPERATIONS.md ---\n{ops_path.read_text()}") + # Global tool reference (same for all personas) tools_path = _STATIC_DIR / "TOOLS.md" if tools_path.exists(): diff --git a/cortex/static/TOOLS.md b/cortex/static/TOOLS.md index ee743bf..4d6b3cf 100644 --- a/cortex/static/TOOLS.md +++ b/cortex/static/TOOLS.md @@ -1,6 +1,6 @@ # Tool Reference -> This reference covers all 39 orchestrator tools available when the ⚡ toggle is on. +> This reference covers all 40 orchestrator tools available when the ⚡ toggle is on. > Tools are invoked automatically by the orchestrator — you don't call them directly. ¹ **Admin only** — requires the `admin` role. Invisible to regular users. @@ -79,6 +79,7 @@ | Tool | What it does | |---|---| +| `web_push` | Send a browser push notification to the active user's registered devices | | `email_send` ¹ | Send an email via SMTP; recipient must match your `email_allowlist.json` | | `nc_talk_send` ¹ | Send a message to a Nextcloud Talk conversation |