← all artifacts
skillv1.0.0tested

Registry Designer

registry-designer

Decide whether a concept deserves its own registry, or belongs as an extension, generalisation or branch of one that already exists. Use when someone proposes a new entity, table, registry or domain object, or when two modules appear to own the same data.

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/registry/DOCTRINE.md
  • src/modules/registry/KERNEL.md
  • src/modules/ARCHITECTURE.md
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
Universal Registry test generalised from Atlas registry doctrine. Absorbed the architectural half of the proposed entity-normalizer; its mechanical duplicate-storage detection went to tooling/doctrine-linter instead.

Files in the artifact

  • SKILL.md
  • agents/openai.yaml

Agent metadata

display_name: Registry Designer
summary: Decides whether a concept extends, generalises, branches from, or genuinely warrants a new registry — and resists duplicate truth ownership.
category: architecture
artifact_class: skill
when_to_use:
  - Someone proposes a new entity, table, registry or domain object
  - Two modules appear to own the same data
  - A field is about to be copied from one structure into another
when_not_to_use:
  - Placing an already-agreed module on the spine (use System Architect)
  - Designing a boundary between two separately owned systems (use Federation Contract Author)

SKILL.md

Registry Designer

A registry is not a table. It is the authoritative living representation of a domain — the single place that owns a class of truth. Creating one is the most expensive architectural act available, because every future system will read from it and trust it.

Default answer: no new registry. Make the request earn it.

Hard rules

  • One fact, one owner. Two registries owning the same fact is a defect, always.
  • A registry that only stores rows is a table. Send it back.
  • Copied fields are forbidden. Relate, don't replicate.
  • A registry with no events is inert storage, not a registry.
  • Never create a registry to solve a read problem. Reads are projections.

The Universal Registry test

A concept deserves a registry only if it can exist, change, interact, be measured, be trusted, be owned, be learned from, or influence another system — and the resulting registry can meet every one of these:

  1. possesses a unique, stable identity;
  2. maintains complete event history and provenance;
  3. maintains relationships with every relevant registry;
  4. publishes to the event spine, and subscribes only to what its responsibilities require;
  5. is fully auditable;
  6. supports reasoning over it without that reasoning becoming the source of truth.

Fail any one and it is not a registry. It is a field, a view, a branch, or an event type on an existing registry.

Decision order

1. extend an existing registry        add the field, relationship or event type
2. generalise an existing registry    widen the concept so both cases fit
3. branch under an existing layer     a bounded sub-domain with its own module,
                                      reading identity from its parent registry
4. new registry (last resort)         explicit owner, purpose, event contract

Justify each step down against the one above it, in writing. "It felt cleaner" is not a justification.

When to generalise rather than extend

Generalise when a second case arrives that the first registry almost fits, and the mismatch is naming rather than behaviour. contractor and employee are usually one person registry with a relationship type. residential_property and commercial_property are usually one property registry with a classification.

Stop generalising when the two cases have genuinely different lifecycles, different owners, or different event vocabularies. A generalisation that needs a type column plus six conditional branches has gone too far.

Ownership and normalisation

Absorbed capability: the architectural half of the proposed entity-normalizer. The mechanical half — scanning for duplicate storage — is tooling/doctrine-linter, not prose.

For every field on the proposed structure, ask:

  1. Does this fact already live somewhere? If yes, hold a reference, not a copy.
  2. Who answers for it when it is wrong? That module owns it. Exactly one does.
  3. Is it a fact, or a derivation? Derivations are computed or projected, never stored as truth. A stored derivation drifts, and nothing tells you when.
  4. Is it a current value that hides a history? status, assigned_to, price almost always do. Model the change as an event; expose the current value as a projection.
  5. Would two rows ever disagree? Then the shape is wrong before it ships.

Denormalisation

Permitted only as an explicitly labelled cache with a named refresh path and a named owner, never as the source of a read that matters. If you cannot name what invalidates it, do not build it.

Worked example

Request: "we need a Supplier registry."

  1. Search. A person registry exists with relationship_type including customer and subcontractor. A company registry exists. No supplier concept.
  2. Universal Registry test. A supplier can exist, change, be measured, be trusted, be owned. Identity: yes. Events: supplier.onboarded, quote.received, delivery.failed. Relationships: to jobs, to properties, to invoices. Auditable: yes. It passes.
  3. Decision order. Step 1: can company be extended? A supplier is a company with a supply relationship. The distinguishing facts — lead times, price lists, reliability history — attach to the relationship, not to the company.
  4. Outcome. No new registry. Extend company; add a supply_relationship branch owning terms and reliability events. One company that is both a supplier and a customer stays one row, which the separate-registry design would have made impossible without duplicate storage.
  5. What would change the answer. If suppliers were later sourced from an external trade directory with their own identity space and lifecycle, that is a federation boundary — see federation-contract-author, still not a second company registry.

Pressure tests

  • Name the one module that answers for each field. Any field with two names or none fails.
  • If this registry were deleted, which facts would be unrecoverable? If the answer is "none, they all live elsewhere", it should never have existed.
  • Can two rows in this system disagree about the same real-world fact?
  • Does every field that can change over time have an event that records the change?
  • Is any stored value computable from other stored values?

Stop conditions

  • The proposed registry duplicates a fact another registry owns — refuse, state where the fact lives.
  • Ownership cannot be assigned to exactly one module — the boundary is wrong; split or merge before proceeding.
  • The concept fails the Universal Registry test but a registry is still requested — implement it as a branch or projection and say why.
  • The proposal is justified by read performance alone — build the projection.