Learning

Go Deeper

Read the Reference through Its Root

Read the complete bounded Rust realization and its limits.

Downloads

Download the complete Rust reference. Its README states the promise, checks and limits.

The model verifies a demonstration assertion, admits a unique subject, records an account/session/owed confirmation, and applies one of two entry policies. Entry and confirmation remain separate continuations.

Reading Step Source Question
Selected promise OpenWorkshop and ConfirmedWorkshop in src/model.rs Which entry choice is configured?
Exposed relationships WorkshopStories in src/contract.rs Which prerequisites and continuations can a consumer follow?
Actual work Private stage fields and implementations in src/model.rs Which subject and workshop are retained?
Observed consequence tests/flows.rs What changes when the policy or current facts change?
Engineering Depth

The generic consumer can follow the story without naming private carrier types:

fn register<S: WorkshopStories>(shop: &mut S, assertion: &str) -> (S::Session, S::Confirmation) {
    shop.signup(assertion.into())
        .verify()
        .unwrap()
        .admit()
        .unwrap()
        .record()
        .into_followups()
}

unwrap() belongs to this known-valid test fixture. An application must handle its declared refusal and unavailability outcomes.

Compare an attempted shortcut:

// Invalid use: Submitted has no record() method.
shop.signup("a".into()).record();

Verification and admission establish the legitimate next capabilities. Merely naming the variable verified would not change its type or the facts established.

After recording, the reference exposes both follow-ups:

pub trait RecordedRegistration: private::Stage + Sized {
    type Session;
    type Confirmation;
    fn into_followups(self) -> (Self::Session, Self::Confirmation);
}
Relationship Evidence in the Model
Identity before admission Associated successor contracts
Same actual workshop Retained borrow and later instance check
Current session facts Entry checks on every visit
Owed work after a dropped handle Pending record retained by the workshop
Work after process loss Not implemented; memory is lost

The last row is a boundary, not an invitation to claim that ownership equals durability.

Your Reflection

Find one static relationship, one runtime check and one unsupported production claim. Then explain how a different realization could preserve the same promise.

Worked Discussion

A successful verifier returns a successor supporting admission. Entry still checks revocation and expiry. A process crash destroys the reference's memory. A durable realization could preserve the promise using appropriate storage and source-safe recovery, but must earn those guarantees with its own implementation and evidence.

Navigation