Compare commits
2 Commits
787fe1f702
...
1526af86d8
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1526af86d8 | ||
|
|
a73699ad8b |
25
.githooks/pre-push
Executable file
25
.githooks/pre-push
Executable file
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Pre-push hook: Prevents push if uncommitted changes exist
|
||||
# This is a safety net to ensure AI agents commit their work
|
||||
#
|
||||
|
||||
# Check for uncommitted changes
|
||||
if [[ -n $(git status --porcelain 2>/dev/null) ]]; then
|
||||
echo ""
|
||||
echo "ERROR: Uncommitted changes detected!"
|
||||
echo ""
|
||||
echo "Per AGENTS.md policy, AI agents MUST commit changes before stopping work."
|
||||
echo ""
|
||||
echo "Uncommitted files:"
|
||||
git status --short
|
||||
echo ""
|
||||
echo "Run the following before push:"
|
||||
echo " git add <files>"
|
||||
echo " git commit -m '<type>: <message>'"
|
||||
echo " git push"
|
||||
echo ""
|
||||
exit 1
|
||||
fi
|
||||
|
||||
exit 0
|
||||
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,2 +1,2 @@
|
||||
vendor/
|
||||
vendor
|
||||
.env
|
||||
|
||||
27
AGENTS.md
27
AGENTS.md
@@ -99,6 +99,33 @@ echo '{"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"protoc
|
||||
timeout 10 docker run --rm -i kneldevstack-aimiddleware-<service>
|
||||
```
|
||||
|
||||
## Git Hooks
|
||||
|
||||
This project uses tracked git hooks stored in `.githooks/`. After cloning, run:
|
||||
|
||||
```bash
|
||||
git config core.hooksPath .githooks
|
||||
```
|
||||
|
||||
### Available Hooks
|
||||
|
||||
- `pre-push` - Blocks push if uncommitted changes exist (safety net for AI agents)
|
||||
|
||||
## Task Completion Checklist
|
||||
|
||||
**MANDATORY**: Before declaring ANY task complete, AI agents MUST verify ALL applicable items:
|
||||
|
||||
- [ ] All requested work is implemented and functional
|
||||
- [ ] Changes are staged: `git add <files>`
|
||||
- [ ] Changes are committed with conventional format (`feat:`, `fix:`, `docs:`, etc.)
|
||||
- [ ] Changes are pushed to remote: `git push`
|
||||
- [ ] STATUS.md updated (if MCP/LSP server status changed)
|
||||
- [ ] JOURNAL.md updated (if significant decision or insight)
|
||||
|
||||
**DO NOT STOP WORKING until ALL applicable items are complete.**
|
||||
|
||||
If you cannot complete an item (e.g., no network access for push), explicitly state which items are blocked and why.
|
||||
|
||||
## Related Documentation
|
||||
|
||||
- [README.md](README.md) - Project overview, server inventory, installation, usage
|
||||
|
||||
Reference in New Issue
Block a user