Repository navigation
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
|
| # 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 needs attention — invalid review outputRuneseer received a verdict, but deterministic validation rejected it. Inspect the validation error. Then request a new review round. Rerun this workflow only when the pull request head is unchanged. Otherwise, clear Affected head: |
Note
Remove Entire git hooks from the init template
pre-pushhook now runs the validation script directly: prek's pre-push stage when available, forge validate when available, otherwise downloads validate.sh and checks its SHA-256Macroscope summarized 7367436.
Plan
Changes
Testing
Release Notes