Crew Cards: Draw the Actor Lines
Design problem and decision
- Design problem A sailing school wants an app for enrollments, scores and crew cards that anyone can verify. Nothing is drawn yet.
- Architect's decision How many actors does this app have, and which facts live in each?
- Outcome The viewer can list an app's facts with who has the final say on each, apply four tests to decide where an actor line goes, and say what a line costs. They can defend keeping two modules in one actor.
- Starting point The viewer has finished the architecture films and the Rechain, Reactor and Takt primers. The screen starts empty.
- Handoff Lesson 2 goes inside the school actor and gives each fact an owner.
- Pacing Four and a half minutes.
Worked design
Crew Cards is illustrative. The facts, as the architect first writes them:
| Fact | Final say | Who needs to read it |
|---|---|---|
| Pass mark | the school's dean | the school |
| Course list | the dean | students, instructors |
| Who is a student | the dean | the school |
| Enrollment | the student, within school rules | student, instructor |
| Score | the course's instructor | student, instructor |
| A school's standing | the federation board | every school, the registry |
| A crew card | the federation board, on a school's instruction | anyone |
| A card's revocation | the federation board | anyone |
The four tests and their answers for the two candidate lines:
| Test | Card and standing apart from the school? | Courses apart from the roll? |
|---|---|---|
| Authority: is the final say a different party? | Yes. The board, not the dean. | No. Both are the dean's school. |
| Audience: does a different public read or call it? | Yes. Anyone verifies a card. | No. |
| Consistency: must it change together with something in one call? | A card and the school's standing must agree. They go together, in the registry. | Yes. A score needs the course's instructor in the same call. |
| Deployment: does it live, upgrade or scale apart? | Yes. Many schools, one registry. | No. |
Result: two actors. school holds settings, courses, students and the roll, which keeps enrollment and score together. registry holds standing and cards, and a revocation is a card's status.
The story in one pass
Write the facts. Put them all in one canister and see that most of them are happy there. Ask four questions of the card. Three say it belongs to someone else, so a second canister draws. Ask the same four questions of Courses and Roll, split them anyway as a trial, and watch a plain call turn into a wait. Put them back. End on the map the whole course uses.
Views and visual objects
Use the shared visual language. This film introduces FactSheet, BoundaryCard, CallerBadge and the ActorMap.
| View | Framing and anchor |
|---|---|
sheet |
The FactSheet on the left third. The right two thirds are empty paper, then hold the canisters as they draw. |
map |
Both canisters at their fixed positions, the channel between them, callers outside. |
Scene facts — Start from what must be true
Already on screen Empty paper with the small title.
Beat list_facts — Facts before boxes
View and focus sheet. Focus on the FactSheet.
Narration
A sailing school wants an app. Students enroll, instructors score them, and a student who passes gets a crew card that anyone can verify. Before we draw a single box, we write down the facts the app must keep. The pass mark. The courses. Who is a student. Enrollments. Scores. Each school's standing. The cards. Revocations.
Cue and animation On “write down the facts”, the FactSheet slides in with its header. On each named fact, one row writes itself in the first column.
Leaves with Eight rows with only the fact column filled.
Beat final_say — Who has the final say
View and focus sheet. Focus on the second column.
Narration
Beside each fact we write who has the final say. The dean runs the school, so the pass mark, the courses and the student list are the dean's. An instructor decides a score. But a card is not the school's to decide. The federation board stands behind every card, and only the board can suspend a school or revoke a card.
Cue and animation On “who has the final say”, the second column header appears. On “the dean's”, three rows fill with dean. On “An instructor”, the score row fills with instructor, and the enrollment row with student. On “not the school's”, the card row pulses once. On “federation board”, the last three rows fill with board in a second restrained color.
Leaves with Five rows in the school's color and three in the board's color.
Scene lines — Where a line belongs
Already on screen The filled FactSheet.
Beat one_actor — Begin with one
View and focus sheet. Focus on the right side.
Narration
Start with one actor. Every fact becomes a module inside it. This is the design you already know: modules own their memory, and one call can check and change several of them together. For most of this app, that is all we need.
Cue and animation On “one actor”, a canister boundary labeled canister · school draws at right. On “becomes a module”, each of the eight rows sends a small ModuleCapsule into the canister. On “check and change several of them together”, a thin write Frame flashes around four capsules and fades.
Leaves with One canister holding eight small capsules.
Beat four_tests — Four questions for a line
View and focus sheet. Focus on the BoundaryCard, which appears above the canister.
Narration
An actor line is a decision, and four questions make it. Authority: is the final say a different party? Audience: does a different public read it or call it? Consistency: must it change together with something else, in one call? Deployment: does it live, upgrade or scale on its own?
Cue and animation On “four questions”, the BoundaryCard draws with four unlit rows. On each question word, that row's label writes in: authority, audience, consistency, deployment.
Hold PauseAndExplain pointing at the consistency row. The balloon reads:
Three tests pull facts apart.
Consistency pulls facts together.
Leaves with The card with four labeled, unlit rows.
Beat card_moves_out — The card fails three tests
View and focus sheet, widening to map by the end.
Narration
Ask them of the card. Authority: the board, not the dean. Audience: anyone at all must be able to check a card, even if this school closes. Deployment: many schools will use one registry. Three tests say the card belongs elsewhere. So we draw a second actor, the registry. Consistency then tells us what goes with it. A card must never be issued for a suspended school, so standing and cards sit together.
Cue and animation On “the board, not the dean”, the authority row lights. On “anyone at all”, audience lights and a CallerBadge labeled anyone appears at lower right. On “many schools”, deployment lights and two faint extra school outlines appear behind the school, then fade. On “a second actor”, a canister labeled canister · registry draws at right and the card and revocation capsules slide into it. On “standing and cards sit together”, the consistency row lights, the standing capsule follows them across, and a Frame flashes around standing and cards.
Leaves with School with five capsules, registry with three: standing, card and revocation. The camera is now at map.
Beat trial_split — A line that should not exist
View and focus map. Focus on the school.
Narration
Should every module get its own canister? Try it with courses and the roll. Recording a score must check that the caller is that course's instructor. Inside one actor, that is a plain call, answered in the same step. Across a line it becomes a message and a wait. While we wait, the course can change. And the answer may not come back at all. Same authority, same audience, and they must agree in one call. We put them back.
Cue and animation On “Try it”, the courses capsule lifts out into its own dotted canister outline beside the school. On “a plain call”, a ghost of the old solid call line shows between roll and courses. On “a message and a wait”, the line turns dashed and a clock appears on it. On “the course can change”, the instructor value on the courses capsule flickers. On “may not come back”, an amber question mark sits on the dashed line. On “We put them back”, the outline dissolves and the capsule returns. The BoundaryCard shows all four rows unlit for this pair.
Leaves with School with five capsules, solid call lines only.
Scene map — The map we keep
Already on screen The map view with two canisters.
Beat what_a_line_costs — The price of the line we kept
View and focus map. Focus on the gap between the canisters.
Narration
The line we kept has the same price. Awarding a card now needs both actors. The school can instruct. The registry decides and owns the card. Between them is a wait, and three ways it can end: yes, no, and not known yet. We accept that price here because the authority is truly separate. The rest of this course is about paying it well.
Cue and animation On “needs both actors”, a dashed arrow with a clock draws from school to registry. On “The school can instruct”, a small label instructs writes under the school end. On “decides and owns”, a label decides · owns the card writes under the registry end. On “three ways”, three small markers appear on the arrow in turn: a green tick, a neutral cross, an amber question mark.
Leaves with The dashed arrow with its two labels and three markers.
Beat fixed_map — Callers take their places
View and focus map.
Narration
This is our map. The school on the left, with its students, its instructor and its dean outside. The registry on the right, with the board above it and the public below. Every drawing from here on is this map, closer or longer.
Cue and animation On “The school on the left”, CallerBadges mira, tov and dean settle outside the school's left rim. On “The registry on the right”, board settles above the registry and anyone below it. On “this map”, the arrow's markers fade and the canonical Reactor channel draws in its place at mid height, empty.
Leaves with The ActorMap: two canisters, the channel, five badges. This geometry is fixed for the course.
Brief to hand over
Illustrative.
Actors. Crew Cards has two actors.
schoolis controlled by the dean and holds settings, courses, students and the roll.registryis controlled by the federation board and holds school standing and crew cards. One registry serves many schools.Why two. The board, not the school, has the final say on cards and standing. Anyone must be able to verify a card without the school. Standing and cards change together in one registry call.
Why not more. Courses, students, settings and the roll share one authority and one audience, and school operations check several of them in one call. They are modules.
Exercise
A second school asks for a gear locker: students sign out a lifejacket for a lesson and sign it back in. Apply the four tests and say whether the gear locker is a module of the school or its own actor.
Acceptance checks, expected and not run
| Check | Expect |
|---|---|
| Every fact in the sheet appears in exactly one actor | 5 in school, 3 in registry |
| Each actor line names at least one lit test other than consistency | registry: authority, audience, deployment |
| No school operation in the feature list needs an await between two school modules | holds for enroll, score, set pass mark |
| Gear locker exercise | a module of school: same authority, same audience, must agree with enrollment in one call |
Production and source notes
- Crew Cards, the fact sheet and the four tests are this course's teaching design. The SDK does not prescribe when to split an actor. The tests summarize what the checked examples do.
- One actor with several modules composed in one synchronous frame, with controller-only and open methods on the same canister: Shop endpoints · Shop checkout. Shop is evidence only and is not shown.
- The cost of a line. Nothing borrowed crosses an await, and the continuation opens a fresh frame: Conventions, lines 220 to 226. A remote outcome can stay uncertain: Status, section "Async and upgrade boundaries".
- Separate actors keep separate histories and are never one transaction: Takt reference, remote effects.
- The trial split is a thought experiment drawn with a dotted outline. Do not draw it as a real canister boundary, and do not leave it on screen.
- In
trial_split, the flickering instructor value is illustrative of a stale read. Keep it to one flicker. - The channel drawn in
fixed_mapis the canonical Reactor tunnel, empty. Lesson 6 explains why this leg uses Reactor. Do not animate traffic here. - The two extra school outlines in
card_moves_outare faint and brief. Only one school is ever drawn in full.