Skip to content

Add a Causal Lens for errors, answers, and file changes #6

Description

@raphant

Goal

Let users select an outcome and see the event chain that produced it.
Useful outcomes include an error, final answer, file edit, commit, or completed subagent result.

Proposed change

Build a causal graph from existing parent, agent, tool, file, and time relationships.
Dim unrelated nodes and highlight the prompts, tools, files, and subagents on the selected path.

Acceptance criteria

  • Users can start the lens from an error, answer, edit, or subagent result.
  • The graph distinguishes established event links from time-based inferences.
  • Each highlighted edge explains why the events are connected.
  • Users can clear the lens and return to the unchanged live graph.
  • A fixture test covers one branching session with an error and recovery.

Source

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions