c_agri_trade/.agents/skills/up-change-request-impact/SKILL.md

109 lines
5.4 KiB
Markdown

---
name: up-change-request-impact
description: Raise a formal Change Request (CR-xxx) for any bug fix that's actually a requirements gap, new BRD ask, NFR change, or scope adjustment arriving after baseline, and compute its full blast radius by walking the traceability graph BEFORE any document is edited. Use this any time a change is proposed at any stage of the process - during Elaboration, mid-iteration in Construction, during an iteration retrospective, during UAT, or even after production handover. This is the cross-cutting mechanic that keeps the process robust against unforeseen future change. Covers UP-AI v1.0 (00_prompts/AI_Native_Unified_Process_v1.md).
---
# up-change-request-impact — Cross-cutting (any stage, any phase)
## Objective
Give every future change — a bug that's really a requirements gap, a new ask from the BRD owner, an NFR change, a process adjustment — a single, structural entry point: raise it as `CR-xxx`, compute exactly what it touches by walking the traceability graph, get it approved, then apply only the computed delta. This guarantees all upstream and downstream artifacts remain synchronized.
## When to invoke
- A defect in `up-defect-fix` turns out to be a requirements gap, not a coding error.
- A new BRD ask arrives mid-program (new feature, changed business rule).
- An NFR needs to change (e.g., a new compliance requirement, a performance target revision).
- An iteration retrospective (`up-iteration-plan`'s loop) surfaces something that represents a scope or requirement change.
- A review during `up-arch-risk-spike`, `up-srs-derive`, or `up-hld-lld-generate` invalidates a prior assumption.
- **Any time — including after Transition/production handover.**
## Read first
- `04_generated_documentation/00_process_control/change_request_register.md`
- `04_generated_documentation/00_process_control/traceability_graph.md`
- The artifact(s) where the change originates
## Procedure
### Step 1 — Raise the CR
Create a new row in `change_request_register.md`:
| Field | Value |
|---|---|
| CR-ID | next `CR-xxx` |
| Trigger Type | Bug / New-BRD-Ask / NFR-Change / Process-Adjustment |
| Raised By | AI / Human / Joint, date, originating stage/iteration |
| Description | what is being requested or what broke |
| Disposition | starts at "Proposed" |
### Step 2 — Impact Analysis (before editing anything)
```
A change has been proposed: [CR-xxx description].
It touches [UC-xxx / FR-xxx / SRS-xxx / HLD component / other — name
the starting point(s) you know about].
Walk 04_generated_documentation/00_process_control/traceability_graph.md from every starting point
given. Report:
1. Every downstream artifact reachable in the chain (FR -> SRS -> HLD ->
LLD -> STORY -> TC -> UAT) that would need to change.
2. Every upstream artifact (BRD-FR, other UCs sharing a business rule or
screen) that should be checked for consistency.
3. Any iteration already in progress or completed that delivered an
affected FR - flag for re-verification, not just re-documentation.
4. A recommended disposition.
Do not edit any document yet. Output this as the Impact Analysis section
of CR-xxx in change_request_register.md.
```
### Step 3 — Disposition (human checkpoint)
Set Disposition to Approved / Deferred / Rejected. Even a one-person "CCB" is a logged approval — do not skip straight from Impact-Analyzed to editing documents.
When working on a source branch named in `parallel_work_plan.md`, record a new `CR-xxx` as branch-local/provisional in the lane transcript and handoff. It becomes canonical after `up-parallel-work-integrate` checks for collisions.
### Step 4 — Re-baseline (only the computed impacted set)
```
You previously generated: [OUTPUT_FILE_NAME]
Now apply: CR-xxx, per its approved Impact Analysis (list of exactly
which artifacts are affected).
Task: update only the affected sections identified in the Impact
Analysis - nothing outside that list.
Rules:
- Do not regenerate the full document.
- Show changed sections only.
- Maintain existing IDs; add new IDs only where the Impact Analysis says
a new artifact is needed.
- Bump the version field and set last_cr = CR-xxx on every file touched.
- Preserve traceability.
```
### Step 5 — Verify and close
If the CR affected an already-Delivered FR, re-run `up-traceability-gate` (Gate 14.1 semantics) against the affected iteration before marking CR-xxx "Verified" then "Closed."
## Output expected
Updated `change_request_register.md` entry (all fields through Closed); updated artifacts limited to the Impact Analysis's computed set, each with bumped version.
## Exit criteria
CR reaches "Closed" with every impacted artifact re-baselined and re-verified; no artifact outside the computed impact set was touched.
## Sample invocation
> "Raise a CR: client requested OAuth2 Social Login support. Run the Impact Analysis against UC-001 and any HLD/LLD tied to auth before we touch anything."
> "DEF-002's root cause is that UC-003's status FSM is missing a transition rule, not a code bug — raise CR-001 citing UC-003/FR-AUTH-003, run Impact Analysis, and hold for approval before re-baselining."
## Related skills
Can be invoked from: `up-defect-fix`, `up-iteration-plan` (via retrospective), `up-brd-extract` (BRD revision), `up-arch-risk-spike`/`up-srs-derive`/`up-hld-lld-generate` (invalidated assumption), `up-uat-handover` (post-UAT finding), or standalone. Always precedes the re-baseline of whichever authoring skill owns the affected artifact.