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.
catalog description:Event-driven mission guardian for the DeepSeek Harness - assertion rules, correction detection, review queue
Install
Requires `storage`, `system-prompt` in the host composition (dsh-base ships
both). Installs as a bundle: `dsh plugin --profile <name> 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 (`guardian:assertion`,
`guardian:no-feedback`, `guardian:review`), evaluated per assembly from the
most recently active session.
## Config
| Field | Default | Meaning |
|---|---|---|
| `decayTurns` | `3` | Clean turns before one assertion point decays |
| `assertionThresholds` | `[1, 3]` | Ascending thresholds segmenting levels 1-3 |
| `noFeedbackThreshold` | `3` | Consecutive edit-only turns before the warning |
| `reviewQueueMax` | `20` | Review queue FIFO cap |
| `globalRoot` | `$DSH_HOME/storages/guardian` | JSON storage root |
## Storage
One JSON unit (`guardian`, version 1) under `$DSH_HOME/storages/guardian`:
`sessions` table (per-session state) + the global slot (review queue).
In-memory is authoritative during a run; state flushes at turn end.
## Develop
Add Max-Null/dsh-guardian to your DSH config (web profile) to enable.
README
Expand full README Collapse
README is empty.
tt-a1i/archify
strukto-ai/mirage
liustack/modlens
omdsh-dev/DSH-better-sidebar
agentrq/agentrq
GanyuanRan/Aegis
dsh-market/dsh-market
toby-bridges/api-relay-audit