Skip to content

v1.5.0 — jankurai diff-audit subcommand

Choose a tag to compare

@jeppsontaylor jeppsontaylor released this 18 May 06:04
· 93 commits to main since this release
49e80b9

New

  • jankurai diff-audit subcommand for fast pre-PR / pre-push lanes. Composes the existing proof (lane routing) + audit (changed-fast scoring) primitives on the diff vs a base ref, with sensible defaults so per-repo shell wrappers can shrink to a one-line exec jankurai diff-audit "$@".
    • Base-ref resolution precedence: --base-ref > JANKURAI_DIFF_BASE > origin/$GITHUB_BASE_REF (GHA PR) > $CI_MERGE_REQUEST_DIFF_BASE_SHA (GitLab MR) > origin/main
    • Collects changed files from committed-vs-base ∪ staged ∪ worktree so pre-commit hooks see the staged set
    • Writes target/jankurai/diff/{changed.lst, diff-score.{json,md}, proof-plan.{json,md}} — RepoScore schema reused so existing SARIF / JUnit / step-summary renderers ingest unchanged
    • Exits non-zero on hard findings (high|critical|error) or new caps unless --advisory-only. --skip-proof for repos without agent/owner-map.json. --out-dir to relocate artifacts.
    • Honors JANKURAI_SKIP_HOOKS=1. Internally bypasses CI git wrappers (JERYU_GIT_BYPASS=1, JERYU_GIT_INTERNAL=1) so diff collection stays consistent under wrapper layers.

Tests

crates/jankurai/tests/diff_audit_smoke.rs — 4 integration smoke tests + 3 unit tests inside commands/diff_audit.rs.

Compatibility

Purely additive. audit and proof surfaces unchanged. Output schemas (RepoScore) reused. proofbind and proofmark sub-crates remain at 0.8.0.

PR: #12