Skip to content

[Feature] Add lineage fields to the event log for per-run trace reconstruction #841

Description

@addu390

Search before asking

  • I searched in the issues and found nothing similar.

Description

Follow-up from #710.

The event log records every event with its full payload, but you can't rebuild a single run as a causal tree. A record has no link to the action that emitted the event or the event that action was processing.

Proposal: add a few lineage fields to each event log record (emitting action, source event id, run/trace id) so a run's trace tree can be rebuilt offline from the log. Reverse edges (event to triggered actions) can be derived from the agent plan's trigger rules, so no need to record them.

Scope is recording only, per #710. Reconstruction, visualization and OTel export are potential future follow-ups. I'll share a short design here before implementing.

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature[Issue Type] New features or improvements to existing features.priority/majorDefault priority of the PR or issue.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions