What problem does it solve?
Align backend implementations with documented product contracts, data models, and workflow rules to prevent drift and inconsistent behavior across services.
Core Features & Use Cases
- API Contract Compliance: Verify all endpoints match the documented API specification; validate request/response formats and structures; check proper HTTP status code usage; confirm authentication and authorization implementation; test error response formats and codes.
- Data Model Implementation: Ensure database schemas match documented data models; validate foreign key relationships and constraints; check proper indexing for performance requirements; verify data validation and sanitization; confirm audit logging implementation.
- Business Logic Enforcement: Validate two-role access model with ownership/capability permissions; check model lifecycle workflows; verify approval process implementation; confirm edge deployment capabilities; test multi-step process state management.
- File Handling Systems: Validate secure file upload and storage; check proper status tracking for uploads; verify file attachment integration with conversations; test file cleanup and retention policies; confirm virus scanning and security measures.
Quick Start
Run the backend-contract-guard validation to ensure APIs, data models, and workflows match the documented contracts.