/gaia-correct-course
user-facingWhat it does
/gaia-correct-course manages mid-sprint scope changes. It handles adding stories to the sprint, removing stories, shifting priorities, resolving blockers, and injecting urgent work. All changes are applied to story files (the source of truth) and reconciled to the sprint tracking file.
When to use it
- A story is blocked and needs to be swapped out of the sprint.
- An urgent fix needs to be injected into the current sprint.
- Priorities shifted and the sprint order needs updating.
- A story under review is stuck past the review grace window and needs an escape hatch.
Prerequisites
- A sprint must be active.
sprint-status.yamlmust exist. - Stories being injected must exist in epics-and-stories.md. If not, run
/gaia-add-storiesfirst.
How to invoke
/gaia-correct-courseThe command asks what needs to change and classifies the change type.
What it does step by step
- Load sprint context Reads the current sprint state, backlog, and prior retrospectives.
- Identify change Asks what needs to change and classifies it: scope change, priority shift, blocker resolution, resource change, or story injection.
- Impact analysis Assesses dependency implications and velocity impact.
- Propose adjustment Presents the proposed changes with velocity impact for your approval.
- Apply changes Updates story files and reconciles the sprint tracking. For new stories that need files, delegates to
/gaia-create-story. - Record action items For dropped or deferred stories, records entries in the action-items tracker.
- Log and suggest next actions Logs the correction in the sprint plan and suggests relevant follow-up commands.
Inputs
| Input | Source | Description |
|---|---|---|
| Sprint tracking | .gaia/state/sprint-status.yaml | Current sprint state. |
| Epics and stories | .gaia/artifacts/planning-artifacts/epics-and-stories.md | Candidates for injection. |
| Retrospectives | .gaia/artifacts/implementation-artifacts/retro-*.md | Checked for recurring patterns. |
Outputs
| Output | Location | Description |
|---|---|---|
| Updated story files | .gaia/artifacts/implementation-artifacts/ | Status, priority, or scope changes. |
| Updated sprint tracking | sprint-status.yaml | Reconciled with story file changes. |
| Action items | .gaia/artifacts/planning-artifacts/action-items.yaml | Records of dropped/deferred stories. |
Example session
> /gaia-correct-course
What needs to change and why?
> E4-S6 is blocked by a third-party API outage. We need to swap it out
and pull E2-S3 in instead.
Change type: Story injection + scope change
Impact: -5 points (E4-S6) +3 points (E2-S3) = -2 net
Velocity: 21 -> 19 points
Proposed:
REMOVE E4-S6 (Rate limiting) -- moved to backlog
INJECT E2-S3 (Email templates) -- from backlog
Approve? yes
Applying changes...
E4-S6 transitioned to backlog.
E2-S3 injected into sprint-4.
Action item recorded for E4-S6 drop.
Course correction logged in sprint-4-plan.md.
Next: run /gaia-dev-story E2-S3 to begin the injected story.What to run next
/gaia-dev-story-- implement newly injected stories./gaia-sprint-status-- verify the updated sprint state.
Troubleshooting
"Story not found in epics-and-stories.md"
The story you want to inject must exist in the backlog. Run /gaia-add-stories to add it first.