Cyberplanetary standards · CP 0008
CP 0008 v0.4.2 World Structural Descriptions
Superseded. CP 0008 v0.4.2 has been replaced by v0.5.1. It is kept for reference. superseded by v0.5.0
Released 2026-10-19T01:45:16Z by Cyberplanetary. Status: superseded. Change class: initial development.
Summary of changes: Cite the conformance kit as the range ^1.0.3 and pin CP 0011 0.3.2.
Digest: 921b9919455c1a53c782baf96beef37cdb64a0d4b85c608f6247308016d95aa8
Files
The canonical file is the authoritative text; it never changes.
| File | Role | SHA-256 |
|---|---|---|
| cp-0008-0.4.2.md | canonical | 7d8f842df9244f36db9785bca9b5537daa42df49391520a94b48b3b03d5d2c13 |
References
- CP 0000 v3.0.1 (informative)
- CP 0011 v0.3.2 (normative)
- BCP 14 (RFC 2119 and RFC 8174) (normative)
- JSON Schema Draft 2020-12 (normative)
Concept baseline
Written against https://cyberplanetary.org/modules/shared-reference-publication-bindings 0.15.0 (sha256:ff1938e00517d4e0ed8c51e6ecfcd92d0eed69f17023a54d07446c5f77db6265).
World Structural Descriptions
CP 0008 v0.4.2 (2026-10-19T01:45:16Z)
- Publisher: Cyberplanetary
- Kind: specification
- Version: initial development (major version 0): any change may break
- Replaces: CP 0008 v0.4.1
- Cite as: CP 0008 v0.4.2 (this version); CP 0008 (always the latest stable version)
Summary of changes: Cite the conformance kit as the range ^1.0.3 and pin CP 0011 0.3.2.
The status of a version (current, superseded, withdrawn) is not part of this text, because it changes after release. See https://cyberplanetary.org/standards/cp-0008/.
Cyberplanetary standard. Distributed with the project under AGPL-3.0-only; see the canonical repository LICENSE. Standard status is recorded in the series catalogue.
Contents
- Foreword
- 1 Scope
- 2 Normative references
- 3 Terms and public interpretation
- 4 Identities and representation
- 4.1 Explicit order and optional reference associations
- 4.2 Contextual public-reference validity
- 5 Relationships and explicit eligibility
- 6 Revision comparison and bounded addition
- 6.1 Additional /2 preservation rules
- 7 Examples and interpretation failures
- 8 The world-structure-tree/1 mode
- 8.1 Terms of the tree mode
- 8.2 Qualified identities
- 8.3 One world, recursively organised
- 8.4 Delegated roots
- 8.5 Truthful partial knowledge
- 8.6 Local structural evolution
- 8.7 Companion schemas and semantic checks
- 9 Node
- 10 Children page
- 11 Routes, structural budgets and participation
- 11.1 Routes
- 11.2 Structural budgets
- 11.3 Semantic-only participation
- 12 Conformance
- 12.1 Flat mode
- 12.2 Selected validation (flat mode) and interpretation claims
- 12.3 Tree mode roles and statements
- 12.4 Companions and checks beyond them
- Annex A Tree mode example
- Bibliography
Foreword
A world structural description records selected public subjects and their interpretation independently of current providers. The flat mode is a small representation of a descriptive whole, explicitly assignable parts and separately recorded collections, without requiring geometry, a universal tree or a smallest part. The tree mode describes a world as separately referenceable, recursively organised public descriptions that different managers can maintain, so that a reader can browse the children of a subject page by page without fetching or trusting the whole world.
1 Scope
This specification defines two separately selected structure modes. Requirement words follow BCP 14 (RFC 2119 and RFC 8174). Acceptance belongs to CP 0005; bytes and digests grant no authority. Reference information is not live provider state, a backup or an inventory of furniture.
The flat mode is selected by the artifact format world-structural-description/2. It defines a bounded nonrecursive artifact with explicit geometry-free ordering and optional authored public reference associations. It preserves public decomposition, complete explicit assignment eligibility and bounded additive extension. Optional spatial interpretation selects CP0011; ordinary structure and order need no coordinates, renderer, assets or spatial validator. This mode selects /2 explicitly, with no legacy-format fallback. Published historical editions remain immutable; fields are not appended to a frozen identifier. Schema structure-v2.schema.json and the semantic checks of this mode's rules (the paragraphs labelled S-... and the rules of the clauses on identities, relationships, comparison and examples) constitute the contract of this mode. Its rules are written for that mode alone.
The tree mode is selected by the mode identifier world-structure-tree/1. It defines separately referenceable, recursively organised public descriptions: a Node (locality-node/1) describes one subject, and a children page (locality-children/1) lists the direct children of one subject. Subjects have qualified identities, eligibility for a responsibility grant is explicit, a subtree may be delegated to a separate manager, structure evolves locally, and what a description does not know is stated rather than guessed. Position and extent are optional, so a semantic-only subject needs no coordinates, bounds, tiles or mesh. Schemas node.schema.json and children.schema.json (with common.schema.json) and the semantic checks of the rules labelled L-NODE-... and L-CHILD-... constitute the contract of this mode. A tree-mode Node or page is not a flat-mode artifact and is not compared under the flat mode's rules; a flat-mode artifact is not read under the rules labelled L-....
Both modes describe public structure only. Neither creates provider authority, requester permission or a delegation of management; those are defined by CP 0005. The conventions for canonical JSON, digests, envelopes, signing keys, time and tokens that the tree mode uses are defined by CP 0005 (rules L-ENC-1 to L-ENC-7, L-KEY-1 to L-KEY-3 and L-TIME-1) and are used here by those identifiers.
2 Normative references
The following documents are referred to in the text in such a way that some or all of their content constitutes requirements of this document. For dated references, only the version cited applies. For undated references, the latest version of the referenced document applies. For references with a version range, any released stable version within the range applies.
- BCP 14 (RFC 2119 and RFC 8174), BCP 14 (RFC 2119 and RFC 8174), https://www.rfc-editor.org/info/bcp14
- JSON Schema Draft 2020-12, JSON Schema Draft 2020-12, https://json-schema.org/draft/2020-12
- CP 0011 v0.3.2, Spatial References and Placement
3 Terms and public interpretation
world structural model (https://cyberplanetary.org/concepts/world-simulation/reference-model): maintained representation of selected world structure whose identity and revision are independent of current simulation assignments.
structural decomposition (https://cyberplanetary.org/concepts/world-simulation/structural-decomposition): description identifying constituent world entities of a stated whole under declared decomposition criteria.
structural refinement (https://cyberplanetary.org/concepts/world-simulation/structural-refinement): relation between structural descriptions in which one provides additional detail under stated preservation criteria.
subject scope (https://cyberplanetary.org/concepts/world-simulation/subject-scope): description determining which world entities or situations a responsibility statement concerns.
A whole is a descriptive public subject with role whole. A part is a public subject with role part; being listed does not itself make it assignable. A constituent is a subject named by a declared decomposition of a whole. A collection is a separately identified explicit list; grouping is not decomposition. An assignable subject is a part explicitly enumerated by this revision's assignable set under the selected protocol. No term creates provider authority.
4 Identities and representation
S-IDENTITY. The artifact contains format, stable model, separately identified revision, safe integer sequence, exact previous artifact reference or null, subjects, decompositions, collections assignable, orderings, anchors and spatial. revision is the artifact reference's id; model identifies the continuing structural model. Sequence starts at 0, increases by exactly 1 along a compared immediate successor and does not establish acceptance. Initial sequence 0 has previous null; a successor identifies the exact predecessor id/digest. A revision id must not be reused with different bytes or as another sequence in a lineage. Model equality requires the exact case-sensitive token; a shared name or digest alone does not identify the same model.
S-BYTES. Canonical bytes are ASCII JSON, recursively ASCII-key-sorted, no whitespace, retained array order, no duplicates, no Unicode escapes and safe decimal integers. Artifact digest is sha256: and 64 lowercase hexadecimal digits over complete canonical bytes. Delivery uses unpadded base64url whose decode/re-encode is exact. Verify byte bounds before decoding, then byte digest, canonical re-encoding equality, schema, artifact revision id and full semantic validity before comparison or acceptance. An artifact has at most 1048576 bytes, 65536 parsed values and depth 12; this byte limit can constrain counts below their schema maxima.
S-RECORDS. Subject records contain id, role (whole or part), kind and an ASCII description of 1..512 characters. All are interpretation-bearing. Decomposition records contain unique id, whole subject id, declared criteria, coverage (exhaustive or non-exhaustive), overlap (not-asserted), boolean extensible and an explicit constituent list. Collection records contain unique id, description and an explicit member list. Assignment eligibility is enumerated separately. IDs for subjects, decompositions, collections and orderings occupy one artifact namespace; a token cannot identify two different records. Subject ids use [a-z][a-z0-9-]{0,63}. Model/revision ids use the bounded CP 0005 artifact-token syntax. All references resolve within this artifact; names and URLs are not dereferencing instructions.
Limits are 4096 subjects, 128 decompositions, 128 collections, 4096 constituents or members per record, and 4096 assignable parts. Lists are duplicate-free. Record and selection order is retained for canonical comparison; it does not convey execution order or rank.
4.1 Explicit order and optional reference associations
Each Ordering contains exactly id, whole, criterion, semantics strict-total/1 and subjects. whole resolves to a whole; subjects is a nonempty duplicate-free explicitly selected list of public parts under that whole's decomposition. The list defines the strict total order under its stated criterion, independent of incidental record order or lexical labels. Unselected subjects are not ranked. No immediate adjacency, physical connectivity, metric spacing, height or traversal follows. An order id/criterion fixes the interpretation being compared.
Anchor contains exactly subject, reference and path. subject resolves to one public part or whole, unique among anchors; reference is a CP0011 exact ReferenceRef; path is null or its expressly selected path id. spatial may be null only when anchors is empty; an empty anchor list may also accompany a bounded CP0011 public SpatialContext with unassociated authored references. Non-null spatial carries only accepted public catalogue evidence. A non-null anchor path starts at its reference; it expresses authored reference-origin placement, not live provider state. No x/y/z fields on subject records are selected. Coordinate-free readers may inspect order while reporting anchors uninterpreted. Readers claiming placement validate all dependent commitments and paths; ids confer no fetch permission.
4.2 Contextual public-reference validity
Before accepting or comparing a non-null public SpatialContext, validate its complete supplied canonical catalogue and path records against the expected Configuration world. Every catalogue has owner:null; its commitment identity and data.id agree, declarations and catalogue/path identities are nonconflicting, and every supplied path satisfies the selected CP0011 contract. Correctly hashed foreign-world evidence remains invalid for this expected world. A coordinate-free reading claim may leave optional anchors explicitly uninterpreted; it does not assert their contextual validity. A contextual acceptance or shared-placement claim cannot omit these checks because a particular anchor is unused by one later operation.
5 Relationships and explicit eligibility
S-VALIDATE. Every decomposition whole resolves to a role-whole subject, every constituent to a role-part subject, and no constituent equals its whole. Each part has exactly one incoming decomposition link in this first mode. During bounded additive comparison, new decomposition records are unsupported. Initial artifacts may declare multiple nonrecursive decompositions. Multiple parentage, constituent whole nodes and recursive decomposition are unsupported. Detect and reject cycles in supplied links before relying on them. Exhaustive and extensible cannot both be true. overlap:"not-asserted" supplies no physical non-overlap proof. The decomposition declares contextual constituent selection, not geometry or an exhaustive world inventory.
Collections may select whole or part subjects but may not select collection or decomposition IDs. Collections do not assert completeness or physical disjointness. Convenience selection expands to an explicit recorded subject set at the selection's declared revision. That set must then pass eligibility checks; it is not a continuing selector. Later collection or decomposition membership cannot enlarge an existing grant or permission.
S-ELIGIBLE. Every assignable token identifies a role-part subject; wholes, collection ids and decomposition ids are ineligible. Assignable is the complete eligibility inventory for this revision. A non-exhaustive whole can have additional undescribed parts, but none may be guessed as assignable or unassigned. An assignment does not confer responsibility for unnamed descendants. CP 0005's explicit grant and requester permission operations confer authority only for recorded eligible subjects.
S-PUBLIC. The interpretation projection of a part is its entire subject record plus its one incoming decomposition's id, whole id, criteria, coverage, overlap and extensible flag, and its membership in assignable. The incoming decomposition's entire sibling list is deliberately excluded from this projection. Each existing whole record and decomposition characteristic is separately preserved by the additive comparison. Collection membership remains a separately recorded descriptive fact. For /2, the projection also includes the explicitly declared relevant order and anchor dependencies under S-COMPARE; unrelated new order members/catalogues are excluded as there specified. Provider values, dynamic objects, private subdivisions, computation frequency and current assignment are outside this projection.
6 Revision comparison and bounded addition
S-COMPARE. Exact reference equality requires id and digest. Same model with different revision ids is not itself proof of compatibility. Compare verified predecessor and candidate artifacts and report same, additive, incompatible, unsupported or unresolved. Missing bytes, missing lineage or unsupported constructs cannot be treated as an empty description.
For the bounded additive relationship, all of these conditions hold:
- Both artifacts are valid. Candidate model equals predecessor model; sequence is predecessor+1; previous equals the exact predecessor artifact; revision is new in the retained lineage.
- Every old subject record is byte-identical in canonical form and remains in the same prefix order. The nonempty suffix consists only of new role-part records, with never-used public IDs.
- Decomposition records retain identical ids, count, order, whole, criteria, coverage, overlap and extensible flags. Each old constituent list remains an identical prefix. An appended constituent is one of the newly added part IDs, appears exactly once overall and belongs to a non-exhaustive extensible decomposition. Every new part has exactly one such link. No old part can acquire another link or change parent. An exhaustive decomposition cannot grow while preserving its exhaustive interpretation.
- Collections remain byte-identical. Assignable retains its identical old prefix and appends exactly the added public IDs, each once and in new-subject record order. The resulting inventory is complete for the new revision. No existing eligibility changes.
These rules preserve old part projections and wholes' stated non-exhaustive decomposition criteria while adding sibling records. Checking only that old IDs remain present is insufficient. No identifier reuse, removal, renaming, changed description/kind, reparenting, arbitrary merging or new collection membership passes this operation. A richer private provider model need not alter this reference. Other structural changes require a separately selected procedure; they are not accepted as this bounded addition.
CP 0005 additionally preserves the selected interface/model agreement and its fixed aggregation supports, temporal selection, fields/operations, grants, generations, peer records, authority and requester permissions. Structural comparison grants none of those permissions and does not require adoption of CP 0007.
6.1 Additional /2 preservation rules
Ordering records retain their count, ids, order, whole, criterion and semantics. Filtering each candidate ordering to predecessor subjects produces exactly its predecessor ordered list. Candidate may insert only newly added parts selected under that ordering whole, each at most once; all old pairwise comparisons remain unchanged. A newly inserted part does not change old adjacency because no adjacency was asserted. New ordering declarations, ordinary reordering or removal are unsupported by this bounded addition.
Every predecessor Anchor remains canonical byte-identical and in the same prefix order. New anchors describe only new public parts. Retain every old exact catalogue evidence record and selected path record unchanged; append separately committed catalogues and paths for newly authored reference information. New anchors may select that new information; unused new reference entries do not alter existing subject interpretation and may remain unassociated. Previously absent spatial may become a valid public context for newly anchored parts or separately committed unassociated authored reference information, without attaching or relocating an old subject. No existing reference origin, realization, units, axes, selected relationship or placement can change. A changed unrelated catalogue inventory is not a reason to invalidate existing scope.
A relevant-subject projection adds its ordering id/whole/criterion/semantics and pairwise relations to other predecessor subjects in that ordering, plus its anchor, selected declaration, selected path and all exact declarations that path requires. It excludes unrelated catalogue entries and sibling/new-subject inventory. Whole-preservation and additive comparison still check the complete candidate under these rules. CP0005 validates the complete candidate once at acceptance, then direct operations compare their relevant preserved interpretation under accepted lineage; no entire catalogue digest becomes an unrelated-operation version precondition. This compares evidence without granting new parts automatically or weakening accepted public reference authority.
7 Examples and interpretation failures
The initial example describes one role-whole environment with non-exhaustive, extensible decomposition environment-parts, ten role-part subjects and an explicit ten-part assignable inventory. The successor adds part-11 to the same decomposition and eligibility inventory. The whole remains descriptive only. Its existing collection of ten parts and any selected ten-part summary supports remain fixed.
The reference alone does not name a provider for any part. A provider may calculate four or four thousand private samples for part-01 while its only public assignment remains part-01. A list of private samples is not an assignment inventory and does not prove greater accuracy.
Fixed negative examples include duplicated or reused identifiers; missing references; unsupported role or overlap constructs; cycles/multiple parents; assignable whole or group; changed old description; reparenting; added constituent under an exhaustive parent; changed collection; mismatched model, previous or sequence; changed old eligibility; and a candidate with correct digest but no CP 0005 acceptance evidence. The last can be structurally valid while unaccepted.
For a syntactically parsed artifact, an unknown format, role, coverage or overlap selector reports unsupported-structure before the remaining shape/semantic checks. Missing fields, wrong field types, duplicate/invalid IDs, references or cycles report invalid-structure. Valid but impermissible successor relationships report incompatible-structure; missing necessary comparison evidence reports unresolved-structure. Errors are invalid-structure, unsupported-structure, incompatible-structure, unresolved-structure and too-large, with the failing check identified. No failure creates a subject, changes an assignment or authorizes fetching caller-supplied URLs.
8 The world-structure-tree/1 mode
This clause defines the tree mode selected by the mode identifier world-structure-tree/1. A world selects it in its entry record (the structure selection of the CP 0005 world entry); a reader that finds any other structure selection does not apply the rules of this mode and the following three clauses to that world. The flat mode of the preceding clauses remains valid, unchanged, for its own selected format world-structural-description/2.
8.1 Terms of the tree mode
A subject is a public world entity that a Node describes (https://cyberplanetary.org/concepts/world-simulation/world-entity). A Node is the signed description of one subject at one revision. A subject is related to its parent subject by parthood (https://cyberplanetary.org/concepts/world-simulation/part-whole); the children of a subject are its direct parts as listed by the manager of the context that serves the subject, a declared structural decomposition into direct constituents (https://cyberplanetary.org/concepts/world-simulation/structural-decomposition). A context is a dot-separated management domain (root, root.north, ...) whose manager signs the Nodes and children pages of that context. A delegated root is a Node that marks the root of a subtree whose Nodes are maintained by a different manager. A semantic-only subject is a subject whose Node carries neither position nor extent. A children page is one bounded, signed page of the direct children of one subject. The childrenCompleteness member of a Node and the completeness member of a children page are descriptions of how much is known and listed (https://cyberplanetary.org/concepts/world-simulation/description-completeness-claim); a Node is an entity description (https://cyberplanetary.org/concepts/world-simulation/entity-description) whose scope is that subject and its declared children (https://cyberplanetary.org/concepts/world-simulation/description-scope). No term creates provider authority.
8.2 Qualified identities
A subject is identified by its qualified identity, the pair of its context and its subject token ({"context":ContextId,"subject":Token}, text form <context>/<subject>). A subject token alone identifies nothing: the same token in two contexts names two different subjects, and a name, a description, a mesh or a bound never makes two identities the same. The context of a qualified identity is the context whose manager signs the Node, with the single exception of a delegated root (rule L-NODE-1). A context identifier is never reused for a different key while the world lasts. Two valid Nodes with one qualified identity, one revision and different payload digests are conflicting evidence, and a verifier reports conflicting-evidence; this check belongs to the high-water and equivocation step of the context walk (rule L-RES-2 of CP 0005).
Identities are compared byte-exactly. The context identifier syntax, the prefix relation between contexts (by dot-separated component, never by character prefix) and the tokens are the common tokens of CP 0005 (L-ENC-5).
8.3 One world, recursively organised
A world's structure is a rooted tree. The root is the single subject named by the root subject of the world entry (rule L-NODE-7); every other subject has exactly one parent, named in its Node, and an ordered path of all its ancestors. The depth of the tree is bounded only by the path limit of rule L-NODE-2; the number of subjects, of children of one subject and of subjects in one context is not bounded by this specification, and no operation of this mode requires a reader to obtain all of them. Descriptions are separately referenceable: each Node is obtained and verified by itself, and a parent points to a child by a revision-qualified pointer (rule L-CHILD-2) without embedding the child's description.
8.4 Delegated roots
A manager of a context MAY, by the delegation records of CP 0005, hand the maintenance of a subtree to another manager. The root of that subtree is a Node in the DELEGATOR's context, signed by the delegator, whose delegation member names the delegation (rule L-NODE-3). The Nodes inside the delegated domain have the delegate's context and are signed by the delegate. The direct children of the delegated root are listed by a children page signed by the delegate (rule L-CHILD-0), and the delegate's service is found by the discovery rule of CP 0005 (L-DISC-1). The delegation record itself, its rights and its verification belong to CP 0005; this specification only fixes where the delegated root lives and who signs what. A delegated root is not eligible for a responsibility grant (rule L-NODE-4), and being delegated for management confers no right to act as a provider.
8.5 Truthful partial knowledge
A Node and a children page state what they know and no more.
- The member
childrenCompletenessof a Node has three values.complete: the manager asserts that the children it lists, across all pages of its children listing at production time, are all the direct children of the subject.non-exhaustive: the subject MAY have further direct children that the manager does not describe; none of them is to be guessed to exist, to be assignable or to be unassigned.unknown: the manager makes no statement about the children. - The member
completenessof a children page describes paging only:completemeans that this page ends the listing (nextis null),partialmeans that entries remain (nextis a cursor). It makes no statement about the Node'schildrenCompleteness, and a reader MUST NOT infer from acompletepage that the subject has no other children unless the Node'schildrenCompletenessiscomplete. - A reader that stops before exhausting the listing (for a budget, an unreachable service or an expired cursor) MUST report its result as partial or unresolved, and MUST NOT present the entries it holds as the complete set of children.
- A subject that is not listed by the page of its parent is
unresolvedfor that reader; it is never "proven absent" (ruleL-CHILD-5). Only a manager that is authoritative for a scope could assert absence, and this mode defines no such assertion. - Missing evidence is not an empty description: an unreachable service, an absent Node or a stale page yields no children and no claim.
8.6 Local structural evolution
Structure changes where it is maintained. A manager adds a child by signing the child's Node, and by changing only its own children listing for that parent (rule L-CHILD-3); no ancestor Node, no ancestor page, no digest outside the manager's context and no other manager's acknowledgement is involved. A Node changes by a new revision whose previous pointer is the digest of the prior revision (rule L-NODE-5); earlier revisions remain retrievable by number. A child that is no longer part of the structure is removed by marking its current Node superseded or revoked in the manager's status records of CP 0005; the pages simply stop listing it. Evidence that was sufficient before an unrelated change elsewhere in the tree stays sufficient. The tree mode defines no live split, merge or move of a subtree between parents.
8.7 Companion schemas and semantic checks
The JSON Schema files node.schema.json and children.schema.json, with common.schema.json that they reference, are normative companions of this mode (the file schemas/index.json designates them). Each defines a closed object (no member that it does not list is allowed) in JSON Schema Draft 2020-12. JSON Schema is necessary but not sufficient: every semantic check written in the rules of the following clauses, including those about ancestry, ordering, counts, freshness and cursor handling, is part of the contract and applies in addition to the schema, in the processing order of CP 0005 (L-ENC-7).
9 Node
A Node is a signed record of format locality-node/1, signed by the manager of the Node's context (rule L-KEY-3 of CP 0005). It is a closed object with the members below, all required; X|null may be null.
| Member | Type and rule |
|---|---|
format |
locality-node/1 |
world |
the world token (CP 0005 L-ENC-5) |
subject |
qualified identity of the described subject |
revision |
integer >= 1 |
previous |
digest of the prior revision, or null; null if and only if revision is 1 |
parent |
qualified identity of the parent, or null |
path |
list of 0..8 qualified identities (the schema admits up to 16, see L-NODE-2) of all ancestors, outermost first; empty if and only if parent is null; the last element equals parent |
kind |
token naming the kind of subject (for example planet, region, locality, part); a label, not a capability |
description |
printable ASCII string of 1..512 characters |
assignable |
boolean |
delegation |
null, or {"context":ContextId,"delegationId":Token,"generation":integer >= 1} |
childrenCompleteness |
complete, non-exhaustive or unknown |
position |
null, or three integers, planet-fixed millimetres |
extent |
null, or a TileBox |
created |
integer milliseconds since 1970-01-01T00:00:00Z |
position is a planet-fixed position of CP 0011 v0.3.2 (each coordinate a signed integer number of millimetres, absolute value at most 20000000000). A TileBox is {face, level, ix0, iy0, ix1, iy1} with face in 0..5, level in 0..24, 0 <= ix0 <= ix1 < 2^level, 0 <= iy0 <= iy1 < 2^level and at most 4096 tiles ((ix1-ix0+1)*(iy1-iy0+1) <= 4096) in the cube-face addressing of CP 0011 v0.3.2. A TileBox that violates these bounds is bad-region. The canonical payload of a Node is at most 8192 bytes.
L-NODE-1 Context. The subject.context of a Node is the context whose manager signs it. Exception: a Node whose delegation is not null (a delegated root) lives in the DELEGATOR's context and is signed by the delegator; the Nodes inside the delegated domain have the delegate's context and are signed by the delegate. A Node whose signer is not the manager of subject.context, as established by the context walk of CP 0005 (L-RES-2), is unknown-signer or out-of-domain as that walk determines.
L-NODE-2 Ancestry. path lists all ancestors outermost first. It MUST NOT contain the subject and MUST NOT contain a repeated qualified identity; either violation is cycle. It MUST have at most 8 entries; a longer path is depth-exceeded (the schema admits up to 16 entries so that this semantic check can report it). parent is null if and only if path is empty, and otherwise equals the last element of path. Every element of path MUST itself be a Node that is supplied and verified in the context walk of CP 0005 (L-RES-2), in which each element's own path is the prefix of this path that precedes it. Names, bounds, meshes and any other member create no ancestry: a subject has exactly the ancestors that this chain of verified Nodes states.
L-NODE-3 Delegated root. A Node with delegation not null marks the root of a delegated subtree. Then assignable MUST be false, and delegation MUST equal {context, delegationId, generation} taken from manager.context, id and generation of the verified delegation record of CP 0005 whose root is this subject; the delegation's rootPath equals this Node's path. The Node is valid only together with that delegation, and a verifier that cannot match them rejects the chain.
L-NODE-4 Eligibility. assignable = true marks a subject eligible for a responsibility grant under CP 0005. A whole, a collection or a delegated root is not eligible. Eligibility is explicit and per subject: ancestry, names, kinds, descriptions, positions, extents and meshes create no authority, and a Node's eligibility does not extend to its descendants, siblings or later subjects. Being eligible is not being assigned: a subject that has never had a grant is unassigned only on the evidence rules of CP 0005.
L-NODE-5 Revisions. A Node of revision r+1 has previous equal to the digest of the Node payload of revision r; revision 1 has previous null. Revisions are immutable and each is retrievable by number from the serving service (route GET /nodes/{c}/{s}?revision=n). The current revision is the one that a fresh status of CP 0005 lists as current; superseded revisions are marked superseded. A verifier that has accepted revision r of a subject rejects a candidate of lower revision as superseded. Equivocation rules apply to Nodes: a candidate of equal revision with a different digest is conflicting-evidence, and a candidate of revision r+1 whose previous is not the accepted digest of revision r is conflicting-evidence (CP 0005, L-RES-2 step 6). A delegation rootPath has at most 7 entries while a Node path has at most 8.
L-NODE-6 Spatial independence. position and extent MAY each be null. A semantic-only Node MUST NOT be required to supply coordinates, bounds, tiles or a mesh, and a producer, a reader or a conformance check MUST NOT require them. A reader that does not interpret planetary positions still reads, verifies and traverses the structure. When the extent of a Node is not null, it MUST lie inside the extent of its nearest ancestor in the same context that has one ("inside" is evaluated on one face at the finer of the two levels, replacing the coarser box by its descendant tiles; boxes on different faces are never inside one another); otherwise the Node is bad-region. A Node with a non-null position and a non-null extent states them independently; this mode does not require the position to lie inside the extent. Nothing in a Node of this mode places or moves a rigid body, a mesh or a live entity.
L-NODE-7 Root. Only the Node whose subject equals the root subject of the world entry has parent = null. Any other Node with parent = null, and the root subject with a non-null parent, is bad-schema.
10 Children page
A children page is a signed record of format locality-children/1, signed by the serving manager (rule L-CHILD-0). It is a closed object with the members below, all required.
| Member | Type and rule |
|---|---|
format |
locality-children/1 |
world |
the world token |
parent |
qualified identity of the parent whose direct children are listed |
directoryRevision |
integer >= 0; the revision of the serving manager's listing of this parent's children |
requested |
{"cursor":Cursor,"limit":integer 1..64}, the values used to produce this page |
permitted |
public; a children page is public structure and needs no permission |
returned |
integer, the number of entries |
next |
a Cursor, or null |
entries |
0..64 entries, each {subject, revision, digest, assignable, delegated, kind, position, extent} |
completeness |
complete or partial |
producedAt |
integer milliseconds since 1970-01-01T00:00:00Z |
An entry has subject (qualified identity), revision (integer >= 1), digest (digest of the child's Node payload at that revision), assignable (boolean), delegated (boolean), kind (token), position (null or planet-fixed millimetres) and extent (null or a TileBox), as in the Node. A Cursor is 0..128 characters of base64url. The canonical payload of a page is at most 65536 bytes. The page requested without a cursor has requested.cursor equal to the empty string.
L-CHILD-0 Signer and routing. The serving manager for a parent P is the manager of the context named in P.delegation.context if P is a delegated root, and otherwise the manager of P.subject.context. Every entry's subject.context MUST equal the signer's context. delegated = true marks an entry whose Node is a delegated root (it lives in this context; its own children are served by the delegate, whose context is named by that Node's delegation). The page is requested from the service of the serving manager; for a delegated root that is the delegate's service, discovered from the delegation record by the rule L-DISC-1 of CP 0005, never from a hint carried in the page.
L-CHILD-1 Content. A page lists direct children only, strictly ascending by the ASCII value of subject.subject, strictly after the position that requested.cursor stands for, and at most requested.limit entries. returned equals the number of entries. A limit outside 1..64, or a limit that is not a base-10 integer, is bad-limit; the default when the query parameter is omitted is 32, and requested.limit always holds the value used. next is a Cursor if and only if entries remain after the last returned entry at production time, otherwise null; an empty page has next null. completeness is partial if and only if next is not null. A page for a parent that has no children, or a cursor that is past the end, is a valid empty page.
L-CHILD-2 Revision-qualified pointers. The digest of an entry is the digest of the child's Node payload at the entry's revision. The parent points to a child description without embedding it, and the entry members assignable, kind, position and extent are a convenience copy of the child's Node at that revision. A client that relies on any of them for more than display MUST obtain and verify the Node (route GET /nodes/{c}/{s}?revision=n) and compare its payload digest with the entry; on a mismatch the entry is conflicting-evidence. An entry carries no authority.
L-CHILD-3 Local addition. Adding a child changes only directoryRevision and the pages of its own parent in its own context. No ancestor's Node, no ancestor's page and no digest outside the serving manager's context changes, and no other manager acknowledges or is told. directoryRevision is a number that the serving manager increases whenever the set of children listed for the parent changes; the pages of different parents are independent.
L-CHILD-4 Cursors. A cursor is opaque base64url of at most 128 characters, integrity-protected by the service (a message authentication code) and bound to the pair (parent, signer). A client treats it as an opaque string and returns it unchanged. requested.cursor echoes the cursor value of the request. A malformed cursor, or one produced for a different parent or signer, is malformed-cursor. A service accepts a cursor for at least 600000 ms after issuing it, and after that MAY answer cursor-expired. No snapshot is implied across pages: a child created after the position that a cursor stands for appears on a later page, and a removed or revised child is reflected only in later pages. Removal is by the child's current Node digest becoming superseded or revoked in a status, and the pages simply stop listing it.
L-CHILD-5 Freshness and checks. A client MUST reject a page, after verifying its signature under the serving manager's key established by the context walk of CP 0005, in each of these cases: its producedAt is older than the world entry's maxAgeMs (stale-evidence) or lies more than the clock skew of CP 0005 (L-TIME-1) in the future; returned differs from the number of entries; entries are not in strictly ascending order of subject token, or contain a duplicate, or (on a page after the first) an entry's token is not strictly greater than the last token of the page from which the cursor was taken; an entry's subject.context differs from the signer's context; requested.cursor or requested.limit differs from the values the client sent (the default limit when none was sent), or returned exceeds requested.limit; next is non-null with an empty entries, or completeness disagrees with next; parent differs from the requested parent; or an entry has both delegated = true and assignable = true (bad-schema, see L-NODE-3), or an entry has delegated = true although its Node is not a delegated root (the client checks this flag when it fetches the child Node; until then delegated is unverified). A page makes no statement about other contexts: a subject that no page lists is unresolved, never proven-absent.
11 Routes, structural budgets and participation
This clause defines the two structure routes of a context service and the budgets that bound structural work. The remaining routes of a context service, the closed error registry and the general service conventions (media type, caching, redirects, size limits) are defined by CP 0005; the rows below follow them.
11.1 Routes
All routes are under /locality/v1 and use HTTP/1.1 with UTF-8 JSON bodies. {c} and {s} are plain path segments (no percent-escapes) holding the context and the subject token of a qualified identity.
L-ROUTE-1 Route GET /nodes/{c}/{s}[?revision=n]. The service for context c answers with the Node envelope (typ and format locality-node/1) of subject c/s: the current revision if the query parameter is absent, otherwise revision n. A revision that is not a base-10 integer of at least 1 is HTTP 400 bad-schema; an absent subject or revision is 404 not-found; a context the service does not serve is 404 unknown-context. A delegated root lives in the delegator's context, so it is served by the delegator's service. A response with the revision parameter is immutable and carries Cache-Control: public, max-age=31536000, immutable; a response without it carries Cache-Control: no-store. The response carries Access-Control-Allow-Origin: *. The route confers no authority: the envelope is verified by the receiver (CP 0005, L-ENC-7 and L-RES-2).
L-ROUTE-2 Route GET /children/{c}/{s}?cursor=&limit=. c/s is the parent. The serving manager's service (rule L-CHILD-0) answers with the children page envelope (typ and format locality-children/1). A service answers only for subjects it serves: the nodes of the contexts it manages, the children pages per L-CHILD-0, which include the delegated root of its own delegation, and the statuses it issues; otherwise it answers 404 unknown-context. For a parent that is a delegated root, c/s is the delegated root's own qualified identity (in the delegator's context) and the request is sent to the delegate's service; for any other parent it is sent to the service for c. cursor is a base64url value (absent means the empty cursor) and limit is a base-10 integer (absent means 32). Errors: bad-limit (400), malformed-cursor (400), cursor-expired (410), not-found (404, parent unknown to the service), unknown-context (404). The response carries Cache-Control: no-store and Access-Control-Allow-Origin: *. Service errors are unsigned objects {"error":Token} with a token from the closed error registry of CP 0005.
11.2 Structural budgets
L-STRUCT-BUD-1 Structural budgets. The following bounds apply to the structure of this mode and are checked before the content is relied on.
| Quantity | Bound |
|---|---|
Ancestors in path |
8 (depth-exceeded beyond) |
| Entries per children page | 64 (requested limit 1..64, default 32) |
| Canonical size of a Node | 8192 bytes |
| Canonical size of a children page | 65536 bytes |
Tiles in a TileBox |
4096 |
| Delegation levels between the root and a subject | 7 |
| Child pages read by one client attempt | 16 |
The canonical size ceilings and the per-attempt limit of 16 child pages are the ceilings and the attempt budget of CP 0005 (L-BUD-2 and L-BUD-1); a client that reaches a budget reports its result as unresolved or partial and never invents the remainder. A service that cannot produce a page within these bounds answers budget-exceeded. A request for one parent costs work proportional to the page it returns and the path of the parent, never to the number of subjects, providers or grants in the world (CP 0005, L-RES-5), and a service MUST NOT hide an all-world scan behind a small response.
11.3 Semantic-only participation
Semantic-only participation (rule L-NODE-6). A subject whose Node has position = null and extent = null is a full participant of the tree mode: it appears in children pages with null position and extent, it MAY be assignable, it MAY be the parent of other subjects, and it is verified, traversed and cited exactly like a geometric subject (rule L-NODE-6). A conforming manager, client or check MUST NOT fail, downgrade or skip a subject because it lacks coordinates, bounds, tiles or a mesh, and MUST NOT supply invented values for them.
12 Conformance
This edition has two modes, each with its own conformance statements. Conformance to one mode says nothing about the other.
12.1 Flat mode
A conforming producer/reader of the flat mode validates exact selected /2 syntax, bounded canonical bytes, declared public structure/eligibility, explicit strict order, optional anchor dependencies and full semantic rules. Comparison vectors require insertion preservingold pairwise relations and canonical subject/constituent prefixes, reject reordering/reanchoring, and accept unrelated separately committed reference additions preserving every used dependency. A coordinate-free reader can claim structure/order conformance while explicitly leaving optional anchors uninterpreted; a placement claim additionally validates CP0011 evidence. A schema/signature alone grants no authority or accuracy.
12.2 Selected validation (flat mode) and interpretation claims
cp0005.public-reference-acceptance/1 requires the complete structural candidate validity and bounded additive rules, not merely schema, digest or membership checks. cp0011.accepted-public-placement/1 consumes a supplied identified accepted structure and verifies the exact public dependencies of the selected subject and path. These claims have distinct trust premises. Passing a selected subject interpretation does not certify that an untrusted complete structure was accepted correctly. Every preserved reference dependency is exact; unrelated valid additions do not become preconditions for an old subject.
12.3 Tree mode roles and statements
Conformance to the tree mode is evaluated by the public locality conformance kit, release range ^1.0.3 of the protocol repository (https://forge.cyberplanetary.org/Johnb/cyberplanetary-protocol/releases, tags vlocality-kit-MAJOR.MINOR.PATCH); a claim names the exact release used. Each requirement below is individually identified by its label and is tested separately by the kit. The role names are those of the CP 0005 role table. This specification makes no claim that any implementation conforms.
A manager (context service) conforms to the tree mode if it:
- signs only Nodes and children pages that satisfy the schemas and every semantic rule of the Node and children page clauses:
L-NODE-1,L-NODE-2,L-NODE-3,L-NODE-4,L-NODE-5,L-NODE-6,L-NODE-7,L-CHILD-0,L-CHILD-1,L-CHILD-2,L-CHILD-3andL-CHILD-4; - serves the routes
L-ROUTE-1andL-ROUTE-2with the stated results, errors and caching, and answers only for the contexts and delegated roots it serves; - obeys the structural budgets (
L-STRUCT-BUD-1) and the rule of semantic-only participation (L-NODE-6), including that it requires no coordinates for any subject; and - states
childrenCompletenesstruthfully (clause on truthful partial knowledge) and never presents a partial listing as complete.
A client (reader) conforms to the tree mode if it:
- verifies a Node and a children page by the processing order of CP 0005 (
L-ENC-7) and the context walk (L-RES-2) before relying on either, and applies the Node checksL-NODE-2,L-NODE-3,L-NODE-5,L-NODE-6andL-NODE-7; - applies every check of
L-CHILD-5, treats the cursor as opaque (L-CHILD-4), treats entries as pointers (L-CHILD-2) and never reports an unlisted subject as proven absent; - stays within the structural budgets and reports a result that was cut short as unresolved or partial; and
- reads, traverses and cites semantic-only subjects exactly like geometric ones (
L-NODE-6).
The roles authority, provider, base-delivery and assessor have no requirement in this specification. A schema or a signature alone grants no authority, and a conforming tree-mode reading is structural only: it grants no responsibility, no permission and no accuracy.
12.4 Companions and checks beyond them
The normative companions of the tree mode are node.schema.json, children.schema.json and common.schema.json. The following checks go beyond what those schemas can express and are part of the contract: the iff relations between previous/revision and between parent/path; parent equal to the last element of path; no repetition and no self reference in path; the nesting of extents; TileBox index and size bounds; the relation of delegation to the verified delegation record; the single parentless Node; ordering, uniqueness, counts, cursor echo and freshness of children pages; and all checks of the context walk.
This edition CP 0008 v0.4.2 selects approved source-owned world module successors0.5.0 and unchanged registration0.1.3. The exact supplied159-concept closure is package SHA-256 dec48040c27f39a7a376317be4916b5e1a7e43ef027c929820903e884472600e, with original package lock SHA-256 dc9a9f58814ae04de39d906599cd8a4bbca05b840d3c7679b656174e46f0bfd0. No predecessor definition, identifier or ownership is changed. Coordinate concepts are optional meanings, not compulsory world features.
Publication-only root https://cyberplanetary.org/modules/shared-reference-publication-bindings version0.15.0 owns no concepts and preserves historical publication records. Native manifest SHA-256 5638be3ce144bd003861a4ba4baf2b1914a149f0e6d3637b9ae6e1807cee44d7, locked closure SHA-256 ff1938e00517d4e0ed8c51e6ecfcd92d0eed69f17023a54d07446c5f77db6265, and normal CSM package SHA-256 dac6d01cea6a13526494de34bcab34ad81818a392251706807b164aae8515a58 accompany standards/series/baselines/shared-reference-publication-bindings-0.15.0/. The exact concept-bindings.json lists actual edition clause anchors. Native lock/export/package reimport checks establish fixity/resolution, not conceptual truth or runtime interoperability. Only each clause's selected meanings are adopted, not every package concept as a runtime requirement.
The companion schemas/index.json is committed by SHA-256 6f961956540b2ff1c64564beaae090392e9fa4e74961eb8ec01b5177f67929a9. It selects only this edition's explicit current schema and agreement artifacts; historical predecessor artifacts are not a fallback selection.
Annex A (informative) — Tree mode example
A world has the root subject root/planet, whose Node has parent null and an empty path. Its manager (the world authority, context root) lists two children, root/north-region and root/south-region. Each of these Nodes lives in context root, is signed by the authority, has assignable false and carries a delegation naming the regional manager's context (root.north, root.south). The authority's children page for root/planet has two entries, both with delegated true.
The children of root/north-region are listed by a page signed by the manager of root.north; every entry of that page has context root.north. One entry, root.north/coast-alpha, is a locality with a position and an extent. Another, root.north/archive-hall, is a semantic-only locality: its Node and its page entry both carry null position and extent, and it can still be assignable. Its Node path is root/planet, root/north-region.
A visitor's application reads the world entry, fetches the Node of the root subject and its first children page, follows the delegated entry to the regional service found through the delegation record, and reads the next page with the cursor it was given. It never needs the other region. If the regional service is unreachable, the application reports the region's children as unresolved and keeps using what it has already verified and that is still fresh.
When the north manager adds root.north/boat-house, it signs the new Node and its parent's listing changes (a higher directoryRevision, and a new entry on the page that sorts it); the Nodes and pages of root/planet and of the south region are unchanged. When a parent's Node says non-exhaustive, an application shows the listed children and does not claim to show all of them; when a page is partial, it knows that more entries remain and asks for the next page, or reports a partial result if it must stop.
Interpretation failures: a Node that lists itself in its path; a path of nine entries; a delegated root marked assignable; a page whose entries are not in ascending order or carry a context other than the signer's; a cursor taken from another parent's page; and a reader that reports an unlisted subject as absent.
Bibliography
- CP 0000 v3.0.1, How these standards are numbered, versioned and retired