Skip to content

fix(skills): detect prepush hooks before running build/test/lint#8

Open
christso wants to merge 3 commits intomainfrom
fix/skip-redundant-build-test-lint
Open

fix(skills): detect prepush hooks before running build/test/lint#8
christso wants to merge 3 commits intomainfrom
fix/skip-redundant-build-test-lint

Conversation

@christso
Copy link
Copy Markdown
Contributor

@christso christso commented Apr 2, 2026

Summary

  • hs-verify and hs-ship now detect prepush hook configuration before redundantly running bun run build && bun run test && bun run lint
  • If hooks already cover build/test/lint, the manual run is skipped — git push enforces them
  • Clarifies that the primary value of hs-verify is manual E2E testing, which unit tests and hooks cannot cover

Context

During issue #912 work on agentv, build/test/lint ran 3 times: once in hs-verify, once in hs-ship, and once via prepush hooks on git push. The first two were unnecessary when hooks cover them.

Test plan

  • Verify skills render correctly in Claude Code
  • Confirm prepush hook detection logic works in repos with hooks (e.g., agentv with prek)
  • Confirm manual fallback still works in repos without hooks

🤖 Generated with Claude Code

hs-verify and hs-ship now check for prepush hook configuration
before redundantly running build/test/lint. If hooks already cover
these checks, the manual run is skipped — git push enforces them.

Clarifies that the primary value of hs-verify is manual E2E testing,
which unit tests and hooks cannot cover.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Apr 2, 2026

Deploying hivespec with  Cloudflare Pages  Cloudflare Pages

Latest commit: f3627cd
Status: ✅  Deploy successful!
Preview URL: https://5efdc351.hivespec.pages.dev
Branch Preview URL: https://fix-skip-redundant-build-tes.hivespec.pages.dev

View logs

christso and others added 2 commits April 2, 2026 12:59
Evals verify that agents correctly detect prepush hooks (prek.toml) and
skip redundant manual build/test/lint when hooks cover it, while still
running manual checks when no hooks are configured.

Test cases:
- hs-verify: hook detection, no-hook fallback, E2E focus, evidence requirement
- hs-ship: hook-aware verification gate, no-hook gate, pre-ship verification, risk classification

Workspace template includes prek.toml for prepush hook simulation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- .gitignore: exclude .env, .agentv/results/, .agentv/cache.json
- .agentv/targets.yaml: eval targets (gemini-flash, azure-llm, claude)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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