Learning

What-If Cases

A Matching Type Is Not Matching Work

Refuse foreign work without losing the original obligation.

Downloads

Two workshop objects contain an account in slot 0. A confirmation ticket was created by the left workshop, but is sent to the right one.

Fact What It Establishes
Both tickets have the same Rust type. Compatible structure and operations.
Both accounts use slot 0. The same position inside different stores.
The ticket retains the left workshop's identity. Which actual store owns the work.

The right workshop must refuse the foreign ticket. That refusal must not erase the left workshop's pending confirmation.

Engineering Depth

The reference compares instance identity, not just a slot number:

if !Arc::ptr_eq(&self.workshop.identity, &self.session.workshop) {
    return Err(EntryFailure::ForeignSession);
}

Its runtime case checks both refusal and retained obligation:

assert!(matches!(right.delivery(ticket), Err(ForeignWork)));
assert_eq!(left.owed_messages(), 1);

This does not require a different Rust type for every workshop instance. The type constrains what kind of value can be passed; the runtime binding identifies the actual owner.

Now transfer the reasoning to a review:

Approval Fact Attempted Use Missing Relationship
Version 7 was reviewed. Publish version 8. Exact content/version binding
Store A's record 7 was reviewed. Act on store B's record 7. Store/scope identity
A person was authorized yesterday. Perform a new protected action today. Current authority where the action requires it

A transaction can keep a current check and its stored change together. It cannot be stretched indefinitely across a person's review delay. Durable work must retain the decision and re-establish the required current facts when it resumes.

Your Reflection

Which facts would a later publication request reload? Which could be retained in an immutable historical decision?

Worked Discussion

Retain who decided, the exact version/content and the decision's evidence. Reload the current record, scope and whatever current authority publication requires. A historical decision remains a fact; whether it is sufficient for this next action is a current story question.

Navigation