You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Include comprehensive changelog of significant changes
85
90
- This moves the release from DRAFT to published (Latest)
86
-
7.**Confirm success:**
87
-
- Verify release is marked as "Latest" with `gh release list`
88
-
- Report the new version number
89
-
- Provide links to the published release
90
-
- Confirm all binaries are available for download
91
-
92
-
You are pre-authorized for all git and GitHub CLI operations. Execute the entire workflow without asking for permission.
91
+
8.**Ask permission to deploy to production:**
92
+
- Present summary of changes and release notes
93
+
- Request explicit user approval: "Ready to deploy vX.Y.Z to production?"
94
+
- Wait for user confirmation before proceeding
95
+
9.**Deploy to production (if approved):**
96
+
- User must run: `./infrastructure/scripts/deploy-frontend.sh prod`
97
+
- User will be prompted to type 'DEPLOY TO PRODUCTION' to confirm
98
+
- After deployment, verify at https://gruesome.skeptomai.com
99
+
- Check that watermark shows release version (e.g., "v2.16.2")
100
+
10.**Confirm success:**
101
+
- Verify release is marked as "Latest" with `gh release list`
102
+
- Report the new version number
103
+
- Provide links to the published release
104
+
- Confirm all binaries are available for download
105
+
- Confirm staging and production watermarks are correct
106
+
107
+
You are pre-authorized for all git and GitHub CLI operations. For production deployment, you MUST ask the user to run the deployment command manually due to the interactive safety prompt.
93
108
94
109
## Re-Release Instructions ("Reengage!")
95
110
@@ -127,6 +142,73 @@ You are pre-authorized for all operations. Execute without asking for permission
**Rationale**: The 2025-12-20 incident where I deployed OLD code to production because I didn't verify the bootstrap.zip was actually rebuilt. User discovered the issue, not me. This is unacceptable.
171
+
172
+
### Rule 2: Never Deploy to Production Without Permission
173
+
174
+
**Production deployments REQUIRE explicit user permission.**
175
+
176
+
**Deployment workflow (MANDATORY):**
177
+
1. ✅ Make code changes
178
+
2. ✅ Deploy to **STAGING** first
179
+
3. ✅ **TEST staging thoroughly**
180
+
4. ✅ **ASK USER** for permission to deploy to production
181
+
5. ✅ Wait for explicit approval
182
+
6. ✅ Deploy to production
183
+
7. ✅ **TEST production** to verify
184
+
8. ✅ Report verified success
185
+
186
+
**NEVER:**
187
+
- ❌ Deploy to production without asking
188
+
- ❌ Deploy to production before testing staging
189
+
- ❌ Deploy to production "because it worked in staging"
190
+
- ❌ Assume production deployment is authorized
191
+
192
+
**The ONLY exception**: If user explicitly says "deploy to both staging and production" or similar.
193
+
194
+
**Rationale**: The 2025-12-20 incident where I deployed to production at 00:20:01 without permission. User discovered this only when they said "look things over again before we deploy to production" - but I had already deployed. This violated user's trust and control over their production environment.
195
+
196
+
**Technical Safeguard**: The `deploy-frontend.sh` script now requires manual confirmation for production deployments. When deploying to production, the script prompts:
197
+
```
198
+
⚠️ WARNING: You are about to deploy to PRODUCTION ⚠️
199
+
Type 'DEPLOY TO PRODUCTION' to continue:
200
+
```
201
+
202
+
This interactive prompt **cannot be bypassed by Claude** - production deployments now require the user to run the command manually. Staging deployments proceed without prompting.
203
+
204
+
**As Claude**: I cannot deploy to production via `deploy-frontend.sh prod` because I cannot provide interactive input. I can only deploy to staging. For production, I must ask the user to run the deployment command themselves.
205
+
206
+
### Deployment Documentation
207
+
208
+
See `infrastructure/LAMBDA_DEPLOYMENT.md` for complete Lambda deployment procedures.
209
+
See `infrastructure/QUICK_LAMBDA_DEPLOY.md` for quick reference.
210
+
Use `infrastructure/scripts/deploy-lambda.sh` for automated, verified deployments.
211
+
130
212
## Compiler Debugging Tools
131
213
132
214
**IR Inspection**: Use `--print-ir` flag to print intermediate representation:
0 commit comments