Repository navigation
docs(issues): add spec for migrating git hooks scripts from Bash to Rust (#1843) - #1844
Merged
josecelano merged 1 commit intoMay 27, 2026
Conversation
Member
Author
|
ACK dafdec8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the implementation spec for issue #1843 — migrating the three git hook Bash scripts to a single Rust binary.
This PR contains only the spec file (
docs/issues/open/1843-migrate-git-hooks-scripts-from-bash-to-rust.md). No implementation.Changes
docs/issues/open/1843-migrate-git-hooks-scripts-from-bash-to-rust.md— new spec (moved fromdrafts/, prefixed with issue number, frontmatter updated)project-words.txt— two new British English words (serialisation,summarising) added to pass cspellSpec highlights
The spec covers a two-phase plan:
Phase 1 — Core migration (T1–T16): replace
pre-commit.sh,pre-push.sh, andinstall-git-hooks.shwith a singletorrust-git-hooksbinary. Implements the same check steps with NDJSON output only (no--format=textswitch). Switches over and removes the old scripts.Phase 2 — Enhancements (T17–T22): heartbeat events for long-running steps, smart step skipping for docs-only staged commits, and idempotency cache to skip hooks that already passed for the same changes.
The binary must comply with the global CLI output contract ADR from day one (
no-stdout-resultclass, NDJSON on stderr, exit codes 0/1/2).Related
Related to #1843 (this PR merges only the spec; the issue remains open until implementation is complete)