Skip to content

CrumblES ADR-004: A Store Name Is Validated, Not Encoded

Accepted — 2026-11-03 (decided by the maintainer, Tobias Brennecke). The refusal of / is the reading of that decision by the orchestrating session, and section 3.1.1 of the specification now states it.

This record concerns how CrumblES meets section 3.1.1. It declares no deviation from the specification.

A store name enters the ref of the global stream, refs/ges/<store name>/global. Since the CrumblES SDK exists, a caller chooses that name, so a name can hold characters that Git refuses in a ref.

The maintainer’s words: “Wir sollten den store Namen validieren und nur in git refs erlaubte Zeichen zulassen”, and for the specification: “Bitte die Abweichung auch direkt in der Spezifikation anpassen.”

  • CrumblES does not encode a store name. The ref holds the name as given.
  • Store::open refuses a store name that Git refuses inside the full ref name. The error names the store name. The validator of gitoxide decides, through git_gitoxide::is_valid_ref_name. CrumblES holds no rule of Git’s of its own.
  • StoreName in ges_git refuses the empty name and a name that holds /. Git allows / in a ref, but store a/global would need the ref refs/ges/a/global/global, and Git cannot create that ref while refs/ges/a/global, the ref of store a, exists.

Encode the name by a reversible rule. Rejected by the maintainer’s decision. An encoded name also makes the ref harder to read in git log and git for-each-ref.

Allow /. Not taken: see the decision. A caller who wants a hierarchy can write a-b or a.b.

Write the rules of Git by hand. Rejected: gitoxide already holds them.

  • The ref shows the store name as the caller wrote it.
  • CrumblES has no encoder and no decoder to keep correct.
  • A bad name fails when the Store is created, and it does not fail later at the first append.
  • A caller cannot use every name, for example a name with a space.

Git Event Store is an independent open specification for an event store that uses Git as its storage component. It is not affiliated with or endorsed by the Git Project or Software Freedom Conservancy. Git and the Git logo are either registered trademarks or trademarks of Software Freedom Conservancy, Inc., corporate home of the Git Project, in the United States and/or other countries.

Git Event Store is not affiliated with or endorsed by Kurrent, the maker of KurrentDB (formerly EventStoreDB). "Event store" is used here as the generic name of the event-sourcing storage pattern.