resume-watchdog-audit
Audit and recover crashed Claude and Codex sessions through one dry-run-first cohort surface, with exact provider identity and post-launch transcript/thread…
от anthony-chaudhary★ 50 звёзд на GitHub
Установить resume-watchdog-audit в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
/resume-watchdog-audit — is the watchdog itself alive, or silently stalled?
The recursion.
fak session recoveris the cross-provider recovery surface; the resume watchdog (fleet_resume_watchdog.ps1 -Live, taskFleetResumeWatchdog) is the n¹ automatic Claude layer. But a watchdog that dies takes the fleet down silently — every dead session just stays dead and nothing complains. This skill is the n² layer (watch the watchdog) and the n³ layer (watch the watcher of the watchdog). It answers from artifacts — ledger mtimes, transcript turns, and Task Scheduler exit codes — never from the watchdog's own status text.
The one rule: silence is the failure mode. A stalled watchdog and a healthy-with- nothing-to-do watchdog look identical from the outside. This pass distinguishes them.
Run it (one authoritative cohort command)
fak session journal-audit --since 24h --json # read-only launch -> exact provider-journal proof
fak session recover --json # preview only; writes a durable run witness, launches nothing
# After reviewing every row and completing any named login:
fak session recover --live --all --json # all actionable exact sessions; add --limit N only to cap the wave
The journal audit sources recent launch identities only from the resolved live
resume_identity.jsonl, discovers every local Claude project root and Codex home,
and exact-joins each full identity to provider-owned transcript/turn cursors. Its
versioned JSON distinguishes advanced, missing_transcript, and
present_no_post_launch_progress; RED/nonzero on any unproven row or unreadable authority is deliberate.
Use its rows instead of a hand-written cross-root join or a newest-session guess.
The recovery preview is the selection authority for the Claude transcript cohort and the Codex
guard/host-resurrection cohort. Its versioned JSON retains probes, live rows, reset
waiters, and identity-blocked rows instead of hiding them; only substantive actionable
rows receive argv. Codex argv uses codex exec --cd <exact cwd> resume <exact UUID> and never a picker,
--last, prefix, newest-row guess, or guard handle. Read the reported witness_path
after a live run: a window/process alone remains launched_unproven; productive means
the Claude assistant transcript or Codex thread/turn cursor advanced after launch.
Current operating limit: until #9742 closes, a timed-out or non-advancing live
launch is not guaranteed to have its recovery-created process tree reaped automatically.
Keep the default --limit 1, inspect the exact witness_path, and clean up only the
PID/start-identity tree named by that run. Never treat launched_unproven as a
successful recovery or use it as proof that the original session is active.
The scheduler/tower check is separate and remains read-only:
pwsh -NoProfile -File tools/watchdog_watchdog_audit.ps1 # human-readable tower verdict
pwsh -NoProfile -File tools/watchdog_watchdog_audit.ps1 -Json # machine tower verdict; exit 0/2/3
The sections below expand both checks. This audit must
never share the failure mode it detects: run it as an agent /loop or an S4U task,
never as an Interactive scheduled task (that would die exactly the way the watchdog did).
Layer 0 — locate the LIVE registry (do not trust tools/_registry)
resolveSweepRegDir("") resolves in order: $FLEET_REG_DIR → $FLEET_STATE_DIR\registry
→ %LOCALAPPDATA%\Fleet\registry (if it exists) → %TEMP%\Fleet\registry → repo
tools/_registry (fallback only). The repo's tools/_registry is usually a stale
copy — its sessions.json may be fresh (the dispatcher writes it) while its
resume_ledger.jsonl is days old. Always audit the resolved live dir.
The same preview reads Codex's configured state_5.sqlite in read-only/query-only
mode. That database's full thread UUIDs are the identity authority. A host-resurrection
row joins only by a full UUID already in argv or the durable trace→UUID identity ledger,
and is then verified back against state_5.sqlite. CWD, timestamps, ordering, prefixes,
and "newest" are never identity evidence; a missing or conflicting exact identity is
identity_blocked.
$reg = @("$env:FLEET_REG_DIR","$env:FLEET_STATE_DIR\registry","$env:LOCALAPPDATA\Fleet\registry","$env:TEMP\Fleet\registry") |
Where-Object { $_ -and (Test-Path $_) } | Select-Object -First 1
"live regDir = $reg"
Get-ChildItem $reg -Filter 'resume_*' | Select-Object Name,Length,LastWriteTime | Format-Table -AutoSize
Layer 1 (n²) — the drain verdict + the stall check
The authoritative read-only verdict (returns exit 3 on RED — that is by design):
& (Get-Command fak).Source resume watchdog --status --json
Fields that matter: verdict (green/amber/red), auto_resume_depth (queue depth),
silent_seconds (oldest unrecovered queued row's silence), and
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Read - 02
Bash - 03
PowerShell - 04
Grep - 05
Glob - 06
Write
FAQ
Что делает скилл resume-watchdog-audit?
Audit and recover crashed Claude and Codex sessions through one dry-run-first cohort surface, with exact provider identity and post-launch transcript/thread advancement; then audit the scheduler tower that keeps automatic recovery alive. Use when this named workflow matches the task.
Как установить скилл resume-watchdog-audit?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл resume-watchdog-audit запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
AnthropicUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
xlsx
AnthropicUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
pptx
AnthropicUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…