Principles¶
MIC intentionally stays small. The framework is not the center of gravity; the service contract is.
The Six Non-Negotiables¶
- Strict contracts - reject fuzzy payloads and unstable schemas.
- Framework-agnostic code - domain logic does not import FastAPI, Litestar, or any other transport framework.
- Explicit dependency injection - dependencies are visible and testable.
- Domain errors as codes - clients receive stable error codes, not accidental exception text.
- 100% mirror tests - one source file, one test file, full line and branch coverage.
- Machine-readable failures - logs and metrics should be useful to humans and automation.