# Code Elevation — Technical Debt Inventory

> **Version:** 1.0 | **Last Updated:** 2026-02-25  
> **Purpose:** Catalogue all technical debt discovered during Code Elevation Stages 1 and 2. Each item is triaged against the target Intent: does it block the new work, should it be fixed alongside it, or can it be deferred? Generated by the AI collaborator during Code Elevation Stage 3. The team triages.  
> **Usage:** The AI populates this file during the session. The team triages each item before proceeding to Mob Elaboration.

---

## Session Info

| Field | Value |
|-------|-------|
| **Brownfield Intent** | [Intent description] |
| **Codebase Analyzed** | [Modules/folders in scope] |
| **Date** | [YYYY-MM-DD] |
| **Static Model Reference** | aidlc-docs/code-elevation/static_model.md |
| **Dynamic Model Reference** | aidlc-docs/code-elevation/dynamic_model.md |
| **Validated by** | [Team members who triaged] |

---

## Debt Inventory

| ID | Category | Description | Severity | Effort | Blocks Intent? |
|----|----------|-------------|----------|--------|----------------|
| TD-001 | [Architecture/Data Integrity/Operations/Performance/Infrastructure/Testing/Security] | [What the debt is] | [Critical/High/Medium/Low] | [Low/Medium/High] | [Yes: reason / No / Indirect: reason] |

---

## Triage for [Intent Name]

### Fix Now — Blocks the Intent or Causes Direct Regression Risk

| ID | Description | Remediation Approach | Estimated Effort |
|----|-------------|---------------------|-----------------|
| [TD-XXX] | [Description] | [How to fix] | [Hours/story points] |

### Defer — Important but Not Blocking This Intent

| ID | Description | Why Deferred | Target |
|----|-------------|-------------|--------|
| [TD-XXX] | [Description] | [Reason] | [Future intent/quarter] |

### Ignore — Cosmetic or Unrelated to the Planned Change

| ID | Description | Notes |
|----|-------------|-------|
| [TD-XXX] | [Description] | [Why it can be ignored] |

---

## Triage Summary

| Triage Level | Count | IDs |
|-------------|-------|-----|
| Fix Now | [N] | [TD-XXX, ...] |
| Defer | [N] | [TD-XXX, ...] |
| Ignore | [N] | [TD-XXX, ...] |

---

## Estimated Remediation Effort

> For "Fix Now" items only. This feeds into Brownfield Mob Elaboration story sizing.

| Category | Items | Total Effort |
|----------|-------|-------------|
| [Architecture] | [N] | [Estimate] |
| [Data Integrity] | [N] | [Estimate] |
| [Total] | [N] | [Estimate] |
