Skip to content

Release v7.193.0

Choose a tag to compare

@github-actions github-actions released this 27 Nov 11:49
c3927e7

Corpus guidance for Elixir applications built on Arc and Chronicle: how specs are written and kept out of releases, projections over reducers, read models that own their artifacts, and uniqueness by constraint.

Added

  • specs.elixir.md: specs are .exs scripts in for_*/when_* folders beside the code with no _test suffix, found with test_paths and test_load_filters, so a release never contains them (the Elixir counterpart of the C# Release removal and the TypeScript spec folders).
  • Elixir spec conventions: one scenario per file, assertions that start with should, shared contexts in given/, and spec module names that mirror their path.
  • An Elixir decision table in cratis-arc-elixir that names Chronicle constraints (unique/2, unique_event_type/1) for uniqueness and how Arc reports a violation.
  • A "read model owns its artifacts" section in cratis-arc-elixir: the read model, its projection or reducer and its queries share one file named for the read model.

Changed

  • Projections are preferred over reducers; a reducer is the exception when a projection cannot express the transition. This replaces "a reducer is a normal choice, not a last resort" in cratis-chronicle-read-model and cratis-chronicle-reducer, and adds the rule to vertical-slices.md and the Elixir skills.
  • The uniqueness row of the decision matrix in vertical-slices.md says never to check uniqueness by reading first.
  • The generated Copilot instructions are regenerated, and the proxies-and-vertical-slices.md reference gets its Contents list.