dsh-token-lock: Output-Based Token Guardrails Distinguishing Idle Spins from Productive Work

dsh-token-lock is an admin-security class plugin for DSH 2.0. It tracks both token consumption and session output, using seven dimensions, eleven detectors, and eight response levels to distinguish idle spinning from productive work. By default, mode=advise and dryRun=true, so no requests are intercepted. The enforce mode requires shadow backtesting with a false positive rate ≤ 0.5% and a minimum sample size of 50. It supports installation via the jsDelivr plugin marketplace index, a local /token-lock HTTP API, and configuration through the settings panel.

Read More