# Phase 6: Integration and Hardening - Discussion Log

> **Audit trail only.** Do not use as input to planning, research, or execution agents.
> Decisions are captured in CONTEXT.md — this log preserves the alternatives considered.

**Date:** 2026-04-13
**Phase:** 06-integration-and-hardening
**Areas discussed:** Integration strategy, Fallback behavior, Window state handling, Resource leak prevention
**Mode:** Fully autonomous (--auto, all decisions auto-selected)

---

## Integration Strategy

| Option | Description | Selected |
|--------|-------------|----------|
| Modify WindowTarget internals | DWM-first in existing targets, no new class | ✓ |
| New DwmTarget class | Separate target requiring server.ts changes | |
| Adapter pattern | Wrap existing targets with DWM decorator | |

**User's choice:** Modify WindowTarget internals (auto-selected — matches ARCHITECTURE.md decision)

---

## Fallback Behavior

| Option | Description | Selected |
|--------|-------------|----------|
| Per-capture fallback | Try DWM each time, fall back on failure | ✓ |
| Session-level probe | Probe once at session start, pick backend for all captures | |
| Global disable on first failure | If DWM fails once, disable for entire process | |

**User's choice:** Per-capture fallback with cached availability probe (auto-selected)

---

## Claude's Discretion

- Sharp import caching, log wording, metadata fields, test organization

## Deferred Ideas

None
