| ... | ... | @@ -333,15 +333,6 @@ Counts: active `51` (`valid=33`, `partially-valid=18`), closed-invalid `6` |
| 333 | 333 | |
| 334 | 334 | ### Phase 6 |
| 335 | 335 | |
| 336 | | - [ ] `C024` In `executeUnprepared`, preparing outside an effect and not closing the statement can cause uncaught errors and leaks. Suggest wrapping with `Effect.acquireUseRelease`: prepare in acquire (error-safe) and `finalize` in release. |
| 337 | | - Status: `TODO` |
| 338 | | - Verdict: `partially-valid` |
| 339 | | - Severity: `Medium` |
| 340 | | - Area: `Other` |
| 341 | | - File: `apps/server/src/persistence/NodeSqliteClient.ts:145` |
| 342 | | - Threads: PRRT_kwDORLtfbc5whxX9 |
| 343 | | - Audit note: prepare() still outside managed effect boundary; failure handling risk remains. |
| 344 | | |
| 345 | 336 | - [ ] `C028` Branch sync dispatches both server and stale local update |
| 346 | 337 | - Status: `TODO` |
| 347 | 338 | - Verdict: `partially-valid` |
| ... | ... | @@ -351,8 +342,8 @@ Counts: active `51` (`valid=33`, `partially-valid=18`), closed-invalid `6` |
| 351 | 342 | - Threads: PRRT_kwDORLtfbc5v-XCu |
| 352 | 343 | - Audit note: Optimistic local+server dual update is intentional but can temporarily diverge. |
| 353 | 344 | |
| 354 | | - [ ] `C037` `Effect.callback` should return a cleanup function to close the server(s) on fiber interruption. Without it, the `Net.Server` handles keep the process alive and leak the port if the effect is cancelled. <details> <summary>🚀 Reply "<strong>fix it for me</strong>" or copy this <strong>AI Prompt</strong> for your agent:</summary> |
| 355 | | - Status: `TODO` |
| 345 | - [x] `C037` `Effect.callback` should return a cleanup function to close the server(s) on fiber interruption. Without it, the `Net.Server` handles keep the process alive and leak the port if the effect is cancelled. <details> <summary>🚀 Reply "<strong>fix it for me</strong>" or copy this <strong>AI Prompt</strong> for your agent:</summary> |
| 346 | - Status: `DONE` |
| 356 | 347 | - Verdict: `partially-valid` |
| 357 | 348 | - Severity: `Low` |
| 358 | 349 | - Area: `Other` |