DESIGN.md@scripts/watchdogA

DESIGN.md@scripts/watchdog from asheshgoplani/agent-deck is a DESIGN.md file: the design rules coding agents follow in that repo.

Install it, pinned
mdr add asheshgoplani/agent-deck/scripts/watchdog/DESIGN.md@git:20260726.02bf768

Pins git:20260726.02bf768 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 14 of 14 checks passed
Kind
DESIGN.md file
Repository
asheshgoplani/agent-deck
Path
scripts/watchdog/DESIGN.md
Versions recorded
2
Latest version
git:20260726.02bf768, committed Jul 26, 2026
First version recorded
Apr 23, 2026
Size
12,059 bytes
Repository stars
1,233
License
MIT

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Auto-Restart Watchdog for Critical Agent-Deck Sessions

Date: 2026-04-19 (initial design) · 2026-04-22 (lift-and-shift into repo for v1.7.63)
Target: agent-deck v1.7.63

## Problem

Conductor sessions (`conductor-innotrade`, `conductor-travel`, `conductor-opengraphdb`, etc.) are the brain of the orchestration system. A single SSH logout or tmux hiccup can flip them to `error`, and they stay there until a human manually runs `agent-deck session restart`. Today there is no automatic recovery for this class of session.

The existing reviver (`internal/session/reviver.go`) only revives `ClassErrored` (tmux alive, control pipe dead). Sessions where tmux itself died are `ClassDead` and are deliberately NOT auto-revived by design (disambiguation between intentional kill and crash).

The missing piece: **something external** that, for a small allow-list of critical sessions, WILL restart them when they flip to error — with rate limits, cascade guards, and escalation.

## Non-goals

- Auto-restart arbitrary worker sessions (keep opt-in explicit)
- Replace the existing transition-notifier daemon (reuse it as a signal source)

## Status note (v1.7.63, 2026-04-22)
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add asheshgoplani/agent-deck/scripts/watchdog/DESIGN.md@sha256:7129e64e0e24f238

The line at the top of this page pins the label git:20260726.02bf768, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_3xjxxoyleoktpk3p.svg)](https://markdownregistry.com/a/art_3xjxxoyleoktpk3p)

3 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 2 versions of this file, between Apr 23, 2026 and Jul 26, 2026, about one every 95 days.

versioncommittedcommitsizeaudit
git:20260726.02bf768 latest2026-07-26 02bf768 12,059 BA view · diff
git:20260423.2b3e4282026-04-23 2b3e428 9,171 BA view

Audit of the latest version

A  14 of 14 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Size between 200 bytes and 200 KB (12059 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

asheshgoplani/agent-deck · 1,233 stars · license MIT · pushed 2026-11-08 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_3xjxxoyleoktpk3p
GET https://markdownregistry.com/api/v1/resolve?ref=asheshgoplani/agent-deck/scripts/watchdog/DESIGN.md
GET https://markdownregistry.com/api/v1/blob/7129e64e0e24f238420429abf8214128b875e474e40bd4e29a6a2f1e472f48fb

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: what DESIGN.md is and how agents use it · which agent file does what.

More from asheshgoplani/agent-deck

AGENTS.md AGENTS.md file
asheshgoplani/agent-deck · AGENTS.md
git:20261101.a0cbcb9 · audit A · 1,233 stars
CLAUDE.md CLAUDE.md file
asheshgoplani/agent-deck · CLAUDE.md
git:20261025.4ba00b5 · audit A · 1,233 stars
CLAUDE.md@assets/watcher-templates CLAUDE.md file
asheshgoplani/agent-deck · assets/watcher-templates/CLAUDE.md
git:20260416.8ee7080 · audit A · 1,233 stars
watcher-creator SKILL.md skill
asheshgoplani/agent-deck · cmd/agent-deck/assets/skills/watcher-creator/SKILL.md · Guide for creating agent-deck watchers conversationally. This skill should be used when users want to set up a new…
git:20261107.93cd154 · audit B · 1,233 stars
CLAUDE.md@internal/agents/testdata/conductor CLAUDE.md file
asheshgoplani/agent-deck · internal/agents/testdata/conductor/CLAUDE.md
git:20261004.edffc6c · audit A · 1,233 stars
CLAUDE.md@internal/watcher/assets/watcher-templates CLAUDE.md file
asheshgoplani/agent-deck · internal/watcher/assets/watcher-templates/CLAUDE.md
git:20260416.8ee7080 · audit A · 1,233 stars
llms-full.txt llms.txt file
asheshgoplani/agent-deck · llms-full.txt
git:20261108.d2acf9a · audit B · 1,233 stars
llms.txt llms.txt file
asheshgoplani/agent-deck · llms.txt
git:20261024.860fe11 · audit B · 1,233 stars
agent-deck SKILL.md skill
asheshgoplani/agent-deck · skills/agent-deck/SKILL.md · agent-deck, the terminal session manager for AI coding agents. Use when the user mentions "agent-deck", "session"…
git:20261107.660f1d2 · audit A · 1,233 stars

Every file in asheshgoplani/agent-deck

Browse by kind, by grade A, or by owner.