Repository navigation
Releases
Releases · ROM4n2/defensive-cli
defensive-cli v4.0.0
defensive-cli (dfs-cli) v4.0.0
Deterministic engineering governance, contract ledger, anti-leak engine, and fail-closed Git hook runtime for AI coding agents.
Highlights
- Zero-Dependency Python 3.11+ Runtime: Implements the full DFS v4.0 CLI contract (
ledger,gate,verify-stop,repo,leak-check,ship,bench,handoff) with strict0/1/2/3exit codes. - State-Machine Ledger & Scope Guard:
.dfs/ledger.json(passes: falsedefault-fail), exactledger.branchenforcement, and<base_sha>..HEAD+ worktreefiles_allowscope checking (with rename detection disabled). - Content-Bound Gate Receipts:
dfs-cli gatebinds receipts toHEAD^{tree},content_sha, anddirtystatus;ledger eval-passrequires a reachable--commitmatching a cleangate_receipt.tree_sha. - Fail-Closed Git Hooks & Anti-Leak:
repo initsupportsoverlay(chaining.dfs/upstream-hooks.json) andownedmodes;leak-check --staged/--pushblocks secrets, PII, host paths, and archive leaks. - Bilingual Documentation: Added
README.md(简体中文) andREADME.en.md(English) with architecture diagrams, quickstart, and CLI exit-code matrix.
Companion Skills
Pair with ROM4n2/defensive-skills (v4.0.0) for end-to-end spec, plan, TDD, and review governance.
Install
uv tool install git+https://github.com/ROM4n2/defensive-cli