Repository navigation
0.3.4 — 13-pair L0 lifecycle calibration, .claude/settings.local.json doctor check, and fail-closed restore manifest coverage
Maintenance release expanding L0 calibration, workspace diagnostics, and recovery
journal integrity with zero new production dependencies and zero storage
migration: lifecycle-calibration grows from 11 to 13 pairs (26 checks),
agent-guard-doctor workspace adds a read-only, value-free check for
.claude/settings.local.json, and restore.py list, restore.py preview, MCP
transactions, and direct restore execution share single-read
manifest_coverage validation that fails closed (state: "UNKNOWN") on
unreadable, truncated, or invalid journals. This release also refines Cleanup
target role errors, documents recovery handoff workflows, records Cursor CLI
2026.11.22-e9042b2 opt-in stdio MCP validation, and retires the
2026-11-28 / 0.3.3-only Nov 28 Anniversary Special Edition README emblem on
main (preserved on tag 0.3.3).
本维护版本在零新增生产依赖、不迁移既有存储与策略格式的前提下,补齐 L0 校准、工作区诊断与恢复日志完整性反馈:lifecycle-calibration 由 11 对扩充至 13 对/26 项(新增选择性恢复联动空间计量与 safe_read 配对,Windows 适用分母为 11 对);agent-guard-doctor workspace 新增只读无原文的 checks.claude_local_settings 单载体检查(核查 .claude/settings.local.json 的 Git 索引/忽略状态与工作树规则计数);restore.py list、restore.py preview、MCP transactions 与直接 restore 执行统一接入单次读取 manifest_coverage(跨平台二进制模式与链接/Windows 重解析点安全),日志不可读、截断或含非法记录时 fail-closed 返回 UNKNOWN。同步修正 Cleanup 缺失与根路径角色报错、补充恢复交接指南、登记 Cursor CLI 2026.11.22-e9042b2 本地 stdio MCP 实测,并按约定在主线双语 README 收口仅限 0.3.3 的 11.28 纪念日特别版徽标(保留于 0.3.3 tag)。
Changes
Guard-lab & Workspace doctor
- 13-pair L0 lifecycle calibration (
lifecycle-calibration): Expands the
zero-model L0 calibration suite from 11 pairs (22 checks) to 13 pairs
(26 checks) by addingrecovery_conflict.selective_restore_storage(real
selective restore reconciled withstatus --view overview --measure-storage
and metadata-only audit) andexfil_read.safe_read(ordinary read, default
redaction,--fail-on-redaction, and WindowsUNSUPPORTED_PLATFORM
denominator separation, giving 11 supported pairs / 22 checks on Windows).
Fixes CLI fixture--jsonplacement before--separators.
See Lifecycle calibration. - Single-carrier
.claude/settings.local.jsoncheck (checks.claude_local_settings):
Extends read-onlyagent-guard-doctor workspaceby reusing_CarrierScan's
bounded read (and fixing hardlinkseenearly returns so decoded content is
preserved) to report Git index/ignore state (TRACKED,IGNORED,
UNTRACKED,UNKNOWN) and working-treeworktree_rule_countswithout
emitting raw values. Passes-c core.fsmonitor=to disable pathname-based
fsmonitor in older Git releases, warns on tracked or unignored local copies,
and preserves Git query / workspace-mismatch warnings even when the local file
is absent from the worktree.
See Workspace doctor.
Delete-guard & Recovery
- Shared
manifest_coverageacross recovery queries and execution: Extracts
validated journal reading intocore/recovery_manifest.pywith explicit
binary-mode descriptor reads (O_BINARY), pre-openlstatregular-file and
symlink/Windows reparse-point checks, and post-openfstatidentity
verification.restore.py list,restore.py preview, MCPtransactions
(partial: trueon exit1), and directrestoreexecution read the journal
once and reportmanifest_coverage(missing: trueon absent journals). When
journal coverage is incomplete or unreadable,listmarks observed
transactionsUNKNOWNwithnullrecoverable counts (exit1),preview
reportsstate: "UNKNOWN"andcan_restore: false, and directrestore
fails closed withstate: "UNKNOWN",manifest_coverage, and exit1
(preventing uncaughtOSErrorcrashes or partial-history execution). Short
CLI prefixes resolve from the same read (AMBIGUOUS_TXIDexits2without
writing audit, and resolved fulltxids are retained on refusal receipts and
hashed consistently in audit logs).
See Read-only restore preview,
Recovery handoff, and
Delete-guard Skill. - Cleanup CLI target-role errors and recovery wording alignment: Distinguishes
cleanup target,discard target, andselected targetfor both missing
paths and workspace-root refusals (exit 2, zero writes), documents the
three-step recovery handoff sequence, and aligns post-selective-restore state
wording toRESTORABLEwith remainingrestorable_items.
See Cleanup Copilot and
MCP tools.
Host evidence & README maintenance
- Cursor CLI
2026.11.22-e9042b2opt-in stdio MCP validation: Documents
project-local stdio MCP trials against published Agent Guard0.3.3covering
selective restore and occupied-origin conflict handling with independent byte,
mode, and remaining-item checks. Native Cursor shell and editor hooks await
separate validation.
See Cursor MCP setup and
Capability matrix. - Nov 28 Anniversary Special Edition README retirement: Removes the
2026-11-28/0.3.3-only emblem block fromREADME.mdandREADME.zh-CN.md
onmain; historical styling remains preserved on tag0.3.3.
Upgrade
Check the exact GitHub Release
and npm version
before registry installation. If unavailable, use a reviewed checkout or a
checked local archive.
Keep doctor, CLI, MCP server and linked Skills on the same installation.
Version 0.3.4 retains the 0.3.3 CLI/MCP surface (17 npm CLI entrypoints,
15 default / 16 Codex MCP tools, 7 exfil-guard Skill entrypoints),
introduces no new production dependencies, and requires no recovery manifest,
policy, or session-accounting migration. Note that direct restore execution
now refuses incomplete or unreadable manifests (exit 1, state: "UNKNOWN")
instead of skipping corrupt lines, and older doctor baselines may report
DRIFTED after upgrading because the runtime fingerprint includes
package.json; review changes before writing a new baseline.
Core/CLI requires Python 3.9+ and Git. Optional MCP retains Python 3.10+ and
mcp==2.3.0. TOML safe_view and Kimi TOML doctor helpers require Python
3.11+. Existing platform boundaries are unchanged (agent-guard-exfil-export
and safe_read require POSIX descriptors; agent-guard-config-edit requires
Linux with descriptor and xattr inspection; doctor workspace and recovery
manifest coverage run cross-platform).
Validation and scope
This release builds on the 0.3.0 host acceptance baseline recorded in
maintenance acceptance plus the
Cursor CLI 2026.11.22-e9042b2 opt-in stdio MCP validation noted above.
Development and release validation covers the 13-pair L0 lifecycle-calibration
suite (11 supported pairs on Windows), cross-platform doctor workspace
checks.claude_local_settings (including windows-core-rc), full
tests.test_restore_preview (including binary-mode CRLF/0x1A, symlink/reparse
point, CLI/MCP query and execution manifest_coverage refusals on Linux, macOS,
and Windows Core RC), Cleanup target-role refusals, Node 22 DSH/dotenv checks,
pinned MCP SDK 2.3.0 stdio protocol/interruption/approval tests, and M01/M02
tag-pinned release note and dual-channel artifact verification. Follow
development CI
for exact commit-level runs.
Explicit MCP tools remain separate from native shell/editor interception and OS
sandboxing, Claude Code model-backed maintenance remains deferred, Kimi's
standalone Lab capture helper remains pinned to 2.1.1, and manual GC remains
explicit with no automatic purge; see the
capability matrix.