Skip to content
D20DAO

Does a New Arc Epoch Change an In-Flight VRF Request?

Track a D20DAO Arc request across an epoch boundary. Keep its original identity and deadline while resolving publication, target-block and delivery state.

The request stays attached to its original epoch

An Arc application opens a D20DAO randomness request near the end of an epoch. Before its result arrives, the dashboard advances to the next epoch. Should the application move the pending request to that new epoch? No. Under the current coordinator rules, the request keeps the epoch ID assigned when it was created.

Consider a job router waiting to select a worker from a fixed eligible list. Its pending operation should continue following its own request ID. Updating the dashboard's current-epoch label must not replace the operation's request or silently initiate another selection. This guide explains that boundary; it does not announce a protocol change.

Record the creation context before following publication

A request can be created successfully before its epoch packet is published. Creation records its consumer, client seed, mapping, request block, epoch ID and refund recipient, along with its timestamp-based deadline. The coordinator also checkpoints the epoch's source-selection anchor through the registry.

Retain the chain, coordinator and request ID with the application operation. Keep the original epoch ID and creation receipt as part of that record. A global current-epoch value describes where newly created requests belong; it is not a lookup key for every request still awaiting delivery.

Some fields resolve after the request already exists

Before publication, the request's complete VRF input is unresolved. Its epoch hash and usable target-block context are not available simply because creation succeeded. The current getRequest reader resolves epoch-dependent fields from the registry once the original epoch has a committed packet.

That means a previously unresolved field can acquire a value in a later read without the request being replaced. Model this as publication or target readiness, not a new draw. In particular, do not fill an empty epoch hash with the hash from the latest EpochCommitted event. The matching event must belong to the request's recorded epoch.

An epoch boundary is not the publication cutoff

The registry's current commit rules do not impose an end-of-epoch cutoff on an otherwise eligible publication. An older epoch can therefore receive its packet after the next epoch begins. Publication still requires an authorized committer, an uncommitted epoch, valid source selection, usable anchor context and an acceptable fresh attestation. Rollover does not guarantee that those conditions will be met.

The request's anchor checkpoint helps preserve its original selection context. It does not publish a packet or force an operator to act. Continue looking for publication of the original epoch; a newer epoch's publication cannot substitute for it.

Derive the target from the original request and commit

For the current Arc coordinator, the target block is max(requestBlock, epochCommitBlock + 1). It is strictly after publication. If publication happens after rollover, use the commit block for the request's original epoch, together with that request's block. Do not use the start of the new epoch as a replacement target.

Publication alone is not proof acceptance. The required confirmation wait and usable target hash must also be available before verification can complete. An interface should distinguish an existing request, published epoch packet, ready target and accepted result rather than treating the current epoch as a single completion flag.

Keep the same timestamp deadline across the boundary

The current coordinator sets the request deadline to its creation timestamp plus 60 seconds. Epoch publication and waiting for the target consume that same window. Starting another epoch neither shortens nor extends it. A transaction waiting to be included is not an accepted proof.

If no proof is accepted by the deadline, the expiry-refund path applies after it, subject to the request's actual state and recorded refund terms. Settlement needs a transaction. Conversely, accepted proof with a failed consumer callback requires delivery recovery with the same word, not an expiry refund or an automatic replacement request.

Keep the pending operation separate from dashboard navigation

Let the job router's operation retain its original request identity while the user browses newer epochs. Resolve publication by the stored epoch ID, update target readiness from that context, and process the authenticated callback against the stored operation. Refreshing or navigating the page should not create another paid request.

If the original request expires, follow the application's published failure policy. Any permitted replacement is a separate request and must remain linked to its predecessor; it must not erase the original outcome or provide repeated attempts until a preferred worker is selected. Verify deployment and implementation context when applying these rules to actual receipts.

Check the transition without assuming a successful delivery

Use these acceptance requirements for an application's local tests. They describe proposed checks, not an executed integration or a promise of network timing:

  1. Create a request near an epoch boundary and preserve its identity and deadline after the current epoch advances.
  2. Publish the original epoch later and resolve its fields without opening a replacement request.
  3. Receive a newer epoch's event first and leave the older request attached to its original epoch.
  4. Distinguish target readiness, proof acceptance and callback delivery before changing the operation's status.
  5. Exercise missing publication and expiry without resetting the deadline or silently selecting again.