You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cache: no metric or structured log event emitted when a probe hold expires naturally vs. is released early by eviction pressure #739
ProbeHoldOutcome.BudgetExhausted is counted as probe_hold_violations, but there is no observable signal distinguishing a hold that ran to its full PROBE_HOLD_DURATION from one that was pre-empted by the eviction driver. Operators cannot distinguish misconfigured eviction cadence from genuine cache pressure without this distinction.
This issue requests a new observability signal in the cache crate: distinguishing whether a ProbeHoldOutcome::BudgetExhausted was caused by the hold running to its natural PROBE_HOLD_DURATION timeout vs. being cut short by the eviction driver. Currently both cases increment probe_hold_violations indiscriminately, preventing operators from diagnosing eviction misconfiguration vs. actual cache pressure.
📊 Assessment
Dimension
Value
Reasoning
Type
Enhancement
Requests a new metric/structured-log emission; no existing behaviour is broken
Labels
enhancement, technical, medium
Observability improvement in the cache crate; moderate operator impact; straightforward scope
Coding agent
Suitable
Well-defined: locate the ProbeHoldOutcome::BudgetExhausted arm, split it into two variants or add a sub-reason, emit distinct counters/log events. Success criteria are clear.
🔗 Similar issues
No monitoring/alerting for slashable conditions facing honest operators #150 (related, closed) — "No monitoring/alerting for slashable conditions facing honest operators" explicitly listed probe_hold_violations_total as a needed metric and was closed as completed. This issue drills deeper into the same counter, requesting finer-grained discrimination within that metric.
💡 Notes and suggestions
Scope
Locate ProbeHoldOutcome enum (likely in crates/cache/) and the site(s) where BudgetExhausted is emitted.
Add two sub-paths (or a new enum variant) to separate natural expiry from eviction-preemption:
probe_hold_expired_natural_total — hold reached PROBE_HOLD_DURATION without eviction.
probe_hold_preempted_by_eviction_total — eviction driver released the hold early.
Emit a structured tracing event (tracing::info! / tracing::warn!) with a reason field so operators have both a metrics signal and a log trail.
Implementation checklist
Split BudgetExhausted into two variants or add a reason: HoldReleaseReason field.
Update the probe_hold_violations counter site (or replace with the two new counters).
Add structured log events at the split point.
Update appendix-observability.md (or the relevant ADR section) to document the new counters.
Add unit/integration test asserting each counter increments only for its respective path.
Note: The closed issue #150 already recommended probe_hold_violations_total be added; confirm it landed before duplicating work.
Activity
github-actions commentedon May 31, 2026
🎯 Triage report
This issue requests a new observability signal in the
cachecrate: distinguishing whether aProbeHoldOutcome::BudgetExhaustedwas caused by the hold running to its naturalPROBE_HOLD_DURATIONtimeout vs. being cut short by the eviction driver. Currently both cases incrementprobe_hold_violationsindiscriminately, preventing operators from diagnosing eviction misconfiguration vs. actual cache pressure.📊 Assessment
enhancement,technical,mediumProbeHoldOutcome::BudgetExhaustedarm, split it into two variants or add a sub-reason, emit distinct counters/log events. Success criteria are clear.🔗 Similar issues
probe_hold_violations_totalas a needed metric and was closed as completed. This issue drills deeper into the same counter, requesting finer-grained discrimination within that metric.💡 Notes and suggestions
Scope
ProbeHoldOutcomeenum (likely incrates/cache/) and the site(s) whereBudgetExhaustedis emitted.probe_hold_expired_natural_total— hold reachedPROBE_HOLD_DURATIONwithout eviction.probe_hold_preempted_by_eviction_total— eviction driver released the hold early.tracingevent (tracing::info!/tracing::warn!) with areasonfield so operators have both a metrics signal and a log trail.Implementation checklist
BudgetExhaustedinto two variants or add areason: HoldReleaseReasonfield.probe_hold_violationscounter site (or replace with the two new counters).appendix-observability.md(or the relevant ADR section) to document the new counters.Note: The closed issue #150 already recommended
probe_hold_violations_totalbe added; confirm it landed before duplicating work.Add this agentic workflows to your repo
To install this agentic workflow, run
feat(node): split probe-hold refusal metric by cause — disabled vs ex…
refactor: two protocol simplifications — probe-hold reason label, ADR…