a1613c0590
Per AGENTS.md 'Daily-upstream-safe workflow', drift between fork state and active patch system can only be caught at next-build time. This commit closes the gap by providing a pre-push hook that runs the 4 critical pre-flight checks BEFORE pushing to origin. The hook runs (in order): 1. sync-versions.sh --check (Cat 0 + Cat 1 + Cat 2 versions) 2. verify-fork-versions.sh (Cat 2 fork supremacy) 3. verify-patch-content.py (no orphan patches) 4. verify-collision-detection.py (no config-vs-package conflicts) Per AGENTS.md 'absolutely NEVER DELETE, NEVER IGNORE' rule, the hook is OPT-IN: operators must explicitly install it via cp local/scripts/pre-push-checks.sh .git/hooks/pre-push chmod +x .git/hooks/pre-push The opt-in nature respects operator autonomy — local hooks do not propagate (each clone must re-install), and false positives would block legitimate pushes. HOOKS.md documents the available hooks + future work (pre-receive on server side for defense in depth; commit-msg hook for auto-phase prefix in commit messages). Default mode of the script: fail on any drift (exit 1). Use --soft flag or REDBEAR_SKIP_PRE_PUSH=1 to bypass.