# Task Classification

> Routing rules: classify the task, then load only the context that class requires.

_Governance layer. Verified 2026-07-23. See [`context-loading.md`](context-loading.md)._

---

These are the **only** task classes supported by this project. If a task does not fit, treat it as **`Unknown - requires confirmation`** and ask before proceeding.

## Bug Fix
Restore intended behavior without changing architecture.
**Required context:**
- [`../00-context/system-overview.md`](../00-context/system-overview.md)
- [`../01-architecture/backend-architecture.md`](../01-architecture/backend-architecture.md)
- the affected business domain in [`../02-business/`](../02-business/)
- [`../05-development/testing.md`](../05-development/testing.md)

> **Inconsistent or divergent existing rules are Bug Fixes, not new features.** If a validation/business rule already exists but differs across write paths (dashboard vs API vs MCP vs jobs/imports) or is only partially applied, classify the work as a Bug Fix that reconciles it — not Feature Development. Confirm existence by inspecting the code first (premise validation).

## Feature Development
Add capability within existing architecture.
**Required context:**
- [`../01-architecture/`](../01-architecture/) (backend + data-flow; ai-architecture if AI-related)
- the affected business domain in [`../02-business/`](../02-business/)
- [`../04-integrations/`](../04-integrations/) **when the feature touches an integration**

## AI Feature / Agent Work
Anything on the MCP connector or managed-agent runtime.
**Required context:**
- [`../01-architecture/ai-architecture.md`](../01-architecture/ai-architecture.md)
- [`../03-ai-agents/agents.md`](../03-ai-agents/agents.md)
- [`../03-ai-agents/tools.md`](../03-ai-agents/tools.md)
- [`../03-ai-agents/actions.md`](../03-ai-agents/actions.md)
- [`../03-ai-agents/permissions.md`](../03-ai-agents/permissions.md)
- [`../04-integrations/mcp.md`](../04-integrations/mcp.md)
- also read [`agent-rules.md`](agent-rules.md)

## Database Change
Schema/migration work.
**Required context:**
- [`../05-development/database-rules.md`](../05-development/database-rules.md)
- the affected business domain in [`../02-business/`](../02-business/)
- [`../06-history/migrations.md`](../06-history/migrations.md)

## Integration Change
Monday, Microsoft Graph, SendPulse, MCP, or another external service.
**Required context:**
- [`../04-integrations/`](../04-integrations/) (the specific service file)
- [`../04-integrations/external-services.md`](../04-integrations/external-services.md)
- [`../01-architecture/data-flow.md`](../01-architecture/data-flow.md)

---

**Always also load:** [`../README.md`](../README.md) and, for any code change, [`change-management.md`](change-management.md). Mixed tasks load the union of the relevant classes — but still the minimum needed.
