WEBVTT

00:00:00.500 --> 00:00:02.492
Each actor can keep a Rechain log.

00:00:03.392 --> 00:00:05.593
It is tempting to write everything into it.

00:00:06.491 --> 00:00:06.973
Don't.

00:00:07.871 --> 00:00:11.426
The log is the history of changes this actor accepted, in order.

00:00:12.325 --> 00:00:14.369
One question decides what goes in.

00:00:15.267 --> 00:00:18.392
Will someone later need to verify this, or replay it?

00:00:19.291 --> 00:00:20.723
A score: yes.

00:00:21.621 --> 00:00:23.171
A student may dispute it.

00:00:24.069 --> 00:00:25.684
An open award: yes.

00:00:26.582 --> 00:00:28.978
It changes what Mira may ask for next.

00:00:29.877 --> 00:00:33.054
An issued card: yes, that is the public record.

00:00:33.952 --> 00:00:35.528
A suspension: yes.

00:00:36.426 --> 00:00:39.252
It decides what every later request is allowed to do.

00:00:40.150 --> 00:00:42.103
The pass mark setting: no.

00:00:43.002 --> 00:00:46.075
The mark that mattered already rides inside each score.

00:00:46.973 --> 00:00:49.213
A retry of a remote step: no.

00:00:50.111 --> 00:00:53.210
That is the workflow's progress, and Takt keeps it.

00:00:54.108 --> 00:00:56.022
A delivery acknowledgement: no.

00:00:56.921 --> 00:00:59.551
That is transport, and Reactor keeps it.

00:01:00.450 --> 00:01:02.025
A timeout: no.

00:01:02.923 --> 00:01:04.473
Nobody accepted anything.

00:01:06.600 --> 00:01:09.334
Look ahead to nine o'clock, inside the registry.

00:01:10.234 --> 00:01:12.448
The school has asked for Mira's card.

00:01:13.346 --> 00:01:16.055
The next lesson draws how that request travels.

00:01:16.953 --> 00:01:20.612
Here, it has arrived at its door, and the door has let it in.

00:01:21.510 --> 00:01:23.346
Two reducers share this chain.

00:01:24.245 --> 00:01:26.471
Standing owns each school's status.

00:01:27.370 --> 00:01:28.776
Cards owns every card.

00:01:29.675 --> 00:01:31.693
Dispatch sends the action to both.

00:01:32.591 --> 00:01:34.388
Standing checks its own state.

00:01:35.287 --> 00:01:38.464
Harbour is in good standing and accredited for course twelve.

00:01:39.362 --> 00:01:41.159
Cards checks its own records.

00:01:42.057 --> 00:01:45.521
This award has no card, and the next card number is free.

00:01:46.419 --> 00:01:49.622
Both reducers prepare their changes before either writes.

00:01:50.521 --> 00:01:52.500
Now both prepared changes run.

00:01:53.398 --> 00:01:55.990
Harbour's issued count goes from five to six.

00:01:56.888 --> 00:02:00.599
Valid cards go from thirty-one to thirty-two, and the new card

00:02:00.612 --> 00:02:01.875
is number forty-one.

00:02:02.773 --> 00:02:04.779
Then the chain gains block forty-one.

00:02:05.677 --> 00:02:07.500
The state and the block are one step.

00:02:08.398 --> 00:02:10.104
You never get one without the other.

00:02:12.267 --> 00:02:14.233
The registry replies with a receipt.

00:02:15.133 --> 00:02:18.336
Card forty-one was issued in registry block forty-one.

00:02:19.235 --> 00:02:22.190
That gives the school a reference to the accepted change.

00:02:23.089 --> 00:02:26.618
Anyone can ask the registry for the card's current public status.

00:02:27.516 --> 00:02:30.198
The school will write that receipt into its own log.

00:02:31.097 --> 00:02:33.427
Block one-eighteen opened Mira's award.

00:02:34.326 --> 00:02:38.050
Block one-nineteen closes it, with card forty-one inside.

00:02:38.948 --> 00:02:42.360
Two actors, two logs, each in its own order.

00:02:43.258 --> 00:02:44.508
They point at each other.

00:02:45.407 --> 00:02:46.800
They are never one chain.

00:02:47.698 --> 00:02:50.081
Now the question from the start: replay.

00:02:50.980 --> 00:02:54.078
Take the roll as it stood at block one-fifteen, and feed it

00:02:54.092 --> 00:02:55.745
the recorded actions in order.

00:02:56.644 --> 00:02:57.321
Enroll.

00:02:58.219 --> 00:02:59.834
Score, against seventy.

00:03:00.732 --> 00:03:01.670
Open award.

00:03:02.568 --> 00:03:04.847
Close award, with card forty-one.

00:03:05.745 --> 00:03:07.451
The roll is rebuilt exactly.

00:03:08.349 --> 00:03:09.495
And look at the channel.

00:03:10.394 --> 00:03:11.539
Nothing moved.

00:03:12.438 --> 00:03:14.743
The call to the registry was never in the log.

00:03:15.641 --> 00:03:17.464
Only its accepted result was.

