Skip to content

docs: complete the hero samples; own the TypedActivity portability boundary - #3

Merged
bweis merged 1 commit into
mainfrom
fix/hero-samples
Aug 27, 2026
Merged

docs: complete the hero samples; own the TypedActivity portability boundary#3
bweis merged 1 commit into
mainfrom
fix/hero-samples

Conversation

@bweis

@bweis bweis commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Fixes two pieces of feedback from Michael Arnaldi:

  1. callActivity was never imported in the home-page sample — both hero snippets (docs landing + README) used callActivity and workflowBundle without importing them, and the README hero used Charge/ManagerApproval without defining them. Both are now self-consistent samples.
  2. The TypedActivity 'leak' — activities.md now owns the boundary explicitly: workflow definitions are pure upstream API and engine-agnostic; TypedActivity/callActivity are Temporal-shaped because Temporal executes activities on a separate worker that upstream's closure-carried Activity.make implementations cannot reach — a name+schema projection is the serializable form that boundary forces. The deeper design response (an engine-agnostic dispatch seam, or an upstream schema'd activity primitive) is a separate conversation.

🤖 Generated with Claude Code

…undary

Both hero snippets used callActivity and workflowBundle without importing
them, and the README hero used Charge/ManagerApproval without defining them
(caught by Michael Arnaldi). Both are now self-consistent, compilable-shaped
samples.

activities.md gains a portability note stating plainly what is
engine-agnostic (workflow definitions, upstream Activity.make as an
in-sandbox seam) and what is Temporal-shaped (TypedActivity/callActivity),
and why: Temporal runs activities on a separate worker that upstream's
closure-carried Activity implementations cannot reach, so a serializable
name+schema projection is forced.
@bweis
bweis added this pull request to the merge queue Aug 27, 2026
Merged via the queue into main with commit 7f80911 Aug 27, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant