Developer training

Fail Closed and Durable State

Deny a blank request, then show restart creating no new permit.

Explanation

What you are learning

Recommended first: HIOP Fundamentals. You can still study this lesson.

When the request is blank, the workstation fails closed. The blank request id is DENY, reason malformed, and nothing executes. There is no best guess. Durable state is the other half of the lesson. A successful dispatch consumes the nonce. Restart restores that consumed state. It does not mint a permit and it does not run the effect again. Malformed input fails closed. Restart is not a reset button for authority.

Worked example

Teaching workstation

These fields were returned by the teaching workstation for this lesson. They are not a production permit.

A blank request fails closed

Submit a blank request id

outcome
DENY
dispatch
false
executed
false
reason
malformed
effect
lab.observe
actor id
operator
resource
scope-a
request id

Restart keeps the nonce consumed

After a successful dispatch, restart and present the nonce again

outcome
DENY
dispatch
false
executed
false
reason
replay_rejected
effect
lab.observe
actor id
operator
resource
scope-a
request id
durable-1
Exercise

Try it before you check

Check the blank row first. Then check that the nonce still does not run after restart.

Which way does malformed input fail?
Assessment

Explain the result

Does restart mint a permit?

This lesson is not complete yet.

Materials

Use these with the lesson

A passed check is saved in this browser so you can resume. It is not a certificate, not an accreditation, and not authority to run an effect.