WEBVTT

00:00:00.500 --> 00:00:03.507
Every module's memory was declared in a version file.

00:00:04.408 --> 00:00:07.220
That file fixes what is saved and how it is read.

00:00:08.119 --> 00:00:09.864
Think of it as a seal on the vault.

00:00:10.762 --> 00:00:13.731
The file that selects the current version is two lines.

00:00:14.629 --> 00:00:17.324
Once a version has shipped, its file is locked.

00:00:18.223 --> 00:00:19.681
It is never edited again.

00:00:20.580 --> 00:00:23.692
A parent's seal includes the child versions its declaration

00:00:23.705 --> 00:00:24.330
allows.

00:00:25.228 --> 00:00:27.259
Shelf folds into Branches once.

00:00:28.158 --> 00:00:30.593
Both branches use that same Shelf version.

00:00:31.491 --> 00:00:35.410
Branches, Members, Loans and Policy fold into the root.

00:00:36.309 --> 00:00:39.942
The S D K and compiler the app was built with also join the

00:00:39.955 --> 00:00:40.723
root seal.

00:00:41.621 --> 00:00:45.085
The canister remembers this seal as its saved-memory contract.

00:00:45.983 --> 00:00:48.757
It covers the shape of those types and the rules they declare

00:00:48.770 --> 00:00:50.033
for reading that data.

00:00:50.931 --> 00:00:53.978
Our tests still have to check the lending rules and the actual

00:00:53.991 --> 00:00:54.681
values.

00:00:56.800 --> 00:00:58.167
A new build arrives.

00:00:59.067 --> 00:01:01.632
It changes one refusal message in Desk.

00:01:02.531 --> 00:01:05.239
The build carries the seal it was compiled to expect.

00:01:06.138 --> 00:01:08.781
The gate compares it with the seal the canister holds.

00:01:09.679 --> 00:01:10.421
They match.

00:01:11.320 --> 00:01:14.861
The build is admitted, the services are bound again, and every

00:01:14.875 --> 00:01:16.216
value is where it was.

00:01:17.114 --> 00:01:18.039
Another build.

00:01:18.937 --> 00:01:22.205
Someone tidied up and renamed a field in Shelf's version one

00:01:22.218 --> 00:01:22.817
file.

00:01:23.716 --> 00:01:24.875
It looks harmless.

00:01:25.773 --> 00:01:29.119
But that file is part of the contract, so this build expects

00:01:29.132 --> 00:01:30.135
a different seal.

00:01:31.033 --> 00:01:34.419
The gate turns it away, before any saved data is opened.

00:01:35.317 --> 00:01:36.867
The old release keeps running.

00:01:37.765 --> 00:01:38.976
Nothing was touched.

00:01:39.875 --> 00:01:42.791
The gate matches the build's declared starting contract to the

00:01:42.804 --> 00:01:43.533
saved one.

00:01:44.432 --> 00:01:46.932
We still test what the build does with that data.

00:01:47.830 --> 00:01:51.385
A different S D K or compiler can change the seal even when

00:01:51.398 --> 00:01:52.908
the app files stay the same.

00:01:55.067 --> 00:01:57.619
A late fee for loan three is being charged.

00:01:58.519 --> 00:02:00.759
The payment canister still owes us an answer.

00:02:01.657 --> 00:02:05.290
Tool Library's readiness rule forbids an upgrade while any loan

00:02:05.303 --> 00:02:06.071
is charging.

00:02:06.970 --> 00:02:07.868
Try it now.

00:02:08.767 --> 00:02:11.852
The installed release refuses the upgrade before it reaches

00:02:11.865 --> 00:02:12.399
the gate.

00:02:13.298 --> 00:02:15.589
The operator pauses new fee requests.

00:02:16.488 --> 00:02:18.584
The payment that already left can finish.

00:02:19.483 --> 00:02:22.595
If the reply leaves the outcome unclear, keep that loan on the

00:02:22.608 --> 00:02:25.082
pending list until you can establish what happened.

00:02:25.980 --> 00:02:28.272
That is the release condition the app needs.

00:02:29.170 --> 00:02:30.485
The answer arrives.

00:02:31.384 --> 00:02:32.920
Loan three is charged.

00:02:33.819 --> 00:02:37.360
The readiness rule is satisfied, and the same build goes through.

00:02:38.259 --> 00:02:39.522
Two design points.

00:02:40.420 --> 00:02:42.751
Readiness is your rule, about your work.

00:02:43.649 --> 00:02:46.918
And it runs in the release already installed, so it must ship

00:02:46.931 --> 00:02:48.649
before the upgrade that needs it.

