Repository navigation
chore: drop Entire hooks from the init template - #90
Conversation
Entire is retired on every machine and project. Sessions, not git commits, are the artifact worth keeping, and the agentsview session archive keeps them. Commit-anchored checkpoints did not survive jj rewrites and squash merges. The init template restores its original pre-push hook and drops the Entire capture hooks, so new projects no longer inherit Entire. The repository hooks drop the same capture hooks, the Entire-only pre-push.local, and the unused pre-push.pre-entire backup. CLI-0009 is marked superseded. Co-Authored-By: Martin Zeman <N4M3Z@users.noreply.github.com>
|
review/correctness round 1 started on |
|
Claude finished @N4M3Z's task in 2m 58s —— View job Review
Request changes. The template Medium — scaffolded
|
rune-docs/.claude/settings.json held only Entire hook commands and the .entire deny rule. The session-start hook printed "Entire CLI is enabled but not installed" in every Claude session there. Co-Authored-By: Martin Zeman <N4M3Z@users.noreply.github.com>
|
review/correctness round 2 started on |
|
Claude finished @N4M3Z's task in 1m 49s —— View job Review
Request changes. The scaffolded Medium — scaffolded
|
| # forge module pre-push hook — runs the pre-push-staged gates (gitleaks, semgrep). | ||
| # Canonical source: https://github.com/N4M3Z/forge-cli/blob/main/templates/init/.githooks/pre-push | ||
|
|
||
| SCRIPT_URL="https://raw.githubusercontent.com/N4M3Z/forge-cli/main/scripts/validate.sh" | ||
| SCRIPT_SHA="${VALIDATE_SH_SHA}" | ||
|
|
||
| if command -v prek >/dev/null 2>&1; then | ||
| prek run --all-files --stage pre-push | ||
| elif command -v forge >/dev/null 2>&1; then | ||
| forge validate | ||
| else | ||
| echo "" | ||
| echo " ⚠ Neither prek nor forge found — using validate.sh fallback" | ||
| echo " Install: cargo install --locked forge-cli or cargo binstall prek" | ||
| echo "" | ||
|
|
||
| tmpdir=$(mktemp -d) | ||
| trap 'rm -rf "$tmpdir"' EXIT | ||
|
|
||
| curl --max-time 30 -sfL "$SCRIPT_URL" -o "$tmpdir/validate.sh" 2>/dev/null \ | ||
| || { echo "validate.sh unreachable — install forge-cli or check connectivity"; exit 1; } |
There was a problem hiding this comment.
Medium — The scaffolded pre-push fallback fetches validate.sh from N4M3Z/forge-cli and checks it against this repository's embedded SHA, so the hash comparison can never pass and every push from a scaffolded module without prek aborts with a misleading "update SCRIPT_SHA" message.
templates/init/.githooks/pre-push:8SCRIPT_SHAresolves torune::VALIDATE_SH_SHA, the sha256 of this repository'sscripts/validate.sh.templates/init/.githooks/pre-commit:7the sibling template fetches the same script fromrunedeck/runeand probesrune, notforge.
| # forge module pre-push hook — runs the pre-push-staged gates (gitleaks, semgrep). | |
| # Canonical source: https://github.com/N4M3Z/forge-cli/blob/main/templates/init/.githooks/pre-push | |
| SCRIPT_URL="https://raw.githubusercontent.com/N4M3Z/forge-cli/main/scripts/validate.sh" | |
| SCRIPT_SHA="${VALIDATE_SH_SHA}" | |
| if command -v prek >/dev/null 2>&1; then | |
| prek run --all-files --stage pre-push | |
| elif command -v forge >/dev/null 2>&1; then | |
| forge validate | |
| else | |
| echo "" | |
| echo " ⚠ Neither prek nor forge found — using validate.sh fallback" | |
| echo " Install: cargo install --locked forge-cli or cargo binstall prek" | |
| echo "" | |
| tmpdir=$(mktemp -d) | |
| trap 'rm -rf "$tmpdir"' EXIT | |
| curl --max-time 30 -sfL "$SCRIPT_URL" -o "$tmpdir/validate.sh" 2>/dev/null \ | |
| || { echo "validate.sh unreachable — install forge-cli or check connectivity"; exit 1; } | |
| # rune module pre-push hook — runs the pre-push-staged gates (gitleaks, semgrep). | |
| # Canonical source: https://github.com/runedeck/rune/blob/main/templates/init/.githooks/pre-push | |
| SCRIPT_URL="https://raw.githubusercontent.com/runedeck/rune/main/scripts/validate.sh" | |
| SCRIPT_SHA="${VALIDATE_SH_SHA}" | |
| if command -v prek >/dev/null 2>&1; then | |
| prek run --all-files --stage pre-push | |
| elif command -v rune >/dev/null 2>&1; then | |
| rune validate | |
| else | |
| echo "" | |
| echo " ⚠ Neither prek nor rune found — using validate.sh fallback" | |
| echo " Install: cargo install --locked rune-cli or cargo binstall prek" | |
| echo "" | |
| tmpdir=$(mktemp -d) | |
| trap 'rm -rf "$tmpdir"' EXIT | |
| curl --max-time 30 -sfL "$SCRIPT_URL" -o "$tmpdir/validate.sh" 2>/dev/null \ | |
| || { echo "validate.sh unreachable — install rune-cli or check connectivity"; exit 1; } |
Runeseer review — 1 open finding
Request changes. The commit under review is the same one as last round, so the scaffolded
1 open · Reviewed |
|
@N4M3Z, the following findings block this head:
Choose one action:
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
review/correctness round 3 started on |
|
Claude finished @N4M3Z's task in 1m 33s —— View job Review
Request changes. Medium — scaffolded
|
|
review/correctness stood down on |
Note
Remove Entire Git hooks from the init template
.githooksand templates/init/.githooksforge validateotherwise, then a SHA-256-checkedvalidate.shdownload fallbackvalidate.shwith a substituted SHAforge validate, or thevalidate.shfallback instead of invoking Entire; the pre-push chain topre-push.pre-entireis goneMacroscope summarized 1e2244e.
Plan
Changes
Testing
Release Notes