@typeonce/effect-machine 0.9.0 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/README.md +167 -28
  2. package/dist/Machine.d.ts +491 -283
  3. package/dist/Machine.d.ts.map +1 -1
  4. package/dist/Machine.js +74 -76
  5. package/dist/Machine.js.map +1 -1
  6. package/dist/internal/machine/atom.d.ts +7 -3
  7. package/dist/internal/machine/atom.d.ts.map +1 -1
  8. package/dist/internal/machine/atom.js +42 -6
  9. package/dist/internal/machine/atom.js.map +1 -1
  10. package/dist/internal/machine/cluster.d.ts.map +1 -1
  11. package/dist/internal/machine/cluster.js +2 -1
  12. package/dist/internal/machine/cluster.js.map +1 -1
  13. package/dist/internal/machine/command.js +2 -2
  14. package/dist/internal/machine/command.js.map +1 -1
  15. package/dist/internal/machine/commandRuntime.d.ts.map +1 -1
  16. package/dist/internal/machine/commandRuntime.js +6 -3
  17. package/dist/internal/machine/commandRuntime.js.map +1 -1
  18. package/dist/internal/machine/configuration.d.ts +8 -1
  19. package/dist/internal/machine/configuration.d.ts.map +1 -1
  20. package/dist/internal/machine/configuration.js +9 -4
  21. package/dist/internal/machine/configuration.js.map +1 -1
  22. package/dist/internal/machine/errors.d.ts +1 -1
  23. package/dist/internal/machine/errors.d.ts.map +1 -1
  24. package/dist/internal/machine/executionPlan.d.ts +3 -3
  25. package/dist/internal/machine/executionPlan.d.ts.map +1 -1
  26. package/dist/internal/machine/executionPlan.js +50 -25
  27. package/dist/internal/machine/executionPlan.js.map +1 -1
  28. package/dist/internal/machine/invocation.d.ts.map +1 -1
  29. package/dist/internal/machine/invocation.js +3 -2
  30. package/dist/internal/machine/invocation.js.map +1 -1
  31. package/dist/internal/machine/machine.d.ts +15 -19
  32. package/dist/internal/machine/machine.d.ts.map +1 -1
  33. package/dist/internal/machine/machine.js +16 -10
  34. package/dist/internal/machine/machine.js.map +1 -1
  35. package/dist/internal/machine/planner.d.ts +2 -1
  36. package/dist/internal/machine/planner.d.ts.map +1 -1
  37. package/dist/internal/machine/planner.js +61 -24
  38. package/dist/internal/machine/planner.js.map +1 -1
  39. package/dist/internal/machine/process.d.ts +3 -0
  40. package/dist/internal/machine/process.d.ts.map +1 -1
  41. package/dist/internal/machine/process.js +11 -8
  42. package/dist/internal/machine/process.js.map +1 -1
  43. package/dist/internal/machine/protocol.d.ts +7 -13
  44. package/dist/internal/machine/protocol.d.ts.map +1 -1
  45. package/dist/internal/machine/protocol.js +128 -50
  46. package/dist/internal/machine/protocol.js.map +1 -1
  47. package/dist/internal/machine/runtime.d.ts +22 -2
  48. package/dist/internal/machine/runtime.d.ts.map +1 -1
  49. package/dist/internal/machine/runtime.js +138 -10
  50. package/dist/internal/machine/runtime.js.map +1 -1
  51. package/dist/internal/machine/topology.d.ts +7 -0
  52. package/dist/internal/machine/topology.d.ts.map +1 -1
  53. package/dist/internal/machine/topology.js +6 -0
  54. package/dist/internal/machine/topology.js.map +1 -1
  55. package/dist/internal/testing/machine/finiteModel.js +1 -1
  56. package/dist/internal/testing/machine/finiteModel.js.map +1 -1
  57. package/dist/internal/testing/machine/runtime.d.ts.map +1 -1
  58. package/dist/internal/testing/machine/runtime.js +2 -1
  59. package/dist/internal/testing/machine/runtime.js.map +1 -1
  60. package/dist/internal/testing/machine/verification.d.ts.map +1 -1
  61. package/dist/internal/testing/machine/verification.js +5 -3
  62. package/dist/internal/testing/machine/verification.js.map +1 -1
  63. package/dist/testing/MachineTest.d.ts +7 -7
  64. package/dist/testing/MachineTest.js +7 -7
  65. package/dist/unstable/cluster/ClusterMachine.d.ts +1 -1
  66. package/dist/unstable/cluster/ClusterMachine.js +1 -1
  67. package/dist/unstable/reactivity/AtomMachine.d.ts +27 -8
  68. package/dist/unstable/reactivity/AtomMachine.d.ts.map +1 -1
  69. package/dist/unstable/reactivity/AtomMachine.js +20 -3
  70. package/dist/unstable/reactivity/AtomMachine.js.map +1 -1
  71. package/docs/agent-guide.md +191 -54
  72. package/package.json +1 -1
  73. package/src/Machine.ts +1220 -360
  74. package/src/internal/machine/atom.ts +76 -53
  75. package/src/internal/machine/cluster.ts +2 -1
  76. package/src/internal/machine/command.ts +2 -2
  77. package/src/internal/machine/commandRuntime.ts +9 -4
  78. package/src/internal/machine/configuration.ts +23 -5
  79. package/src/internal/machine/errors.ts +1 -1
  80. package/src/internal/machine/executionPlan.ts +74 -29
  81. package/src/internal/machine/invocation.ts +3 -2
  82. package/src/internal/machine/machine.ts +74 -49
  83. package/src/internal/machine/planner.ts +68 -24
  84. package/src/internal/machine/process.ts +75 -8
  85. package/src/internal/machine/protocol.ts +207 -68
  86. package/src/internal/machine/runtime.ts +266 -11
  87. package/src/internal/machine/topology.ts +15 -0
  88. package/src/internal/testing/machine/finiteModel.ts +1 -1
  89. package/src/internal/testing/machine/runtime.ts +2 -1
  90. package/src/internal/testing/machine/verification.ts +5 -3
  91. package/src/testing/MachineTest.ts +7 -7
  92. package/src/unstable/cluster/ClusterMachine.ts +1 -1
  93. package/src/unstable/reactivity/AtomMachine.ts +44 -10
@@ -1 +1 @@
1
- {"version":3,"file":"AtomMachine.d.ts","sourceRoot":"","sources":["../../../src/unstable/reactivity/AtomMachine.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,KAAK,MAAM,MAAM,eAAe,CAAA;AAC5C,OAAO,KAAK,KAAK,MAAM,MAAM,eAAe,CAAA;AAC5C,OAAO,KAAK,KAAK,KAAK,MAAM,cAAc,CAAA;AAC1C,OAAO,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAEjF,OAAO,KAAK,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAA;AACxF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAA;AAC3E,OAAO,KAAK,KAAK,OAAO,MAAM,kBAAkB,CAAA;AAEhD;;;;;GAKG;AACH,OAAO,EAAE,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AC,OAAO,CAAC,CAAC,CAAC,CAAC,EACvC,QAAQ,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,GAC5D,oBAAoB,CAAC,CAAC,EAAE,KAAK,CAAC,CAAA;CAChB,CAAA;AAEnB;;;;;;;;;GASG;AACH,eAAO,MAAM,IAAI,EAAE,CAAC,QAAQ,EAAE,YAAY,EACxC,OAAO,EAAE,IAAI,CAAC,WAAW,CAAC,QAAQ,EAAE,YAAY,CAAC,KAC9C,KAAK,CAAC,QAAQ,EAAE,YAAY,CAAiB,CAAA"}
@@ -19,6 +19,23 @@ export { NotReadyError } from "../../internal/machine/atom.js";
19
19
  */
20
20
  export { ChildNotActiveError } from "../../internal/machine/atom.js";
21
21
  const ExternalRequirementsTypeId = "~effect/reactivity/AtomMachine/ExternalRequirements";
22
+ /**
23
+ * Observes ephemeral notifications from the running machine owned by a machine
24
+ * atom. When this stream activates a fresh bridge, it subscribes before machine
25
+ * initialization and observes initial-entry emissions. It never replays
26
+ * emissions from a machine that was already running.
27
+ *
28
+ * @category getters
29
+ * @since 0.10.0
30
+ */
31
+ export const emissions = internal.emissions;
32
+ /**
33
+ * Observes emissions from each active instance selected by a child bridge.
34
+ *
35
+ * @category getters
36
+ * @since 0.10.0
37
+ */
38
+ export const childEmissions = internal.childEmissions;
22
39
  /**
23
40
  * Selects the typed value for an active state path.
24
41
  *
@@ -39,7 +56,7 @@ const ExternalRequirementsTypeId = "~effect/reactivity/AtomMachine/ExternalRequi
39
56
  * const States = Machine.defineStates({ Count })
40
57
  * const machine = Machine.make({
41
58
  * states: States.states,
42
- * events: [],
59
+ * events: Machine.events(),
43
60
  * initial: () => States.initial.Count(new Count({ value: 0 }))
44
61
  * }).handle({ Count: {} })
45
62
  * const machineAtom = AtomMachine.make(machine)
@@ -110,7 +127,7 @@ export const selectSnapshotChild = internal.selectSnapshotChild;
110
127
  * const States = Machine.defineStates({ Idle })
111
128
  * const machine = Machine.make({
112
129
  * states: States.states,
113
- * events: [],
130
+ * events: Machine.events(),
114
131
  * initial: () => States.initial.Idle.from()
115
132
  * }).handle({ Idle: {} })
116
133
  * const machineAtom = AtomMachine.make(machine)
@@ -151,7 +168,7 @@ const BoundRequirementsTypeId = "~effect/reactivity/AtomMachine/BoundRequirement
151
168
  * const States = Machine.defineStates({ Idle })
152
169
  * const machine = Machine.make({
153
170
  * states: States.states,
154
- * events: [],
171
+ * events: Machine.events(),
155
172
  * initial: () => States.initial.Idle.from()
156
173
  * }).handle({ Idle: {} })
157
174
  *
@@ -1 +1 @@
1
- {"version":3,"file":"AtomMachine.js","sourceRoot":"","sources":["../../../src/unstable/reactivity/AtomMachine.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,OAAO,KAAK,QAAQ,MAAM,gCAAgC,CAAA;AAK1D;;;;;GAKG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAA;AAE9D;;;;;GAKG;AACH,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAA;AAMpE,MAAM,0BAA0B,GAAG,qDAAqD,CAAA;AAmRxF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAM,CAAC,MAAM,MAAM,GASf,QAAQ,CAAC,MAAM,CAAA;AAEnB;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,cAAc,GASvB,QAAQ,CAAC,cAAc,CAAA;AAE3B;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,MAAM,WAAW,GASpB,QAAQ,CAAC,WAAW,CAAA;AAExB;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAS5B,QAAQ,CAAC,mBAAmB,CAAA;AAEhC;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAM,CAAC,MAAM,OAAO,GAUmD,QAAQ,CAAC,OAAO,CAAA;AAEvF;;;;;;;;;GASG;AACH,MAAM,CA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EhC;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAM,CAAC,MAAM,OAAO,GAUmD,QAAQ,CAAC,OAAO,CAAA;AAEvF;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,YAAY,GAMrB,QAAQ,CAAC,YAAY,CAAA;AAEzB,MAAM,uBAAuB,GAAG,kDAAkD,CAAA;AAgHlF;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,CAAC,MAAM,IAAI,GAoDb,QAAQ,CAAC,IAAI,CAAA;AAEjB;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,MAAM,GAQf,QAAQ,CAAC,MAAM,CAAA;AAEnB;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,IAAI,GAEoB,QAAQ,CAAC,IAAI,CAAA"}
@@ -22,10 +22,10 @@ declared:
22
22
 
23
23
  1. Domain schemas used by state and event fields.
24
24
  2. Tagged schemas for states that own data.
25
- 3. Tagged public-event, internal-event, and emitted-event schemas.
25
+ 3. Tagged public-event, internal-event, parent-event, and emitted-event schemas.
26
26
  4. `Machine.defineStates`.
27
- 5. `Machine.make`, including input, events, internal events, emits, and the
28
- initial function.
27
+ 5. `Machine.make`, including input, `events`, `internalEvents`, `parentEvents`,
28
+ `emittedEvents`, and the initial function.
29
29
  6. One or more `.handle(...)` calls.
30
30
  7. Child descriptors.
31
31
  8. Runtime, Atom, or Cluster adapters.
@@ -49,13 +49,15 @@ const InternalEvent = Schema.TaggedUnion({
49
49
  })
50
50
 
51
51
  const States = Machine.defineStates(State.cases)
52
+ const Events = Machine.events(Event)
53
+ const InternalEvents = Machine.internalEvents(InternalEvent)
52
54
  ```
53
55
 
54
- After `Machine.make`, derive public constructors with `Machine.events(machine)`
55
- and internal constructors with `Machine.internalEvents(machine)`. Construct new
56
- state values through the target or initial builder's `.from(...)` method. Both
57
- event constructors and state `.from(...)` defer schema construction until
58
- planning, so validation failures remain typed machine errors. Use
56
+ Pass these descriptors to `Machine.make` and export `Events` instead of the raw
57
+ event schema. Construct new state values through the target or initial
58
+ builder's `.from(...)` method. Both event constructors and state `.from(...)`
59
+ defer schema construction until planning, so validation failures remain typed
60
+ machine errors. Use
59
61
  `Schema.TaggedClass` when a case needs class methods or nominal class identity;
60
62
  the deferred constructors preserve that identity after decoding.
61
63
 
@@ -78,7 +80,7 @@ the deferred constructors preserve that identity after decoding.
78
80
  a handler.
79
81
  - Every declared output schema needs a matching handler implementation before
80
82
  planning or execution.
81
- - `parents` keys are full dotted paths.
83
+ - Handler `ancestors` keys are full dotted paths.
82
84
  - Invoke lifetimes follow state entry and exit, not the spelling of the target
83
85
  builder.
84
86
  - Handle every typed invoked Effect failure with `onFailure`. Defects and
@@ -86,9 +88,10 @@ the deferred constructors preserve that identity after decoding.
86
88
  - Reuse an exported child descriptor for inline invocation, `sendTo`, and child
87
89
  lookup. Independently constructed descriptors are equivalent only when both
88
90
  their id and machine identity match.
89
- - `events` is the public input protocol. `internalEvents` contains machine-local
90
- deliveries such as raised events and invoked-child emissions. Handlers see
91
- both; typed public `send` and `Machine.plan` accept only `events`.
91
+ - `events` is the public actor-input protocol. `internalEvents` contains
92
+ machine-local raised events. `parentEvents` describes the public events a
93
+ child may send to its owner. `emittedEvents` describes outward ephemeral
94
+ notifications and is never delivered implicitly to a parent.
92
95
  - Event tags in `events` and `internalEvents` must be disjoint.
93
96
  - Event tags must also be unique within each protocol list.
94
97
 
@@ -102,9 +105,10 @@ its extra control is required:
102
105
  `AtomMachine.resume(machine, snapshot)` for service-free machines.
103
106
  - Use one invocation object: `effect` for one-shot work, `after` for a timer,
104
107
  `logic` for reusable process logic, and `child` for a complete child
105
- statechart. `Machine.invoke({...})` preserves owner context and source
106
- channels across sibling lifecycle handlers. Use a direct object only when its
107
- lifecycle handlers do not need source-derived context.
108
+ statechart. `Machine.invoke({...})` preserves owner state and source channels
109
+ across sibling lifecycle handlers. Use `definition.invoke({...})` when a
110
+ callback uses `self` or `parent`; the bound constructor preserves the
111
+ definition's exact public input and `parentEvents` protocols.
108
112
  - Use `Machine.child(id, machine)` for a complete statechart descriptor and
109
113
  `Machine.childAddress<Event>(id)` for a low-level process address. A logic
110
114
  invocation is addressable only when `Machine.invoke` receives that
@@ -154,8 +158,8 @@ States.get(snapshot, "Form") // type error: no value schema
154
158
 
155
159
  For a schema-less path, builders expose only `.from(...)`; the direct callable
156
160
  form is reserved for already-decoded schema values. Structural ancestors are
157
- also omitted from `parents`; an immediate structural parent is typed as
158
- `undefined`. Add `schema` when a state begins to own data or needs runtime
161
+ also omitted from `ancestors`; an immediate structural containing state is
162
+ typed as `undefined`. Add `schema` when a state begins to own data or needs runtime
159
163
  validation and persistence for that data.
160
164
 
161
165
  Use an atomic state when no child phase can be active beneath it.
@@ -223,7 +227,7 @@ const States = Machine.defineStates({
223
227
 
224
228
  const machine = Machine.make({
225
229
  states: States.states,
226
- events: [],
230
+ events: Machine.events(),
227
231
  initial: () => States.initial.Done.from()
228
232
  }).handle({
229
233
  Done: {
@@ -378,7 +382,7 @@ parallel builders still require a callback selecting their active child or
378
382
  every active region. Omitted input is normalized to `{}` and still passes
379
383
  through `schema.makeEffect`, including refinements.
380
384
 
381
- ## Reading state and parents
385
+ ## Reading state and structural ancestors
382
386
 
383
387
  `Machine.defineStates` returns typed helpers:
384
388
 
@@ -400,16 +404,18 @@ States.matches(ready, "Route.Ready.Saving")
400
404
 
401
405
  All paths are checked against the definition. `get` and `getWithParents` accept
402
406
  only schema-backed paths; use `matches` or `getSnapshot` for any active path.
403
- `context.parent` is the immediate typed parent value (`undefined` at a root or
404
- when that parent is schema-less). `parents` contains only valued ancestors. Use
405
- its full paths when another ancestor value is needed:
407
+ `context.containingState` is the immediate typed state value (`undefined` at a
408
+ root or when that state is schema-less). `context.ancestors` contains only
409
+ valued structural ancestors. This is separate from `context.parent`, which is
410
+ the owning actor reference or `undefined` for a root actor. Use full state paths
411
+ when another ancestor value is needed:
406
412
 
407
413
  ```ts
408
- parents["Route.Ready"]
409
- parents["Route.Ready.Editing"]
414
+ ancestors["Route.Ready"]
415
+ ancestors["Route.Ready.Editing"]
410
416
  ```
411
417
 
412
- Do not guess short properties such as `parents.Ready`.
418
+ Do not guess short properties such as `ancestors.Ready`.
413
419
 
414
420
  ### Inspecting the full transition configuration
415
421
 
@@ -421,7 +427,7 @@ microstep, before any selected transition is applied:
421
427
  BufferReady: ({ snapshot, target }) =>
422
428
  States.matches(snapshot, "Player.Network.Online")
423
429
  ? target.local.Playing.from()
424
- : undefined
430
+ : target.none()
425
431
  ```
426
432
 
427
433
  Use the existing `States.matches`, `States.get`, `States.getWithParents`, and
@@ -452,11 +458,19 @@ history definitions may declare an `annotations` object containing only
452
458
  they cannot change behavior, identity, or targeting. Visualization may show a
453
459
  title, while the structural path remains authoritative.
454
460
 
455
- Use `Machine.retag(TargetCase, source, patch?)` when sibling state payloads
456
- share fields. It removes the source discriminator, reuses only compatible
457
- fields, and requires a patch for every missing or incompatible required field.
458
- Prefer moving broadly shared data to the compound parent rather than retagging
459
- it through every phase.
461
+ When sibling state payloads share fields, destructure away the source
462
+ discriminator and construct the destination through its target builder:
463
+
464
+ ```ts
465
+ Submit: ({ state, target }) => {
466
+ const { _tag: _, ...fields } = state
467
+ return target.local.Saving.from({ ...fields, attempt: 1 })
468
+ }
469
+ ```
470
+
471
+ The target schema remains responsible for defaults, transforms, refinements,
472
+ and class identity. Prefer moving broadly shared data to the compound parent
473
+ rather than copying it through every phase.
460
474
 
461
475
  ## Planning, actions, raised events, and emissions
462
476
 
@@ -464,18 +478,101 @@ A transition returns a target synchronously:
464
478
 
465
479
  ```ts
466
480
  Submit: ({ state, target }) =>
467
- state.valid ? target.local.Saving.from({ draft: state.draft }) : undefined
481
+ state.valid ? target.local.Saving.from({ draft: state.draft }) : target.none()
468
482
  ```
469
483
 
484
+ Every installed event, `always`, `onDone`, and invoke lifecycle handler must
485
+ return a concrete target or `target.none()`. An absent event handler means the
486
+ event is ignored. Returning `target.none()` means it was handled without a
487
+ destination, so queued commands, raised events, and emitted events are still
488
+ retained. It remains valid when a transition declares `targets`: those paths
489
+ are an upper bound on concrete destinations, not an exhaustive result set.
490
+
491
+ `reenter: true` remains meaningful with `target.none()`: the source exits and
492
+ enters again while its logical configuration is retained.
493
+
470
494
  Closed statechart and actor operations use `enqueue`:
471
495
 
472
496
  ```ts
473
497
  Submit: ({ target }, enqueue) => {
474
- enqueue.emit(new SaveRequested({}))
498
+ enqueue.emit(Emissions.SaveRequested())
475
499
  return target.local.Saving.from()
476
500
  }
477
501
  ```
478
502
 
503
+ Declare emission constructors separately from actor inputs:
504
+
505
+ ```ts
506
+ const Emissions = Machine.emittedEvents(SaveRequested, AuditRecorded)
507
+
508
+ const definition = Machine.make({
509
+ events: Commands,
510
+ internalEvents: InternalEvents,
511
+ emittedEvents: Emissions,
512
+ // ...
513
+ })
514
+ ```
515
+
516
+ `enqueue.raise(...)` is a same-macrostep input to self. `enqueue.sendTo(...)`
517
+ targets an actor mailbox and is processed later. `enqueue.emit(...)` is neither:
518
+ it publishes a one-off outward notification. Observe it with
519
+ `ref.emissions`, a hot non-replayed `Stream` that completes with the actor.
520
+ `ref.changes` is stateful and begins with the current lifecycle snapshot.
521
+ Use `Machine.prepare(machine)` to obtain `changes` and `emissions` before
522
+ initialization. Subscribe to the desired stream and then evaluate
523
+ `prepared.start`. `Machine.start(machine)` remains the one-step convenience
524
+ when startup observation is unnecessary. Emissions are still never retained or
525
+ replayed; state remains the representation for facts that must be retained.
526
+
527
+ ```ts
528
+ const prepared = yield* Machine.prepare(machine)
529
+ yield* prepared.emissions.pipe(
530
+ Stream.runForEach(handleEmission),
531
+ Effect.forkScoped({ startImmediately: true })
532
+ )
533
+ const ref = yield* prepared.start
534
+ ```
535
+
536
+ For child-to-parent input, export a public builder protocol and reuse it at both
537
+ composition boundaries:
538
+
539
+ ```ts
540
+ export const ParentEvents = Machine.events(ChildFinished)
541
+
542
+ const child = Machine.make({
543
+ events: ChildEvents,
544
+ parentEvents: ParentEvents,
545
+ // ...
546
+ }).handle({
547
+ Working: {
548
+ on: {
549
+ Finish: ({ parent }, enqueue) => {
550
+ if (parent !== undefined) {
551
+ enqueue.sendTo(parent, ParentEvents.ChildFinished())
552
+ }
553
+ }
554
+ }
555
+ }
556
+ })
557
+
558
+ const parent = Machine.make({
559
+ events: Machine.events(ParentCommands, ParentEvents),
560
+ // ...
561
+ })
562
+ ```
563
+
564
+ Invoking the child under a parent that lacks any required `parentEvents` case
565
+ is a type error. Within child handlers, `parent` accepts only that protocol.
566
+ The same child may run as a root, where `parent` is `undefined`. `self` accepts
567
+ the machine's public inputs. Neither actor reference is a structural state
568
+ value; use `containingState` and `ancestors` for statechart ancestry.
569
+
570
+ Atom-backed actors retain the same transient semantics. Use
571
+ `AtomMachine.emissions(machineAtom)` for a root and
572
+ `AtomMachine.childEmissions(childAtom)` for the currently active child. Both
573
+ return streams requiring the corresponding `AtomRegistry`; emissions are not
574
+ stored as atom state.
575
+
479
576
  For asynchronous validation or persistence, invoke an Effect or child machine
480
577
  from the state and handle its typed success or failure event in a later
481
578
  transition. This keeps `(state, event) => [nextState, commands]` synchronous.
@@ -505,15 +602,15 @@ an event for the parent. Both operations validate their schemas.
505
602
  union handled inside the statechart:
506
603
 
507
604
  ```ts
605
+ const Events = Machine.events(Event)
606
+ const InternalEvents = Machine.internalEvents(InternalEvent)
607
+
508
608
  const definition = Machine.make({
509
609
  states: States.states,
510
- events: [Event],
511
- internalEvents: [InternalEvent],
610
+ events: Events,
611
+ internalEvents: InternalEvents,
512
612
  initial: () => States.initial.Idle.from()
513
613
  })
514
-
515
- const Events = Machine.events(definition)
516
- const InternalEvents = Machine.internalEvents(definition)
517
614
  ```
518
615
 
519
616
  Use the protocol-bound constructors at every machine delivery boundary:
@@ -532,9 +629,13 @@ fields are intentionally unavailable until the owning machine processes it.
532
629
 
533
630
  Invalid constructor input fails `Machine.plan` or the running machine with
534
631
  `MachineSchemaDecodeError`; creating the instruction itself never performs
535
- schema validation. `Machine.event(machine, schema, fields?)` remains available
536
- as an eager low-level constructor for callers that explicitly want an already
537
- decoded value and accept synchronous failure.
632
+ schema validation. APIs that explicitly retain decoded events, such as manual
633
+ model-testing scenarios or transport messages, can receive complete event
634
+ objects directly.
635
+
636
+ An open discriminator such as `_tag: Schema.String` cannot produce named
637
+ constructors because its tag set is not finite. The schema still participates
638
+ in the protocol; pass a complete event object at the delivery boundary.
538
639
 
539
640
  Use the exported utility types when another API must preserve the boundary:
540
641
 
@@ -545,8 +646,9 @@ type AnyHandledEvent = Machine.Machine.Event<typeof definition>
545
646
 
546
647
  `MachineRef.send`, `machineAtom.send`, and `Machine.plan` accept decoded public
547
648
  events or constructions returned by `Machine.events`. Transition handlers
548
- receive only decoded events. Raised events and child emissions additionally
549
- accept constructions from `Machine.internalEvents`. The
649
+ receive only decoded events. Raised events additionally accept constructions
650
+ from `Machine.internalEvents`; outward notifications accept constructions from
651
+ `Machine.emittedEvents`. The
550
652
  local planner and runtime intentionally share the complete decoder to support
551
653
  those internal deliveries, so JavaScript or `any` can bypass the local public
552
654
  distinction.
@@ -576,11 +678,11 @@ self-interrupts fails the parent. `onDone` is required when the output is not
576
678
  are forbidden when their channel is `never`.
577
679
 
578
680
  The source may also be a function of the owning state's entry context when it
579
- needs `state`, `parent`, `parents`, or the entry `event`. Source construction
681
+ needs `state`, `containingState`, `ancestors`, or the entry `event`. Source construction
580
682
  errors, defects, and interruption are machine failures rather than a second
581
683
  phase in `onFailure`.
582
684
 
583
- When a source function reads `state`, `parent`, `parents`, or the entry `event`,
685
+ When a source function reads `state`, `containingState`, `ancestors`, or the entry `event`,
584
686
  `Machine.invoke` infers that owner context and the returned Effect's output,
585
687
  error, and service channels together. No return annotation is needed:
586
688
 
@@ -593,6 +695,33 @@ invoke: Machine.invoke({
593
695
  })
594
696
  ```
595
697
 
698
+ The standalone constructor cannot know the owning machine's input protocols,
699
+ so its `self` and `parent` references are non-sendable. When a source sends
700
+ through either reference, use the owning definition's bound constructor:
701
+
702
+ ```ts
703
+ const definition = Machine.make({
704
+ events: Commands,
705
+ internalEvents: InternalEvents,
706
+ parentEvents: ParentEvents,
707
+ // ...
708
+ })
709
+
710
+ const machine = definition.handle({
711
+ Saving: {
712
+ invoke: definition.invoke({
713
+ id: "notify-parent",
714
+ effect: ({ parent }) =>
715
+ parent === undefined
716
+ ? Effect.void
717
+ : parent.send(ParentEvents.SaveStarted()),
718
+ onDone: ({ target }) => target.none(),
719
+ onFailure: ({ target }) => target.none()
720
+ })
721
+ }
722
+ })
723
+ ```
724
+
596
725
  A direct `invoke: { ... }` object remains available when lifecycle handlers do
597
726
  not need source-derived context.
598
727
 
@@ -640,9 +769,11 @@ parentRef.child(Editor)
640
769
  parentAtom.child(Editor)
641
770
  ```
642
771
 
643
- Child emissions are delivered through the parent's internal protocol.
644
- `onSnapshot`, `onDone`, and `onFailure` are direct parent transitions. Invoked
645
- child IDs must be unique while simultaneously active.
772
+ Child emissions remain on the child's hot `emissions` stream; they are never
773
+ delivered implicitly to the parent. A child sends an input explicitly with
774
+ `enqueue.sendTo(parent, ParentEvents.Example())`. `onSnapshot`, `onDone`, and
775
+ `onFailure` are direct parent transitions. Invoked child IDs must be unique
776
+ while simultaneously active.
646
777
 
647
778
  Descriptors with the same id and machine identity address the same child, even
648
779
  when independently constructed. The descriptor objects themselves are not
@@ -949,13 +1080,19 @@ Wrap the initial builder result:
949
1080
  initial: () => States.initial.Idle.from()
950
1081
  ```
951
1082
 
952
- ### Invoked child emits events not accepted by the parent
1083
+ ### Invoked child expects events not accepted by the parent
953
1084
 
954
- Add the child's emitted schemas to the parent machine's `internalEvents` array:
1085
+ Export one parent-event protocol from the child boundary and compose it into
1086
+ the parent's public events:
955
1087
 
956
1088
  ```ts
957
- events: [Submit],
958
- internalEvents: [...ChildMachine.emits]
1089
+ export const ChildParentEvents = Machine.events(ChildFinished)
1090
+
1091
+ // child
1092
+ parentEvents: ChildParentEvents
1093
+
1094
+ // parent
1095
+ events: Machine.events(Submit, ChildParentEvents)
959
1096
  ```
960
1097
 
961
1098
  ### An internal event is rejected by `send`
@@ -990,10 +1127,10 @@ handlers own behavior.
990
1127
 
991
1128
  ### Parent property does not exist
992
1129
 
993
- Use its full path:
1130
+ Use the structural ancestor's full path:
994
1131
 
995
1132
  ```ts
996
- parents["Route.Ready"]
1133
+ ancestors["Route.Ready"]
997
1134
  ```
998
1135
 
999
1136
  ### Child descriptor types are unrelated
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typeonce/effect-machine",
3
- "version": "0.9.0",
3
+ "version": "0.11.0",
4
4
  "description": "Schema-first state machines and statecharts for Effect",
5
5
  "author": "Sandro Maglione",
6
6
  "repository": {