iop/apps
toki 2b3793149c fix(edge/openai): remove preview fields from production logs
Remove all *_preview zap.String/Any fields from OpenAI-compatible log
calls (chat_handler, responses_handler, stream) so that prompt, content,
reasoning, source, and delta values are never written in plain to
operational logs.

Replace preview fields with non-content metadata:
  - prompt_len, content_len, reasoning_len, delta_len, source_len
  - message_count, content_len, finish_reason, tool_call_count

Also remove the now-unused previewString helper from types.go.

Add log_safety_test.go with regression tests that:
  - verify no *_preview fields exist on any log line
  - verify operational metadata fields are retained for observability
  - verify logOpenAICompatStreamOutput does not emit delta_preview
2026-07-06 15:21:50 +09:00
..
client chore: sync proto files and clean up review docs 2026-06-28 08:05:46 +09:00
control-plane refactor: organize contract files and update agent-ops structure 2026-06-27 07:02:48 +09:00
edge fix(edge/openai): remove preview fields from production logs 2026-07-06 15:21:50 +09:00
node Include missing untracked files 2026-07-05 05:20:11 +09:00
worker