Crew Cards: Owners Inside an Actor One owner for each fact Go inside the school. Five facts came in. Enrollment and score are two sides of one record, so they share a module, the roll. That leaves four: settings, courses, students and the roll. Each module is the only code that touches its memory. Write it as a table. The fact. Its owner. Who reads it. Who may ask for it to change. One owner per row. If two modules both want to write the same fact, the design is not finished. Three of these are plain modules. The dean changes a setting and it is changed. The roll is different. An enrollment or a score is a decision someone may question later, so every accepted change to the roll goes through Rechain. The roll becomes a reducer. It still owns its memory. It gains two things: changes arrive only as actions through dispatch, and everyone else reads it through selectors. Enrolling needs students, courses and the roll at once. So we add Office. Office has functions and no memory. It reads the others and dispatches to the roll. It sits in the place the Rechain film called the thunk. Read, build, dispatch Sol enrolls in course twelve. Office asks three questions. Students: is this caller a student? Yes, three-four-four. Courses: is there a course twelve? Yes. The roll's selector: is three-four-four already on course twelve? No. Office builds one action and dispatches it. The roll reducer checks the action against its own state and accepts. Its prepared change lands, and the chain gains block one-sixteen. Sol is enrolled. What the action must carry Ten minutes later Tov records Sol's score, ninety-one. Office asks Courses who teaches course twelve. It is Tov. Office asks Settings for the pass mark. Seventy. Here is the design decision. A reducer checks an action against its own state and nothing else. The roll cannot look inside Settings. So Office writes the pass mark into the action. Dispatch. The roll finds Sol enrolled and not yet scored, compares ninety-one with seventy, and accepts. Sol has passed. Block one-seventeen records it, pass mark included.