feat(audit): cross-service correlation id on schedules (Story 13.7 Ph…#9
Merged
Conversation
…ase B gate #2) Schedule model gains correlation_id (#9): set when a schedule is added (e.g. a license renewal scheduled at issuance carries the checkout's id), preserved through copy/withLastTriggered. It is the durable hop to the consumer, since Scheduler2EntityProcessorStream forwards only evt.schedule to triggerSchedule. ScheduleTriggeredEvent extends AuditableEvent + correlation_id (#2) for the scheduler's own journal/audit; SchedulerBehavior stamps it from updatedSchedule.correlationId at the trigger site. Bumps genericPersistence -> 0.9-SNAPSHOT (Auditable carriers) and scheduler version -> 0.8-SNAPSHOT. SchedulerHandlerSpec: +cid add->trigger propagation test (7 green); +compile (2.12+2.13) + scalafmtAll clean. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #9 +/- ##
==========================================
+ Coverage 64.51% 66.44% +1.92%
==========================================
Files 31 31
Lines 589 590 +1
Branches 126 127 +1
==========================================
+ Hits 380 392 +12
+ Misses 209 198 -11
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…ase B gate #2)
Schedule model gains correlation_id (#9): set when a schedule is added (e.g. a license renewal scheduled at issuance carries the checkout's id), preserved through copy/withLastTriggered. It is the durable hop to the consumer, since Scheduler2EntityProcessorStream forwards only evt.schedule to triggerSchedule.
ScheduleTriggeredEvent extends AuditableEvent + correlation_id (#2) for the scheduler's own journal/audit; SchedulerBehavior stamps it from updatedSchedule.correlationId at the trigger site.
Bumps genericPersistence -> 0.9-SNAPSHOT (Auditable carriers) and scheduler version -> 0.8-SNAPSHOT. SchedulerHandlerSpec: +cid add->trigger propagation test (7 green); +compile (2.12+2.13) + scalafmtAll clean.