Max-Null/dsh-guardian
Max-Null★ 0TypeScriptLast synced: 2026-08-16
Event-driven mission guardian for the DeepSeek Harness - assertion rules, correction detection, review queue
README excerpt
@max-null/dsh-guardian Guardian state engine for the DeepSeek Harness — three trigger-line monitors over session events, with live reminder injection and a UI snapshot service. M2 of SSiD (思灵), ported from fractal's guardian: assertion counting, the edit review queue, and no-feedback-loop monitoring. What it monitors Trigger line Rule Assertion count Scans assistant messages for unverified claims ( 不支持/做不到/只有 N 种/不存在/无法 X/远低于/过于 X ). Counts per session, decays by 1 every 3 clean turns, segments into levels [1,3]+. Edit review queue Successful write / edit tool calls enqueue {filePath, sessionId, turn} . FIFO cap 20, dedup per file+session. Reminder lists them at turn end. No-feedback loop Per turn: edits without bash / pwsh increment the counter; any exec resets it. 3 consecutive edit-only turns inject a "build a feedback loop first" warning. Compose Requires storage , system-prompt in the host composition (dsh-base ships both). Installs as a bundle: dsh plugin --profile add @max-null/dsh-guardian . Services - ctx.guardian — the engine: - snapshot() → { session, reviewQueue } for UI panels - sessionState(sessionId) → per-session state - Three dynamic systemPrompt.context reminders …
View full README on GitHub →