Crew Cards: Draw the Workflow
Design problem and decision
- Design problem Awarding a card needs the school, then the registry, then the school again. It cannot finish in one call. Somebody has to decide its steps, its other endings and what lets each step begin, before anyone implements it.
- Architect's decision What does the award workflow look like, who performs each step, and what evidence moves it from one step to the next?
- Outcome The viewer can draw a workflow in five steps: milestones, owners, edges, other routes, evidence. They can lay that drawing over the actors and read off who may act and which saved state and blocks change.
- Starting point 09:00, before Mira's request. School chain tip
117, open awards 0. Registry chain tip040. Lesson 4 looked ahead at the registry's side of this minute. - Handoff Lesson 6 zooms into the one edge that leaves the canister.
- Pacing Five and a half minutes.
Worked design
Crew Cards is illustrative. The graph is a design sketch. It is not a captured execution.
Step 1, milestones. Each is something a person could observe.
| Milestone | Observable as |
|---|---|
| Asked | Mira holds a ticket. The roll says her award is open. |
| Issued | The registry holds a valid card for her. |
| Carded | The roll shows her card number. She can read it. |
Steps 2 and 3, owners and edges.
| Node | Type | Performed by | Edge in |
|---|---|---|---|
| admission | public method request_card |
school: door, Office, roll | from the caller |
Route |
Choice |
school workflow | local |
IssueCard |
Remote |
registry decides. The school instructs. | remote |
Close |
Local |
school roll | local |
Done |
Succeed |
— | local |
Step 4, other routes.
| Route | Node | Type | Ends at |
|---|---|---|---|
| The course is uncarded | CloseLocal |
Local |
Done |
| The registry says no | Refuse |
Local |
Refused, a Fail |
| No answer arrives | none. IssueCard stops as blocked. |
— | stays open |
Step 5, evidence on each edge.
| Edge | Evidence |
|---|---|
admission → Route |
roll block OpenAward |
Route → IssueCard |
the admitted input says carded |
Route → CloseLocal |
the admitted input says uncarded |
IssueCard → Close |
Issued{card, block} from the registry |
IssueCard → Refuse |
Rejected(reason) from the registry |
Close → Done and CloseLocal → Done |
roll block CloseAward |
Refuse → Refused |
roll block RefuseAward |
The success run, 09:00.
| Step | Who acts | Saved state changed | Block |
|---|---|---|---|
mira · request_card(12) |
Mira, through her door | 340·12 Passed{82} → Awarding{7}. open awards 0 → 1. Execution admitted. |
school 118 OpenAward(7, 340, 12) |
| reply | — | — | Ticket 7 to Mira |
Route |
school workflow | workflow progress only | none |
IssueCard |
registry, on the school's instruction | issued 5 → 6. valid 31 → 32. card 41. | registry 041 Issue(harbour, 7, 340, 12) |
Close |
school roll | Awarding{7} → Carded{41}. open awards 1 → 0. |
school 119 CloseAward(7, 41) |
mira · award_status(7) |
Mira | nothing | reply Carded{41} |
The story in one pass
Write three milestones in plain words. Ask of each who can make it true, and turn the cards into nodes inside their owners. Join them with solid and dashed edges. Ask what else can happen and add a choice, a refusal route and a place to stop. Tag every edge with the evidence that allows it. Then drop the finished graph onto the actors as lanes and run Mira's request down them.
Views and visual objects
Use the shared visual language. This film introduces MilestoneStrip, EvidenceTag and the lanes view.
| View | Framing and anchor |
|---|---|
graph |
The award workflow region, enlarged. The MilestoneStrip sits above. The node layout is fixed from this film on: Route, IssueCard, Close, Done left to right on the main row. CloseLocal below IssueCard. Refuse and Refused below Close and Done. A thin vertical guide marks the canister rim between IssueCard and the registry. A design sketch tab sits on the region. |
lanes |
Seven lanes in map order, left to right: caller, school door, award workflow, roll chain, channel, registry route, registry chain. The school's three lanes share one canister outline and the registry's two share another. The channel sits between the canisters. Time runs down. Each lane's header is the object from the map, unchanged. |
Scene milestones — Start with outcomes
Already on screen The map view. A small time tag reads 09:00. School tip 117, registry tip 040.
Beat three_outcomes — What a person could observe
View and focus map to graph. Focus on the MilestoneStrip.
Narration
Mira passed course twelve and wants her card. This cannot finish in one call, so we draw it first. Do not start with functions. Start with what a person could observe. Asked: Mira holds a ticket. Issued: the registry holds her card. Carded: the school's roll shows the card number.
Cue and animation On “we draw it first”, the camera moves into the empty workflow region of the school. On each milestone name, a plain paper card writes itself in a row: Asked, Issued, Carded, each with its one-line observation.
Leaves with Three paper cards in a row. No machinery.
Beat who_makes_it_true — An owner for each step
View and focus graph.
Narration
For each milestone ask: who can make this true? Asked is a fact on the roll, so the school does it, in the same call that takes Mira's request. Issued is the registry's to decide. The school can only instruct. Carded is the roll again. Now each card has an owner, and the cards become nodes.
Cue and animation On “the school does it”, the Asked card slides left to the school's door and becomes the admission mark, a small pill outline request_card with a block outline beside it. On “the registry's to decide”, the Issued card becomes the canonical node card IssueCard with a remote accent, placed against the rim guide, and a faint ghost of it shows across the guide on the registry side. On “the roll again”, the Carded card becomes the node card Close. On “become nodes”, a Done end mark draws at right.
Leaves with Admission mark, IssueCard, Close, Done at their fixed positions. No edges.
Beat edges — Local and remote
View and focus graph.
Narration
Join them. A solid edge stays inside one actor. The local write at Close will be one Rechain dispatch. A dashed edge leaves the actor and waits for its answer. Draw that edge where the registry takes over. This workflow has one remote leg.
Cue and animation On “A solid edge”, solid edges draw from admission to IssueCard and from Close to Done. On “one Rechain dispatch”, highlight the roll's ownership of Close. On “A dashed edge”, a dashed edge with a small clock draws from IssueCard across the rim guide and back, ending at Close. On “one remote leg”, the dashed edge pulses.
Leaves with A straight path with one dashed leg.
Scene other_routes — What else can happen
Already on screen The graph view with the straight path.
Beat choice — Two kinds of course
View and focus graph. Focus on the start of the path.
Show The file tree, small at lower left, with workflows/award/award.takt.json highlighted. One snippet, tabbed award.takt.json — illustrative:
"Route": {
"Type": "Choice",
"Input": "Award",
"Routes": [
{"Select": "R.carded", "Next": "IssueCard"},
{"Select": "R.uncarded", "Next": "CloseLocal"}
]
}
Narration
Now ask what else can happen. First: not every course ends in a card. Course fifteen is an evening class. So the workflow begins with a choice. Carded goes to the registry. Uncarded closes locally and never leaves the school. A choice takes one route. The other stays quiet.
Cue and animation On “begins with a choice”, the canonical Choice node Route draws between admission and IssueCard, and the snippet appears. On “Carded goes to the registry”, the line with R.carded highlights and the edge to IssueCard brightens. On “Uncarded closes locally”, the line with R.uncarded highlights, the node CloseLocal draws below, with a solid edge from Route and a solid edge on to Done. On “The other stays quiet”, the lower route dims. The snippet fades.
Leaves with Route with two outgoing edges. The lower route is dim.
Beat known_no — The registry can refuse
View and focus graph. Focus on IssueCard.
Narration
Second: the registry can say no. That is a known answer, so it gets its own route. Refuse is a local step. It writes the refusal on the roll and returns Mira to Passed, so she may ask again another day. Then the workflow ends as Refused.
Cue and animation On “say no”, a thin catch edge draws from IssueCard down to a new node card Refuse. On “writes the refusal on the roll”, a small block outline shows beside Refuse. On “ends as Refused”, a Refused end mark draws with a solid edge from Refuse.
Leaves with Three ways out of IssueCard's neighborhood: to Close, to Refuse, and the lower local route.
Beat no_answer — A place to stop, not a route
View and focus graph. Focus on IssueCard.
Narration
Third: no answer at all. This is the one people draw wrong. No answer is not a no. The card may exist. So there is no edge from here to Refuse. The node stops, marked blocked, and stays open until evidence arrives. Draw that stop on purpose.
Cue and animation On “No answer is not a no”, an amber question mark appears on the dashed leg. On “no edge from here to Refuse”, a faint dotted edge from the question mark toward Refuse draws and is struck out, then removed. On “marked blocked”, the status dot on IssueCard turns amber and a small stop marker labeled blocked · unresolved attaches under the node. On “on purpose”, the marker pulses and then settles to a quiet outline, and the status dot returns to idle.
Leaves with The complete node set. The stop marker under IssueCard in quiet outline.
Beat evidence — Name what lets each edge go
View and focus graph.
Narration
Last step. On every edge, write the evidence that allows it. Into the workflow: the roll block that opened the award. Toward the registry: the course is carded. On to Close: the registry's receipt, card and block. Down to Refuse: the registry's rejection, with its reason. If you cannot name the evidence, the edge is a hope.
Cue and animation On each named edge, an EvidenceTag writes onto it: block OpenAward, carded, Issued{card, block}, Rejected(reason). On “the edge is a hope”, tags also settle on the remaining edges: uncarded, block CloseAward on both edges into Done, and block RefuseAward.
Hold PauseAndExplain pointing at the tag Issued{card, block}. The balloon reads:
Five steps
1 milestones a person could observe
2 who can make each one true
3 solid edges inside, dashed edges across
4 the other routes, and where it stops
5 the evidence on every edge
Leaves with The finished graph with an EvidenceTag on each of its eight edges.
Scene overlay — The same drawing on the actors
Already on screen The finished graph.
Beat drop_into_lanes — Lanes are the map, pulled down
View and focus graph to lanes.
Narration
A graph shows order. It does not show who may act or what is saved. For that, lay it over the actors. These lanes are our map, pulled downward. Mira. Her door. The workflow. The roll and its chain. The channel. The registry's door and its chain.
Cue and animation On “lay it over the actors”, the camera pulls back to map, then each column of the map extends downward into a lane. On each named lane, its header pulses: the mira badge, the request_card door, the small graph, the roll reducer with chain tip 117, the channel, the card.issue door, the registry chain with tip 040.
Leaves with Seven empty lanes under their headers.
Beat run_asked — Asked
View and focus lanes. Focus on the three leftmost school lanes.
Narration
Nine o'clock. Mira comes through her door. The school admits the workflow and opens her award on the roll in one update. Once both are saved, block one-eighteen is on the roll and Mira gets ticket seven. Now the workflow can run.
Cue and animation On “through her door”, the pill request_card(12) moves from the caller lane into the door lane. On “admits the workflow”, show the new execution waiting in the workflow lane. On “Once both are saved”, reveal 340·12 Awarding{7} and the green +1, then forge block 118 OpenAward(7, 340, 12). On “ticket seven”, an OutcomeCard Ticket 7 returns to the caller lane. On “Now the workflow can run”, Route lights.
Leaves with Block 118 in the roll lane. Route lit. Mira holds Ticket 7.
Beat run_issued — Issued
View and focus lanes. Focus moves right across the channel.
Narration
The choice takes the carded route. Issue Card sends the school's instruction across. Only the registry acts now. It checks Harbour's standing, issues card forty-one, and records block forty-one. Its receipt comes back.
Cue and animation On “carded route”, Route hands to IssueCard. On “sends the school's instruction”, a dashed arrow with a clock crosses the channel lane to the card.issue door. On “Only the registry acts”, the school lanes dim slightly. On “records block forty-one”, block 041 Issue(harbour, 7, 340, 12) forges in the registry chain lane. On “receipt comes back”, a dashed arrow returns carrying Issued{card 41, block 41} and the school lanes brighten.
Leaves with Block 041 in the registry lane. The receipt at IssueCard.
Beat run_carded — Carded
View and focus lanes. Focus on the school lanes.
Narration
With that receipt, Close may run. The roll records block one-nineteen: award seven closed, card forty-one. Mira asks for her ticket's status and reads: carded. Three blocks, two actors, and each change made by its owner.
Cue and animation On “Close may run”, the EvidenceTag Issued{card, block} flashes and Close lights. On “block one-nineteen”, a solid arrow crosses to the roll lane, open awards goes 1 to 0 with a red −1, the row reads 340·12 Carded{41}, and block 119 CloseAward(7, 41) forges. On “reads: carded”, award_status(7) goes in through the hollow door and Carded{41} returns. On “Three blocks”, blocks 118, 041 and 119 pulse in time order.
Leaves with The complete success run on the lanes: school tip 119, registry tip 041, open awards 0.
Brief to hand over
Illustrative.
Workflow
award. Nodes:Route(Choice),IssueCard(Remote),Close(Local),CloseLocal(Local),Refuse(Local),Done(Succeed),Refused(Fail). Edges and evidence as in the table above.Admission. In one synchronous update, validate the award, admit the execution without running its steps inline, and commit
OpenAward. Save the ticket, student, course, carded flag and registry destination for this execution. Return the ticket after both writes succeed. If admission is busy, returnBusybefore writing the roll. If a failure occurs after either write, trap so the IC rolls back the update. Let the execution run after admission commits.Local steps.
Close,CloseLocalandRefuseeach dispatch one roll action. They change no other module.No answer. There is no edge from "no answer" to
Refuse.IssueCardstops as blocked and the award stays open.
Exercise
The dean wants withdraw: a student may cancel an open award before the registry has answered. Add it to the graph on paper. Say which milestone it adds, who owns it, and what evidence its edge needs. Then say why it cannot simply close the award on the roll.
Acceptance checks, expected and not run
| Given | Command or event | Expect | Then |
|---|---|---|---|
| 09:00 state | mira · request_card(12) |
Ticket 7 |
roll 118 OpenAward(7, 340, 12), open awards 1, one execution admitted |
| ticket 7 open | registry replies Issued{card 41, block 41} |
Close runs |
roll 119 CloseAward(7, 41), open awards 0, 340·12 Carded{41} |
| after that | mira · award_status(7) |
Carded{41} |
nothing changed |
| workflow admission is at capacity | mira · request_card(12) |
Refused(Busy) |
no block 118, open awards 0, no ticket |
failure injected after admission and before OpenAward commits |
mira · request_card(12) |
update traps | no admitted execution or award remains |
admitted course 12 with carded saved |
change course policy before Route runs |
this award takes IssueCard using its admitted input |
later admissions use the new policy |
| graph file | check the definition | every edge out of IssueCard names a typed result. None is taken on a timeout. |
— |
| exercise | withdraw | Not a local close. The registry may already have issued the card, so withdraw needs the registry's answer as evidence. | — |
Production and source notes
- Crew Cards, the five steps, the award graph and the lanes are this course's teaching design. The graph is a design sketch and carries a
design sketchtab in every view. It is not a native inspection capture. Show no inspector Timeline or Instructions view. - Node types,
Choiceroutes withSelectandNext, andCatchon aRemotenode: Workflow schema. A workedChoicethat routes local or remote, and aRemotewith aCatch: Chat send graph. The snippet's shape follows that file. Its names are illustrative. - The workflow folder holds the graph, Rules, Operations and its own memory. The graph owns sequence, retries and recovery: Takt authoring, lines 8 to 59.
- A
Localnode with theDispatchcapability dispatches through Rechain: Workflow schema, theLocalnode'sCapabilities. Chat send operations,deliver. - A public method that admits work and returns a receipt at once, with a caller-scoped status query: Heavy16 endpoints,
startandrequest_status. Chat endpoints,sendandworkflow_status. - Opening the award and admitting the execution in one call is a Crew Cards design rule. Takt's
sendchecks admission before saving an execution and accepts a bound on inline steps. A successful send is not a substitute for committingOpenAward. The combined behavior needs a canister test that observes rollback after a failure. Takt admission · Store frame and trap semantics - A
Choiceselects one route and does not fork. Several local nodes are not one promised transaction: Takt reference, branches · Takt guide, lines 612 to 614. Each local node here dispatches exactly one action, which is atomic by itself. - A catch handles a known failure. A timeout does not prove rejection: Takt reference, remote effects.
- A ticket is the public receipt. It is distinct from the execution ID inside Takt: Heavy16 API types, line 24. Show only the ticket to the caller.
- In the
lanesview, reuse the canonical node cards, action pills and block tiles at lane scale. Do not redraw them as simplified glyphs. Text may become small. - Local arrows between school lanes are thin and solid. The channel lane uses the dashed awaited style with a clock. Packet timing in the channel is editorial.
- Hold the stop marker under
IssueCardin quiet outline for the rest of the course. Lessons 6 and 7 light it.