1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// SPDX-FileCopyrightText: 2026 Andrei G <bug-ops>
// SPDX-License-Identifier: MIT OR Apache-2.0
//! Feature-gated metrics helpers for the `MemCoT` distillation pipeline.
//!
//! All public functions are no-ops when the `task-metrics` feature is disabled.
//! This pattern matches the existing `agent_supervisor.rs` convention.
/// Increment the `memcot_distill_total` counter.
/// Increment the `memcot_distill_timeout_total` counter.
/// Increment the `memcot_distill_error_total` counter.
/// Increment the `memcot_distill_skipped_total` counter with the given reason label.
///
/// `reason` should be `"interval"` or `"session_cap"`.