Skip to content

refactor(hedge)!: type hedge events - #413

Merged
thomhurst merged 1 commit into
mainfrom
issue-390-typed-hedge-event
Aug 27, 2026
Merged

refactor(hedge)!: type hedge events#413
thomhurst merged 1 commit into
mainfrom
issue-390-typed-hedge-event

Conversation

@thomhurst

Copy link
Copy Markdown
Owner

Summary

  • add HedgeEvent<TResult> with the latest handled outcome
  • make typed OnHedge callbacks result-aware while preserving untyped callbacks
  • record typed hedge outcomes in TelemetryRecorder
  • update public API metadata and hedging documentation

Validation

  • dotnet build Kevlar.slnx -c Release -p:Version=0.0.390
  • core tests: net10.0 (1,283), net8.0 (1,249)
  • testing tests: net10.0 (63), net8.0 (60)
  • integration tests (171), allocation gates (4), analyzer tests (298)
  • package, API docs, 208 strict snippets, docs verification, Docusaurus production build

Closes #390

Typed hedging callbacks now receive the handled outcome without boxing, while delay-triggered hedges report no outcome. TelemetryRecorder preserves typed results and exceptions.

BREAKING CHANGE: HedgeOptions<TResult>.OnHedge now accepts HedgeEvent<TResult>.

Refs #390
@coderabbitai

coderabbitai Bot commented Aug 27, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 508cf937-4cb0-490d-8e7e-d6e9d3281c1f


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@thomhurst
thomhurst merged commit 032a146 into main Aug 27, 2026
10 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.

refactor(hedge)!: typed HedgeEvent<TResult> for HedgeOptions<TResult>.OnHedge

1 participant