Commit ddc9339
Three review findings on PR #128:
1. /internal/notify now handles kind="recalc" like project_reset — invalidate
the result/compare LRUs and reload buckaroo sessions. An MCP-driven recalc
(the primary path) arrives via _notify, so without this the companion kept
serving stale viewer state that only the in-process /api/recalc route cleaned
up (#80's communication-gap class).
2. Both recalc emitters publish through a single _recalc_sse_event(remap, step)
helper, so the SSE event is the same {kind, remap, step} shape regardless of
surface. The MCP _notify now forwards report.checkpoint_step too; the notify
handler republishes normalized instead of the raw payload.model_dump() that
buried remap under extra and dropped step.
3. recalc()'s root guard checks the manifest, not the directory. verdicts (and
the cone) are keyed by manifest-bearing entries, so a dir-without-manifest
root (a crashed mid-build leftover) used to enter the cone and KeyError the
walk at verdicts[hash]; it is now dropped and the run reports clean.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 69a4bb4 commit ddc9339
3 files changed
Lines changed: 53 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
237 | 250 | | |
238 | 251 | | |
239 | 252 | | |
| |||
1220 | 1233 | | |
1221 | 1234 | | |
1222 | 1235 | | |
1223 | | - | |
| 1236 | + | |
1224 | 1237 | | |
1225 | 1238 | | |
1226 | 1239 | | |
| |||
1239 | 1252 | | |
1240 | 1253 | | |
1241 | 1254 | | |
1242 | | - | |
1243 | | - | |
1244 | | - | |
1245 | | - | |
1246 | | - | |
1247 | | - | |
1248 | | - | |
| 1255 | + | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
1249 | 1273 | | |
1250 | 1274 | | |
1251 | 1275 | | |
1252 | 1276 | | |
1253 | | - | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
1254 | 1286 | | |
1255 | 1287 | | |
1256 | 1288 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
941 | 941 | | |
942 | 942 | | |
943 | 943 | | |
944 | | - | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
945 | 948 | | |
946 | 949 | | |
947 | 950 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
129 | | - | |
130 | | - | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
131 | 135 | | |
132 | 136 | | |
133 | 137 | | |
| |||
0 commit comments