feat(tui): add compaction probe metrics to TUI dashboard (#2049)#2055
Merged
feat(tui): add compaction probe metrics to TUI dashboard (#2049)#2055
Conversation
Display compaction probe validation statistics in the TUI memory panel: - Probe pass rate, soft/hard failure rates, error count - Last probe verdict (Pass/SoftFail/HardFail/Error) with score - Color-coded verdict rendering (Green/Yellow/Red/Gray) Adds ProbeVerdict enum variant for Error verdicts (metrics-only, not used by probe logic). Updates MetricsSnapshot with last_probe_verdict and last_probe_score fields. Implements conditional rendering in memory panel (hidden when no probes run). All 9 acceptance criteria verified by architect, critic, developer, tester, perf engineer, security engineer, impl-critic, and reviewer.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Display compaction probe validation statistics in the TUI memory panel for post-compression context integrity monitoring.
Features:
Changes
Core
zeph-memory: AddProbeVerdict::Errorvariant (metrics-only, not used by probe logic)zeph-core/metrics.rs: Addlast_probe_verdict: Option<ProbeVerdict>andlast_probe_score: Option<f32>fieldszeph-core/summarization.rs: Update 4update_metrics()calls to set new fields; handle Error variantTUI
zeph-tui/widgets/memory.rs: Render probe stats in two-line layout with color-coding and abbreviations (P/S/H/E)Design Decisions
Per approved architecture (issue #2049 design review):
Option<f32> = None) — prevents stale/misleading dataValidation
Closes #2049