# HyperTwist Phase 4 gameplay generated-mode selector option stored-request delta / selector-diff surface packet

Created on `2026-05-08`

Status:

- first-party HyperTwist packet
- bounded Phase `4` gameplay-facing consumer slice

## Purpose

This packet closes the next thin gameplay-facing consumer seam above the panel-widget and session-actor generated-mode selector option request-alignment surface by exposing one parameterized option stored-request delta / selector-diff surface for a chosen selector id.

The open tasks were:

- stop forcing gameplay / Blueprint callers to diff cached selector choices and stored launch-request payloads just to render the exact selector change set behind a chosen imported option
- expose the exact current-vs-hypothetical-vs-stored selector delta posture for each imported option, plus the current selection’s own delta posture
- keep the surface derived from already-cached gameplay consumer run, selector, and request state plus the already-landed option-detail, dispatch, and request-alignment surfaces instead of widening into backend logic

It is not:

- a selector-dispatch behavior change
- a launch-request persistence change
- a generated-mode backend execution change
- a broader gameplay UI composition pass

## Scope

Bounded lane:

- add first-party generated-mode selector option stored-request delta / selector-diff surfaces in shared training types
- add a coach-library helper that derives current-vs-hypothetical-vs-stored selector diffs from cached run state plus the already-landed option-detail, dispatch, and request-alignment surfaces
- expose that parameterized stored-request delta surface on `HyperTwistTrainingPanelWidget` and `HyperTwistTrainingSessionActor`
- keep the derivation presentation-only and rooted in the already-owned selector-choice / launch-request rules

Out of scope:

- changing selector-choice apply behavior
- changing direct owned-case launch behavior
- changing stored launch-request creation, refresh, or execute behavior
- widening into higher-level UI composition or dashboard-only work

## Why this was the right next packet

Before this slice:

- gameplay-facing panel/session consumers already exposed truthful generated-mode option request-alignment / execute-preview posture
- those same consumers already exposed truthful generated-mode option dispatch posture

But one thin consumer seam was still open:

- callers could tell whether a chosen option stayed aligned with the stored request, required refresh, or left selectors unresolved
- but they still had to diff the concrete selector choices themselves to explain exactly what changed between current, hypothetical, and stored baselines

That meant:

- request-alignment posture was thin and reusable
- but exact selector-diff reasoning still leaked cached launch-request and selector-choice comparison work into callers

So the next bounded move was:

- keep the already-landed option-detail, dispatch, and request-alignment surfaces unchanged
- and expose one narrow stored-request delta / selector-diff surface above those already-cached surfaces

## What landed

Primary code changes:

- `UnrealHyperTwist/Source/UnrealHyperTwist/Public/HyperTwistTraining/HyperTwistTrainingTypes.h`
  - added `EHyperTwistTrainingCoachGeneratedModeOptionStoredRequestDeltaKind`
  - added `FHyperTwistTrainingCoachGeneratedModeSelectorOptionSelectorDiffEntrySurface`
  - added `FHyperTwistTrainingCoachGeneratedModeSelectorOptionStoredRequestDeltaEntrySurface`
  - added `FHyperTwistTrainingCoachGeneratedModeSelectorOptionStoredRequestDeltaSurface`
- `UnrealHyperTwist/Source/UnrealHyperTwist/Public/HyperTwistTraining/HyperTwistTrainingCoachLibrary.h`
- `UnrealHyperTwist/Source/UnrealHyperTwist/Private/HyperTwistTraining/HyperTwistTrainingCoachLibrary.cpp`
  - added `DeriveCoachGeneratedModeSelectorOptionStoredRequestDeltaSurface(...)`
  - stored-request delta preview is derived from cached run state plus the already-landed option-detail, dispatch, and request-alignment surfaces
- `UnrealHyperTwist/Source/UnrealHyperTwist/Public/HyperTwistTraining/HyperTwistTrainingPanelWidget.h`
- `UnrealHyperTwist/Source/UnrealHyperTwist/Private/HyperTwistTraining/HyperTwistTrainingPanelWidget.cpp`
  - added `GetDisplayedCoachGeneratedModeSelectorOptionStoredRequestDeltaSurface(const FString& SelectorId)`
- `UnrealHyperTwist/Source/UnrealHyperTwist/Public/HyperTwistTraining/HyperTwistTrainingSessionActor.h`
- `UnrealHyperTwist/Source/UnrealHyperTwist/Private/HyperTwistTraining/HyperTwistTrainingSessionActor.cpp`
  - added `GetDisplayedCoachGeneratedModeSelectorOptionStoredRequestDeltaSurface(const FString& SelectorId)`

Surface behavior:

- reports the exact current-vs-hypothetical-vs-stored selector change set for each imported option on the chosen selector
- exposes per-selector diff rows with current, hypothetical, and stored request values plus pairwise delta lines
- classifies each option as no-delta, current-delta-only, stored-request-delta-only, current-and-stored delta, unresolved-after-choice, direct-launch, or unavailable
- reports a compact stored-request delta preview for the current cached selection on the chosen selector
- keeps the surface presentation-only and compatible with the already-landed generated-mode option-detail, dispatch, and request-alignment surfaces

## Validation

Validation target:

- full `Development Editor|Win64` build of `C:\HyperTwist\UnrealHyperTwist\UnrealHyperTwist.sln`

Result:

- passed with `0` warnings and `0` errors

## Follow-on

The next bounded packet on this same gameplay-facing consumer lane should stay thin and expose one generated-mode selector option hypothetical launch-request payload / refresh-preview surface so callers can render the concrete selector-choice payload, stored-request reuse posture, and request-refresh preview for a chosen option without rebuilding launch-config payloads directly.
