From 857a9d381d3917a74fb5ab4cf9f8373c0fc5ca8d Mon Sep 17 00:00:00 2001 From: vitya Date: Wed, 17 Jun 2026 11:11:08 +0300 Subject: [PATCH] feat(hermes): map session-inbox-monitor as pending + close install/hermes-mapping session-inbox-monitor-hermes-mapping -> done: added to hermes/mapping.yaml pending section, mode:pending + intended {auto, productivity} (mirrors the session-handoff sibling). Reason cites the settings.json mutation, the OS process kills, and the Windows-PowerShell hook needing a Linux port for Hermes. Schema version untouched (schema, not content). YAML validated (32 skills). session-inbox-monitor-install -> done: install.ps1 -Names session-inbox-monitor, byte-identical (diff 0), v0.2.1; activation confirmed live this session (harness picked the skill into available-skills with full description, no /reload-plugins). Co-Authored-By: Claude Opus 4.8 (1M context) --- .tasks/STATUS.md | 16 ++++++++-------- hermes/mapping.yaml | 9 ++++++++- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/.tasks/STATUS.md b/.tasks/STATUS.md index f2992a1..04ec8ba 100644 --- a/.tasks/STATUS.md +++ b/.tasks/STATUS.md @@ -1168,22 +1168,22 @@ Acceptance 1-6 all met by test evidence (not by inspection). Per-task detail in --- -## ⚪ [session-inbox-monitor-install] — Baseline-таска промоушена session-inbox-monitor. Установить скил: запустить install.sh в ~/projects/claude-skills/ (или PS-эквивалент), проверить что скил появляется в available-skills новой сессии, сделать /reload-plugins. Скелет скила уже закоммичен (18ce571), тело каркаса пустое — это install самого скелета, не функциональности. +## 🟢 [session-inbox-monitor-install] — Baseline-таска промоушена session-inbox-monitor. Установить скил: запустить install.sh в ~/projects/claude-skills/ (или PS-эквивалент), проверить что скил появляется в available-skills новой сессии, сделать /reload-plugins. Скелет скила уже закоммичен (18ce571), тело каркаса пустое — это install самого скелета, не функциональности. -**Status:** ready -**Where I stopped:** (not started) -**Next action:** cd ~/projects/claude-skills; запустить install-скрипт; открыть новую сессию и убедиться что session-inbox-monitor в списке доступных скилов; /reload-plugins. +**Status:** done +**Where I stopped:** Установлено 2026-06-17 через `install.ps1 -Names session-inbox-monitor` → `~/.claude/skills/session-inbox-monitor/` (SKILL.md + hooks/inbox-monitor.ps1). Verify: src↔installed diff = 0 (byte-identical), version 0.2.1. **Активация подтверждена в этой же сессии** — харнесс подхватил скил сразу после install, session-inbox-monitor появился в available-skills с полным description (без явного /reload-plugins). Behavioral trigger-run в чистой сессии = scope `-test-trigger`. +**Next action:** (none — kept until merged). **Branch:** n/a **Notify:** OpeItcLoc03/workshop --- -## ⚪ [session-inbox-monitor-hermes-mapping] — Baseline-таска промоушена session-inbox-monitor. Добавить запись в ~/projects/claude-skills/hermes/mapping.yaml. Режим **pending** (не auto): скил трогает settings.json (регистрация SessionStart-хука) и OS-процессы (kill осиротевших мониторов) — требует отдельного аудита перед авто-маппингом. NB: основной путь активации скила — trigger-line `inbox monitor: raise on start` в CLAUDE.md + SessionStart-инжектор, а не hermes-trigger; hermes нужен только для ручных фраз вызова. +## 🟢 [session-inbox-monitor-hermes-mapping] — Baseline-таска промоушена session-inbox-monitor. Добавить запись в ~/projects/claude-skills/hermes/mapping.yaml. Режим **pending** (не auto): скил трогает settings.json (регистрация SessionStart-хука) и OS-процессы (kill осиротевших мониторов) — требует отдельного аудита перед авто-маппингом. NB: основной путь активации скила — trigger-line `inbox monitor: raise on start` в CLAUDE.md + SessionStart-инжектор, а не hermes-trigger; hermes нужен только для ручных фраз вызова. -**Status:** ready -**Where I stopped:** (not started) -**Next action:** Добавить session-inbox-monitor в hermes/mapping.yaml с mode: pending. Сослаться на триггер-фразы из description скила. +**Status:** done +**Where I stopped:** Добавлено 2026-06-17 в `hermes/mapping.yaml` секцию pending (8 — behavioral audit required): `mode: pending` + `intended: {mode: auto, category: productivity}` (по аналогии с близнецом session-handoff) + reason про settings.json-мутацию + OS-process-kill + Windows-PS-хук (нужен Linux-порт для Hermes) + primary-активацию через CLAUDE.md trigger-line. Schema `version: 1` НЕ бампал (schema, не контент). YAML валиден (python yaml.safe_load OK; 32 скила всего). Счётчик секции 7→8. +**Next action:** (none — kept until merged). pending→auto только после `-test-trigger` + аудита tool-side эффектов (settings.json write, process kill, Monitor raise). **Branch:** n/a **Notify:** OpeItcLoc03/workshop diff --git a/hermes/mapping.yaml b/hermes/mapping.yaml index 2146906..bfc9559 100644 --- a/hermes/mapping.yaml +++ b/hermes/mapping.yaml @@ -138,7 +138,7 @@ skills: mode: skip reason: "Claude-Code-only orchestrator — Hermes uses hermes-installer-skill instead." - # ─── pending (7 — behavioral audit required) ───────────────────────── + # ─── pending (8 — behavioral audit required) ───────────────────────── delegate-task: mode: pending @@ -188,3 +188,10 @@ skills: mode: auto category: mcp reason: "Orchestrates the board claim/close/update/heartbeat cycle via mcp__projects-meta__tasks_claim_next / tasks_close / tasks_update / tasks_heartbeat (cross-session claim ownership, irreversible close, Gitea side-effects) and may arm a single long ScheduleWakeup for the explicit long-watch opt-in. Critical-infra-adjacent — touches the same claim/close machinery the unattended poller relies on. Behavioral audit via task-loop-test-trigger required before promotion to auto." + + session-inbox-monitor: + mode: pending + intended: + mode: auto + category: productivity + reason: "Paired SessionStart hook registers itself in ~/.claude/settings.json and sweeps orphaned monitor OS processes (Get-CimInstance | Stop-Process by sentinel+inbox-path); the skill then raises an in-session Monitor on .claude-inbox/. Machine-level side-effects (user-config mutation + process kills) and a Windows-PowerShell hook that needs a Linux port for Hermes factory machines. Primary activation is the CLAUDE.md trigger-line `inbox monitor: raise on start` + the injector, not a hermes-trigger. Behavioral audit via session-inbox-monitor-test-trigger required before promotion to auto."