core/scripts/hooks/install.sh
Shay 4bf8f3be99 chore(ci): local pre-push gate (smoke + warmed_session pin) + T11 reset record
Weekly-audit 2026-07-22 closeout — T13 decision (3) CI gate + T11 execution.

- scripts/hooks/pre-push + install.sh: a core.hooksPath pre-push gate that runs
  the smoke suite PLUS the warmed_session consistency lane pin — the T13
  telemetry-consistency regression class that smoke does NOT cover. The full
  ~12k fast-lane stays async CI by design; the gate is deliberately targeted so
  it blocks the regression class without gridlocking pushes. Fail-closed on
  empty stdin; skips deletion-only pushes; emergency bypass git push --no-verify.

- scripts/ops/reset_candidate_corpus_t11_20260722.py: provenance record of the
  T11 live-store reset. The 465 discovery candidates predated the #100
  isolation fix and carried no per-record test/prod discriminator, so a surgical
  quarantine was impossible; ruling was to clear (not asterisk). Executed as an
  ADR-0219 atomic generation reset (empty candidate ledger, keep=1) — candidates
  465 -> 0, turn_count 14990 and identity lineage preserved, tainted generations
  GC'd. Data lives in gitignored engine_state/; this script is the audit trail.

- AGENTS.md: document the automated pre-push gate under the Local-First CI
  Validation Protocol.

- weekly-audit ledger: T10 merged (#100), T11 ruled+executed, T13 (2) hedge-arm
  ruling + (3) pre-push gate recorded.

[Verification]: smoke 180 passed (132.9s) + warmed_session lane 10 passed
(140.5s), exit 0 — worktree core-wt-infra @ base 9a428d84.
2026-07-22 22:28:55 -07:00

22 lines
725 B
Bash
Executable file

#!/bin/sh
# Install the CORE local-first pre-push gate for THIS clone.
#
# Points git at the tracked hooks directory (scripts/hooks) via core.hooksPath.
# The relative path resolves per-worktree, so every linked worktree gets the
# same gate. Idempotent — safe to re-run. Run once after cloning:
#
# sh scripts/hooks/install.sh
#
# Uninstall: git config --unset core.hooksPath
set -eu
repo_root="$(git rev-parse --show-toplevel)"
cd "${repo_root}"
chmod +x scripts/hooks/pre-push
git config core.hooksPath scripts/hooks
echo "[install] core.hooksPath -> scripts/hooks"
echo "[install] pre-push gate active: smoke suite + warmed_session lane pin."
echo "[install] emergency bypass (discouraged): git push --no-verify"