Skip to content

Align the invoicing sample and projection docs with the language definitions - #23

Merged
einari merged 2 commits into
mainfrom
fix/sample-language-qa
Jul 23, 2026
Merged

Align the invoicing sample and projection docs with the language definitions#23
einari merged 2 commits into
mainfrom
fix/sample-language-qa

Conversation

@einari

@einari einari commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Summary

A quality-assurance pass of the invoicing showcase sample against the actual language definitions, and of the projection documentation against the parser. The sample no longer teaches redundant or rejected forms, and the auto-map/grammar pages now describe exactly what the parser accepts.

Fixed

  • The invoicing sample no longer uses a redundant projection-level automap — AutoMap is the default
  • The invoicing sample uses every instead of all for per-projection mappings, and showcases all in a new SystemActivity slice matching its documented system-wide semantics
  • The invoicing sample no longer points a projection at a named sequence its own events never reach
  • The invoicing sample maps arithmetic counters only from events that carry the referenced property, imports every external event it references, and uses the documented = mapping and plain string literals
  • The auto-map documentation no longer shows an event-level no automap the parser rejects, and its join and children examples use the actual with and identified by forms
  • The projection grammar documents the per-with AutoMap toggle and the sequence directive, and its closing example uses the real join syntax

🤖 Generated with Claude Code

einari and others added 2 commits July 23, 2026 17:40
The sample taught several forms the language definitions reject or
deprecate: a redundant projection-level automap (AutoMap is the
default), a named sequence its own events never reach, all where
every is the correct construct for events the projection subscribes
to, a redundant literal keyword on a quoted string, the undocumented
set-to alternative to =, an arithmetic mapping referencing a property
its source event does not carry, and events used without a
declaration or import. The all block moves to a new SystemActivity
slice mirroring its documented system-wide use case.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The auto-map page showed an event-level no automap the parser rejects
and join/children examples using an events line and an id shorthand
that do not exist - joins take with blocks and children require
identified by. The grammar page contradicted the parser in the other
direction by denying the per-with automap toggle the parser supports,
and its closing example used the nonexistent events line. Also add
the sequence directive to the projection EBNF.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@einari einari added the patch Bug fixes, docs, refactoring label Jul 23, 2026
@einari
einari merged commit 7c319da into main Jul 23, 2026
1 check passed
@einari
einari deleted the fix/sample-language-qa branch July 23, 2026 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

patch Bug fixes, docs, refactoring

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant