This file outlines the foundational mandates and engineering standards used to guide AI agents (like Gemini CLI) during the development of BugFlow.
- Pragmatic Minimalism: Prioritize simplicity over abstraction. Avoid unnecessary layers, files, or patterns.
- Contextual Precedence: Instructions in this file and
proj details.txttake absolute precedence over general defaults. - Technical Integrity: All changes must include validation logic. Bug fixes must be empirically reproduced before being patched.
- Correctness: Status transitions must be strictly enforced (OPEN → IN_PROGRESS → RESOLVED → CLOSED).
- Interface Safety: Use Pydantic for strict input validation. AI outputs must be parsed and validated against expected schemas with intelligent fallbacks.
- Observability: Failures in external integrations (like LLMs) must be visible via logs and handled gracefully with user-facing fallbacks.
- Change Resilience: Logic is encapsulated in
services.pyto ensure that adding features (like a new database or AI model) has minimal impact on the rest of the system.
- Temperature Control: LLM calls must use a low temperature (0.2) to ensure deterministic triaging.
- Validation Layer: AI-generated content is treated as untrusted. It must be validated against
AITriageResponseschemas. - Smart Fallback: When the AI fails or provides invalid data, the system must utilize a keyword-based heuristic layer to maintain functional correctness.