CI/CD Compliance Rules
CI Gates Sequence
install → lint/format → typecheck → unit → integration → (optional e2e) → package
Merge Policy
- Merge only if green
- Auto-deploy to staging on merge
- Production requires tag/approval
CI Failure Handling
When CI fails:
- Explain root cause in PR comment
- Include the fix in the same PR when feasible
- Don't merge until all gates pass
IDE Integration
- AINative / Windsurf / Cursor / Claude Code: Use built-in code actions and terminal to run tests/linters
- Prefer unified diffs in responses so changes are patchable across IDEs
- Attach artifacts (test output, screenshots, logs) whenever you assert a claim
Reference Files
See references/pipeline-requirements.md for detailed CI configuration, gate definitions, and failure debugging guide.