codex-genesis-harness 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.codebase/ARCHITECTURE_REVIEW_COMPLETE.md +216 -216
- package/.codebase/CURRENT_STATE.md +7 -2
- package/.codebase/FILE_NAMING_CLARIFICATION.md +161 -161
- package/.codebase/HARNESS_COMPLETENESS_AUDIT.md +613 -613
- package/.codebase/IMPLEMENTATION_COMPLETE.md +429 -429
- package/.codebase/IMPLEMENTATION_HANDOFF.md +351 -351
- package/.codebase/IMPROVEMENTS_SUMMARY.md +419 -419
- package/.codebase/PHASE3_SKILLS_NAMING_COMPLETE.md +292 -292
- package/.codebase/PHASE_DEPENDENCY_MAP.md +486 -486
- package/.codebase/QUICK_START_SPEC_IMPACT.md +456 -456
- package/.codebase/README.md +139 -139
- package/.codebase/RECOVERY_POINTS.md +438 -438
- package/.codex/skills/genesis-api-sync/SKILL.md +354 -354
- package/.codex/skills/genesis-api-sync/checklists/api-sync-checklist.md +101 -101
- package/.codex/skills/genesis-api-sync/templates/api-change-template.md +257 -257
- package/.codex/skills/genesis-debug-guide/SKILL.md +479 -479
- package/.codex/skills/genesis-debug-guide/checklists/flaky-test-investigation.md +339 -339
- package/.codex/skills/genesis-debug-guide/checklists/production-bug-debug.md +210 -210
- package/.codex/skills/genesis-debug-guide/checklists/test-failure-debug.md +158 -158
- package/.codex/skills/genesis-debug-guide/observability/debug-commands.md +365 -365
- package/.codex/skills/genesis-debug-guide/playbooks/unit-test-failures.md +289 -289
- package/.codex/skills/genesis-debug-guide/templates/debug-investigation-log.md +288 -288
- package/.codex/skills/genesis-docs-automation/SKILL.md +1003 -1003
- package/.codex/skills/genesis-docs-automation/checklists/docs-validation.md +359 -359
- package/.codex/skills/genesis-docs-automation/checklists/spec-alignment.md +312 -312
- package/.codex/skills/genesis-docs-automation/observability/docs-tracking.md +382 -382
- package/.codex/skills/genesis-docs-automation/playbooks/auto-update-flow.md +851 -851
- package/.codex/skills/genesis-docs-automation/playbooks/changelog-generation.md +491 -491
- package/.codex/skills/genesis-docs-automation/templates/changelog-entry-template.md +187 -187
- package/.codex/skills/genesis-docs-automation/templates/handoff-template.md +297 -297
- package/.codex/skills/genesis-harness/SKILL.md +1427 -1427
- package/.codex/skills/genesis-harness/agents/openai.yaml +7 -7
- package/.codex/skills/genesis-harness/checklists/bug-fix-qa.md +169 -169
- package/.codex/skills/genesis-harness/checklists/new-feature-qa.md +157 -157
- package/.codex/skills/genesis-harness/checklists/refactor-qa.md +216 -216
- package/.codex/skills/genesis-harness/checklists/requirements-validation.md +211 -211
- package/.codex/skills/genesis-harness/references/planning-schema.md +35 -35
- package/.codex/skills/genesis-harness/references/quality-rubric.md +21 -21
- package/.codex/skills/genesis-harness/references/research-rubric.md +41 -41
- package/.codex/skills/genesis-harness/references/workflows.md +33 -33
- package/.codex/skills/genesis-harness/resources/agents-template.md +27 -27
- package/.codex/skills/genesis-harness/resources/api-docs-template.md +32 -32
- package/.codex/skills/genesis-harness/resources/architecture-template.md +30 -30
- package/.codex/skills/genesis-harness/resources/audit-template.md +26 -26
- package/.codex/skills/genesis-harness/resources/bug-template.md +34 -34
- package/.codex/skills/genesis-harness/resources/change-impact-matrix-template.md +204 -204
- package/.codex/skills/genesis-harness/resources/check-template.md +21 -21
- package/.codex/skills/genesis-harness/resources/conventions-template.md +42 -42
- package/.codex/skills/genesis-harness/resources/decision-template.md +33 -33
- package/.codex/skills/genesis-harness/resources/design-template.md +26 -26
- package/.codex/skills/genesis-harness/resources/escalation-template.md +21 -21
- package/.codex/skills/genesis-harness/resources/feature-template.md +49 -49
- package/.codex/skills/genesis-harness/resources/foundation-phase-template.md +131 -131
- package/.codex/skills/genesis-harness/resources/integrations-template.md +32 -32
- package/.codex/skills/genesis-harness/resources/journeys-template.md +13 -13
- package/.codex/skills/genesis-harness/resources/lessons-learned-template.md +12 -12
- package/.codex/skills/genesis-harness/resources/observability-template.md +34 -34
- package/.codex/skills/genesis-harness/resources/phase-00-foundation-template.md +76 -76
- package/.codex/skills/genesis-harness/resources/phase-template.md +34 -34
- package/.codex/skills/genesis-harness/resources/pitfalls-template.md +22 -22
- package/.codex/skills/genesis-harness/resources/planning-tree-template.md +39 -39
- package/.codex/skills/genesis-harness/resources/post-implementation-guide.md +347 -347
- package/.codex/skills/genesis-harness/resources/project-template.md +38 -38
- package/.codex/skills/genesis-harness/resources/quality-score-template.md +11 -11
- package/.codex/skills/genesis-harness/resources/requirements-template.md +26 -26
- package/.codex/skills/genesis-harness/resources/research-template.md +26 -26
- package/.codex/skills/genesis-harness/resources/review-template.md +22 -22
- package/.codex/skills/genesis-harness/resources/spec-changelog-template.md +6 -6
- package/.codex/skills/genesis-harness/resources/stack-template.md +33 -33
- package/.codex/skills/genesis-harness/resources/verification-template.md +26 -26
- package/.codex/skills/genesis-harness/scripts/check-architecture-boundaries.sh +0 -0
- package/.codex/skills/genesis-harness/scripts/check-docs-sync.sh +0 -0
- package/.codex/skills/genesis-harness/scripts/check-no-debug-logs.sh +0 -0
- package/.codex/skills/genesis-harness/scripts/check-required-planning-files.sh +0 -0
- package/.codex/skills/genesis-harness/scripts/check-spec-changelog.sh +0 -0
- package/.codex/skills/genesis-harness/scripts/check-task-tracking.sh +0 -0
- package/.codex/skills/genesis-harness/scripts/compact-context.sh +0 -0
- package/.codex/skills/genesis-harness/scripts/create-adr.sh +0 -0
- package/.codex/skills/genesis-harness/scripts/create-bug.sh +0 -0
- package/.codex/skills/genesis-harness/scripts/create-feature.sh +0 -0
- package/.codex/skills/genesis-harness/scripts/detect-stack.sh +0 -0
- package/.codex/skills/genesis-harness/scripts/init-planning.sh +0 -0
- package/.codex/skills/genesis-harness/scripts/list-changed-files.sh +0 -0
- package/.codex/skills/genesis-harness/scripts/offload-log.sh +0 -0
- package/.codex/skills/genesis-harness/scripts/run-verification.sh +0 -0
- package/.codex/skills/genesis-harness/scripts/run-verify-loop.sh +0 -0
- package/.codex/skills/genesis-harness/scripts/update-state.sh +0 -0
- package/.codex/skills/genesis-mvp-planning/SKILL.md +114 -0
- package/.codex/skills/genesis-mvp-planning/agents/openai.yaml +6 -0
- package/.codex/skills/genesis-mvp-planning/checklists/mvp-readiness.md +18 -0
- package/.codex/skills/genesis-mvp-planning/examples/5-phase-roadmap-example.md +43 -0
- package/.codex/skills/genesis-mvp-planning/templates/phase-1-core.md +17 -0
- package/.codex/skills/genesis-mvp-planning/templates/phase-2-auth.md +17 -0
- package/.codex/skills/genesis-mvp-planning/templates/phase-3-features.md +17 -0
- package/.codex/skills/genesis-mvp-planning/templates/phase-4-integrations.md +17 -0
- package/.codex/skills/genesis-mvp-planning/templates/phase-5-readiness.md +17 -0
- package/.codex/skills/genesis-new-design/agents/openai.yaml +3 -3
- package/.codex/skills/genesis-observability-automation/checklists/.gitkeep +0 -0
- package/.codex/skills/genesis-observability-automation/observability/.gitkeep +0 -0
- package/.codex/skills/genesis-observability-automation/playbooks/.gitkeep +0 -0
- package/.codex/skills/genesis-observability-automation/templates/.gitkeep +0 -0
- package/.codex/skills/genesis-release-orchestration/SKILL.md +653 -653
- package/.codex/skills/genesis-release-orchestration/checklists/post-deployment-verification.md +274 -274
- package/.codex/skills/genesis-release-orchestration/checklists/pre-release-validation.md +220 -220
- package/.codex/skills/genesis-release-orchestration/observability/release-tracking.md +253 -253
- package/.codex/skills/genesis-release-orchestration/playbooks/canary-deployment-orchestration.md +472 -472
- package/.codex/skills/genesis-release-orchestration/playbooks/semantic-versioning-automation.md +494 -494
- package/.codex/skills/genesis-release-orchestration/templates/deployment-strategy-template.md +303 -303
- package/.codex/skills/genesis-release-orchestration/templates/release-runbook-template.md +420 -420
- package/.codex/skills/genesis-research-first/SKILL.md +237 -237
- package/.codex/skills/genesis-research-first/templates/.gitkeep +0 -0
- package/.codex/skills/genesis-spec-propagation/SKILL.md +534 -534
- package/.codex/skills/genesis-spec-propagation/checklists/phase-update-verification.md +384 -384
- package/.codex/skills/genesis-spec-propagation/checklists/spec-change-detection.md +257 -257
- package/.codex/skills/genesis-spec-propagation/observability/propagation-tracking.md +373 -373
- package/.codex/skills/genesis-spec-propagation/playbooks/breaking-change-propagation.md +692 -692
- package/.codex/skills/genesis-spec-propagation/playbooks/feature-change-propagation.md +434 -434
- package/.codex/skills/genesis-spec-propagation/templates/migration-guide-template.md +407 -407
- package/.codex/skills/genesis-upgrade-design/agents/openai.yaml +3 -3
- package/.codex/skills/spec-impact-engine/SKILL.md +504 -504
- package/.codex/skills/spec-impact-engine/detect-spec-changes.sh +0 -0
- package/.codex-plugin/plugin.json +19 -19
- package/CHANGELOG.md +42 -0
- package/LICENSE +22 -22
- package/README.EN.md +784 -730
- package/README.VI.md +776 -723
- package/README.md +102 -247
- package/VERSION +2 -2
- package/bin/genesis-harness.js +90 -87
- package/package.json +9 -3
- package/scripts/README.md +342 -342
- package/scripts/compact-context.sh +0 -0
- package/scripts/contract_integrity_gate.js +83 -0
- package/scripts/detect-changes.sh +0 -0
- package/scripts/healing_telemetry.js +118 -0
- package/scripts/install.sh +4 -1
- package/scripts/offload-log.sh +0 -0
- package/scripts/prompt_sentinel.js +84 -0
- package/scripts/run-evals.sh +1 -0
- package/scripts/run-verify-loop.sh +11 -0
- package/scripts/spec_visual_sync.js +157 -0
- package/scripts/test_generator.js +142 -0
- package/scripts/transition_state.sh +0 -0
- package/scripts/uninstall.sh +1 -0
- package/scripts/validation_gates.sh +40 -1
- package/scripts/verify.sh +5 -0
- package/tests/unit/contract_integrity_gate.test.js +74 -0
- package/tests/unit/healing_telemetry.test.js +58 -0
- package/tests/unit/prompt_sentinel.test.js +50 -0
- package/tests/unit/spec_visual_sync.test.js +77 -0
- package/tests/unit/test_generator.test.js +62 -0
|
@@ -1,210 +1,210 @@
|
|
|
1
|
-
# Production Bug Debug Checklist
|
|
2
|
-
|
|
3
|
-
**Purpose**: Structured investigation for production bugs with data integrity and user impact focus.
|
|
4
|
-
|
|
5
|
-
**Status**: MANDATORY - Complete before `/fix-bug` for production issues.
|
|
6
|
-
|
|
7
|
-
## Incident Assessment
|
|
8
|
-
|
|
9
|
-
- [ ] **Bug severity determined**:
|
|
10
|
-
- Critical (service down, data loss): Requires hotfix
|
|
11
|
-
- High (significant user impact): Next release or hotfix
|
|
12
|
-
- Medium (inconvenience, workaround exists): Next release
|
|
13
|
-
- Low (cosmetic, edge case): Backlog
|
|
14
|
-
|
|
15
|
-
- [ ] **User impact quantified**:
|
|
16
|
-
- How many users affected?
|
|
17
|
-
- What functionality broken?
|
|
18
|
-
- Workaround available?
|
|
19
|
-
- Revenue impact (if applicable)?
|
|
20
|
-
|
|
21
|
-
- [ ] **Reproducibility confirmed**:
|
|
22
|
-
- Reproduced in staging environment first
|
|
23
|
-
- Not reproduced in production → investigation in staging
|
|
24
|
-
- Confirmed with actual user data (if possible)
|
|
25
|
-
- Environment-specific or universal?
|
|
26
|
-
|
|
27
|
-
## Data Integrity Assessment
|
|
28
|
-
|
|
29
|
-
- [ ] **Data corruption checked**:
|
|
30
|
-
- Database queried for anomalies
|
|
31
|
-
- No orphaned records found
|
|
32
|
-
- Foreign keys still valid
|
|
33
|
-
- Timestamps/sequences consistent
|
|
34
|
-
|
|
35
|
-
- [ ] **Rollback strategy documented**:
|
|
36
|
-
- Rollback steps written down
|
|
37
|
-
- Data recovery plan if needed
|
|
38
|
-
- Backup verified
|
|
39
|
-
- Estimated rollback time
|
|
40
|
-
|
|
41
|
-
- [ ] **Data migration planned** (if applicable):
|
|
42
|
-
- Affected data identified
|
|
43
|
-
- Migration strategy documented
|
|
44
|
-
- Backwards compatibility checked
|
|
45
|
-
- Dry run successful
|
|
46
|
-
|
|
47
|
-
## Root Cause Investigation
|
|
48
|
-
|
|
49
|
-
- [ ] **Logs collected and analyzed**:
|
|
50
|
-
- Error logs reviewed
|
|
51
|
-
- Application logs checked
|
|
52
|
-
- System logs examined
|
|
53
|
-
- Timeline of events mapped
|
|
54
|
-
|
|
55
|
-
- [ ] **Recent changes identified**:
|
|
56
|
-
- Last deployment time noted
|
|
57
|
-
- Code changes reviewed (git log)
|
|
58
|
-
- Configuration changes checked
|
|
59
|
-
- Infrastructure changes noted
|
|
60
|
-
|
|
61
|
-
- [ ] **Affected versions identified**:
|
|
62
|
-
- Bug introduced in version X
|
|
63
|
-
- Affects which current versions?
|
|
64
|
-
- Oldest affected version?
|
|
65
|
-
- Fixed in which version?
|
|
66
|
-
|
|
67
|
-
- [ ] **Root cause identified** (or hypothesis):
|
|
68
|
-
- Specific code/config location
|
|
69
|
-
- Why was it missed in testing?
|
|
70
|
-
- Dependency issue or implementation?
|
|
71
|
-
- Environment-specific factor?
|
|
72
|
-
|
|
73
|
-
## Fix Strategy
|
|
74
|
-
|
|
75
|
-
- [ ] **Fix approach decided**:
|
|
76
|
-
- Minimal fix vs architectural refactor?
|
|
77
|
-
- Hotfix vs next release?
|
|
78
|
-
- Backwards compatibility needed?
|
|
79
|
-
- Breaking change implications?
|
|
80
|
-
|
|
81
|
-
- [ ] **Risk assessment completed**:
|
|
82
|
-
- Could fix introduce new bugs?
|
|
83
|
-
- Dependencies to check?
|
|
84
|
-
- Side effects analyzed?
|
|
85
|
-
- Test coverage adequate?
|
|
86
|
-
|
|
87
|
-
- [ ] **Verification plan documented**:
|
|
88
|
-
- Metrics to monitor after fix
|
|
89
|
-
- Rollback criteria defined
|
|
90
|
-
- Health checks configured
|
|
91
|
-
- Alert thresholds set
|
|
92
|
-
|
|
93
|
-
## Testing & Validation
|
|
94
|
-
|
|
95
|
-
- [ ] **Test created** (reproduces bug):
|
|
96
|
-
- Failing test demonstrates bug
|
|
97
|
-
- Test passes without bug (would fail)
|
|
98
|
-
- Test with production-like data
|
|
99
|
-
- Edge cases included
|
|
100
|
-
|
|
101
|
-
- [ ] **Fix validated** (in staging):
|
|
102
|
-
- Test passes with fix
|
|
103
|
-
- All related tests pass
|
|
104
|
-
- No new test failures
|
|
105
|
-
- Performance not degraded
|
|
106
|
-
|
|
107
|
-
- [ ] **Regression testing completed**:
|
|
108
|
-
- Full test suite passes
|
|
109
|
-
- Related features tested
|
|
110
|
-
- Integration scenarios verified
|
|
111
|
-
- Similar bugs searched for
|
|
112
|
-
|
|
113
|
-
## Deployment Planning
|
|
114
|
-
|
|
115
|
-
- [ ] **Deployment strategy determined**:
|
|
116
|
-
- Staged rollout or immediate?
|
|
117
|
-
- Feature flags needed?
|
|
118
|
-
- Canary deployment approach?
|
|
119
|
-
- Rollback testing done?
|
|
120
|
-
|
|
121
|
-
- [ ] **Communication planned**:
|
|
122
|
-
- User notification (if applicable)
|
|
123
|
-
- Workaround documented
|
|
124
|
-
- ETA for fix communicated
|
|
125
|
-
- Post-fix status update planned
|
|
126
|
-
|
|
127
|
-
- [ ] **Monitoring configured**:
|
|
128
|
-
- Key metrics identified
|
|
129
|
-
- Alerts set for regression
|
|
130
|
-
- Dashboard created for tracking
|
|
131
|
-
- On-call rotation aware
|
|
132
|
-
|
|
133
|
-
## Release & Monitoring
|
|
134
|
-
|
|
135
|
-
- [ ] **Release documentation complete**:
|
|
136
|
-
- Fix summary written
|
|
137
|
-
- User-friendly description
|
|
138
|
-
- Migration steps (if needed)
|
|
139
|
-
- Known issues documented
|
|
140
|
-
|
|
141
|
-
- [ ] **Rollback plan tested**:
|
|
142
|
-
- Rollback procedure practiced
|
|
143
|
-
- Time to rollback estimated
|
|
144
|
-
- Backup verified
|
|
145
|
-
- Stakeholders notified
|
|
146
|
-
|
|
147
|
-
- [ ] **Post-deployment monitoring** (first 24h):
|
|
148
|
-
- Error rate watched
|
|
149
|
-
- Performance metrics checked
|
|
150
|
-
- User reports monitored
|
|
151
|
-
- Rollback executed if issues
|
|
152
|
-
|
|
153
|
-
## Prevention & Lessons
|
|
154
|
-
|
|
155
|
-
- [ ] **Prevention documented**:
|
|
156
|
-
- Better test coverage needed?
|
|
157
|
-
- Contract/spec gap?
|
|
158
|
-
- Monitoring enhancement?
|
|
159
|
-
- Process improvement?
|
|
160
|
-
|
|
161
|
-
- [ ] **Similar bugs searched**:
|
|
162
|
-
- Code pattern scanned
|
|
163
|
-
- Similar issues found and tracked
|
|
164
|
-
- Prevention applied broadly
|
|
165
|
-
- Team notified
|
|
166
|
-
|
|
167
|
-
- [ ] **Documentation updated**:
|
|
168
|
-
- Behavior change documented
|
|
169
|
-
- Workaround removed (if applicable)
|
|
170
|
-
- System documentation updated
|
|
171
|
-
- Known issues list maintained
|
|
172
|
-
|
|
173
|
-
---
|
|
174
|
-
|
|
175
|
-
## Usage
|
|
176
|
-
|
|
177
|
-
When debugging production bug:
|
|
178
|
-
|
|
179
|
-
```bash
|
|
180
|
-
# 1. Assess severity
|
|
181
|
-
# - Critical: Hotfix needed
|
|
182
|
-
# - High: Plan for next release + hotfix consideration
|
|
183
|
-
# - Medium/Low: Standard fix process
|
|
184
|
-
|
|
185
|
-
# 2. Complete this checklist
|
|
186
|
-
cat .codex/skills/genesis-debug-guide/checklists/production-bug-debug.md
|
|
187
|
-
|
|
188
|
-
# 3. Proceed with /fix-bug
|
|
189
|
-
/fix-bug "Production issue: [description]"
|
|
190
|
-
|
|
191
|
-
# 4. After fix: genesis-debug-guide auto-triggers verification
|
|
192
|
-
```
|
|
193
|
-
|
|
194
|
-
## Hotfix vs Regular Release Decision
|
|
195
|
-
|
|
196
|
-
**Hotfix** (immediate deployment):
|
|
197
|
-
- ✅ Service down or data loss risk
|
|
198
|
-
- ✅ Critical user impact
|
|
199
|
-
- ✅ Can be isolated fix
|
|
200
|
-
- ✅ Adequate testing done
|
|
201
|
-
- ✅ Rollback strategy documented
|
|
202
|
-
|
|
203
|
-
**Regular Release** (next scheduled):
|
|
204
|
-
- ✅ Medium/Low severity
|
|
205
|
-
- ✅ Workaround available
|
|
206
|
-
- ✅ Can wait for next release
|
|
207
|
-
- ✅ No data integrity risk
|
|
208
|
-
- ✅ More complex fix with side effects
|
|
209
|
-
|
|
210
|
-
**Default**: Regular release unless severity assessment says otherwise.
|
|
1
|
+
# Production Bug Debug Checklist
|
|
2
|
+
|
|
3
|
+
**Purpose**: Structured investigation for production bugs with data integrity and user impact focus.
|
|
4
|
+
|
|
5
|
+
**Status**: MANDATORY - Complete before `/fix-bug` for production issues.
|
|
6
|
+
|
|
7
|
+
## Incident Assessment
|
|
8
|
+
|
|
9
|
+
- [ ] **Bug severity determined**:
|
|
10
|
+
- Critical (service down, data loss): Requires hotfix
|
|
11
|
+
- High (significant user impact): Next release or hotfix
|
|
12
|
+
- Medium (inconvenience, workaround exists): Next release
|
|
13
|
+
- Low (cosmetic, edge case): Backlog
|
|
14
|
+
|
|
15
|
+
- [ ] **User impact quantified**:
|
|
16
|
+
- How many users affected?
|
|
17
|
+
- What functionality broken?
|
|
18
|
+
- Workaround available?
|
|
19
|
+
- Revenue impact (if applicable)?
|
|
20
|
+
|
|
21
|
+
- [ ] **Reproducibility confirmed**:
|
|
22
|
+
- Reproduced in staging environment first
|
|
23
|
+
- Not reproduced in production → investigation in staging
|
|
24
|
+
- Confirmed with actual user data (if possible)
|
|
25
|
+
- Environment-specific or universal?
|
|
26
|
+
|
|
27
|
+
## Data Integrity Assessment
|
|
28
|
+
|
|
29
|
+
- [ ] **Data corruption checked**:
|
|
30
|
+
- Database queried for anomalies
|
|
31
|
+
- No orphaned records found
|
|
32
|
+
- Foreign keys still valid
|
|
33
|
+
- Timestamps/sequences consistent
|
|
34
|
+
|
|
35
|
+
- [ ] **Rollback strategy documented**:
|
|
36
|
+
- Rollback steps written down
|
|
37
|
+
- Data recovery plan if needed
|
|
38
|
+
- Backup verified
|
|
39
|
+
- Estimated rollback time
|
|
40
|
+
|
|
41
|
+
- [ ] **Data migration planned** (if applicable):
|
|
42
|
+
- Affected data identified
|
|
43
|
+
- Migration strategy documented
|
|
44
|
+
- Backwards compatibility checked
|
|
45
|
+
- Dry run successful
|
|
46
|
+
|
|
47
|
+
## Root Cause Investigation
|
|
48
|
+
|
|
49
|
+
- [ ] **Logs collected and analyzed**:
|
|
50
|
+
- Error logs reviewed
|
|
51
|
+
- Application logs checked
|
|
52
|
+
- System logs examined
|
|
53
|
+
- Timeline of events mapped
|
|
54
|
+
|
|
55
|
+
- [ ] **Recent changes identified**:
|
|
56
|
+
- Last deployment time noted
|
|
57
|
+
- Code changes reviewed (git log)
|
|
58
|
+
- Configuration changes checked
|
|
59
|
+
- Infrastructure changes noted
|
|
60
|
+
|
|
61
|
+
- [ ] **Affected versions identified**:
|
|
62
|
+
- Bug introduced in version X
|
|
63
|
+
- Affects which current versions?
|
|
64
|
+
- Oldest affected version?
|
|
65
|
+
- Fixed in which version?
|
|
66
|
+
|
|
67
|
+
- [ ] **Root cause identified** (or hypothesis):
|
|
68
|
+
- Specific code/config location
|
|
69
|
+
- Why was it missed in testing?
|
|
70
|
+
- Dependency issue or implementation?
|
|
71
|
+
- Environment-specific factor?
|
|
72
|
+
|
|
73
|
+
## Fix Strategy
|
|
74
|
+
|
|
75
|
+
- [ ] **Fix approach decided**:
|
|
76
|
+
- Minimal fix vs architectural refactor?
|
|
77
|
+
- Hotfix vs next release?
|
|
78
|
+
- Backwards compatibility needed?
|
|
79
|
+
- Breaking change implications?
|
|
80
|
+
|
|
81
|
+
- [ ] **Risk assessment completed**:
|
|
82
|
+
- Could fix introduce new bugs?
|
|
83
|
+
- Dependencies to check?
|
|
84
|
+
- Side effects analyzed?
|
|
85
|
+
- Test coverage adequate?
|
|
86
|
+
|
|
87
|
+
- [ ] **Verification plan documented**:
|
|
88
|
+
- Metrics to monitor after fix
|
|
89
|
+
- Rollback criteria defined
|
|
90
|
+
- Health checks configured
|
|
91
|
+
- Alert thresholds set
|
|
92
|
+
|
|
93
|
+
## Testing & Validation
|
|
94
|
+
|
|
95
|
+
- [ ] **Test created** (reproduces bug):
|
|
96
|
+
- Failing test demonstrates bug
|
|
97
|
+
- Test passes without bug (would fail)
|
|
98
|
+
- Test with production-like data
|
|
99
|
+
- Edge cases included
|
|
100
|
+
|
|
101
|
+
- [ ] **Fix validated** (in staging):
|
|
102
|
+
- Test passes with fix
|
|
103
|
+
- All related tests pass
|
|
104
|
+
- No new test failures
|
|
105
|
+
- Performance not degraded
|
|
106
|
+
|
|
107
|
+
- [ ] **Regression testing completed**:
|
|
108
|
+
- Full test suite passes
|
|
109
|
+
- Related features tested
|
|
110
|
+
- Integration scenarios verified
|
|
111
|
+
- Similar bugs searched for
|
|
112
|
+
|
|
113
|
+
## Deployment Planning
|
|
114
|
+
|
|
115
|
+
- [ ] **Deployment strategy determined**:
|
|
116
|
+
- Staged rollout or immediate?
|
|
117
|
+
- Feature flags needed?
|
|
118
|
+
- Canary deployment approach?
|
|
119
|
+
- Rollback testing done?
|
|
120
|
+
|
|
121
|
+
- [ ] **Communication planned**:
|
|
122
|
+
- User notification (if applicable)
|
|
123
|
+
- Workaround documented
|
|
124
|
+
- ETA for fix communicated
|
|
125
|
+
- Post-fix status update planned
|
|
126
|
+
|
|
127
|
+
- [ ] **Monitoring configured**:
|
|
128
|
+
- Key metrics identified
|
|
129
|
+
- Alerts set for regression
|
|
130
|
+
- Dashboard created for tracking
|
|
131
|
+
- On-call rotation aware
|
|
132
|
+
|
|
133
|
+
## Release & Monitoring
|
|
134
|
+
|
|
135
|
+
- [ ] **Release documentation complete**:
|
|
136
|
+
- Fix summary written
|
|
137
|
+
- User-friendly description
|
|
138
|
+
- Migration steps (if needed)
|
|
139
|
+
- Known issues documented
|
|
140
|
+
|
|
141
|
+
- [ ] **Rollback plan tested**:
|
|
142
|
+
- Rollback procedure practiced
|
|
143
|
+
- Time to rollback estimated
|
|
144
|
+
- Backup verified
|
|
145
|
+
- Stakeholders notified
|
|
146
|
+
|
|
147
|
+
- [ ] **Post-deployment monitoring** (first 24h):
|
|
148
|
+
- Error rate watched
|
|
149
|
+
- Performance metrics checked
|
|
150
|
+
- User reports monitored
|
|
151
|
+
- Rollback executed if issues
|
|
152
|
+
|
|
153
|
+
## Prevention & Lessons
|
|
154
|
+
|
|
155
|
+
- [ ] **Prevention documented**:
|
|
156
|
+
- Better test coverage needed?
|
|
157
|
+
- Contract/spec gap?
|
|
158
|
+
- Monitoring enhancement?
|
|
159
|
+
- Process improvement?
|
|
160
|
+
|
|
161
|
+
- [ ] **Similar bugs searched**:
|
|
162
|
+
- Code pattern scanned
|
|
163
|
+
- Similar issues found and tracked
|
|
164
|
+
- Prevention applied broadly
|
|
165
|
+
- Team notified
|
|
166
|
+
|
|
167
|
+
- [ ] **Documentation updated**:
|
|
168
|
+
- Behavior change documented
|
|
169
|
+
- Workaround removed (if applicable)
|
|
170
|
+
- System documentation updated
|
|
171
|
+
- Known issues list maintained
|
|
172
|
+
|
|
173
|
+
---
|
|
174
|
+
|
|
175
|
+
## Usage
|
|
176
|
+
|
|
177
|
+
When debugging production bug:
|
|
178
|
+
|
|
179
|
+
```bash
|
|
180
|
+
# 1. Assess severity
|
|
181
|
+
# - Critical: Hotfix needed
|
|
182
|
+
# - High: Plan for next release + hotfix consideration
|
|
183
|
+
# - Medium/Low: Standard fix process
|
|
184
|
+
|
|
185
|
+
# 2. Complete this checklist
|
|
186
|
+
cat .codex/skills/genesis-debug-guide/checklists/production-bug-debug.md
|
|
187
|
+
|
|
188
|
+
# 3. Proceed with /fix-bug
|
|
189
|
+
/fix-bug "Production issue: [description]"
|
|
190
|
+
|
|
191
|
+
# 4. After fix: genesis-debug-guide auto-triggers verification
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
## Hotfix vs Regular Release Decision
|
|
195
|
+
|
|
196
|
+
**Hotfix** (immediate deployment):
|
|
197
|
+
- ✅ Service down or data loss risk
|
|
198
|
+
- ✅ Critical user impact
|
|
199
|
+
- ✅ Can be isolated fix
|
|
200
|
+
- ✅ Adequate testing done
|
|
201
|
+
- ✅ Rollback strategy documented
|
|
202
|
+
|
|
203
|
+
**Regular Release** (next scheduled):
|
|
204
|
+
- ✅ Medium/Low severity
|
|
205
|
+
- ✅ Workaround available
|
|
206
|
+
- ✅ Can wait for next release
|
|
207
|
+
- ✅ No data integrity risk
|
|
208
|
+
- ✅ More complex fix with side effects
|
|
209
|
+
|
|
210
|
+
**Default**: Regular release unless severity assessment says otherwise.
|