Skip to content

Add Cursor defense-in-depth pre-commit review gate - #115

Merged
KangaKode merged 3 commits into
mainfrom
feat/pre-commit-review-gate
Aug 16, 2026
Merged

Add Cursor defense-in-depth pre-commit review gate#115
KangaKode merged 3 commits into
mainfrom
feat/pre-commit-review-gate

Conversation

@KangaKode

Copy link
Copy Markdown
Owner

Summary

  • Cursor beforeShellExecution gate requiring Bugbot + Security Review receipts before commits in Cursor (defense-in-depth, not fail-closed integrity)
  • Staging-stable path→bytes fingerprint; worktree-aware --check; compound / command-substitution / env GIT_DIR fail-closed where the hook runs
  • High-tier design artifacts + DEVELOPMENT_PROCESS Non-claim; native core.hooksPath follow-up still required for wrappers/merge/non-Cursor

Risk-tier

High.cursor/hooks*, process enforcement. Four design artifacts under docs/designs/pre-commit-review-gate/.

Test plan

  • python3 -m unittest tests.test_pre_commit_review_gate -v
  • bash scripts/validate_generated.sh
  • Bugbot + Security Review on hardened diff (receipt recorded)

@cursor

cursor Bot commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

KangaKode and others added 2 commits August 16, 2026 15:48
Require Bugbot + Security receipt before git commit in Cursor, with
staging-stable fingerprints and honest residual documentation pending
native git hooks.

Co-authored-by: Cursor <cursoragent@cursor.com>
Mask quoted and heredoc text so commit-message substitution stays allowed while unquoted git command-substitution and multiline forms stay fail-closed.

Co-authored-by: Cursor <cursoragent@cursor.com>
@KangaKode
KangaKode force-pushed the feat/pre-commit-review-gate branch from 984b9a3 to ec042a4 Compare August 16, 2026 19:48
@KangaKode
KangaKode merged commit 1cc5fef into main Aug 16, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant