v0.7.1
0.7.1 — 20 August 2026
Release: v0.7.1
A patch release adding native Git Diff Correlation to Rocky's memory evidence:
Added
rocky why <file> [--diff]&rocky how <query> [--diff]. Renders bounded, secret-redacted git patches correlated with remembered rationale and mechanism evidence.- Multi-tier git diff correlation. Intelligently resolves changes using a 3-tier fallback strategy:
- Explicit commit SHA (
git diff-tree -p -U2 <sha> -- <file>) when available from record pointers. - Timestamp window lookup (
git log -n 1 --since/--until -p -U2 -- <file>) within $\pm 60$s of the memory event. - Working-tree uncommitted changes (
git diff -U2 HEAD -- <file>) if no historical commit matches.
- Explicit commit SHA (
- Fail-open & boundary safety guarantees. Subprocesses run with
shell: false, a strict 5-second timeout (GIT_DIFF_TIMEOUT_MS = 5000), and a 32 KB max output buffer (GIT_DIFF_MAX_BYTES = 32768). Outside a git repository or upon timeout, it falls back to(git diff unavailable)without throwing. - Automatic secret scrubbing. All git diff lines undergo credential and secret redaction (
redactSecretsAtBoundary) before being printed or returned over MCP. - MCP Tool enhancement (
why_file). Thewhy_fileMCP tool accepts an optionaldiff?: booleanargument to include projected, bounded, and secret-redacted diff content in tool results.