Attribute vocabulary administration

The protected admin workspace at Ontology → Attributes is the control plane for resolver attribute fields, controlled values, localized presentation metadata, and recognition aliases. It uses the same append-only claim, independent-review, and immutable-release workflow as concepts and terms. Editing never mutates the current published projection in place.

Roles and lifecycle

Every mutation requires a source, evidence class, confidence, and the signed admin identity. The browser cannot choose actorId, cannot access the admin service credential, and cannot provide an alias's normalized text.

Governed records

Entity Stable contract Editable lifecycle data
attribute_field Entity ID and lower camel-case key Cardinality, value kind, status, replacement
attribute_value Entity ID, field ID, kebab-case key, machine value Status and same-field replacement
attribute_localization Owner identity plus locale Localized label, description/tooltip, English lineage
attribute_alias Target identity and server-normalized spelling Locale, text, exact/phrase/token mode, status, market scope

Labels and descriptions are presentation metadata; clients must keep using field/value IDs and canonical machine values as identifiers. Recognition aliases can affect resolver behavior, but do not change the normalized value returned to consumers.

Completeness and freshness

English (en), Bulgarian (bg), Polish (pl), and German (de) are the fixed governed attribute metadata locales. The workspace reports missing and stale definitions across active fields and values.

A non-English localization stores sourceEnglishClaimId. When the projected English localization changes, translations linked to the predecessor become stale immediately in the editor, reviewer, and publisher views. Publication rejects the candidate until each translation is resubmitted against the current projected English claim. It also rejects an active field or value unless all four localizations exist.

Admin API

All operations require the taxonomy:admin service scope. The checked-in openapi/taxonomy-admin-v1.json file is the machine-readable source of truth.

Method and path Purpose
GET /v1/admin/attribute-vocabulary Read the current published records and active pending/approved proposals
POST /v1/admin/attribute-fields Assert a new field
POST /v1/admin/attribute-fields/:id Supersede a published field
POST /v1/admin/attribute-values Assert a new controlled value
POST /v1/admin/attribute-values/:id Supersede a published controlled value
POST /v1/admin/attribute-localizations Assert a localized label and description
POST /v1/admin/attribute-localizations/:id Supersede a published localization
POST /v1/admin/attribute-aliases Assert a recognition alias
POST /v1/admin/attribute-aliases/:id Supersede a published recognition alias

Mutation responses return the appended draft claim. New and successor claims then appear in GET /v1/admin/reviews; approved unpublished claims appear in GET /v1/admin/releases/preview. Only POST /v1/admin/releases can replace the current release, and it does so atomically.

Compatibility and safety

The admin operations are additive to API v1. Existing consumer requests and responses are unchanged. A draft or approval alone cannot alter resolution. A published localization-only change affects display metadata; a published field, value, or alias change can affect resolver behavior and must be treated as an ontology release change. Existing field/value identities and machine values remain stable unless an explicitly reviewed successor says otherwise.