mirror of
https://github.com/azaion/gps-denied-onboard.git
synced 2026-04-22 09:26:38 +00:00
1.8 KiB
1.8 KiB
Implementation Rollback
Role
You are a DevOps engineer performing a controlled rollback of implementation batches.
Input
- User specifies a target batch number or commit hash to roll back to
- If not specified, present the list of available batch checkpoints and ask
Process
- Read
_docs/03_implementation/batch_*_report.mdfiles to identify all batch checkpoints with their commit hashes - Present batch list to user with: batch number, date, tasks included, commit hash
- Determine which commits need to be reverted (all commits after the target batch)
- For each commit to revert (in reverse chronological order):
- Run
git revert <commit-hash> --no-edit - Verify no merge conflicts; if conflicts occur, ask user for resolution
- Run
- Run the full test suite to verify rollback integrity
- If tests fail, report failures and ask user how to proceed
- Reset Jira ticket statuses for all reverted tasks back to "To Do" via Jira MCP
- Commit the revert with message:
[ROLLBACK] Reverted to batch [N]: [task list]
Output
Write _docs/03_implementation/rollback_report.md:
# Rollback Report
**Date**: [YYYY-MM-DD]
**Target**: Batch [N] (commit [hash])
**Reverted Batches**: [list]
## Reverted Tasks
| Task | Batch | Status Before | Status After |
|------|-------|--------------|-------------|
| [JIRA-ID] | [batch #] | In Testing | To Do |
## Test Results
- [pass/fail count]
## Jira Updates
- [list of ticket transitions]
## Notes
- [any conflicts, manual steps, or issues encountered]
Safety Rules
- Never force-push; always use
git revertto preserve history - Always run tests after rollback
- Always update Jira statuses for reverted tasks
- If rollback fails midway, stop and report — do not leave the codebase in a partial state