CrumblES ADR-004: A Store Name Is Validated, Not Encoded
Status
Section titled “Status”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.
Context
Section titled “Context”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.”
Decision
Section titled “Decision”- CrumblES does not encode a store name. The ref holds the name as given.
Store::openrefuses a store name that Git refuses inside the full ref name. The error names the store name. The validator of gitoxide decides, throughgit_gitoxide::is_valid_ref_name. CrumblES holds no rule of Git’s of its own.StoreNameinges_gitrefuses the empty name and a name that holds/. Git allows/in a ref, but storea/globalwould need the refrefs/ges/a/global/global, and Git cannot create that ref whilerefs/ges/a/global, the ref of storea, exists.
Alternatives Considered
Section titled “Alternatives Considered”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.
Consequences
Section titled “Consequences”Positive
Section titled “Positive”- 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
Storeis created, and it does not fail later at the first append.
Negative
Section titled “Negative”- 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.