Actionable MCP archive retrieval + self-healing re-fetch guard (#88)
- Archived MCP results now surface the exact
expandcommand to retrieve them, so the model reads the saved copy instead of re-pulling the data. - A new PreToolUse guard detects an identical re-fetch of an already-archived MCP call and redirects it to
expand, keeping large results from re-inflating context. - Hardening & hygiene: symlink-safe manifest reads, redaction of stored identifiers, WAL on the trends DB,
TOKEN_OPTIMIZER_DEBUGdiagnostics, and a bounded path-preview that keeps the synchronous hook fast on very large listings.
Verified by a multi-agent review pass (security + performance + correctness) and the full local test suite.