Awesome Reviewers

Make observability code behave like a correctness-critical contract—not “best effort.”

Apply these rules:

Example pattern (typed helper + bounded payload + opt-out safe):

// core-events.ts
export function capturePendingPromptsDiscarded(
  telemetry: ITelemetryService | undefined,
  details: { sessionId: string; count: number; reason: "queue_abort" | "session_teardown" },
): void {
  emit(telemetry, CORE_TELEMETRY_EVENTS.SESSION.PENDING_PROMPTS_DISCARDED, details);
}