Description
The #1 verified incident in the Hippo Memory store (score 1.00, verified, 525 memories) is: "Unformatted code causes immediate CI failures — make fmt is mandatory before commit/PR." Despite CI enforcement, this issue recurs because there is no pre-commit barrier. Adding a git pre-commit hook that runs make fmt and refuses commits that would fail CI formatting checks would eliminate this entire class of failures at source.
Expected Impact
- Eliminates the most common class of CI failures (formatting)
- Removes developer friction from the red/green/re-push cycle
- Reduces wasted CI minutes on trivial failures
- Complementary to the existing CI gate (defence in depth)
Implementation
- Add
.githooks/pre-commit script:
#!/bin/sh
make fmt
git add -u # re-stage formatted changes
- Add
make setup-hooks target to Makefile that runs git config core.hooksPath .githooks
- Document in
DEVGUIDE.md: run make setup-hooks after cloning
Alternatively, use a lefthook.yml or .pre-commit-config.yaml if those tools are already present in the repo.
Suggested Agent
Copilot coding agent — Makefile + hook script creation, documentation update.
Estimated Effort
Quick (< 1 hour)
Data Source
DeepReport Intelligence Briefing — 2026-05-05 · Hippo Memory Insights §25362493917
Generated by DeepReport - Intelligence Gathering Agent · ● 369.8K · ◷
Description
The #1 verified incident in the Hippo Memory store (score 1.00, verified, 525 memories) is: "Unformatted code causes immediate CI failures —
make fmtis mandatory before commit/PR." Despite CI enforcement, this issue recurs because there is no pre-commit barrier. Adding a git pre-commit hook that runsmake fmtand refuses commits that would fail CI formatting checks would eliminate this entire class of failures at source.Expected Impact
Implementation
.githooks/pre-commitscript:make setup-hookstarget toMakefilethat runsgit config core.hooksPath .githooksDEVGUIDE.md: runmake setup-hooksafter cloningAlternatively, use a
lefthook.ymlor.pre-commit-config.yamlif those tools are already present in the repo.Suggested Agent
Copilot coding agent — Makefile + hook script creation, documentation update.
Estimated Effort
Quick (< 1 hour)
Data Source
DeepReport Intelligence Briefing — 2026-05-05 · Hippo Memory Insights §25362493917