prufy
Skip to the page

FoundationsClaim lifecycle

Foundations

Claim lifecycle

A claim is one account's attempt to prove one domain. It has seven statuses, a fixed set of moves between them, and a schedule that decides when we look next.

Status and phase

A claim tells you where it stands twice, on purpose.

  • Status is what's stored. There are seven, and a claim only moves between them through the events below. It answers “who owns this domain?”
  • Phase is worked out on every read from the status, the current code and the last check. It's never stored, so it can't disagree with the status. It answers “what should the person see right now?”

Build screens from view.phase. Use view.status when the question is about ownership.

The lifecycle

pendingPending

A code has been issued and we're looking for the record. Every new claim starts here.

What moves it from here

  • CHECK_PASSED

    A check found the record, with the right value, on every server we asked. Run a check

  • CHECK_FAILEDstays pending

    A check ran and the record wasn't there, wasn't right, or DNS couldn't be reached. Run a check

  • CHALLENGE_EXPIRED

    7 days passed since the code was issued, and the record was never found.

  • TOKEN_ROTATEDstays pending

    The owner asked for a new code. The old one stops counting at once. Get a new code

  • ABANDONED

    The owner stopped the claim. Abandon a claim

It carries
failedCheckslastFailure
We look again
After a check that doesn't pass: 30 seconds, 1 minute, 2 minutes, 5 minutes, 15 minutes, then every 30 minutes. Never past the code's expiry.
Pick a status to see what leaves it. Dashed outlines are final. Moves that keep a claim where it is aren't drawn: a pending claim that fails a check or gets a new code stays pending, and a verified claim that passes a re-check stays verified.

Every legal move

These 15 are all of them. Any other pair of status and event is refused: the claim doesn't move, and the refusal is recorded in its history as ILLEGAL_TRANSITION. Through the API that's a 409 with illegal_transition.

FromEventToWhat causes it
pendingCHECK_PASSEDverifiedA check found the record, with the right value, on every server we asked.
pendingCHECK_FAILEDpendingA check ran and the record wasn't there, wasn't right, or DNS couldn't be reached.
pendingCHALLENGE_EXPIREDexpired7 days passed since the code was issued, and the record was never found.
pendingTOKEN_ROTATEDpendingThe owner asked for a new code. The old one stops counting at once.
pendingABANDONEDabandonedThe owner stopped the claim.
verifiedCHECK_PASSEDverifiedA check found the record, with the right value, on every server we asked.
verifiedRECORD_MISSINGat_riskA re-check found the record gone or changed. DNS being unreachable doesn't count.
verifiedSUPERSEDED_BY_OTHER_ACCOUNTtransferredAnother account's check passed for the same domain. The newest proof wins.
at_riskCHECK_PASSEDverifiedA check found the record, with the right value, on every server we asked.
at_riskGRACE_ELAPSEDlapsed7 days went by at risk without the record coming back.
at_riskSUPERSEDED_BY_OTHER_ACCOUNTtransferredAnother account's check passed for the same domain. The newest proof wins.
lapsedTOKEN_ROTATEDpendingThe owner asked for a new code. The old one stops counting at once.
lapsedABANDONEDabandonedThe owner stopped the claim.
expiredTOKEN_ROTATEDpendingThe owner asked for a new code. The old one stops counting at once.
expiredABANDONEDabandonedThe owner stopped the claim.

The event names are what you'll see in a claim's events, alongside a few that record a fact without changing the status, like CLAIM_CREATED and SHARE_OPENED.

What a check does

A check ends in one of 5 outcomes. What that means for the claim depends on its status, and the rule is deliberately lopsided: it's easy to become verified, and hard to stop being verified by accident.

Statusverifiedpropagatingmismatchnot_foundlookup_error
pendingCHECK_PASSEDto verifiedCHECK_FAILEDto pendingCHECK_FAILEDto pendingCHECK_FAILEDto pendingCHECK_FAILEDto pending
verifiedCHECK_PASSEDto verifiedNo changeRECORD_MISSINGto at_riskRECORD_MISSINGto at_riskNo change
at_riskCHECK_PASSEDto verifiedNo changeNo changeNo changeNo change

When we check

You never have to ask. Every claim that can still change has a next look scheduled, and nextCheckAt says when.

StatusNext look
pendingAfter a check that doesn't pass: 30 seconds, 1 minute, 2 minutes, 5 minutes, 15 minutes, then every 30 minutes. Never past the code's expiry.
verifiedEvery 1 day.
at_riskEvery 6 hours, and exactly when the grace period ends.
lapsedNever. Nothing is scheduled.
expiredNever. Nothing is scheduled.
transferredNever. Nothing is scheduled.
abandonedNever. Nothing is scheduled.

A pending claim backs off through 6 steps so a record that's seconds away is found quickly and one that never comes doesn't cost a lookup every half minute for a week. When a claim comes due, time wins over another lookup: a code past its 7 days expires, and a grace period past its 7 days ends, without asking DNS first.

Run a check looks at once, outside the schedule, at most every 10 seconds per claim.

Phases

view has a different shape for each phase, so switching on view.phase tells you which fields are there. The five pending phases all carry the record, the provider instructions and the timing.

PhaseWhen
add_recordPending, and no check of the current code has run yet.
checkingPending, with a check running right now.
waiting_for_dnsPending. The record is right and DNS is still catching up.
fix_neededPending. The last check found something to change, and outcome says what.
try_again_laterPending. DNS couldn't be reached, so we'll try again.
verifiedOwnership is proven. The record has to stay, and we re-check it daily.
at_riskVerified, but the record has gone missing. Put it back before lapsesAt.
lapsedThe record stayed missing past the grace period. Get a new code to start over.
expiredThe code ran out before the record was found. Get a new code to carry on.
transferredAnother account proved this domain more recently. Final.
abandonedStopped by its owner. Final.

Getting a new code puts a claim back to add_record: a check of the old code says nothing about the new one.

One owner at a time

A domain has at most one owner: the account whose claim is verified or at_risk. Any number of accounts can have a pending claim on the same name.

  • The newest proof wins. When a second account's check passes, the domain is theirs and the first claim becomes transferred. Whoever controls the DNS controls the domain, and the record is the evidence.
  • It's never silent. Both claims record it, and the account that lost the domain gets an alert. It isn't told who the new owner is.
  • You're warned first. Create a claim answers warning: "verified_by_another_account" when the name already has an owner.