Restart is not power off: why a signup phone check needs a retry path, not just pass or reject
A public question asks why computers and phones offer a restart option next to power off. We cannot answer for any device maker, do not represent the person who asked and fix no platform. The question maps onto a real decision in a signup flow. When a phone check cannot answer, you can end the attempt, which is the power off choice: reject the signup. Or you can retry within a limit and then hand off to review, which is the restart choice. This article uses only the checked four-branch synthetic phone example to show which branches call for which path. It also separates what the fixture actually returns from the application policy you would still have to design and own.
curl https://gridzen.ai/console/api/quickstart/trial \
-H 'Content-Type: application/json' \
-d '{"task": "signup_phone", "scenario": "success"}'The problem and the decision
Your signup form calls a phone check. Sometimes it returns a clean result. Sometimes the answer is missing because the provider call failed or the result is unknown. If every non-pass is treated as a final rejection, a temporary failure ends a legitimate signup. The decision you have to make is which outcomes count as terminal and which can be resumed. In the analogy, power off ends the session. Restart keeps the intent and tries again from a clean state. The fixture does not make this decision for you. Its next field names a suggested path, and your application decides what happens after that.
What the fixture actually returns
The downloadable example runs locally with Python 3.10 or later. It uses no credentials and makes no network calls. You run the phone task with one of four branches: normal, unknown, provider_failure and otp. Every output includes these fields: - mode: synthetic_fixture - branch - otp_sent: false - live_line_type_available: false - state - valid - line_type - next The tested outputs for each branch are: - normal: state simulated, valid true, line_type mobile, next continue_customer_policy. - unknown: state unknown, valid null, line_type null, next review_or_existing_otp. - provider_failure: state unknown, valid null, line_type null, next bounded_retry_then_review. - otp: state unsupported, valid null, line_type null, next customer_otp_provider. Any other branch raises UNSUPPORTED_FIXTURE. The mobile line type in the normal branch is synthetic data. The current free production route does not request line type, ownership, reachability or OTP delivery. No branch sends a code.
Worked hypothetical scenario
This scenario is hypothetical. A small B2B team's signup flow receives the provider_failure output. Under the proposed application design, the team maps the next value bounded_retry_then_review to a restart. The flow keeps the signup pending. It retries the check a fixed number of times with a delay between attempts. If no answer arrives, it moves the signup to a review queue. It never stores the result as invalid, because valid is null, not false. For the unknown branch, the team routes the signup either to review or to the OTP provider it already uses. For the otp branch, it calls its own provider. The fixture recorded otp_sent false, so nothing has been sent yet. Only the normal branch continues under the team's own policy. In this design, the power off choice, a final rejection, would be reserved for a definitive negative that the team's own policy defines. None of the four fixture branches returns valid false.
Failure handling your code owns
The fixture names a path. It does not perform retries, keep counters or run a review queue. Under the proposed design, your application would own these pieces: - a retry limit and a backoff delay; - a persisted attempt count, so that restarting a worker does not reset the limit; - a timeout after which the signup goes to review; - a clear distinction in storage between unknown and invalid. The broader example's engineering tests cover simulated transitions, bindings, duplicate callbacks, restart and timeouts in its identity fixture. Its recovery step expires a session locally and reports provider_polled false. It does not poll any provider. The fixture accepts only synthetic callbacks, not real signatures. Permissions recorded in the fixture are local records, not live business permission.
Limits to keep in view
A phone validity result is not proof that the user owns the number, and it is not proof of identity. The synthetic outputs prove that the local code branches correctly. They do not prove production success or the availability of any live route. Eligible businesses can self-enroll for free Basic Lookup at a technical rate limit of 60 requests per minute. That route returns no line type, and live access needs separate confirmation.
Acceptance checklist
- Run all four branches and match each output exactly, field by field. - Confirm that otp_sent is false and live_line_type_available is false in every output. - Map each next value to a documented application path. - Ensure that a null valid is never stored as a rejection. - Persist retry counts and enforce a limit followed by review. - Test that an unsupported branch surfaces UNSUPPORTED_FIXTURE. - Record that line_type mobile is synthetic data. - Only then decide whether a saved sandbox request fits your task.
Run the checked synthetic example
Download and extract https://gridzen.ai/downloads/verification-delivery.zip, enter verification_delivery, then run with Python 3.10+. This local example makes no network calls. Use a fresh database for an independent identity run.
python3 delivery.py phone --branch unknown
python3 delivery.py phone --branch provider_failureSources and scope
https://gridzen.ai/guides/signup-phone-check/ https://gridzen.ai/guides/current-capabilities/ Based on the checked source snapshot and local fixture; proposed application rules are design advice, not proven production behavior. Written with AI assistance and reviewed independently.
Separately try three sandbox outcomes Create an account to continue integrating
A download does not prove a successful run. Local examples and the online sandbox are tested separately.