Skip to content

defensive-cli v4.0.0

Latest

Choose a tag to compare

@ROM4n2 ROM4n2 released this 01 Dec 15:48
· 3 commits to main since this release

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 strict 0 / 1 / 2 / 3 exit codes.
  • State-Machine Ledger & Scope Guard: .dfs/ledger.json (passes: false default-fail), exact ledger.branch enforcement, and <base_sha>..HEAD + worktree files_allow scope checking (with rename detection disabled).
  • Content-Bound Gate Receipts: dfs-cli gate binds receipts to HEAD^{tree}, content_sha, and dirty status; ledger eval-pass requires a reachable --commit matching a clean gate_receipt.tree_sha.
  • Fail-Closed Git Hooks & Anti-Leak: repo init supports overlay (chaining .dfs/upstream-hooks.json) and owned modes; leak-check --staged / --push blocks secrets, PII, host paths, and archive leaks.
  • Bilingual Documentation: Added README.md (简体中文) and README.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