Commit 0e97b19
feat(hooks): add daemon-strict mode to prevent concurrent local writes
When PALACE_DAEMON_URL is set, hooks now skip all local palace writes
(both auto-ingest mining and silent-save fallback) instead of writing
to a local SQLite. The daemon at the URL is treated as the single
source of truth.
Without this, hooks fired from any session could create a second writer
on the SQLite file — under Syncthing replication this produces sync
conflicts and disk-image corruption (see incident 2026-04-24).
Set PALACE_DAEMON_STRICT=0 to opt back into the old fall-through-on-
daemon-failure behavior.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>1 parent c09582c commit 0e97b19
2 files changed
Lines changed: 27 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
266 | 274 | | |
267 | 275 | | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
268 | 279 | | |
269 | 280 | | |
270 | 281 | | |
| |||
279 | 290 | | |
280 | 291 | | |
281 | 292 | | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
282 | 296 | | |
283 | 297 | | |
284 | 298 | | |
| |||
454 | 468 | | |
455 | 469 | | |
456 | 470 | | |
457 | | - | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
458 | 483 | | |
459 | 484 | | |
460 | 485 | | |
| |||
0 commit comments