F# codegen: JSON HTTP path + causation via JasperFx 2.2.4 (GH-2969)#2978
Merged
Conversation
…-2969) Picks up the F# self-identifier fix (#393, shipped in JasperFx 2.2.4) and uses it to unblock the inherited-instance-method frames that F# couldn't emit before — completing the Wolverine.Http JSON request/response path (Phase C) and message-causation tracking. - Bump JasperFx / .Events / .Events.SourceGenerator / .SourceGenerator 2.2.3 -> 2.2.4 (RuntimeCompiler stays on its 5.x line). 2.2.4 emits `member this.` for generated F# members, so inherited instance calls resolve. - WriteJsonFrame: `do! this.WriteJsonAsync(httpContext, result)`. - ReadJsonBody: `let! (body, jsonContinue) = this.ReadJsonAsync<T>(httpContext)` followed by FSharpEmitHelpers.WriteAbortGuard for the no-early-return stop check (reachable from Wolverine.Http via the existing InternalsVisibleTo). - RecordMessageCausationFrame: `this.RecordCauseAndEffect(context, context.Runtime.Observer)`. - Re-enabled the POST/JSON endpoint in the Http F# driver and turned on EnableMessageCausationTracking in the Core driver, so all three frames are compile-gated. fsharp-coverage: Core 25 implemented / 2 skipped / 17 remaining of 44; with Wolverine.Http loaded 28 / 2 / 51 of 81. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This was referenced Jun 1, 2026
Merged
This was referenced Jun 4, 2026
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.
Picks up the F# self-identifier fix (jasperfx#393, shipped in JasperFx 2.2.4) and uses it to unblock the inherited-instance-method frames F# couldn't emit before — completing the Wolverine.Http JSON request/response path (Phase C) and message-causation tracking.
Changes
JasperFx,.Events,.Events.SourceGenerator,.SourceGenerator;RuntimeCompilerstays on its 5.x line). 2.2.4 emitsmember this.for generated F# members, so inherited instance calls resolve.WriteJsonFrame→do! this.WriteJsonAsync(httpContext, result)ReadJsonBody→let! (body, jsonContinue) = this.ReadJsonAsync<T>(httpContext)+FSharpEmitHelpers.WriteAbortGuardfor the no-early-return stop check (the helper is reachable fromWolverine.Httpvia the existing[InternalsVisibleTo]).RecordMessageCausationFrame→this.RecordCauseAndEffect(context, context.Runtime.Observer)EnableMessageCausationTrackingin the Core driver, so all three frames are compile-gated.Generated F# (the JSON POST endpoint)
Verification
fsharp-coverage: Core 25 / 2 / 17 of 44; withWolverine.Httploaded 28 / 2 / 51 of 81.dotnet build wolverine_fsharp.slnx -c Release+ all 4 gate/coverage tests — green.dotnet build wolverine.slnx -c Releaseregression (whole solution on 2.2.4) — 0 warnings, 0 errors.Part of #2969.
🤖 Generated with Claude Code