Skip to content

fix: shared processor event extractors - #239

Open
savme wants to merge 1 commit into
mainfrom
fix/processor-event-activity-divergence
Open

savme wants to merge 1 commit into
mainfrom
fix/processor-event-activity-divergence

Conversation

@savme

@savme savme commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

The processor builds an Activity from a Kubernetes event in two different places: EventProcessor handles the live NATS consumer path, ActivityBuilder handles PolicyPreview and the reindex job. Both independently resolve the event's actor, subject, and timestamp, and the implementations drifted somewhat apart.

This PR merges both into one set of shared extractors in internal/processor/utils.go, so live processing, preview, and reindex all resolve an event the same way.

Test plan

  • go test
  • Added TestEventBuildersParity, asserting the live path and the preview/reindex path produce identical output for the same event

Related to datum-cloud/compute#100

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant