# `Excessibility.TelemetryCapture.Analyzers.AssignLifecycle`
[🔗](https://github.com/lessthanseventy/excessibility/blob/v0.18.1/lib/telemetry_capture/analyzers/assign_lifecycle.ex#L1)

Analyzes assign lifecycle patterns.

Detects assigns that are set once and never change ("dead state").
These may indicate unused data being carried in socket assigns.

Uses `key_state` from timeline events to track which assigns change.

## Output

    %{
      findings: [
        %{
          severity: :info,
          message: "2 assign(s) never changed: [:static_config, :user_id]",
          events: [],
          metadata: %{stale_assigns: [:static_config, :user_id]}
        }
      ],
      stats: %{
        total_assigns: 5,
        active_assigns: 3,
        stale_assigns: 2
      }
    }

# `analyze`

# `default_enabled?`

# `name`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
