Skip to content

bug(multi-agent): council combines failures and assigns the diagnosis only to the first result #424

Done

Description

@utkarsh232005

Description

The multi-agent pipeline aggregates all analyzer failures into one prompt and writes the resulting consensus only to the first analyzer result. A cluster scan with multiple failing workloads therefore loses per-workload attribution.

The same path also manufactures an error result when no analyzer reported a failure but a resource selector was supplied. That turns a healthy or empty scan into a synthetic incident.

Impact

  • The diagnosis can describe several workloads while appearing under one workload.
  • Other failing results receive no council explanation.
  • Healthy, filtered, or empty scans can report a failure that does not exist.

Expected behavior

Run council analysis independently for each failing analyzer result, preserving its kind, name, namespace, failures, and consensus. Do not invoke the council or synthesize an error when no failures were detected.

Acceptance criteria

  • Filter results to failures before invoking the council.
  • Create one prompt and context per failing result.
  • Attach each consensus to its matching result.
  • Return an empty, healthy result set when analyzers find no failures.
  • Add coverage for multiple failures and zero-failure scans.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugneeds triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions