Skip to content

Conversation

@saponifi3d
Copy link
Contributor

Description

Was looking at the data, and we're still logging quite a bit of data; refactoring to use the IDs and added type safety to the snapshot.

This will also add types to the WorkflowEvaluationSnapshot, which is useful when decomposing the .to_log data.

@saponifi3d saponifi3d requested a review from a team as a code owner November 18, 2025 05:52
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Nov 18, 2025

associated_detector: DetectorSnapshot | None
event_id: str | None # ID in NodeStore
group: Group | None
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't group be quite large? Do you need the entire object or just parts of it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in this case we're doing two things to protect us:

  • we're filtering the log down to just the group id [code]
  • if this is logged, it just ends up being the repr for the model, so like: <Group #a897ea987 project_id=332> [code]

Copy link
Member

@JoshFerge JoshFerge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<3

@saponifi3d saponifi3d merged commit 5dfd006 into master Nov 19, 2025
65 checks passed
@saponifi3d saponifi3d deleted the jcallender/aci/more-log-refactors branch November 19, 2025 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants