← all artifacts
skillv1.0.0tested

Event Spine Designer

event-spine-designer

Model state change as attributable events and relationships rather than mutable snapshots. Use when designing how something changes over time, when a status or assignment field is proposed, when building an audit trail or timeline, or when adding a consumer that reacts to state change.

Provenance

Derived procedure. The source project remains authoritative for its own doctrine; nothing here governs it.

Source project
Atlas Project
Snapshot
02260d7e
Source paths
  • src/modules/ARCHITECTURE.md
  • src/modules/holonarchy/ledger.ts
  • src/modules/auditability/
Harvested
2026-09-10
Evidence standing
known
Predecessor
unknown
Supersedes
nothing
Superseded by
unknown

Compatibility and state

Compatible targets
GenericAtlasHTC HubAtlas Harmony Hub
Runtime needs
none declared
Dependencies
none
Tests
structural-and-fixtures-passing (last verified 2026-09-10)
Content hash
pending_export
Consumers
not_searched — No activation survey has been performed across target projects.
Transformation
Event anatomy derived from the Atlas ledger implementation and spine doctrine. The occurred-at / recorded-at split is observed_code, not documented doctrine.

Files in the artifact

  • SKILL.md
  • agents/openai.yaml

Agent metadata

display_name: Event Spine Designer
summary: Models state change as attributable, append-only events — timeline primary, snapshots derived.
category: architecture
artifact_class: skill
when_to_use:
  - Designing how something changes over time
  - A status, assignment or current-value field is proposed
  - Building an audit trail, timeline or history view
  - Adding a consumer that reacts to state change
when_not_to_use:
  - Deciding whether the entity itself deserves a registry (use Registry Designer)
  - Writing the SQL for the resulting tables (use Migration Author)

SKILL.md

Event Spine Designer

The timeline is primary. Snapshots are projections of it.

A row that says status = 'complete' records that something is true now and destroys the record of how it became true, who decided, when, and what it was before. That information is not recoverable later, and it is the information every audit, dispute and forecast needs.

Hard rules

  • Every state change is an event. Row updates alone are insufficient.
  • Every event is attributable. No anonymous state change.
  • Events are append-only. Correct with a new event; never rewrite one.
  • Current state is derived, and its derivation is stated.
  • A missing history is typed, never silently empty.
  • Events name what happened, in the past tense, in domain language — not what the UI did. inspection.failed, not form_submitted.

Anatomy of an event

Every event carries:

ElementRequirement
Event identityStable unique id; never reused
TypePast-tense domain verb, versioned when its shape changes
SubjectThe entity this happened to, by reference
Actor / sourceWho or what caused it — a person, a system, an external contract. Never absent; use a typed system or unknown_actor
Occurred atWhen it happened in the world
Recorded atWhen the system learned of it — distinct, and often different
Previous relationshipWhat state it moved from, where meaningful
TransformationWhat changed, expressed as before → after
EvidenceReference to what substantiates it, where a claim is being made
ReversibilityWhether a compensating event exists, and which

occurred at and recorded at are two fields. Collapsing them makes backfilled and late-arriving history indistinguishable from real-time history.

Procedure

  1. Extract the verbs. Write the feature as sentences with actors: "the supervisor approved the quote". Each sentence is a candidate event.
  2. Name each event in past tense, domain language, subject.verb form.
  3. Identify the actor for each. If none can be named, the design is incomplete — find the actor or type the absence explicitly.
  4. Define the transformation each event performs: which relationship or value moves from what to what.
  5. Derive the snapshot. State how current state is computed from the stream. Store it only as a labelled projection with a named rebuild path.
  6. Name the consumers. An event with no producer or no consumer is dead architecture — either a real need exists or the event should not.
  7. Decide reversibility. For each event: is it compensable, and by what? Some are not. Say which.
  8. Type the missing history. For entities that existed before the stream did, record history_before: not_captured rather than presenting a partial timeline as complete.

Projections

A projection is a read model rebuilt from the stream. It may be a materialised table when reads demand it, under three conditions:

  • it is labelled a projection in its name and its documentation;
  • it can be dropped and rebuilt from the events alone;
  • exactly one process writes it.

If a projection can be written by anything other than its rebuild path, it has become a second source of truth. That is the failure this skill exists to prevent.

Worked example

Request: "add an `assigned_to` field so we know who's on each job."

  1. Verbs. "the coordinator assigned the job to Priya", "Priya handed the job back", "the job was reassigned to Tom".
  2. Events. job.assigned, job.unassigned, job.reassigned — or one job.assignment_changed carrying previous and current assignee. Prefer the single event when consumers care about the transition; prefer three when they react differently to each.
  3. Actor. The coordinator, by reference. Not the assignee — the assignee is the subject of the change, not its cause.
  4. Transformation. assignee: none → person:priya.
  5. Projection. job.current_assignee, derived, rebuildable, written only by the projector.
  6. Consumers. Scheduling, notifications, payroll attribution, workload reporting.
  7. Result. The original request — a mutable assigned_to column — would have silently answered "who is on this job" while making "who has been on this job, and who kept changing it" permanently unanswerable.

Pressure tests

  • For any current value, can you reconstruct what it was last Tuesday, and who changed it?
  • Can any state change occur without producing an event? Trace every write path.
  • Is any event produced that nothing consumes, or consumed from a producer that does not exist?
  • If the projection table were dropped, could it be rebuilt exactly?
  • Does any event carry an actor of "system" that actually had a human behind it?
  • Is a partial timeline anywhere presented as if it were complete?

Stop conditions

  • A state change has no nameable actor and the absence is not typed.
  • The design requires editing or deleting a past event — stop; use supersession or a compensating event.
  • A projection has more than one writer.
  • The event stream would be optional — a "log for later" written beside the real update path. That is not an event spine; it is a diary that drifts.