Skip to content

docs(agents): document the commit gate and test driver combos, add a pre-push hook - #302

Merged
LouisHaftmann merged 1 commit into
devfrom
docs/agent-commit-gate
Oct 26, 2026
Merged

LouisHaftmann merged 1 commit into
devfrom
docs/agent-commit-gate

Conversation

@LouisHaftmann

Copy link
Copy Markdown
Collaborator

📝 Summary

Agents working in this repo kept rebuilding the same knowledge by hand. They worked out the VITEST_DB_DRIVER / VITEST_STORAGE_DRIVER combos from the CI workflow, collided with each other on the fixed test ports, and found Prettier failures in Markdown and YAML only by accident.

AGENTS.md now documents the commit gate, how to run a single driver combo, and which ports a test run binds. A pre-push hook runs the fast gate (lint and type-check), and pnpm install wires it up.

 package.json
-"prepare": "nitropack prepare"
+"prepare": "git config core.hooksPath .githooks 2>/dev/null; nitropack prepare"
+.githooks/pre-push   # pnpm run lint && pnpm run type-check

✅ Verification

  • git hook run pre-push exits 0: lint passes in about 12s, and type-check passes.
  • The documented single-file command pnpm test:run tests/range-download.test.ts passes 10/10.

🔍 Reviews

No reviews ran.

💥 Merge danger

Door: two-way

Blast Radius: contributors

pnpm install now sets core.hooksPath in each clone, and the 2>/dev/null; keeps the Docker build working without git.

🤖 Generated with Claude Code

… hook

Agents hand-built vitest driver env vars and hit fixed-port collisions
between parallel runs. AGENTS.md now names the gate, the driver env
vars, the single-file command and the ports a test run binds. A
pre-push hook runs lint and type-check, wired by `pnpm install`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@LouisHaftmann
LouisHaftmann merged commit 17899ee into dev Oct 26, 2026
30 checks passed
LouisHaftmann added a commit that referenced this pull request Oct 26, 2026
Port #302's commit gate and pre-push hook to the Cargo toolchain: the hook
runs nightly rustfmt and clippy, and AGENTS.md documents the Rust test
harness instead of vitest.

Co-Authored-By: Claude Opus 5.5 <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