Skip to content

Releases

diffpact v0.4.3

Choose a tag to compare

@arto-a arto-a released this 30 Nov 18:24

Security & Safety Fixes

  • Fail-Closed CLI Flag Validation: Unknown CLI flags (e.g. --decision request-changes) and missing option values now immediately fail closed with exit code 2 (INCOMPLETE) across every subcommand.
  • Required --verdict <approve|reject> on diffpact review: Removed the implicit approve default on CLI diffpact review. Missing or invalid verdicts fail closed with exit 2 without writing a review attestation.

Added

  • Global --cwd <dir> (-C <dir>): Supported across all subcommands so orchestrators can verify/review worktrees cleanly from any working directory.
  • Short-SHA & Ref Resolution: diffpact init --starting-sha and diffpact amend --update-starting-sha now resolve 7-char short SHAs and Git refs via git rev-parse --verify while storing canonical 40-character SHA-1s.
  • Clean EPIPE Exit: Piping CLI output (e.g. diffpact doctor | head) exits 0 cleanly.

Install / Upgrade

npm install -g diffpact@0.4.3
npx diffpact doctor

diffpact v0.4.2

Choose a tag to compare

@arto-a arto-a released this 30 Nov 16:06

Initial public open-source release of diffpact (MIT, zero runtime dependencies, Node >= 22.6).

Install From npm

npm install -g diffpact
# or run directly:
npx diffpact doctor

Highlights

  • Stateless Git Task Contracts (init, verify, status, amend, delegate): Deterministic boundary enforcement (.git deny > forbidden_paths > read_only_paths > allowed_paths), symlink/submodule blocking, version/lockfile pins, and No Silent Zero skipped-test detection.
  • Non-Self-Certified, Diff-SHA + HMAC Review (diff, review): Enforces distinct implementer/reviewer identities, --diff-sha cryptographic diff binding, and optional DIFFPACT_REVIEWER_SECRET HMAC signing (automatically stripped from worker subprocesses).
  • Worktree Lifecycle & Durable Evidence Archiving (worktree create/remove): Monorepo workspace & subdir-aware --share-node-modules, auto-archiving .diffpact/ evidence + Markdown/JSON reports to <main>/.diffpact/archive/.
  • Post-Merge Multi-Contract Gate (merge-verify): Verifies joined parallel branches across 2+ contracts/archives with --allow-integration glue scope and --allow-untracked (--committed-only) mode.
  • Cross-Harness Support: Ready out of the box for Claude Code, OpenAI Codex CLI, Crush, Google Gemini CLI / Antigravity, and @vercel/board (run --harness, install-hooks, doctor, report in Markdown/JSON/SARIF 2.1.0).

Built by InterfaceDelta · npm package · CHANGELOG.md