Skip to content

feat(audit): cross-service correlation id on schedules (Story 13.7 Ph…#9

Merged
fupelaqu merged 1 commit into
mainfrom
feature/audit
Jun 14, 2026
Merged

feat(audit): cross-service correlation id on schedules (Story 13.7 Ph…#9
fupelaqu merged 1 commit into
mainfrom
feature/audit

Conversation

@fupelaqu

Copy link
Copy Markdown
Contributor

…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.

…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

codecov Bot commented Jun 14, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 66.44%. Comparing base (2ec337e) to head (28ca425).

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     
Flag Coverage Δ
unittests 66.44% <100.00%> (+1.92%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@fupelaqu fupelaqu merged commit d208563 into main Jun 14, 2026
5 checks passed
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