Crew Cards: The Remote Leg

Design problem and decision

  • Design problem One edge of the award graph leaves the school. On that edge a message can be stored but not handled, handled but not answered, or answered late. A design that treats those as one thing will issue two cards or refuse a student who already has one.
  • Architect's decision What does the school save before it sends, which signal counts as an answer, what makes a repeat the same operation, what may the school instruct, and who holds which piece of information?
  • Outcome The viewer can specify a remote leg: its saved request, its three signals, its identity and bounds, its public and private views, and the evidence that settles an unknown. They can say which concern belongs to Takt, to Reactor and to Rechain.
  • Starting point Lesson 5 left the success run on the lanes: school tip 119, registry tip 041. This film replays the 09:00 leg closer.
  • Handoff Lesson 7 rehearses the whole feature, including a real unknown.
  • Pacing Six minutes.

Worked design

Crew Cards is illustrative. Every trace here is a design sketch.

The saved request for award 7

Field Value
To registry, route card.issue
Sender the school canister. The registry reads this from the delivery, not from the request.
Body student 340, course 12, school block 118
Memo award 7
Created 09:00
Expires 08:00 the next day, 23 hours after creation

Three signals

Signal Means Does not mean The workflow may
Delivery ACK the registry has stored the request that any card exists keep waiting
Terminal result the registry decided: Issued{card 41, block 41} or Rejected(reason) — take the Close or the Refuse edge
Timeout, 30 seconds nothing is known that the registry refused, or that it will not act stop as blocked. Send nothing new.

Contract card.issue.v1

Bound Rule
Same operation same sender, memo, created time and body. A permitted repeat returns the original committed result and records nothing new. The award key remains unique even after the replay window.
Who an added peer school, for itself
What issue one card for a course that school is accredited to teach
Until the earlier applicable request or replay deadline. The registry checks expiry before any new issuance.
How often an uninterpretable reply may be retried 3 times with the same saved request, then the node pauses

Who holds what, for award 7

Holder Holds
Client Ticket 7. award_status(7): Pending, then Carded{41}.
Workflow, in Takt the execution, the node, attempt 1, the saved request, the timeout, the certainty
Transport, in Reactor the outgoing frame, its sequence, the ACK, the response address
History, in Rechain school 118 and 119, registry 041

Evidence that settles an unknown

Evidence Settles as
The original result, arriving late at its response address whatever it says
card.for_award(n) answers Issued{card, block} issued
The registry has no issuance record and card.for_award(n) answers NotYet stay blocked. This is a lookup result, with no final decision attached.

card.for_award is a read-only peer route, contract card.for_award.v1. reconcile_award(ticket) is a new controller-only door on the school that asks it.

The story in one pass

Go close on the dashed edge. Watch the request being saved before it moves. Watch it stored at the registry and see the ACK come back, which settles nothing. Watch the result come back, which settles everything. Rewind and let no result come: the strip turns amber and the school sends nothing. Then ask what makes a second send safe, what the school is allowed to ask for, who can see what, and what kind of evidence may turn amber into green.

Views and visual objects

Use the shared visual language. This film introduces CertaintyStrip and Holds.

View Framing and anchor
leg The channel fills the middle of the frame. At its left end, the IssueCard node card inside the school's rim, with the stop marker under it. At its right end, the card.issue door, the registry machine and chain tip. The canonical Reactor tunnel joins them: outbox at left, inbox at right. The CertaintyStrip runs above the tunnel with five positions: sent, stored, then a fork to issued, rejected and unknown.
sheet The Holds panel over the left third, with leg dimmed.

Scene three_signals — Stored, decided, unknown

Already on screen The lanes view from lesson 5. Time tag 09:00.

Beat saved_first — Save, then send

View and focus lanes to leg. Focus on IssueCard.

Narration

Go back to nine o'clock and come close to the one dashed edge. Before anything is sent, the workflow saves the request, complete. Where it goes. What it asks. Its memo, award seven. When it was created, and when it expires. From now on this request is never rewritten.

Cue and animation On “come close”, the camera moves from the lanes into the channel region. Registry state rewinds to tip 040, and the time tag stays 09:00. On “saves the request”, a small request card forms inside IssueCard and its fields write in one at a time: card.issue, 340 · 12 · school block 118, memo award 7, created 09:00, expires 08:00 +1d. On “never rewritten”, a small lock closes on the card.

Leaves with The locked request card inside IssueCard. The CertaintyStrip unlit.

Beat stored — The ACK means stored

View and focus leg. Focus on the tunnel.

Narration

Reactor carries it. The request waits in the school's outbox, travels, and is stored in the registry's inbox. An acknowledgement comes back. Read it carefully. It says the registry has the request. It does not say there is a card.

Cue and animation On “Reactor carries it”, a copy of the request card enters the outbox and the strip lights sent. On “stored in the registry's inbox”, the copy travels the tunnel and settles in the inbox. On “An acknowledgement”, the canonical ACK mark returns along the tunnel and the strip lights stored. On “does not say there is a card”, the registry chain tip 040 pulses once, unchanged.

Hold PauseAndExplain pointing at stored on the strip. The balloon reads:

ACK
  the request is saved at the registry
  the school may stop resending it
Not yet known
  whether a card exists

Leaves with Strip at stored. Request in the registry inbox. Registry tip 040.

Beat result — The result means decided

View and focus leg. Focus on the registry end, then the return.

Narration

Then the registry handles it. Through the door, into dispatch, block forty-one. Its result travels back to the address the request left behind: issued, card forty-one, block forty-one. That is a terminal result. A rejection with a reason would be one too. Either way the school now knows.

Cue and animation On “handles it”, the request leaves the inbox through the card.issue door and the action pill Issue(harbour, 7, 340, 12) enters dispatch. On “block forty-one”, the chain slides, holds, and forges 041. On “travels back”, a result card Issued{card 41, block 41} enters the registry's outbox and returns through the tunnel to IssueCard. On “issued”, the strip lights issued in green. On “A rejection”, the rejected position shows a brief neutral outline and fades.

Leaves with Strip at issued. Registry tip 041. The result card at IssueCard.

Beat unknown — The timeout means nothing

View and focus leg. A small tag reads what if.

Narration

Now rewind, and let no result come. Thirty seconds pass. The workflow's timeout fires. What do we know? The registry stored the request. Nothing else. It may have issued the card. It may still issue it. So the school must not send a new request, and it must not refuse Mira. The node stops, blocked, and waits for evidence.

Cue and animation On “rewind”, the result card runs backward into the registry and fades, the tag what if appears, and the strip returns to stored. On “Thirty seconds”, a small clock on IssueCard runs out. On “What do we know”, the strip lights unknown in amber. On “may have issued the card”, registry block 041 shows as a faint ghost. On “must not send a new request”, a second request card begins to form in IssueCard and is struck out. On “blocked”, the stop marker under IssueCard lights amber: blocked · unresolved.

Leaves with Strip at unknown. Stop marker lit. Then the what if tag clears and the view restores the real 09:00 outcome: strip at issued, registry tip 041.

Scene same_operation — When a repeat is safe

Already on screen The leg view at the real outcome.

Beat identity — What makes it the same

View and focus leg. Focus on the locked request card.

Narration

Sometimes a repeat is right, if the first reply was unreadable and its response address is closed. The registry has to recognize the same operation. Keep the sender, memo, creation time and body. The replay window is one day, and this request expires an hour sooner. Within those bounds the registry can return the original card.

Cue and animation On “recognize the same operation”, four fields on the request card highlight in turn: the sender mark harbour, memo award 7, created 09:00, the body. As the fields highlight, a small contract tag card.issue.v1 attaches to the card.issue door. On “window is one day”, draw the 24 h window with the request's earlier 23 h cutoff inside it.

Leaves with The contract tag on the door. The identity fields highlighted.

Beat second_attempt — The original card, no new block

View and focus leg. A small tag reads illustration.

Narration

Here is that promise at work. A second attempt carries the same saved request. The registry recognizes it, changes nothing, and answers as it did the first time: card forty-one, block forty-one. No second card. No new block.

Cue and animation On “A second attempt”, a small attempt 2 mark shows on IssueCard and a copy of the same locked card travels the tunnel. On “recognizes it”, at the registry the card meets a small matching mark beside block 041. On “changes nothing”, the reducers and the chain stay still, tip 041. On “answers as it did”, the same result card Issued{card 41, block 41} returns. On “No new block”, the empty position after 041 pulses once. The illustration tag and the attempt 2 mark clear.

Leaves with Registry tip 041, valid 32. One card for award 7.

Beat bounded — Authority has edges

View and focus leg. Focus on the contract tag.

Narration

A repeat also has limits, and you write those too. Who: a peer school, for itself. What: issue one card, for a course it is accredited to teach. Until when: the request expires an hour inside the registry's day. How often: three retries, then stop. And one rule above the rest. Never repair a saved request. Change one field and it is a different operation.

Cue and animation On “you write those too”, the contract tag unfolds into four short rows. On each of “Who”, “What”, “Until when”, “How often”, one row writes: who · peer school, itself, what · issue, accredited course, until · expires 08:00 +1d, retries · 3, then pause. On “Never repair”, a pen approaches the created 09:00 field of the locked card and the lock flashes. On “a different operation”, a ghost second card with created 09:05 splits off and is struck out.

Leaves with The unfolded contract tag with four rows.

Scene who_holds_what — Three machines, three views

Already on screen The leg view with the contract tag.

Beat holds — Public and private

View and focus sheet. Focus on the Holds panel.

Narration

Who can see all this? Mira sees very little, on purpose. A ticket, and a status: pending, then carded. The workflow holds the saved request, the attempt and the certainty. The transport holds the frame, the acknowledgement and the return address. None of that is in her reply. If the outcome is unknown, she reads pending. She is never told failed when nobody knows.

Cue and animation On “Who can see”, the Holds panel slides in with three column headers: client, workflow, transport. On “A ticket, and a status”, the client column fills: Ticket 7, Pending → Carded{41}. On “The workflow holds”, the second column fills with a thin leader to IssueCard. On “The transport holds”, the third column fills with a thin leader to the tunnel. On “she reads pending”, Pending highlights in the client column while unknown shows small in the workflow column.

Leaves with The Holds panel, three columns filled.

Beat three_machines — Keep the jobs apart

View and focus sheet to leg.

Narration

Each machine has one job here. Takt decides what is next and remembers how far we got. Reactor carries the message and its answer. Rechain remembers what each actor accepted. If you find yourself wanting an attempt in the log, or a card number in the transport, the jobs have blurred.

Cue and animation On “Takt decides”, the panel slides away and IssueCard brightens. On “Reactor carries”, the tunnel brightens. On “Rechain remembers”, the registry chain and, at the left edge, the school chain brighten. On “the jobs have blurred”, all three settle to normal.

Leaves with The leg view, all parts at normal brightness.

Beat evidence_door — What may turn amber to green

View and focus leg. Focus on the stop marker, then on the school's rim.

Narration

What settles it? The original result, arriving late, or a confirmed receipt from the registry. The dean can ask the school to look up Harbour's award seven. The registry reads its own record for that award. If it finds the original receipt, the school can close the award. If it has nothing on file, the award stays pending.

Cue and animation On “What settles it”, the stop marker shows in amber outline. On “arriving late”, a faint result card drifts along the tunnel to IssueCard. On “The dean”, a locked door labeled reconcile_award draws on the school's left rim with dean beside it. On “its own record”, a dashed card.for_award door draws at the registry with a read line to selector card. On “the original receipt”, a green tick appears beside the stop marker. On “nothing on file”, show a separate amber Pending outcome.

Leaves with Two new doors: card.for_award on the registry and reconcile_award on the school. The stop marker back to quiet outline. School tip 119, registry tip 041.

Brief to hand over

Illustrative.

IssueCard. Save the complete request before sending and never change it. Send it over Reactor to route card.issue. Timeout 30 seconds. Up to 3 retries of the same saved request for a reply that cannot be interpreted, then pause. No retry and no new request while the original response address is still open.

Signals. Only a terminal result moves the workflow. An ACK never does. A timeout blocks the node.

Contract card.issue.v1. The registry treats the same sender, memo, created time and body as one operation within the replay window. Return the original Issued{card, block} for a valid repeat. Check expiry before creating a new card. Keep a durable issuance key (authenticated school, award) so a different creation time can never create a second card for that award. Keep the index even if the card is later revoked.

Public view. award_status answers Pending for every unfinished award, including a blocked one. Attempts, the saved request and transport details are visible only to the dean through workflow inspection.

Reconcile. card.for_award(n) is read-only and derives the school from the authenticated peer. reconcile_award(ticket) is controller-only. Match the registry's issuance receipt to the same school, award, student and course. Recheck the blocked visit after the await, then resolve it through the Reactor-aware adapter. Leave it pending if the lookup only says NotYet.

Acceptance checks, expected and not run

Given Event Expect Then
award 7 sent ACK only, no result node still waiting no roll block, award_status(7) is Pending
award 7 sent result Issued{card 41, block 41} Close runs roll 119 CloseAward(7, 41)
award 7 sent and stored 30 seconds, no result node blocked no new request leaves the school, no roll block, Pending
registry tip 041, card 41 issued for award 7 the same saved request arrives again Issued{card 41, block 41} registry tip 041, valid 32, issued 6
same a request with the same award and created 09:05 distinct request identity, same domain award key no second issuance and no new registry block
node blocked, even after expiry card.for_award(7) answers NotYet still blocked no roll block
node blocked card.for_award(7) answers Issued{card 41, block 41} Close runs roll gains CloseAward(7, 41). A later original result is ignored.
any time mira reads award_status(7) never contains an attempt number, a sequence or a request body —

Production and source notes

  • Crew Cards, the request fields, the contract's bounds, the policy numbers and the reconcile design are illustrative. They use SDK features with the meanings below.
  • Three separate responsibilities: Orchestration guide, lines 9 to 16. Takt owns progress, Rechain owns business state, Reactor owns scheduling and transport: Takt reference, role.
  • Saved retry bytes and operation identities do not change across retries. A timeout cancels no call and authorizes no replacement effect: Orchestration guide, lines 88 to 90.
  • A request names its destination, caller, route, bytes, optional expiry, priority and transport: Chat send operations, prepare. The Reactor call recipe keeps exact request bytes and a durable response address: Workflow schema, reactorCallRecipe.
  • Reactor retries reuse each saved frame's bytes, origin and sequence, and an acknowledgement removes the accepted prefix: Reactor README, lines 23 to 29. An ACK means stored and is not the business result: Reactor reference, delivery.
  • Physical delivery, acknowledgement and unknown are reported separately, and callback completion is not proof that nothing happens later: Orchestration guide.
  • Reply kinds Ok, Err, Unknown and Resolved: Takt types, lines 63 to 74. The inspector's certainty names are Pending, Unknown, ConfirmedSuccess and ConfirmedRejection: Inspector wire types, line 40. The CertaintyStrip uses plain words for the same states.
  • Default task timeout of 30 seconds: Takt types, lines 176 to 185. Retries, backoff and OnExhausted: Pause in a checked graph: Heavy16 Sequence graph. The retry count of 3 is this course's value.
  • Idempotent safety with Receipt evidence, and a saved safe-until time: Sequence rules, lines 38 to 42 · Sequence operations, safe_until. Meaning of the three safety contracts: Takt reference, remote effects.
  • A pending Reactor response address prevents replacement sends. An uncertain Reconcile task, or one past its safe-until time, cannot be retried: Takt engine, retry_candidate at line 597, and the PendingAddress and UnsafeRetry problems in Takt types, lines 449 to 461.
  • Idempotency fingerprint inputs, the 24 hour window, DuplicateOf(block) and TransactionExpired: Rechain idempotency, lines 13, 43 to 51 and 166 to 204. A duplicate is normalized to the original success at the dispatch boundary and is never rejection evidence: Takt guide, lines 615 to 621. Turning DuplicateOf(41) into Issued{card 41, block 41} is the route's job in Crew Cards.
  • The expiry check bounds new issuance. The durable lookup returns the historical issuance even after the idempotency record expires. A final negative answer would need its own authenticated, durable evidence. The illustrated lookup only confirms an issuance. Rechain idempotency admission
  • Settling a blocked node with a known result, and fencing the Reactor address so a later reply is ignored: Takt engine, resolve · Takt adapters, resolve_reactor. Host-side resolution must authenticate its evidence: Takt guide, lines 650 to 658.
  • Workflow inspection has its own authorization rule: Chat send rules, authorized at line 46.
  • Reactor is chosen for this leg because the design wants a saved request, ordered delivery and a durable response address. Takt also supports native calls. Do not suggest every remote node uses Reactor.
  • The what if and illustration beats are not part of the worked day. Each carries its tag for its whole duration and restores the real state before the next beat.
  • Tunnel travel, batch grouping and the 30 second clock are editorial timing. They are not measurements.
  • Hold all motion, including the tunnel, during the PauseAndExplain.