Search before asking
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?
Search before asking
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?