Files
xarmian b1dce0eddb feat(server): log every unguarded content write the PLAN-3555 counter counts (TASK-4062) (#2301)
pad_content_writes_unguarded_total and pad_collab_append_failures_total are
in-process counters with no scraper, zeroed by every restart, so the week
PLAN-3555 phase 2 waits on cannot be read from them. Log each event instead,
so the count survives restarts in the server log.

- handlers_items.go: one slog.Info("content write unguarded") per Inc(),
  outside the metrics guard, carrying door, kind, item ref and id, workspace
  id, actor kind and actor user id. Never the body, the title or a field value.
- Collab needs no new line: "collab: append op-log" already sits in the same
  branch as the counter. Its test now pins one line per counted failure.

Claude-Session: https://claude.ai/code/session_01Hk4vxsaKDm3E1LvsoHtHeV
2026-10-24 10:32:10 -04:00
..