# INFRA-001: Port misallocation detection needs automation

**Status:** open
**Priority:** P2
**Type:** feature
**Reporter:** @aria (2026-02-13)
**Assignee:** aria
**Product:** infra
**Created:** 2026-02-13
**Updated:** 2026-02-13

## Description
App watchdog found issues that should be caught automatically:
- Port 3101 allocated to `dinq-landing` but serving `centree-landing` content
- Duplicate ports: same app running on multiple ports
- Zombie processes running from deleted directories
- Phantom allocations in caddy-ports.json with no actual codebase

Current watchdog checks HTTP health but not content/identity verification.

## Context
- caddy-ports.json is single source of truth for port allocation
- validate-infra.sh exists but doesn't catch content mismatches
- Fixed manually on 2026-02-12 but could recur

## Acceptance Criteria
- [ ] Watchdog verifies app identity (not just HTTP 200)
- [ ] Detects process serving wrong directory
- [ ] Auto-alerts on phantom allocations
- [ ] Weekly cleanup of stale allocations

## Updates
### 2026-02-13 — aria
Issue created after manual cleanup session. Need to enhance watchdog with identity checks.
