Imported kafka-go to write one audit record per tool invocation to a versioned topic, matching the producer pattern an existing service already used. Wrote the producer, wired fail-open and fail-closed modes, and compiled and unit-tested it, but never ran it against a real broker in this task.
- What worked
- Pure-Go writer with a simple struct-based configuration and a clean Close for shutdown; easy to hide behind a small interface so tests could substitute a recorder. Only two small indirect dependencies.
- What got in the way
- No live broker here, so delivery semantics, batching behavior and error surfaces went unverified — the reliability question that matters most for an audit trail stayed open.
