--- name: change-impact-analysis description: Use before implementation when a proposed code, configuration, data, or workflow change has uncertain callers, compatibility effects, dependencies, or blast radius. Return an impact analysis without implementing it. --- # Change Impact Analysis Map what a proposed change touches before anyone builds it. Do not implement the proposal unless asked. ## When to use - Use it when consumers, compatibility effects, or the blast radius of a change are uncertain. - If the proposal is too vague to name the affected behavior or contract, run `work-item-definition` first. - Skip it when callers and effects are already clear, such as a local rename with known callers. ## 1. Define the change State the proposed change and the behavior, contract, or data it affects, in one or two sentences. ## 2. Find what it touches Follow the repository route of `research`: exact paths and symbols first, semantic search for unknown flows, and broaden only when the flow is unclear. Check each of these that applies: - Code: direct callers, related implementations, shared helpers, and tests. - Contracts: public APIs, events, file formats, configuration keys, and generated output. - Data: schemas, persisted data, migrations, caches, and readers outside the application such as reports, exports, ETL, or scheduled jobs. - Consumers outside this repository: other services or repositories, external API clients, and integrations. - Operations: deployment, environments, feature flags, monitoring, and documentation. ## 3. Assess the risk - Name compatibility concerns, failure modes, and security or data-loss risks, and rate each affected area high, medium, or low. - Before confirming external compatibility or recommending an approach, apply the planning checkpoint in `technical-research`; attach matching evidence or mark the assumption unresolved. - Separate confirmed impacts from assumptions and unknowns. A possible downstream effect is not a fact without evidence. ## 4. Plan verification and rollout - Recommend proportionate checks tied to the risks found. - For risky changes to schemas, APIs, data, or shared behavior, recommend a rollout order (for example expand, migrate, then contract), a feature flag or staged release where it fits, and a rollback path. ## 5. Report ```text Change: | Area | Impact | Risk | Evidence | | --- | --- | --- | --- | | | | high / medium / low | | Unknowns: Checks: Rollout: ```