Checking account…

Failure-path spike

Test the Shortcut bridge

The temporary Shortcut named JFF Bridge Test reads each requested test mode. Native cancellation uses the cancellation callback. Handled errors return structured JSON through the success callback because a runtime action error did not invoke the error callback on the tested iOS 27 device.

Run success testReturn valid correlated JSON.
Run malformed-result testReturn text that is not JSON.
Run cancellation testStop the Shortcut during a 30-second wait.
Run handled-error testReturn structured error JSON through the success callback.

Valid success output

The success branch builds this response using the request ID extracted from Shortcut input:

{"protocolVersion":1,"requestId":"<requestId from JFF input>","ok":true,"operation":"status","data":{"shortcutVersion":"spike"}}

Handled-error output

The error branch builds this response using the same correlated request ID:

{"protocolVersion":1,"requestId":"<requestId from JFF input>","ok":false,"operation":"status","error":{"code":"forced_error","message":"Forced test error"}}