Skip to content

feat: FilterConfidence enum for output filter results #440

@bug-ops

Description

@bug-ops

Parent

Epic #426, Plan: .local/plan/m26.1-output-filtering-improvements.md
Priority: P1

Problem

No way to distinguish between full parsing, partial filtering, and fallback. Prevents metrics tracking, LLM summarization routing, and regression detection.

Design

pub enum FilterConfidence {
    Full,      // Successfully parsed and filtered
    Partial,   // Partial filtering (unknown flags/format variation)
    Fallback,  // Format unknown, returned raw output
}

Added to FilterResult struct. Filters set confidence based on command flags (--format json -> Fallback, --verbose -> Partial, standard -> Full).

Acceptance Criteria

  • FilterConfidence enum with 3 variants
  • Added to FilterResult struct
  • Test filter: Fallback for --format json, Partial for --verbose
  • Logged in apply() with tracing::debug!
  • Unit tests for confidence logic

Metadata

Metadata

Assignees

No one assigned

    Labels

    toolsTool execution and MCP integration

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions