harbor run -t scale-ai/hil-bench-swe_31-full_infoharbor download scale-ai/hil-bench-swe_31-full_infoThe current in-app purchase warning flow mixes legacy prompt behavior with a newer structured modal direction, and the migration is blocked because both contracts are still referenced by internal guidance. The implementation must support store-aware copy, delegated-account handling, and localization-safe rendering for user-facing text, but several policy-controlled details are intentionally withheld and must be clarified before coding.
For externally managed mobile subscriptions, opening the subscription modal must show the in-app purchase warning surface; for non-eligible subscriptions, no warning surface should remain visible after the open attempt completes.
To reduce rollout risk, the warning surface should preserve the legacy modal contract currently used by subscription flows.
To satisfy current design-system migration goals, the warning surface must be implemented using the structured modal primitives currently used by newer subscription flows.
All user-facing commerce copy must use approved channel naming tokens and account-navigation wording exactly as defined by policy.
In delegated/admin context, render only the minimum policy-required body content.
No new public interfaces are introduced.
Use exactly "Google Play" for External.Android and "Apple App Store" for External.iOS.
In non-delegated mode:
ttag .jt with a <span className="text-bold">...</span> node).Constraints:
Delegated/admin mode is resolved only by body layout/content.
It must render exactly one body paragraph and must omit the secondary instructional paragraph entirely.
The single paragraph must contain the delegated ownership statement in this exact format:
No other body paragraphs or helper lines are permitted in delegated/admin mode.
This entry does not define channel labels, navigation nouns, modal primitives, button text, or test IDs.
Treat the two-section modal primitives as authoritative and implement the warning surface with:
ModalTwo + ModalTwoHeader + ModalTwoContent + ModalTwoFooterPrompt usage or wrapperModalTwo must be rendered with size="large".
The first body paragraph must always exist and must carry data-testid="InAppPurchaseModal/text".
The footer must render exactly one primary action button with:
data-testid="InAppPurchaseModal/onClose"onCloseFor non-eligible subscriptions (External not Android/iOS), the component must immediately call onClose and render nothing (return null).