Fix UE 5.8 compatibility in the Unreal SDK #4779
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.43) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 365 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.353
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #4779"
general
weight: 0.35
markmandel
What type of PR is this?
/kind bug
What this PR does / Why we need it:
UE 5.8 defaults
FJsonObject::Valueskeys toUE::FSharedString. The Unreal SDK's implicit conversions toFJsonValueStringandconst FString&fail to compile with this default. Explicitly construct owningFStringvalues for annotation, label, and counter keys. Older engines pass theirFStringkeys through the same longstanding copy constructor; this needs no version checks or JSON configuration changes.Add two development Automation tests that deserialize JSON and exercise the metadata and status constructors, checking metadata keys and values, ASCII and Unicode counter keys, counter counts and capacities, and null entry handling.
Which issue(s) this PR fixes:
Closes #4778
Did you use AI tools in preparing this PR?:
Y — This PR was written in part with the assistance of generative AI. The commit message was supplied by the human contributor. The patch received code review and local validation before submission.
Special notes for your reviewer:
Validation on macOS arm64:
Agones.Json.ObjectMetaKeysandAgones.Json.StatusCounterKeyspass (2 successes, no failures). The patched Agones 1.61.0 plugin also builds in AxiometryDemo with the tests included.FStringand compiles all three conversions and the test registration flags. A full UE 5.6.1 build cannot start because this engine's Apple SDK manifest requires Xcode 15.2–16.9; only Xcode 26.6 is installed.ScriptInterface.hhas a privateFScriptInterface::Serializeaccess error. A separate syntax-only compilation of the PR's actualClassesTests.cppagainst UE 4.27 headers passed after making those legacy engine diagnostics nonfatal and disabling access control to get past that unrelated engine header error. This only checks source syntax; it is not a successful UE4 project build or Automation run.The fix uses explicit
FStringconstruction, which resolves to the existingFStringcopy constructor on older engine JSON maps and to the shared-string range constructor on UE 5.8.