Skip to content

[v2] Cognitive Lattice: Build Attention Scatter Detector #662

Description

@SHAURYASANYAL3

Phase 4: Cognitive Lattice

The Context

When an agent becomes confused or goes rogue, its attention often scatters—it begins reading random files across completely different directories, or pinging unrelated network domains. We can detect this structural scatter.

Tasks

  • Implement AttentionScatterDetector.
  • Track all paths and domains the agent accesses over a sliding window of the last N steps.
  • Compute the entropy/variance of these resources (e.g., path depth, directory divergence).
  • Enforce an invariant to block actions if the combined scatter metric spikes beyond a defined threshold (indicating loss of focus).

Part of Epic #651

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions