Skip to content

Design-time capabilities

The design-time tools turn a plain-language request into Chronicle artifacts — read models, projections, audits, and catalogs — grounded in the store’s real schema. They are read-only against the store and generative against your codebase: nothing is written to the store, and generated code comes back as a proposal you review. See How it works for the principle behind them.

CapabilityToolUse it to
Describe an event typedescribe_event_typeRead an event type’s real fields and types — the grounding primitive the others build on.
Read-model scaffoldingscaffold_read_modelTurn a set of event types into a reviewable read model + projection, grounded in their schema.
Unconsumed-event auditaudit_unconsumed_event_typesFind events nothing reads, and consumers pointing at event types that no longer exist.
Event cataloggenerate_event_catalogProduce a living data dictionary — every event, its fields, and its consumers.
Causal traceexplain_causal_traceTurn an event source’s raw log into a “what happened and why” narrative.

A typical flow chains a few tools. To answer “Show me all the users registered” an agent might:

  1. Resolve candidate event types (list_event_types, or Event catalog).
  2. Inspect their real fields with describe an event type.
  3. Check whether a projection already answers the question, then propose one with read-model scaffolding.

Because the tools return structured data rather than prose, the agent does the natural-language reasoning while the store supplies the facts.

The capability hand-off sketches ten design-time capabilities. The five above are the grounding-and-generation core. The remaining ideas — missing-event-type suggestions, projection-vs-reducer advice, consistency-boundary (DCB) advice, schema-evolution assistance, spec scaffolding, and constraint suggestions — build on the same introspection pipeline and are candidates for future releases.