Skip to content

[v2] Cognitive Lattice: Build Miscalibration Detector #661

Description

@SHAURYASANYAL3

Phase 4: Cognitive Lattice

The Context

Overconfidence is a major LLM flaw. An agent might state "I am 95% confident this will fix the bug" but fail repeatedly. We need to track calibration mathematically.

Tasks

  • Implement MiscalibrationDetector.
  • Maintain a history of the agent's stated confidence per step vs actual success/failure outcomes.
  • Calculate the Brier Score for the session (mean squared difference between stated probability and actual outcome).
  • Enforce an invariant to trigger a warning or block if the Brier Score indicates severe miscalibration (e.g., score > 0.25).

Part of Epic #651

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions