KR-HK-011: Invalid Kiro V3 Hook Document Version
Summary
- Rule ID:
KR-HK-011 - Severity:
HIGH - Category:
Kiro Hooks - Normative Level:
MUST - Auto-Fix:
Yes (unsafe) - Verified On:
2026-10-17
Applicability
- Tool:
kiro - Version Range:
>=2.8.0 - Spec Revision:
unspecified
Evidence Sources
Test Coverage Metadata
- Unit tests:
true - Fixture tests:
true - E2E tests:
true
Examples
The following examples demonstrate what triggers this rule and how to fix it.
Invalid
{"hooks": [{"name": "lint", "trigger": "PostFileSave", "action": {"type": "command", "command": "npx eslint --fix"}}]}
Valid
{"version": "v1", "hooks": [{"name": "lint", "trigger": "PostFileSave", "action": {"type": "command", "command": "npx eslint --fix"}}]}