Repository navigation
v1.5.0 — jankurai diff-audit subcommand
New
jankurai diff-auditsubcommand for fast pre-PR / pre-push lanes. Composes the existingproof(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-lineexec 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 ∪ worktreeso 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-prooffor repos withoutagent/owner-map.json.--out-dirto 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.
- Base-ref resolution precedence:
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