Skip to content

Release v5.22.0

Choose a tag to compare

@github-actions github-actions released this 12 Nov 20:31
ff31524

Stage's extension hosting now answers from the model and the locked packages instead of from empty catalogs, so an extension runs end to end: loaded from a lock, started when its screen is reached, invoked from a component on that screen, and answered durably.

Added

  • The ability catalog, the component placements, the setting declarations and the per-screen backend usage are built from the compiled model and the loaded packages' contracts. A system no loaded package realizes has no abilities, and a component the contract does not declare is not placed. See https://github.com/Cratis/Stage/blob/main/Documentation/extensions/end-to-end.md (part of Cratis/Screenplay#1248)
  • A screen that places component <System>.<Component> renders as a Stage:extensionComponent element carrying the locked package's frontend address, the abilities the contract lets the component invoke, the signals it raises and its placeholder.
  • The page tells the host which screen was reached (POST /stage/extensions/activation/screens/<screen>), so the backends of that screen's systems start before the component's first invocation.
  • Samples/Extensions/Notifier, a minimal extension with a contract, a React component, a placeholder and a C# backend, and specifications that run it from a lock through a real Orleans silo.

Changed

  • Stage builds against Screenplay 6.24.0, which the extension screens need. The renderer refuses the new ability invocation, workflow compute and state entry body members with STAGE-ESM-016 until they run, and the conformance matrix tracks the v51 and v52 vectors. (part of #1118)
  • A model is compiled against the extension lock beside the model, not beside the directory Stage was started from. Starting Stage from another directory no longer reports Extension '...' is not in screenplay.lock.
  • A workflow action that invokes an ability is refused with STAGE-LIFECYCLE-010 instead of failing while the host admits the model. Running ability invocations from reactions, workflow actions and state entries is not done yet. (part of #1118)