Commit ccf0cb4
committed
prm: don't attempt remote branch deletion where the proxy blocks it
Close-out step 5 assumed every environment could delete a remote ref, so a
proxied web session (Claude Code on the web) burned turns on pushes that can
never land: the egress proxy returns HTTP 403 on the git-receive-pack POST
carrying a ref deletion, and the GitHub MCP surface exposes no delete verb.
Add a one-shot environment probe before the close-out, skip the remote half of
step 5 outright when it answers, and defer those branches to /repo_cleanup
(its Bucket B enumerates origin branches, so a local sweep picks them up).
Also correct the remote-environment note, which claimed step 5 ran "as usual"
over gh, and record deferred branches in the ledger alongside deleted ones.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DHmxnBNwDGedeUoRJk9iFz1 parent f94d216 commit ccf0cb4
2 files changed
Lines changed: 59 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
40 | 50 | | |
41 | 51 | | |
42 | 52 | | |
| |||
119 | 129 | | |
120 | 130 | | |
121 | 131 | | |
122 | | - | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
123 | 136 | | |
124 | | - | |
| 137 | + | |
| 138 | + | |
125 | 139 | | |
126 | | - | |
| 140 | + | |
127 | 141 | | |
128 | 142 | | |
129 | | - | |
| 143 | + | |
| 144 | + | |
130 | 145 | | |
131 | 146 | | |
132 | 147 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
193 | 226 | | |
194 | 227 | | |
195 | 228 | | |
| |||
198 | 231 | | |
199 | 232 | | |
200 | 233 | | |
201 | | - | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
202 | 237 | | |
203 | 238 | | |
204 | 239 | | |
205 | 240 | | |
206 | 241 | | |
207 | | - | |
208 | | - | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
0 commit comments