Peios Learn
Documentation

Peios

Peios Peios Kernel Universal Directory Project

Developer Tools

Trail Acta Provium clackatoo CAF GCSL Pekit

Applications

Framewright

Standards and Conventions

Standards and Conventions Peios Specifications
Universal Directory

Universal Directory

Directory objects, schema, persistence, and development tools.

Single-page view · as markdown

Universal Directory

Universal Directory / Getting Started

Universal Directory stores named objects in a hierarchy, with a schema that defines their attributes. Its udd server provides a development console and JSON API for exploring objects, schema changes, persistence, and replication state.

Current implementation #

The engine stores objects in memory and records changes in snapshots and write-ahead logs. Object identities remain stable when names or locations change. The schema is itself a collection of directory objects, so you can inspect definitions through the same tools used for ordinary objects.

The replication engine merges changes between nodes in process. Tests exercise conflicting writes, deletion, interrupted synchronization, and recovery. The GIP network fabric connects machines and supports the ud/msgs demonstration service, but directory replication is not connected to that fabric yet. The two-machine development fixture transfers its initial directory state in process; it is not network enrollment.

Development boundary #

The JSON API has no authentication or authorization. Its default listener is loopback, but --listen can change that. Keep it on a trusted local interface: anyone who can reach it can read and modify the directory.

udd is a development server, not a deployment-ready directory service. There is no supported network join workflow, automatic service registration, or release-qualified package set in this repository. Build instructions live in the repository's docs/building.md.

Start with Running udd and Objects and Identity.

Running udd

Universal Directory / Getting Started

Create a disposable directory and run udd against it to explore the console and JSON API. Creating a domain is a separate operation from starting the server, so a missing domain does not silently become an empty replacement.

Before you start #

Prepare the following:

  • Build or install the udd development binary.
  • Choose a new data directory that contains no files you need.
  • Keep the console listener on a trusted local interface.

The examples assume udd is on your command search path. Repository build instructions are in docs/building.md; udd(8) documents the full command interface.

Create and run a domain #

  1. Create the domain with an explicit local machine address:

    udd new --data-dir ./directory-demo --name DevA --address 127.0.0.1:5390
    
  2. Start the existing domain:

    udd --data-dir ./directory-demo --listen 127.0.0.1:5389 --gip-bind 127.0.0.1:5390
    
  3. Open http://127.0.0.1:5389 in your browser. The console displays the directory root, configuration, schema, and local machine object.

Stop the server with Ctrl-C before restarting it against the same data directory. The daemon holds an exclusive lock on the directory for its lifetime. A second startup or creation attempt fails immediately with data directory is already in use; it does not wait or change the database. The operating system releases the lock when the process exits, including an abnormal exit. There is no lock file to remove.

The startup report identifies its recovered generation and replayed frames. Keep the whole data directory together, including its private machine-key file. Command-line arguments must be valid UTF-8; invalid bytes produce a usage error with exit status 2.

Run without persistent files #

For a session whose state disappears at exit, run:

udd --ephemeral --listen 127.0.0.1:5389

This mode uses the same persistence interfaces with an in-memory filesystem. It creates a fresh domain at startup and chooses a free loopback GIP port.

Understand startup failures #

A missing domain requires an explicit creation step. A damaged generation, unsupported format, or invalid machine key causes startup to fail. Preserve the original directory for diagnosis and restore from a known complete backup; do not delete individual generations to make recovery proceed.

A reported truncated tail is different: recovery identified incomplete, unacknowledged bytes at the end of the active log. A warning about the local machine object's key means the stored directory record does not match the private identity used by this process.

A node with no root object can exist after interrupted creation. It reports no-root rather than serving a replacement domain. This is distinct from successful recovery of a populated directory.

Explore two machines #

The repository's dev/two-dc.sh builds a disposable pair of machines and runs both consoles on loopback. It prepares their shared directory state out of band. The fabric and message tabs exercise real connections and message outcomes, but do not demonstrate network directory replication.

Objects and Identity

Universal Directory / Concepts

Every entry in the directory; an OU, a user, a schema definition; is an object. UD's object model rests on one distinction it never blurs: identity versus address.

Identity: the GUID #

An object's identity is a GUID, assigned at creation and immutable for the object's entire life.

Everything that needs to point at an object stores that GUID, never a name or a path: a group's member values, a facet's attribute list, a class's composition. Renames and moves therefore never break references. Deleting an object leaves any remaining references visibly dangling at the dead GUID, rather than silently rebinding to whatever later takes the name.

Address: derived, never stored #

Internally the store is inode-shaped: a flat table of objects keyed by GUID, where each object records only its parent's GUID and its own bare name (Sales, Jack). The tree is an index over that table.

Both address forms are computed on demand:

  • The distinguished name; leaf-first with typed components, CN=Jack,OU=Sales, where each prefix comes from the object's class (dnPrefix) and values are escaped per RFC 4514;
  • The native path; root-first and untyped, /Sales/Jack, used by the console, the JSON API's path resolution, and anywhere a human types an address. Path lookup is case-insensitive.

Because addresses are derived, renaming an OU is a single-object change. Every descendant's DN and path change logically, with zero writes, and nothing that references those descendants notices at all.

The tree has a single root object; empty name, class domainRoot; which never appears in DNs and cannot be renamed, moved, or deleted.

Names and sibling uniqueness #

Within one parent, names are unique under two deliberately strict rules.

Caseless, case-preserving. Names compare under Unicode canonical caseless matching, so Jack, jack, and a decomposed Jack are all the same name. The spelling you create is the spelling you see; the folding governs comparison and conflict only. See naming rules for the exact function.

Type-blind. Uniqueness ignores class entirely. An OU named Sales and a group named sales cannot be siblings. One container, one meaning per name.

Names cannot be empty or contain /, control characters, or surrounding whitespace. Strict rules can be safely loosened later; a loose rule can never be tightened without breaking existing data.

Rename and move #

Rename and reparent are one operation, in the shape of LDAP's ModifyDN: change the name, the parent, or both, atomically.

The engine refuses:

  • Moves that would create a cycle, placing an object under itself or its own descendant;
  • A destination where the caseless, type-blind name is already taken;
  • Any rename or move of the root, of system objects, or of schema objects; definitions are add and delete only; and any move into the schema subtree.

A case-only rename, jack → Jack, is always legal. It is the same caseless name, so it conflicts with nothing.

Delete: the three-stage lifecycle #

Deletion is soft and subtree-wide. Deleting an object tombstones it and every descendant in place, each with its own stamped existence transition.

A tombstone leaves the effective tree immediately; its name is free at once; but the full record survives, and every tombstoned object is individually restorable. Restoring is top-down: the parent must be alive and the name must still be free. It is an ordinary write, and a restore into a conflict refuses.

Beyond Deleted sit two harder states.

Shredded is security erasure, reachable directly from alive or as an escalation of a soft delete. The payload and even the name are destroyed; only a skeleton; GUID, parent GUID, stamps; remains. Every reference to the shredded GUID is physically scrubbed out of every holder, because erasure that leaves the object's GUID lingering in group member lists would fail its own purpose. The persistence scheduler rewrites affected files with a two-minute target. Failed or stalled I/O can prevent that deadline from being met; the storage view reports outstanding work. Shredding cannot be undone through directory restoration.

Purged means the tombstone is gone entirely. This is never manual: purge happens automatically once a tombstone's age passes maxTimeApart.

Aging is computed, not written #

Two domain-wide knobs, stored as attributes on /Configuration with defaults of 30 and 180 days, drive the automatic transitions. Past timeUntilShred a soft-deleted record hardens: the restore window closes and the flesh is scrubbed to a skeleton. Past maxTimeApart the skeleton purges.

Aging is a pure function of the object's existence stamp, the config windows, and the clock. Every node evaluates a tombstone's effective stage the same way, so nodes never race stamps about it. Local garbage collection merely catches physical storage up with what the aging function already answers.

The root and system objects are permanently protected, and schema definitions add their own unused-delete rules. Because references store GUIDs, deleting a referenced object never edits the referrers: their values dangle visibly at the tombstone until the target is shredded, at which point they are scrubbed.

System objects #

Objects created at domain creation carry a system flag: the root, /Configuration, /Configuration/Schema, /LostAndFound, /Domain Controllers, and every base schema definition.

System objects refuse renames, moves, and deletion; they are the fixed points the rest of the directory is built around; but their attributes are writable. The replication knobs live as attributes on /Configuration, and a description on the root is legal. Schema definitions are the exception, fully immutable through the schema-subtree rule.

Structural repairs are derived, never written #

Replication will merge writes that were each legal at their origin but collide when combined. UD repairs these as a view: the stored records stay exactly as written, and every node derives the same effective tree from the same atoms. No repair writes, no repair replication traffic.

Three rules, all favoring the earliest claim; the first legal write stands, because the later write is the one that caused the violation:

  • Name conflicts. Two live siblings whose names fold equal: the earliest placement claim keeps the name, and the later one displays as name CNF:<guid>. It remains resolvable and renameable, and its stored name is untouched.
  • Orphans. A live object whose stored parent is dead or missing derives into /LostAndFound. Restoring the parent snaps it back automatically.
  • Cycles. Concurrent moves that form a loop break at the newest placement: the latest mover derives into /LostAndFound, and the earlier move survives intact.

Admin operations target the effective view; rename the CNF loser, move the orphan out, as ordinary writes; and the repair dissolves the moment the underlying violation is gone.

Objects whose class definition has not arrived yet are ghosts: visible in the debugger, holding their sibling name, but refusing every originating write until the schema converges.

Replication stamps #

Every replicated fact about an object decomposes into merge atoms:

  • Its existence; creation, with class and the system flag riding along;
  • Its placement; (parent, name) as one atom, so rename and move contend as a unit;
  • Each attribute value.

Every atom carries a stamp: a version, an originating time, and an originating invocation id. Together these decide conflicts deterministically; higher version wins, then later timestamp, then origin; and a transfer certificate drives change enumeration. Removing a value leaves a stamped absence atom rather than a hole, so the removal itself can win merges.

For how those atoms travel and merge, read Replication.

The Schema Model

Universal Directory / Concepts

UD's schema is compositional. There is no class inheritance anywhere in the model, in the current model. The schema is built from three layers, each referencing the one below by GUID, with flat set-union as the only combining operation.

The three layers #

Attributes are defined globally. One definition per attribute; surname, member, expiry; carrying:

  • Its syntax: string, integer, boolean, timestamp, reference, endpoint, or publicKey;
  • Whether it is single- or multi-valued;
  • Its matching rule, caseless or exact, governing comparisons between values;
  • The meta-attributes its values can carry (legalMeta, below);
  • An aliases slot recording alternative wire names.

Facets reference attributes; they never define them. So two facets that both want description agree by construction, because there is only one description.

A facet is a named set of attribute references; the smallest unit of composition. securityPrincipal carries sid; person carries givenName, surname, email; membership carries member. Each reference in a facet can be flagged required, shown in the console as *. Facets cannot include other facets: composition is flat, so it is order-free and collision-free.

A class is a named set of facet references plus nominal properties. user is described + person + securityPrincipal, plus a dnPrefix of CN supplying its DN component type.

Classes carry zero attributes directly; a class needing unique attributes gets its own facet. A class is nominal: an object is a user, queryably and permanently, since class is immutable at birth, but its attribute surface comes entirely from facets.

An object's surface #

Which attributes an object can hold; its surface; is the union of three facet sets:

  1. Its class's facets;
  2. Facets grafted onto its class by class extensions, covered in modifying the schema;
  3. Its own attached facets; facets added to this one instance.

Setting an attribute outside the surface is refused. The console renders the entire surface, set and unset attributes alike, grouped by the facet that provides them, so the surface is always visible rather than discovered by trial and error.

Attached facets are ordinary data: the engine-level attachedFacets attribute holds facet references on the object itself. Attaching a facet immediately widens the surface. Detaching is refused while any attribute only that facet provides still holds values; clear the values first, explicitly. Nothing is ever silently destroyed.

Values and per-value metadata #

Attributes are natively multi-valued: an attribute holds an ordered set of values, unique under the attribute's matching rule.

Each value can carry metadata: a generic map of meta-attribute name to values, with nothing hardcoded. Which meta keys are legal on which attribute is itself schema data; an attribute's legalMeta lists other attribute definitions, so meta values are typed and validated by the same machinery as everything else.

Two invariants hold:

Meta never forks identity. The value itself is the set key. member cannot contain the same GUID twice with different metadata; changing a value's meta is an update to that value, not a new value.

Meta is validated, not yet interpreted. The canonical example; a group membership with an expiry; is supported and validated: member permits the expiry meta key, a timestamp. Engine semantics for expiry, filtering expired values at read, are not yet active.

Self-hosting #

The schema is not a config file. It is objects in the directory, flat under /Configuration/Schema, one per attribute, facet, and class, browsable and inspectable through the same console and API as everything else. CN=surname,OU=Schema,OU=Configuration is a real DN.

The recursion grounds out cleanly: attributeDefinition, facetDefinition, and classDefinition are themselves classes, composed of facets like attributeSchema; and classDefinition is an instance of itself. The engine works from a cache compiled off these objects, but the objects are the truth.

The complete contents of the base schema; 26 attributes, 11 facets, 11 classes; are tabulated in the base schema reference.

Modifying the Schema

Universal Directory / Concepts

UD's schema can be extended at runtime. Namespaces separate application definitions from the base schema. Creation validates the complete definition; deletion checks whether other objects still depend on it.

Namespaces #

All new definitions live in a namespace: a schemaNamespace OU created directly under /Configuration/Schema.

The flat set of unprefixed base definitions is reserved forever. Even the local organization extends the schema through its own namespace; /Configuration/Schema/Homelab/, /Configuration/Schema/Acme/. Namespaces hold definitions only; they cannot nest.

Namespace names can be dotted, and reverse-DNS (com.acme.tools) is the convention for anything redistributable, which makes vendor collisions structurally unlikely rather than merely hoped against. Short names remain fine for org-internal extensions. gip and ud are permanently reserved, being GIP's service namespaces.

A namespaced definition's wire name is Namespace-name. A facet badging in the Acme namespace is addressed everywhere; API, console, attribute lookups; as Acme-badging. The hyphen is structural: it is the namespace separator, which is exactly why native definition names cannot contain one. See naming rules. Collisions between namespaces are therefore structurally impossible, not conventionally unlikely.

Create complete definitions #

A definition is created complete, in one atomic call; object and attributes together. The API's create accepts an attributes map; the console's create modal generates a field per attribute of the chosen class. The engine fills in lifecycle: active and system: false itself.

Every schema write then passes a trial recompile of the whole schema. An attribute definition missing its syntax, an extension whose target is not a class, a dangling facet reference; any incoherence rejects the write atomically, with the compiler's message, as if it never happened.

Once created, a definition is immutable and immovable: no attribute edits, no renames, no moves. Add and delete are the only verbs. To fix a definition, delete it and recreate it.

The recreated definition is a new definition with a new GUID, so anything that referenced the old one dangles visibly rather than silently rebinding. This is the no-resurrection guarantee: a deleted definition's name can be reused, but its identity can never be impersonated.

The unused-delete rule #

A definition can be deleted only when provably unused.

KindBlocked while…
attributeany object holds values for it, any value uses it as a meta key, any attribute lists it in legalMeta, or any facet references it
facetany class composes it, any extension grafts it, or any object has it attached
classany instance exists; including restorable soft-deleted ones; shredded skeletons do not count; or any extension targets it
class extensionany instance of the target class holds values in attributes the extension exclusively provides

Refusals enumerate their blockers by name: attribute still has values on: /Sales/Jack, facet is used by class Acme-badgeHolder. Teardown is a matter of reading the error.

Two shapes of teardown work:

  • Dependency order; clear values, remove the extension, then the facet, then the attribute, then the namespace.
  • Wholesale; deleting a namespace takes its entire contents down in one atomic subtree delete, and usage between the dying definitions themselves does not count. Only usage from outside the namespace blocks.

Definition deletion is the same soft delete as everywhere else. A deleted definition sits restorably in the morgue; restoring it recompiles the schema and revives its wire name, refused if the name has been retaken; then hardens to a skeleton when the restore window closes. Values stored under a definition die at its shred: data whose meaning can never return is not kept.

Class extensions #

A class extension grafts facets onto a class its author does not own. It is the mechanism for "an app needs a tracking number on every user" without touching the user class.

An extension is a definition of class classExtension, living in the extender's namespace, declaring a targetClass and the facets to add. From the moment it exists, every instance of the target class carries those facets in its surface. Delete the extension and the surface shrinks back; refused, per the table above, while instances still hold values only the extension permits.

The target class object is never modified. The extension is entirely the extender's property, living in their namespace, removable with their namespace.

Add badge colors to users #

Use the JSON API to create an attribute, attach it to a facet, and extend the user class with that facet. These requests were checked against version 0.1.0. Each create returns an object whose id supplies the next request's GUID placeholder.

Before you start, resolve /Configuration/Schema and an existing user's path through GET /api/path/<path>. Resolve /Configuration/Schema/user for the base class GUID. The console's create dialog can also perform these steps.

  1. Create the namespace under the schema OU:

    POST /api/objects/<schema-ou-guid>/children
    { "name": "Acme", "class": "schemaNamespace" }
    
  2. Create the complete attribute definition under the namespace:

    POST /api/objects/<acme-guid>/children
    { "name": "badgeColor", "class": "attributeDefinition", "attributes": {
        "syntax":       [{ "value": "string" }],
        "singleValued": [{ "value": "true" }],
        "matching":     [{ "value": "caseless" }]
    } }
    
  3. Create a facet referencing that attribute's GUID:

    POST /api/objects/<acme-guid>/children
    { "name": "badging", "class": "facetDefinition", "attributes": {
        "attributes": [{ "value": "<badge-color-guid>" }]
    } }
    
  4. Extend the base user class with the facet:

    POST /api/objects/<acme-guid>/children
    { "name": "userBadging", "class": "classExtension", "attributes": {
        "targetClass": [{ "value": "<user-class-guid>" }],
        "facets":      [{ "value": "<badging-guid>" }]
    } }
    

    User objects now include Acme-badging in their effective facet surface.

  5. Set a user's badge color:

    PUT /api/objects/<user-guid>/attributes/Acme-badgeColor
    { "values": [{ "value": "red" }] }
    

The stored attribute uses the namespaced wire name Acme-badgeColor. Reference values in these requests are GUIDs; the console also accepts paths and resolves them before submitting a request.

Replication

Universal Directory / Concepts

UD's replication engine lets each node accept writes and merge updates from other nodes. Nodes with the same updates derive the same directory view, regardless of the order in which those updates arrive.

In version 0.1.0, this protocol runs between nodes in the test harness. The daemon does not exchange directory updates over GIP. GIP links and the ud/msgs service are separate from directory replication. The console shows local replication metadata, but it does not connect daemons into a replicated domain.

Node identities and update coordinates #

A node has a permanent node ID and an invocation ID identifying one incarnation of its database. Each update receives a local update sequence number (USN). The pair (invocationId, usn) identifies that update's position in the originating stream.

Changing the invocation ID prevents a recovered database from presenting new updates as positions in an older stream. The local counter continues; the new invocation supplies a distinct coordinate space.

Merging updates #

Replication transfers merge atoms: existence, placement, individual attribute values, and the shred latch. Each ordinary atom carries a stamp, ordered by version, timestamp, then origin. The atom with the greater stamp wins.

An identical value and stamp produce no write. An identical value with a stronger stamp updates the stamp, so later comparisons agree across nodes. Replicated writes bypass local schema validation: a definition needed by an incoming object might arrive later. The derived view handles those incomplete states.

An incoming record with the same GUID but a different class or system flag is rejected. The journal records the mismatch and the sync cursor stops at that record. The engine does not choose between inconsistent identities.

Pulling updates #

A node pulls updates above a partner-specific high watermark, expressed in that partner's USN space. It also sends an up-to-dateness vector recording which coordinates it holds from each originating invocation. The sender uses that vector to omit updates already received through other partners.

Responses arrive in chunks. Even an empty chunk can advance the watermark. Vector coverage advances only when a stream completes; a partial transfer must not claim that missing updates were received.

Initial synchronization starts with a zero watermark and an empty vector. The node discovers the root from incoming records. Incomplete schema components remain quarantined, and objects whose classes have not arrived remain ghosts. Those objects reject local writes until their definitions arrive. A pull between nodes with different root GUIDs is rejected because the nodes belong to different domains.

Deriving a consistent view #

Independently valid writes can conflict after merging. UD resolves these conflicts in the derived view without generating repair writes:

  • Colliding sibling names retain the earliest claim; later claims receive a conflict name (CNF).
  • Objects with missing parents and objects involved in move cycles appear under /LostAndFound.
  • Incomplete schema definitions remain quarantined.

The same stored atoms produce the same repairs on each node. A repair ceases to apply when an ordinary update removes the conflict.

Replicating deletion #

The deletion lifecycle uses stamped existence transitions for soft deletion and restoration. Shredding additionally sets an irreversible latch, so a concurrent edit or restore cannot recover shredded data through replication.

Restore and purge deadlines derive from timestamps and replicated configuration. A partner whose watermark is older than retained deletion knowledge receives a full-resynchronization requirement. Incremental sync cannot safely omit deletions that have already been purged.

Detecting rollback #

A restored node can retain an old invocation ID while losing some updates from that invocation. A partner's vector or watermark can expose this: it claims coordinates from the restored node's stream beyond the node's own counter. Both pull requests and responses carry evidence used by this check.

On detecting rollback, the engine changes invocation ID, assigns its holdings to the new stream, suspends originating writes, and records an alarm. With persistence, it publishes a salvage snapshot. A completed healing pull clears the suspension.

Detection does not increase claimed coverage of the old invocation. The local counter might already have advanced after restoration, so it cannot prove which old updates remain. The healing pull supplies that evidence.

Zero-record probes check partners before the node applies or originates updates. This preserves the opportunity to detect rollback before new local USNs obscure the difference between the restored counter and partner evidence.

Observing and testing replication #

The console exposes local identity, counters, vectors, and journal entries. The in-process scenario and simulation tests exercise synchronization, partitions, clock skew, power loss, and restored storage. They check convergence using the persistence implementation. These tests do not qualify network replication, which the daemon does not implement.

Persistence

Universal Directory / Concepts

Universal Directory keeps its working state in memory. Snapshots and write-ahead logs preserve that state across restarts. Reads use the live store; recovery reconstructs it from the durable files.

Generations and recovery #

Each generation has a snapshot, a write-ahead log, or both. A snapshot records complete state; log frames record changed state rather than re-running original requests. Headers identify the format, node, and generation. Checksums detect incomplete or damaged records.

Recovery reads a valid snapshot and the later log chain, then reconstructs derived indexes and schema. It can truncate an incomplete tail in the active log. Damage in a sealed generation, or valid records after damaged bytes, causes refusal rather than speculative recovery.

Acknowledgment and durability #

A persistent mutating API request waits for its log data to be synchronized before returning success. Concurrent callers can share a flush. A failed synchronization stops the daemon rather than acknowledging state it cannot promise to recover.

Local reads can see an in-memory change before its flush completes. Replication's advertised progress is separately durability-gated. These are different provides: a readable value is not itself evidence that a crash will preserve it. In ephemeral mode there is no durable disk storage.

Compaction and erasure #

Rotation seals the active log and opens its successor. A background rebuild replays sealed files into a replacement snapshot. The snapshot is published and synchronized before superseded generations are removed. Rollback salvage has a separate path because its corrected state initially exists only in memory.

Destructive changes record an erasure debt until compaction removes the older files that contain their payloads. The current two-minute target is reported through the storage view. It is not a guarantee against stalled I/O or failed compaction; inspect outstanding debt and rebuild failures. Deletion concerns directory files, not physical remnants in freed storage, external backups, or filesystem snapshots.

Operating boundary #

The daemon takes an exclusive, nonblocking directory lock before accessing storage. Another daemon opening that directory fails immediately. The lock remains held while storage writers exist and is released when they close; process termination also releases it. This is an advisory lock, so it does not protect against programs that bypass the locking protocol. Do not remove or replace a running daemon's data directory.

Preserve all generations and the machine key when backing up or moving a stopped development instance. The repository's fault-injection tests cover interrupted writes, flush failures, crash recovery, and restored snapshots; they do not qualify every filesystem, device, or backup procedure.

The Debug Console

Universal Directory / The Console

The debug console is the browser UI served at udd's root URL.

It is deliberately a debug console. It shows everything the engine knows; GUIDs, system flags, unset attributes, per-value metadata, dangling references, replication stamps, durability marks; and every mutation the engine supports is reachable from it. Nothing in UD is console-only: the console is a client of the same JSON API you can drive with curl.

The header shows the node's replication identity; node id, invocation id, current local USN; and its durability state: the durable USN beside the RAM one, with a ⚠ marking a RAM-ahead moment, the active generation, and the WAL's size. Alarms surface here too, in red: a dead WAL, rollback quarantine, an overdue erasure debt. Hovering carries the full GUIDs and the boot report.

The tree #

The left pane is the directory tree, loaded lazily. Expand a node with its ▸ toggle, select a row to select it. Each row shows the object's effective name and a badge with its class. The schema is right there in the tree; browse /Configuration/Schema like any other subtree.

Objects under a derived repair carry a ⚠ marker; hover for which repair it is; a CNF display name, an orphan relocated into /LostAndFound, a broken move cycle. Ghosts, objects whose class definition has not reached this node, get a dashed ghost badge. The details pane spells the repair out beside the stored facts: name conflict; displays as "sales CNF:…" (stored: sales).

Moving objects is drag-and-drop: drag a row onto the object that should become its new parent. The console deliberately does not second-guess the server. An illegal move; a cycle, a name conflict at the destination, a protected object; is refused by the engine and surfaces in the error banner at the top.

The context menu #

Right-selecting a tree row opens the object's operations menu.

create child… opens a modal with a name field, a class dropdown, and a generated field for every attribute the chosen class's surface allows. Multi-valued attributes get one-value-per-line textareas. Reference attributes accept a native path (/Configuration/Schema/user) or a raw GUID. When creating a facet definition, appending * to a line of attributes marks that reference required. This is also how schema definitions are authored, since definitions must be created complete.

rename… renames in place; identity and references are untouched.

facets… shows checkboxes for every facet. The class's own facets and extension-grafted facets are shown locked, marked (class) and (extension); the rest toggle instance attachment. Detaching a facet whose attributes still hold values is refused by the engine.

delete soft-deletes the object and its whole subtree into the morgue, with confirmation.

shred is security erasure of the subtree, with a much scarier confirmation: payload destroyed, references scrubbed, no way back.

System objects offer only create child, and the engine refuses even that inside the schema subtree except for namespaces and definitions.

The details pane #

Selecting an object shows its identity card: GUID, class with a (system) marker where applicable, effective facets, DN, path, parent, plus the existence and placement stamps and the node-private usnChanged index.

Below it is the attribute table, which renders the object's entire surface, not what is set:

  • Attributes are grouped by the facet that provides them, in surface order; required attributes carry *.
  • Unset attributes show as (unset); the surface is the form.
  • Each attribute has an inline ✎ editor: one value per line, empty saves as deletion. Metadata on values you do not touch is preserved.
  • Reference values render as ◈ /resolved/path with the raw GUID on hover. A reference whose target not exists shows in red as ◈ (dangling …).
  • Per-value metadata renders as chips beside the value, such as expiry = 2027-06-01T00:00:00Z.
  • Every value carries its atom stamp in dim text; v2 · time · origin…, with the transfer certificate and local USN on hover. Removed values linger as struck-through absence atoms stamped with their removal: replication residue, honestly shown.
  • Engine-level data (attachedFacets) appears under an (engine) group, read-only, managed through the facets modal. Anything set outside the current surface still renders under (outside surface), because stored data is never hidden.
  • A referenced by section lists every holder pointing at this object, from the back-reference index, selectable.

Inspecting a tombstone through the morgue shows a stage pill; stored and effective stage; with an inline restore button while the window is open.

The morgue #

The morgue tab lists every tombstone the node holds: name (or a GUID stub for shredded skeletons), class, stage, the transition time, and the last known path. Stage shows deleted → shredded when apply-time aging has outrun physical GC.

Fleshy soft-deletes offer restore and shred; everything offers inspect. The header's gc button runs local garbage collection on demand, hardening tombstones past the restore window and purging those past maxTimeApart. The node-identity tooltip carries the current purge horizon.

The schema view #

The schema tab switches from the tree to a dedicated schema-management page; a faster surface over the same API for authoring and tearing down definitions during testing:

  • Kind-grouped tables of every definition; namespaces with definition counts, attributes, facets, classes, extensions; with base definitions marked (base) and locked.
  • Purpose-built creation forms per kind: selects for namespace, syntax, cardinality, and matching; checkbox pickers for legalMeta, facet attribute lists with a per-item required toggle, class facet composition, and extension targets. No GUIDs or paths to type.
  • Delete buttons on user definitions, riding the engine's unused-delete rules. A refused deletion surfaces its reason, with the blockers named, in the error banner.
  • A quarantined table whenever definitions are excluded from the effective schema because their dependencies have not replicated in yet, each with its reason.

Everything the schema view does can still be done manually through the tree. Definitions remain ordinary objects under /Configuration/Schema.

The storage view #

The storage tab is the persistence layer's honest guts: how the store was booted (recovered from which snapshot, how many frames replayed, torn bytes truncated), the durable-versus-appended byte and USN marks, the generation files table with every snapshot and WAL, its size, and the active one marked, the outstanding erasure debt with its deadline, and the background rebuild's status and last outcome.

Two debug buttons drive compaction by hand: rotate now seals the active WAL, opens the next generation, and kicks a rebuild; rebuild snapshot kicks a rebuild alone. In normal life compaction runs itself, on size and on erasure obligations.

The fabric view #

The fabric tab is the GIP fabric drawn as a picture, live, auto-refreshing while visible.

At the top is this machine's identity strip: object GUID, key fingerprint, UDP bind, uptime, and a peers-connected badge.

Below it, one card per peer machine, each showing the link itself: a wire between "you" and the peer that flows with animation while the connection is up, its direction labeled our dial or their dial; the one-connection tiebreak's outcome made visible. Each card also carries the state badge (connected green, via inbound teal, dialing amber, backoff red with a live retry countdown and the last error), the address in use, RTT with a sparkline of recent samples, wire bytes both ways, MTU, congestion window, connection uptime, and a redial button. Live channels riding the connection appear as chips on the card, showing service name, direction, age, and bytes. Inbound connections that no channel has authenticated on yet appear as dashed ghost cards marked unverified.

Below the mesh sit two live logs. Recent channels lists every channel that ran; including gip/ident's split-second conversations and failed opens; with service, direction, peer, duration, bytes, and a colored outcome. The fabric event stream narrates every discovery, dial, ident, tiebreak (superseded, adopted-inbound), loss, and retry. The header's fabric n/m counter warns with ⚠ whenever a desired peer is down.

Closed GIP connections are excluded from channel selection even while their status entries await cleanup. A closed link is not reused for a new message; the link supervisor selects an available connection or follows its reconnect policy.

The msgs view #

The msgs tab is machine-to-machine talk over the fabric; the first real GIP service, ud/msgs, and deliberately talk, not email: online-only, no queueing, no storage, a RAM ring of the last 200 records, gone on restart.

The compose bar holds a peer dropdown built from the fabric's targets, showing name and live link state, a text field, and send, which blocks until the message's fate is known. Below it is the chat log: received rows on the left, sent rows on the right, each sent row carrying its outcome badge; delivered green with the round-trip time, unconfirmed amber, failed red; with the honest detail on hover.

The three outcomes are the recipient-ACK protocol told straight. Delivered means the peer recorded the message before acking. Failed means provably not delivered. Unconfirmed is the Two-Generals residue: sent, then the channel died or timed out before the ack, reported as exactly that and never rounded to either certainty.

Every message is one short-lived channel, so sends also flash through the fabric tab's channel chips and recent-channels log.

The journal #

The journal tab lists the node's replication observability ring, because multi-writer honesty means lost updates are never silent. It records every merge that discarded concurrent input, every refused record or pull (class mismatches, cross-domain attempts, over-horizon watermarks), every repair the derived view produced while merging, and every rollback detection event. Kinds are color-coded; the newest entries are last.

Errors and refresh #

Engine refusals appear in the red banner with the API's error code and message; name-in-use: an object with that name already exists here. The console never pre-filters what the server would allow.

The refresh button reloads the tree, re-expands to your selection, and refetches the schema, picking up definitions created since the page loaded.

The Base Schema

Universal Directory / Reference

The base schema contains the system definitions created with each domain. Its 48 immutable definitions comprise 26 attributes, 11 facets, and 11 classes under /Configuration/Schema.

All new definitions live in namespaces; the unprefixed name space tabulated below is reserved. The base definitions are minted at domain creation by the first node, as its ordinary originating writes. There are no well-known GUIDs; a joining node receives everything by sync.

Attributes #

AttributeSyntaxValuesMatchingAliaseslegalMeta
descriptionstringmulticaselessNoneNone
displayNamestringsinglecaselessNoneNone
givenNamestringsinglecaselessNoneNone
surnamestringsinglecaselesssnNone
emailstringmulticaselessmailNone
sidstringsingleexactobjectSidNone
memberreferencemultiexactNoneexpiry
expirytimestampsingleexactNoneNone
syntaxstringsinglecaselessNoneNone
singleValuedbooleansingleexactNoneNone
matchingstringsinglecaselessNoneNone
legalMetareferencemultiexactNoneNone
aliasesstringmulticaselessNoneNone
lifecyclestringsinglecaselessNoneNone
systembooleansingleexactNoneNone
attributesreferencemultiexactNonerequired
requiredbooleansingleexactNoneNone
facetsreferencemultiexactNoneNone
attachedFacetsreferencemultiexactNoneNone
dnPrefixstringsinglecaselessNoneNone
targetClassreferencesingleexactNoneNone
instantiablebooleansingleexactNoneNone
maxTimeApartintegersingleexactNoneNone
timeUntilShredintegersingleexactNoneNone
networkAddressendpointmulticaselessNoneNone
machineKeypublicKeymultiexactNoneNone

Notes: description is multi-valued (following the LDAP RFCs where they and Active Directory disagree). attachedFacets is engine-level; legal on every object regardless of surface, and the vehicle for instance facet attachment. Aliases are recorded on definitions but not yet used for lookup. expiry and required exist to serve as meta keys (on member and attributes respectively). instantiable (unset = true) marks classes users can instantiate. maxTimeApart and timeUntilShred are the domain's lifecycle knobs, in seconds, held on the /Configuration object itself: timeUntilShred is the restore window (default 30 days; past it a soft-deleted record hardens to a skeleton), maxTimeApart the purge horizon and future partition contract (default 180 days; past it tombstones purge entirely). networkAddress holds a machine's network endpoints; multi-valued because a DNS name, an IPv4, and an IPv6 address are legitimately concurrent addresses of one machine.

The endpoint syntax #

networkAddress uses the endpoint value syntax: host[:port], where the host is a DNS name, an IPv4 literal, or a bracketed IPv6 literal ([2001:db8::1]:6000), and an omitted port designates the well-known GIP port, 5390 (GIP; the General Interlink Protocol; is UD's intra-domain machine-to-machine protocol; the syntax ships today, the protocol does not yet). The grammar is deliberately strict, because a loose syntax can never be tightened once values persist:

  • No schemes (quic://…) and no whitespace anywhere;
  • DNS names are ASCII (IDN arrives as punycode), dot-separated labels of letters, digits, and interior hyphens, ≤ 63 bytes per label and ≤ 253 total, with no trailing dot;
  • Anything whose last label is all digits must be a valid IPv4 literal; 999.1.1.1 is refused rather than silently treated as a DNS name; and leading zeros in octets (historical octal) are refused;
  • IPv6 must be bracketed, zone ids (%eth0) are refused;
  • An explicit port is 1–65535 with no leading zeros.

Values compare caselessly as opaque strings: DC1.corp and dc1.CORP are the same set member, but dc1.corp and dc1.corp:5390 are two distinct values even though they designate the same place; set matching is literal; interpreting endpoints is the dialer's job.

The publicKey syntax #

machineKey uses the publicKey value syntax: <algorithm>:<hex>, where the only algorithm today is x25519 and the payload is exactly 64 lowercase hex characters (32 bytes); one canonical spelling per key, compared exactly. This is the machine's GIP identity key: udd new mints the keypair at enrollment, keeps the private half in the data directory's machine-key file, and records the public half here, replicated like any other fact. The attribute is multi-valued so a future key rotation can hold old and new keys through an overlap window. The algorithm prefix is deliberate agility: a future signing key gets a new prefix, not a new syntax.

Facets #

FacetAttributes (* = required)
describeddescription, displayName
persongivenName, surname, email
securityPrincipalsid *
membershipmember
schemaDefinitionaliases, lifecycle *, system *
attributeSchemasyntax *, singleValued *, matching *, legalMeta
facetSchemaattributes
classSchemafacets, dnPrefix, instantiable
extensionSchematargetClass *, facets *
replicationConfigmaxTimeApart, timeUntilShred
machinenetworkAddress, machineKey

Required-ness is enforced today only where compilation demands it (schema definitions must be born complete); enforcement for ordinary objects is pending.

machine is the surface for anything reachable on the network; both attributes are deliberately optional on it; a pre-staged machine that has not yet enrolled has neither an address nor a key. The computer class composes it, and udd new creates one computer object for the machine it runs on. (The class is not called machine because definitions are siblings under /Configuration/Schema, where names are unique regardless of kind; the facet holds that name.)

Classes #

ClassdnPrefixInstantiableFacets
domainRoot; (never in a DN)nodescribed
organizationalUnitOUyesdescribed
userCNyesdescribed, person, securityPrincipal
groupCNyesdescribed, securityPrincipal, membership
attributeDefinitionCNyesdescribed, schemaDefinition, attributeSchema
facetDefinitionCNyesdescribed, schemaDefinition, facetSchema
classDefinitionCNyesdescribed, schemaDefinition, classSchema
schemaNamespaceOUyesdescribed
classExtensionCNyesdescribed, schemaDefinition, extensionSchema
configurationCNnodescribed, replicationConfig
computerCNyesdescribed, machine

The self-hosting anchor: the classDefinition object under /Configuration/Schema is an instance of itself; every other definition's kind resolves from there.

An instantiable class must carry a dnPrefix (compile-enforced); non-instantiable classes are engine-created only. /Configuration is the singleton configuration instance; its class composition is what makes the replication settings writable there. Other facets can be added through classExtension. Besides /Configuration/Schema, the base tree also contains /LostAndFound, a system OU born with the domain: the destination replication repairs derive orphans and broken cycles into (the domain root is a replication head from birth). It also contains /Domain Controllers, the default home for machine objects; a convention, not structure: nothing in UD locates domain controllers by path, and a machine object is free to live anywhere.

Naming Rules

Universal Directory / Reference

Object names #

An object's bare name must be:

  • Non-empty and at most 255 bytes,
  • Free of control characters,
  • Free of / (the native path separator),
  • Without leading or trailing whitespace.

Everything else; spaces, Unicode, =, ,; is legal; DN composition escapes what needs escaping. These rules are deliberately strict: loosening a validity rule later is safe, tightening one is a data migration.

Caseless comparison (pinned) #

Sibling uniqueness, attribute-name lookup, path resolution, and caseless-matched value sets all compare under Unicode canonical caseless matching (Unicode §3.13): two strings are equal iff

NFD(casefold(NFD(a))) == NFD(casefold(NFD(b)))

So Jack = jack, STRASSE = Straße (ß case-folds to ss), and composed é = decomposed e + ́. Stored spellings are always preserved; the folding governs comparison only. This function is pinned: changing it once data persists would shift uniqueness invariants underneath stored data.

Distinguished names #

DNs compose leaf-first from typed components: CN=Jack,OU=Sales. The component type is the object's class's dnPrefix; the value is the bare name escaped per RFC 4514; a backslash before any of " + , ; < > \ anywhere, before a leading space or #, and before a trailing space. The root object contributes nothing; its DN is the empty string.

Native paths #

The untyped address form: / followed by bare names joined with /, root-first; /Sales/Jack, resolving case-insensitively. The root's path is /. Because / is banned in names, paths are unambiguous.

Definition names and wire names #

Schema definition names (attributes, facets, classes, extensions) follow a stricter grammar than object names: a letter followed by letters or digits; camelCase by convention, and no hyphens, because the hyphen is the namespace separator. Namespace names additionally allow dots between segments (each segment a letter followed by letters or digits): Acme and reverse-DNS com.acme.tools are both legal, and reverse-DNS is the convention for anything redistributable; it makes accidental collisions between vendors nearly impossible. A namespaced definition's wire name is Namespace-name (Acme-badgeColor, com.acme.tools-badgeColor); the single hyphen is unambiguous because neither side can contain one. Base definitions are unprefixed, and that unprefixed space is reserved forever.

The namespace names gip and ud (caselessly) are permanently reserved: they are GIP's service namespaces (gip/relay, ud/drs), and service names share the schema's namespace universe.

dnPrefix values follow RFC 4512 keystring grammar (a letter, then letters, digits, or hyphens).

CNF display names #

When replication merges two live siblings whose names fold equal, the earliest placement claim keeps the name and the later one displays as <stored name> CNF:<guid> (laddering (2), (3)… past pathological collisions). This is a derived view, not a rename: the stored name is untouched, the CNF form resolves in paths, and an ordinary rename dissolves it.

The reserved descriptor x #

The name x (caselessly) is permanently reserved and can never be defined as an attribute, facet, class, extension, or namespace name. UD reserves it as its untyped-lookup descriptor so that no schema element can ever collide with that use.

100 JSON API

Universal Directory / UD

The development JSON API exposes directory operations and observability under /api. The debug console is a client of this API and nothing more.

Requests and responses are application/json. There is no authentication: anyone who can reach the port has full control of the directory.

100.1 Object payload #

Endpoints that return an object use one shape:

{
  "id": "9f2c…",                 // GUID (identity)
  "parent": "a01b…",             // GUID or null (root only)
  "name": "Jack",
  "class": "user",
  "classId": "c3d4…",
  "system": false,
  "facets": ["described", "person", "securityPrincipal"],   // effective surface
  "dn": "CN=Jack,OU=Sales",      // derived
  "path": "/Sales/Jack",         // derived
  "hasChildren": false,
  "stage": "alive",              // stored lifecycle stage (alive/deleted/shredded)
  "effectiveStage": "alive",     // stage after apply-time aging
  "ghost": false,                // class definition not yet in this node's schema
  "existence": { …stamp… },      // the existence atom's stamp (creation + stage transitions)
  "placement": { …stamp… },      // the (parent, name) atom's stamp
  "usnChanged": 51,              // node-private change-scan index
  "referencedBy": [              // the back-reference index: who points here
    { "id": "77aa…", "path": "/Admins", "attribute": "member" }
  ],
  "attributes": [
    { "name": "member",
      "values": [
        { "value": "b7e1…",
          "meta": { "expiry": ["2027-01-01T00:00:00Z"] },   // only when present
          "refPath": "/Sales/Jack",                         // reference syntax only; null unless target alive
          "refState": "alive",                              // alive / deleted / shredded / missing
          "stamp": { …stamp… } }                            // this value atom's stamp
      ],
      "absent": [                                           // only when present
        { "key": "c9a2…", "stamp": { …stamp… } }            // stamped residue of a removed value
      ] }
  ]
}

refPath appears only on values of reference-syntax attributes: the target's current native path, or null if the reference dangles.

Every merge atom; existence, placement, each attribute value; carries a stamp, the replication record that decides merges:

{
  "version": 2,                          // bumped per originating write to this atom
  "at": "2026-08-14T04:01:12Z",          // originating wall-clock time
  "origin": "e8a2…",                     // originating invocation id
  "cert": { "invocation": "e8a2…", "usn": 51 },   // transfer certificate (enumeration coordinate)
  "localUsn": 51                         // node-private
}

absent lists absence atoms: values (or, for a single-valued attribute, the whole attribute; key: null) that were removed and persist as stamped residue so the removal can win future merges. Rewriting an attribute with an unchanged value does not restamp it; multi-valued value sets are unordered and render in canonical (set-key) order.

Objects under a derived repair additionally carry conflicted / orphaned / cycleBroken flags, plus effectiveName (the CNF display name) and effectiveParent where they differ from the stored facts; dn and path always render the effective view. Child summaries carry name (effective), ghost, and the three repair flags.

100.2 Endpoints #

Method and pathPurpose
GET /api/nodeThis node's replication identity and sync state: {nodeId, invocationId, usn, hasRoot, purgeHorizon, morgueSize, rollbackLatched, erasureDebt, storage, boot, machine, utd, watermarks}; storage carries the durability marks (generation, durable and appended bytes and USNs, dead flag), boot the boot report, machine this machine's identity ({object, machineKey}; the machine object's GUID and public key).
GET /api/journalThe node's observability journal (newest last, capped, survives restarts): {at, kind, detail}; merges that discarded concurrent input, refused records and pulls, derived repairs, rollback events.
GET /api/storageThe storage view: generation files with sizes, durability marks, rotation threshold, erasure debt, background-rebuild status, and last outcome.
GET /api/fabricThe fabric view: this machine's identity and GIP bind, every discovered peer with its link state (idle/dialing/connected/viaInbound/backoff), live QUIC stats (RTT, congestion window, lost packets, MTU, wire bytes), inbound connections (each carrying machine {guid, name} once identified through gip/ident, null while unverified), channels (live channels: connection, peer, service, direction, age, bytes) and recentChannels (a ring of finished channels and failed opens, recording duration and outcome alongside byte counts), the supervisor's config, and a ring of timestamped fabric events.
POST /api/fabric/redial/{guid}Debug: clear a peer's backoff and dial it now.
GET /api/msgsThe machine-talk log, oldest first (RAM only; capped at 200 records, gone on restart): each record is {atMs, direction (in/out), peerGuid, peerName, text, outcome}, where sent records carry outcome delivered (+rttMs), failed (+detail), or unconfirmed (+detail), and received records carry received. {enabled: false} on a node without a fabric.
POST /api/msgs/sendSend one ud/msgs message and block for its outcome (bounded: 5 s channel-open + 10 s ack). Body: {"to", "text"}; to is a machine GUID or a caseless machine name resolved against the fabric's targets; text is 1–16384 bytes. HTTP errors are for request problems only (422 unknown-recipient, 422 bad-text, 503 no-fabric); a send that ran returns 200 carrying the finished record, including failed and unconfirmed outcomes; those are data, not transport errors.
POST /api/storage/rotateDebug: seal the active WAL, open the next generation, kick a background rebuild.
POST /api/storage/rebuildDebug: kick a background snapshot rebuild (no rotation).
GET /api/rootThe root object.
GET /api/morgueEvery tombstone: {id, name, class, stage, effectiveStage, at, lastPath}.
POST /api/gcRun local GC now (harden aged tombstones, purge expired ones); returns the new horizon.
POST /api/objects/{id}/restoreRestore a soft-deleted object (top-down; refuses conflicts and elapsed windows).
POST /api/objects/{id}/shredSecurity-erase (subtree-wide from alive, or escalate an existing soft delete).
GET /api/objects/{id}One object by GUID.
GET /api/objects/{id}/childrenChild summaries, in caseless name order: {id, name, class, system, hasChildren}.
POST /api/objects/{id}/childrenCreate a child. Body: {"name", "class", "attributes"?}; attributes maps attribute name → value list and is applied atomically with the create (definitions are born whole). Returns 201 + the object.
PATCH /api/objects/{id}Rename, move, or both (ModifyDN shape). Body: {"name"?, "parent"?}, parent by GUID.
PUT /api/objects/{id}/attributes/{name}Replace an attribute's values wholesale. Body: {"values": [{"value", "meta"?}]}. An empty values deletes the attribute. Returns the updated object.
DELETE /api/objects/{id}Soft-delete the object and its whole subtree (restorable tombstones). Returns 204.
GET /api/path and GET /api/path/{path}Resolve a native untyped path (caseless) to its object: /api/path/Sales/Jack. Bare /api/path is the root.
GET /api/schemaThe compiled schema summary (below).

Attribute names in URLs and bodies are caseless and accept wire names (Acme-badgeColor); the stored spelling is always the schema's canonical one.

Persistent directory mutations acknowledge after their log writes are synchronized. Message outcomes and background rebuild requests have different completion semantics; ephemeral mode has no disk durability. Attribute values are capped at 1 MiB each.

100.3 The schema summary #

GET /api/schema returns the compiled schema, sorted by name:

{
  "attributes": [ { "id", "name", "syntax", "singleValued", "matching", "aliases", "legalMeta" } ],
  "facets":     [ { "id", "name", "attributes": [ { "name", "required" } ] } ],
  "classes":    [ { "id", "name", "dnPrefix", "instantiable", "facets" } ],
  "extensions": [ { "id", "name", "targetClass", "facets" } ],
  "quarantined": [ { "id", "name", "reason" } ]
}

quarantined lists definitions excluded from the effective schema; replication can deliver a facet before its attributes. Compilation is total: it never fails, it quarantines what cannot join yet (with the reason) and lets it join automatically when its dependencies arrive. References to tombstoned definitions compile out instead (the facet keeps working minus its dead member). Originating schema writes are still strictly gated: a local write that would grow the quarantine is refused with schema-violation.

100.4 Errors #

Failures return {"error": "<code>", "message": "<human text>"} with:

CodeStatusMeaning
bad-object-id400Path segment is not a GUID.
no-such-object404Object (or path/reference target) does not exist.
no-root503A joined store that has not yet received its first sync has no root.
name-in-use409Sibling name taken (caseless, type-blind).
invalid-name422Name fails validity rules (or definition-name grammar).
unknown-class422No class by that name.
class-not-instantiable422Class is marked non-instantiable (domainRoot, configuration).
unknown-attribute422No attribute definition by that name.
attribute-not-permitted422Attribute is outside the object's surface.
single-valued422Multiple values for a single-valued attribute (or meta).
syntax-violation422Value fails its syntax (bad integer/boolean/timestamp, non-GUID, or dangling reference).
illegal-meta-key422Meta key unknown or not in the attribute's legalMeta.
duplicate-value409Value set contains duplicates under the matching rule.
unknown-facet422attachedFacets value is not a facet definition.
facet-has-values409Facet detach / extension delete refused while exclusively-provided attributes hold values.
already-deleted409Mutation aimed at a tombstone (restore first, or leave the dead be).
ghost-object409The object's class isn't in this node's schema yet; originating writes refuse until sync converges.
rollback-quarantine409The node detected it is running rolled-back (restored) state: its invocation was re-minted and originating writes are suspended until a completed pull heals it.
not-restorable409Restore refused: wrong stage, elapsed window, or parent not alive.
root-is-protected409The root cannot be deleted, renamed, or moved.
system-object-protected409System objects refuse moves and deletion (their attributes are writable).
invalid-schema-placement422Wrong class/parent combination in or around the schema subtree.
schema-definition-immutable409Definitions are add/delete only.
definition-in-use409Unused-delete rule refused the deletion; the message enumerates the blockers by name.
schema-violation422Trial recompile failed; the write was rolled back (message carries the compiler's reason).
would-create-cycle409Move would place an object under itself or a descendant.

Peios Learn — documentation for Peios software.

Built with Trail.