Rote 0.17 is a design proposal. Its model follows a first wave of experiments, of which one run is scored, and its JVM profile is written from the one implementation that works end to end; no profile is frozen and no result is accepted.
1. Purpose and architecture
Rote is a system for indexing code. Each release of a package is indexed once, by its registry or its author, and the result is published over HTTP as signed, immutable objects. A project indexes only its own code. It reads its lockfile to find its dependencies, binds the published facts to them by table lookups, and fetches and checks only the pages a query touches.
A consumer that has to parse, compile, or index a dependency has left the path this specification defines. The launch profile counts that as a failure, however fast the result (LAUNCH-2).
- untrusted input
- published, verifiable
- private to you
The current design encodes objects in strict canonical Bebop, keeps schemas immutable, and arranges objects in a Merkle tree. Cap’n Proto will be compared with Bebop before the encoding is frozen. An operator publishes a public index; each realm controls its own private data. The § 21.1 Bounded launch profile selects the first ecosystem and operations.
§ 21 Adopted decisions and implementation scope lists what is decided, § 23 Decisions and evidence needed lists each remaining decision as decided, deferred, or open, and § 22 Rejected proposals lists what was dropped. § 25 Evidence from the first experiment wave summarizes the measurements behind this draft.
1.1. Architecture at a glance
This overview is non-normative.
-
A unit is the published index of one release artifact. It holds the facts that do not depend on who consumes the release, each stored once with the condition it holds under. It is split into facets, each keyed by what a reader looks up, so a reader fetches a few pages and never the whole unit.
-
A reference into another release is a symbolic edge: an import slot and a target name. It carries a witness: the interface items its resolution depended on.
-
A closure says which exact dependency instance each import slot refers to. A consumer derives it from its lockfile.
-
The link step binds each edge and conditional fact to the closure. A fact is bound, unbound with a cause, or not produced; it is never guessed.
-
A layer adds typed claims about existing subjects without changing them.
- published by an operator
- private to a realm
- optional
SelectionRoot identifies what was admitted: the inputs, their scope and projections, the closure, and the selection and effective trust policies.
NormalizedIndexRoot identifies the resulting facts and coverage, whatever produced them.
A normalized root is optional; the pilot uses SelectionRoot only.
Two selections with the same normalized content do not share authority or access rights.
A client can look up and fetch candidate objects while a solver is still running, and can verify and cache an object before the graph is solved. It can use an object’s facts only once the operation’s exact bindings, authority, status, and coverage are checked.
Objects are served and verified whole over HTTP. Compression and packs change the bytes on the wire, not object identities. Private data, identifiers, queries, and metadata derived from them stay private, including when they refer to public objects.
1.2. Changes in 0.17
This summary is non-normative. Draft 0.17 adds a first comparison with existing tools and changes no requirement.
-
§ 25 Evidence from the first experiment wave gains a comparison of Rote with IntelliJ IDEA, Eclipse JDT LS, and Kythe on two Java consumers. It is unscored, and its ratios are not yet over commonly answered queries.
-
The IntelliJ and Kythe baselines now exist as drafts in experiment 15; they are not yet part of its report.
1.3. Changes in 0.16
This summary is non-normative. Draft 0.16 records the owner’s decisions on the questions 0.15 left open.
-
The registry-attested match rule is adopted, and the default trust policy accepts it (TRUST-19, TRUST-23, § 23.8 DEC-8 — Initial ecosystem and condition scope, and publisher onboarding). An admission names every upstream signature or attestation the operator retrieved (TRUST-20), and a unit is described as a shadow of its release (§ 4 Trust model).
-
Operator records are to be signed through Sigstore; the rest of operator signing stays deferred (§ 23.4 DEC-4 — Operator signing and anchor recovery).
-
Draft pilot gates: time to ready at least 4 times faster, and store size at most 1.4 times the whole objects (the pilot gates). Store size stays a pilot gate (§ 23.3 DEC-3 — Storage layout and projection granularity).
-
The JVM baselines are to be IntelliJ IDEA with shared indexes and Kythe, beside JDT LS (§ 21.1 Bounded launch profile); neither is measured yet.
-
The licence is decided: Apache-2.0 or MIT for the repository, this specification included, with a patent statement from Elide for conforming implementations (§ 23.13 DEC-13 — Licence and public access to the evidence). The licence files are not yet added.
-
Still open: redistribution policy, which awaits legal review, and public access to the evidence.
1.4. Changes in 0.15
This summary is non-normative. Draft 0.15 takes the open decisions that the evidence or an earlier choice already settles, and sorts the rest (§ 23 Decisions and evidence needed). A decided entry can be revisited until the profile that depends on it is frozen.
-
Decided: the in-toto statement layout for binding records (TRUST-13); SHA-256 as the launch content hash, with both checks kept for a compressed page (SAFE-6); page-local dictionaries; one schema revision and no search in the pilot; no publisher path and no continuity-bound matching; and linkage semantics (MODEL-39).
-
Deferred to the production profile, since the pilot does not need them: operator signing, witnesses, freshness and offline policy, and on-demand disclosure.
-
Open with the owner: the registry-attested match rule, redistribution policy, the licence and public access, and whether store size is a pilot gate.
-
Inline issues closed with a rule: security-bearing queries (STORE-22), corpus and serving revisions (SEARCH-3), withdrawal against compatibility support (FRESH-2), demand transitions (PIPE-2), and late completions (PIPE-5). One inline issue remains, on references completeness, and it needs a run, not a choice.
-
§ 21.3 Implementation path puts the JVM first.
1.5. Changes in 0.14
This summary is non-normative. Draft 0.14 writes down the JVM model that works end to end, and tightens the general rules that model showed to be loose or wrong. It changes no decision of 0.13.
-
A new section, § 10 JVM language profile, is the language profile of the pilot ecosystem (JVM-1 to JVM-15). It gives the JVM’s conditions, symbolic targets, interface tables, closure establishment, witnesses, wider unbound scopes, declaration rule, binding tables, facet keys, stub jars, and own-code indexing, with the failures each rule came from and the places where the first-wave implementation falls short of it.
-
The producer context of a JVM unit is defined (JVM-3): the release’s own POM closure as Maven resolves it. This answers which dependency versions a public unit is indexed against.
-
References completeness is corrected (MODEL-7, FLOW-11). The false "complete" answers of the first wave came from edges stored under another key, which a count per target does not reveal; the mechanism is an open issue.
-
An interface artifact may be one object per unit and supports analysis only (MODEL-40, STORE-36).
-
A served closure manifest should embed directories and filters (CLOSURE-2), and a binding table is read once (LINK-5).
-
Evaluation rules: an independent truth whose scope covers every language of the platform (LINK-4), lockfiles that resolve from an empty cache (FLOW-2), and a stated analyzer configuration with ratios over commonly answered queries (LAUNCH-2).
-
The pilot gates gain round trips, closure establishment, and binding CPU; the proposed additions gain JDK platform tables, a lazy classpath, and batch fetches.
-
§ 25 Evidence from the first experiment wave states where the JVM run uses stand-ins.
-
The reference list links the same pinned revisions as the bibliography.
1.6. Changes in 0.13
This summary is non-normative. Draft 0.13 changed the model, not only the wording. It follows the first experiment wave (§ 25 Evidence from the first experiment wave) and the review of draft 0.12.
Model
-
A unit’s identity no longer includes dependency versions or any consumer context (FLOW-3, FLOW-10). Under the exact-context key of 0.12, the one scored experiment gave 29% unit coverage and 16% avoided work.
InputContextIdis removed andConditionClassIdadded, andActionKeynever names a consumer context. -
New kinds: condition predicates, symbolic edges, witnesses, interface tables, binding tables, linkage facts, and interface artifacts (MODEL-32 to MODEL-40).
-
A new section, § 9 Closures and binding, defines closure establishment from a lockfile, closure manifests as unsigned, checkable derivations, and the link step with its three outcomes: bound, unbound, and not produced.
-
The query contract reports binding, and forbids a complete answer over facts that were never produced or are unbound (FLOW-11).
-
Facets are keyed by what a consumer looks up and cut into byte-bounded pages (STORE-3, STORE-36). Aligned declaration ranges are dropped (§ 22.4 Aligned declaration ranges).
-
Cold latency is stated as round trips plus a local budget (PERF-4).
Trust and lifecycle
-
Each root has its own status; a discovery record no longer embeds one (LIFE-3).
-
A discovery response carries inclusion proofs, the checkpoint, and witness signatures (LIFE-20), and every logged record kind needs inclusion evidence on first acceptance (LIFE-17).
-
One lifecycle table is authoritative; stale and purged are consumer-side conditions (§ 17 Lifecycle).
-
A parser-hazard withdrawal is a reversible quarantine, a superseded root can be pinned explicitly, and a compromised key’s sequence numbers no longer bind a client (LIFE-7, LIFE-5, LIFE-10).
-
The Rote log is auditable: record bytes are retrievable and entries enumerable (LIFE-15).
-
A production request has a descriptor, so an existing index no longer blocks a new capability (PUB-29).
-
A binding record is no longer required to be an in-toto statement (TRUST-13); a registry-attested match rule is proposed (§ 4.5 Verified and fully matched).
-
SelectionRootcommits to the effective trust policy, not the whole policy (SEL-1), and public routing follows the registry a lockfile names (REALM-7).
Encoding and structure
-
The content hash need not be a tree hash (MODEL-15); dictionary rules are part of validation (ENC-11); the launch profile admits a small primitive subset (ASSURE-2).
-
§ 3 Conformance names roles and requirement classes and lists the pilot subset.
-
Scheduler and reader internals move to § 24 Client implementation guide; their observable invariants stay in § 13.4 Observable invariants of retrieval and execution.
-
References have names instead of briefing numbers, and those behind a requirement are normative.
Identifiers that changed
| 0.12 | 0.13 |
|---|---|
InputContextId
| Removed; ConditionClassId names a condition class and the closure names dependencies
|
DefinitionId
| Removed; it was never used |
| STORE-5, STORE-6 | Removed with the aligned-range profile |
| STORE-29 | REALM-8 |
| Context variant | Condition class |
Citations ROTE-S#
| Named citations, such as [BEBOP-WIRE] |
1.7. Reading this specification
-
Understand the model: start with § 8 Data model and identity, then § 9 Closures and binding and the § 13.3 Worked project workflow.
-
Write a language profile: follow § 8.4 Conditions, § 8.5 Symbolic edges and witnesses, § 9.3 The link step, and § 5.7 Useful coverage and launch profiles.
-
Implement the pilot ecosystem: read § 10 JVM language profile with § 9 Closures and binding.
-
Implement a consumer: follow § 9.1 Closure establishment, § 4.7 Trust policy and verification order, § 12.8 Verification bootstrap, and § 16.1 Ordered checks.
-
Publish or operate a realm: read § 5 Public indexing or § 7 Private realms, together with § 17 Lifecycle.
-
Maintain public coverage and search: follow § 6 Backfill and incremental maintenance, § 6.4 New types, analyses, and resolution over time, and § 15 Search projections and derived indexes.
-
Review format choices: use § 11.1 Formats considered and tradeoffs to distinguish canonical storage, query execution, and producer interchange.
-
Check what binds you: use § 3 Conformance.
-
Plan implementation and review: use § 21 Adopted decisions and implementation scope, § 21.3 Implementation path, and § 23 Decisions and evidence needed.
-
Run the pilot and experiments: start with § 21.1 Bounded launch profile and § 21.2 Experiment program.
1.8. Product contract and implementation scope
A release is indexed once, and its facts are bound into every closure that uses it, for IDEs, agents, and CI. Rote defines the facts and how they are authenticated, bound, and combined; a consumer can build a local query database or native cache from them.
| Requirement | Commitment |
|---|---|
| Language extensibility | Common graph plus immutable language profiles; unsupported semantics remain explicit |
| Indexing once per release | A unit is produced from the release alone, by its registry or author; no consumer context enters its identity |
| Dependency composition | Import slots, symbolic edges, and witnesses; a link step binds them to exact dependency instances by table lookups |
| Consumer cost follows use | A consumer indexes only its own code, and reads a bounded number of pages per lookup whatever the size of a dependency |
| Honest answers | A fact is bound, unbound with a cause, or not produced; an answer is complete only when every contributing fact was produced and bound |
| Rich tool information | Declarations, structured types, relations, documentation, source mapping, and coverage |
| Selective verified access | Bounded Merkle routing and independently retrievable canonical objects |
| Ordinary distribution | Static HTTP object delivery, separate discovery, and local resolution |
| Private use | Private manifests, queries, layers, and metadata may depend on public objects |
| External associations | Typed links to purl, SBOM, debug, and other exact identities |
| Reproducibility | Equal declared effective inputs and recipe yield equal canonical results; no claim to decide behavioral equivalence |
| Evolution | Exact schemas with typed linked enrichment and explicit operation compatibility |
| Proactive and evolving coverage | Explicit backfill of trusted artifacts, resumable work, incremental replacement, and capability-specific coverage as types and resolution improve |
| Public code search | Optional derived search documents and relationship postings with exact source bindings, scoped query semantics, and lifecycle-aware maintenance |
| Optional acceleration | Incrementality, memoization, compression dictionaries, filters, deltas, duplex sessions, and native materialization retain the core identity and authorization rules |
An answer is complete only for its analysis, conditions, dependency closure, and supported operations. Runtime mutation, reflection, unknown generators, and unfinished source can make a complete answer impossible. The language profile defines when a declaration is the same across versions; that is separate from byte identity.
2. Conventions and terms
The key words MUST, MUST NOT, SHOULD, SHOULD NOT, and MAY are to be interpreted as described in BCP 14 ([RFC2119], [RFC8174]) when, and only when, they appear in capitals.
-
A requirement identifier is a topic prefix and a number, unique in this document; it appears in the left margin beside its requirement. A prefix names a topic, not a section, and numbers are not contiguous: the number of a merged or removed requirement is not reused.
-
Status: proposedat the head of a subsection marks its content as not adopted: the evidence suggests the change but does not yet support it. -
Passages labeled "Rationale", notes, and evidence notes are non-normative.
-
Figures are informative unless a requirement refers to them; requirement text governs where the two differ.
-
"Digest" means the content hash of MODEL-15.
-
Citations name their source and resolve to § 26 Source references.
-
The encoding profile uses the pinned Bebop 2026 indexed wire source [BEBOP-WIRE], not the legacy Bebop message layout.
-
An evidence note cites experiments by number (§ 21.2 Experiment program). Every experiment figure in this document is unscored unless it is marked scored.
Terms
| Term | Definition |
|---|---|
| Operator | The authority that runs one public index and is its root of trust. A registry can be the operator for its own ecosystem. |
| Producer | A party that runs a recipe over a release and publishes the resulting unit: an operator’s pipeline, a publisher through admission, or a realm for its own code |
| Consumer | A project or tool that reads published units for its own closure |
| Tier | Class of identity permitted to sign given record kinds: operator, publisher, realm |
| Binding record | Signed statement relating identifiers |
| Anchor record | Versioned, signed list of a tier’s signing identities and their permissions |
| Trust policy | Consumer-chosen canonical document stating what it accepts, per namespace |
| Trust domain | The identities one anchor covers: one operator’s pipeline, or one realm |
| Match rule | Rule tying a signing identity to a package coordinate |
| Realm | Administrative boundary within which private data is produced, signed, and read |
| Label | Confidentiality policy: public, or realm-qualified private reader constraints; derived labels restrict readers to the intersection of their inputs |
| Release | One published version of a package, named by a purl; its artifacts are exact bytes |
| Recipe | A pinned extractor: tool, version, and configuration, named by content identity |
| Unit | Published index of one release artifact: its intrinsic facts under every condition class its producer built |
| Facet | Independently rooted class of a unit’s records, keyed by what a consumer looks up |
| Item | A declaration or other addressable element of a unit’s interface, named by a SymbolKey
|
| Condition | Predicate over a language profile’s condition vocabulary, stating when a fact holds |
| Condition class | One assignment of the condition vocabulary; it names no dependency version |
| Producer context | The dependency artifacts and toolchain a producer resolved and analyzed a unit against, per condition class; recorded in the unit as witness data |
| Import slot | The name through which a unit refers to a dependency, independent of the version a closure binds |
| Symbolic edge | A reference stored as an import slot and a target name, not as an exact dependency instance |
| Witness | The interface items, and the names required to be absent, that the value of a fact depended on in the producer context |
| Interface table | Per unit and condition class: a digest of the signature-level content of each exported item, with the name lists witnesses read |
| Binding table | Consumer-independent table of the facts of one unit that change when one dependency is replaced by another interface |
| Linkage fact | Statement that a release without code for a platform forwards to another artifact |
| Interface artifact | Form of a release’s interface that a stock analyzer can load in place of the dependency |
| Closure | Binding of a project’s import slots to exact dependency instances, with their condition assignments |
| Instance | One use of a unit in a closure: the unit, a condition assignment, and the instances its slots bind |
| Closure manifest | Canonical descriptor of one closure, with the link tables and unit metadata a consumer needs to query it |
| Link step | The lookups by which a consumer binds a unit’s conditional facts and symbolic edges to its closure |
| Layer | Immutable set of annotation objects contributed over exact subjects |
| Provenance class | Signer-asserted origin of a unit or layer: operator, publisher, realm, agent |
| Canonical object | Byte string valid under the Rote strict Bebop profile, identified by ObjectId
|
| Schema | Exact field set of one record type, fixed by one SpecId
|
| Opaque object | Object bytes whose body schema the holder does not know; byte identity may be verified without a claim of canonical or semantic validity |
| Profile | Immutable specification fixing rules and constants; the profile table lists the kinds |
| Profile constant | Limit or threshold fixed by a profile |
| Storage ordering key | The key a facet’s records are sorted by; for declarations: visibility class, owner chain, local key |
| Key range | Contiguous run of a facet’s keys between two page boundaries |
| Leaf page | Canonical object holding one facet’s records for one key range; "page" for short |
| Merkle range node | Canonical ordered descriptor of child ranges and their content identities, counts, and coverage |
| Root bundle | The bounded object a consumer fetches first for a unit: its root, facet roots, condition table, top directories, and required bindings |
| Projection | Profile-defined selection of semantic rows, columns, or facets, with explicit scope and coverage |
| Candidate set | Complete set a resolver consults for one lookup |
| Campaign | An operator’s versioned plan to index a stated inventory of releases ahead of demand |
| Untrusted text | Free-form text originating in indexed source or with a layer author |
| Rote log | Operator-run append-only Merkle log of operator binding records |
"Profile" alone is ambiguous, so requirements name the kind where it matters.
| Profile | Fixes |
|---|---|
| Verification profile | Per ecosystem: how a purl resolves to artifact bytes, where signing assets are found, and which match rules apply |
| Language profile | Per ecosystem: semantic kinds, item keys and their comparator, the condition vocabulary, import slots, witnesses, the binder, and coverage meaning. "Semantic profile" in an object header names this profile |
| Encoding profile | Wire revision, canonical rules, admitted primitives, and the content hash and digest size. "Hash profile" in earlier drafts was this part of it |
| Partitioning profile | Page cuts and caps, routing fan-out and depth, dictionary scope, and count and coverage aggregation |
| Bootstrap profile | Envelope framing, signed-byte rules, control-object schemas, and pre-authentication limits |
| Projection profile | Rows, columns, and facets selected for stated operations |
| Search projection profile | Search subjects, fields, normalization, and per-operation coverage |
| Launch profile | The pilot’s ecosystem, operations, inventory, budgets, and thresholds |
Identifiers
| Identifier | Names |
|---|---|
SymbolKey
| One item: owner chain and local key |
ArtifactId
| Exact artifact bytes |
ConditionClassId
| One condition class of a language profile |
ActionKey
| One recipe applied to declared inputs |
ObjectId
| One canonical object |
UnitRoot, LayerRoot
| A unit; a layer |
SpecId
| Immutable specification and the schema it fixes |
CandidateSetId
| One candidate set |
InstanceKey
| One instance in a closure |
ClosureRoot, SnapshotRoot
| A closure manifest; a closure plus exact source mappings |
TrustPolicyId
| A trust policy’s canonical bytes |
EffectivePolicyId
| The trust-policy clauses that govern one selection’s namespaces |
SelectionRoot
| Canonical selection of admitted inputs and projections, closure, selection policy, EffectivePolicyId
|
NormalizedIndexRoot
| Canonical final facts and coverage for the stated scope, projection, closure, and profiles, free of production history |
RepresentationId
| Exact transfer bytes of one object |
BindingRecordId
| Exact signed bytes of one binding record |
VerificationProfileId
| A verification profile’s canonical text |
RealmId
| A realm, bound by its anchor to signing identities |
LiveViewId
| Mutable, provisional editor view |
Identifiers are constructed as follows (MODEL-15, TRUST-13, FLOW-3, FLOW-4, FLOW-10, SEL-1, SEL-13, MERKLE-1).
H is the content hash of the encoding profile.
The identity-inputs figure shows which inputs each derived identity reads.
ObjectId = H(canonical bytes, header included)
ArtifactId = H(exact artifact bytes)
RepresentationId = H(exact transfer bytes)
BindingRecordId = H(signed statement bytes)
TrustPolicyId = H(canonical bytes of the trust policy)
VerificationProfileId
= H(canonical text of the verification profile)
ConditionClassId = H(canonical assignment of the condition vocabulary)
InstanceKey = H(ArtifactId, condition assignment, discriminator,
sorted (import slot, InstanceKey of the bound instance))
CandidateSetId = H(scope, name, canonical member list,
member attributes resolution reads)
UnitRoot, LayerRoot, ClosureRoot, SelectionRoot, NormalizedIndexRoot
= ObjectId of the canonical root descriptor
RealmId = the trust-domain name in the realm's anchor,
qualified by the authority that issued it; not a digest
3. Conformance
Conformance is claimed per role. A deployment implements only the roles it advertises, and a requirement binds only the roles its class names.
| Role | Does |
|---|---|
| Producer | Runs a recipe, seals a unit, and publishes it under an operator, a publisher admission, or a realm |
| Store or mirror | Serves objects and records byte for byte; interprets nothing |
| Consumer | Accepts records, establishes a closure, fetches and validates objects, runs the link step, and answers queries |
| Operator | Admits artifacts, signs records, runs the Rote log, and issues status |
| Realm | Signs and serves private data and composes it with public units |
| Search service | Derives and serves search indexes over admitted facts |
| Class | Covers | Binds |
|---|---|---|
| Core | Object identity, encoding, the Merkle hierarchy, storage, delivery, bootstrap, and safe consumption | Every role that reads or writes Rote objects |
| Trust and lifecycle | Records, acceptance order, status, freshness, and the Rote log | Operator, realm, and consumer |
| Language profile | What a profile for one ecosystem defines: conditions, slots, edges, witnesses, tables, and the binder. § 10 JVM language profile is the profile of the pilot ecosystem | Producers and consumers of that ecosystem |
| Operator policy | Admission, production, backfill, and renewal for one public index | The operator of that index |
| Capability | Optional behavior with its own rules: normalization, search, batch query access, solver integration, native artifacts, and accelerators | Only an implementation that advertises the capability |
-
CONF-1 An implementation MUST state the roles and capabilities it claims and MUST meet every requirement of the classes those roles bind. It MUST report an operation that needs a capability it lacks as unsupported (PERF-6), never as an empty or complete result.
-
CONF-2 A claim of pilot conformance MUST meet the requirements listed as in force in the pilot subset for the claimed roles, and MUST name the launch profile revision it was tested against.
| Family | Class | In force for the pilot | Not in the pilot |
|---|---|---|---|
| CONF, LAUNCH | Core | All | |
| MODEL, FLOW | Core; language profile for MODEL-32 to MODEL-40 and FLOW-1, FLOW-2, FLOW-10 | All | Agent-class layers (parts of MODEL-22, MODEL-24) |
| CLOSURE, LINK | Language profile | All | |
| JVM | Language profile, for the pilot ecosystem | All | |
| MERKLE | Core | MERKLE-1 to MERKLE-8, MERKLE-12, MERKLE-13 | Normalizer reuse and projection (MERKLE-9 to MERKLE-11) |
| ENC, ASSURE, TYPE | Core | All of ENC and ASSURE; TYPE-1, TYPE-2, TYPE-5, TYPE-8, TYPE-9 for the admitted subset | Primitives the launch encoding profile does not admit (TYPE-3, TYPE-4, TYPE-6) |
| STORE, ROUTE | Core | All but the optional accelerators | STORE-28, STORE-30, STORE-32, STORE-33, STORE-35 |
| PERF | Core for PERF-3, PERF-4, PERF-6, PERF-7; capability otherwise | PERF-3, PERF-4, PERF-6, PERF-7 | PERF-1, PERF-2, PERF-5, PERF-8 |
| BOOT, SAFE, LIMIT | Core | All | |
| SEL | Core for selected views; capability for normalization | SEL-1, SEL-2, SEL-8, SEL-11, SEL-15 | Normalization and candidate sets (SEL-4, SEL-5, SEL-6, SEL-9, SEL-13, SEL-14) |
| PIPE, QUERY | Core for PIPE-6, PIPE-7, PIPE-9, QUERY-7; capability otherwise (§ 24 Client implementation guide) | PIPE-6, PIPE-7, PIPE-9, QUERY-7 | The rest, unless the client claims solver integration or batch query access |
| REUSE, EXEC | Core for REUSE-1, REUSE-3, REUSE-6, REUSE-11; capability otherwise | REUSE-1, REUSE-3, REUSE-6, REUSE-11 | Normalized roots and memos (REUSE-5, REUSE-8, REUSE-9, EXEC-5); partial results (EXEC-1 to EXEC-3), since the pilot refuses instead |
| TRUST, AUTH | Trust and lifecycle | All for the operator and realm tiers | The publisher path (TRUST-8, TRUST-24 to TRUST-26) |
| PUBLISHER | Trust and lifecycle | All; no publisher is onboarded | |
| LIFE, FRESH | Trust and lifecycle | All for a public deployment; a simulation states what it omits (LAUNCH-6) | |
| PUB | Operator policy | All | |
| BACKFILL, CHANGE, EXTEND | Operator policy | All of BACKFILL; CHANGE with unit-level invalidation; EXTEND-1 to EXTEND-3 | Search generations and their tests (EXTEND-4 to EXTEND-6) |
| REALM, PRIV | Trust and lifecycle, for the realm role | All but the live-edit service | REALM-13, REALM-18; PRIV-6 applies at production launch |
| EVOLVE | Core | EVOLVE-1 to EVOLVE-3, EVOLVE-6 | Batched annotations, replacement schemas, and their suite (EVOLVE-4, EVOLVE-5, EVOLVE-7) |
| PROOF | Core | All that apply to implemented capabilities (PROOF-6) | |
| SEARCH | Capability | All | |
| INTEROP | Capability | INTEROP-6 | Adapters and native artifacts |
The pilot subset is a draft. It becomes binding when the launch profile that names it is published (LAUNCH-1).
4. Trust model
A digest identifies bytes. A signed binding record asserts a relation between identifiers, and a consumer accepts it only if its signer, namespace, status, and interpretation satisfy the consumer’s trust policy.
A unit is a shadow of its release: a separate artifact about exact upstream bytes, signed by its producer. Its records name the release’s artifact by digest and refer to the upstream’s own signatures and attestations; they never re-sign, replace, or modify the release.
4.1. Tiers and anchors
| Tier | Identity | May sign | Status |
|---|---|---|---|
| Operator | The operator identified by the anchor for that public index | Every record kind, for that public index | Active; sole publisher of its public objects and discovery, including admitted publisher data |
| Publisher | The identity a match rule ties to a package | Eligibility for index data about that exact package artifact | Operator-admitted path only; onboarding not started |
| Realm | Identities in a realm anchor | Every record kind except Admission and Refusal, for that realm | Private authority; never enters the public index |
-
TRUST-1 An authoritative claim about artifact admission, action results, eligibility, delivery, discovery, status, or trust administration MUST use the signed binding record of that kind. A structural reference inside an authenticated canonical object needs no separate signature: the object’s Merkle commitment authenticates it. A consumer MUST NOT treat a content digest, a structural reference, or an entry’s presence in a store as evidence of any such claim, a signer’s authority, publication permission, or execution permission.
-
TRUST-2 A binding record MUST be signed by an identity in a tier permitted to sign its kind (signers by record kind). A consumer MUST reject a binding record whose signer its trust policy does not list for that kind and namespace.
-
TRUST-5 The operator and each realm MUST publish an anchor record for its trust domain with the fields in record kinds, stating its record-kind and provenance permissions explicitly. Client tools MUST ship the anchor of each operator their default trust policy accepts.
-
TRUST-7 A consumer MUST retain, per trust domain, the highest accepted anchor version and its exact signed identity, and MUST reject a lower version or different bytes at that version. It MUST accept successors only through AUTH-2, and MUST NOT claim rollback protection across restarts if it cannot persist this state.
-
TRUST-8 A consumer MUST take a publisher identity only from a match rule (match rules); the publisher tier has no anchor.
4.2. Anchor transitions
-
AUTH-1 A consumer MUST obtain its initial operator anchor through trusted installation and its initial realm anchor through authenticated realm setup, and MUST NOT take trust from an incoming record’s claimed identity or tier.
-
AUTH-2 A successor anchor MUST name its predecessor, increment its version by one, and meet the anchor-update signature thresholds of both anchors. Only signatures by anchor-update authorities count, each distinct key once per threshold.
-
AUTH-3 The authority MUST retain intermediate anchors, and a consumer that missed rotations MUST validate each in sequence within local download and work limits. An expired anchor MAY authenticate a successor, but accepting new data requires an unexpired final anchor.
-
AUTH-4 A consumer MUST persist each validated transition before using its authority. If the old update authority is unavailable, recovery MUST use an explicitly authenticated administrative or software-distribution path, not a self-signed replacement or a skipped intermediate anchor.
-
AUTH-5 Each removal disposition MUST name the removed identity and say whether it was retired or compromised. Public dispositions MUST be ordered in the Rote log by the anchor transition that carries them. A realm MAY use its own authenticated log; without one, historical acceptance follows LIFE-12.
- untrusted input
- accepted
- rejected
These rules follow the TUF root-update specification; a consumer need not implement the rest of TUF.
4.3. Signatures
-
TRUST-9 A signer MUST use a technology in permitted signature technologies; Rote defines no signature scheme of its own. A verification profile MUST fix which technologies apply to its ecosystem and the minimum key sizes and hash algorithms it accepts for each, and a deployment MUST name the technology and profile it uses for its own records.
-
TRUST-11 A realm member signing with SSH MUST sign under a Rote-specific signature namespace.
-
TRUST-12 A binding record that names a package artifact MUST carry the artifact’s SHA-256 digest beside its
ArtifactId; the two are the same digest where the content hash is SHA-256. [SLSA-PROVENANCE]
A consumer needs only the technologies its trust policy requires. The operator’s own signing technology is deferred to the production profile (§ 23.4 DEC-4 — Operator signing and anchor recovery).
| Technology | Used for | A verifier MUST check |
|---|---|---|
| GPG detached signature | Package artifacts; publisher index data; realm records; operator records if its held-key profile selects GPG | Exact signed bytes; signing-time and revocation policy (AUTH-7); key matched (match rules) or anchored |
| Sigstore bundle | Package artifacts; operator records; publisher index data; realm records | Bundle against the accepted Sigstore trust root; authorized certificate issuer and subject; required log/timestamp evidence; certificate validity at the evidenced time (AUTH-7) |
| in-toto statement, SLSA provenance | The layout of a binding record (TRUST-13); build provenance as match evidence | Subject digests equal the bytes in hand; expected predicate type; envelope signature under another row |
| SSH signature | Realm records | Key listed in the realm anchor; Rote signature namespace |
4.4. Binding records
-
TRUST-13 A binding record MUST be a signed statement with three parts: subject digests that name what it binds, a predicate type that names the record kind, and a predicate that is a canonical object of that kind’s schema. It MUST name its signer’s identity and tier. The signature MUST cover the exact statement bytes, and
BindingRecordIdMUST be the digest of those bytes. The statement MUST use the in-toto statement layout [IN-TOTO-STATEMENT], and MUST carry the predicate as one JSON object holding the predicate’sSpecId, itsObjectId, and its canonical bytes in base64; a verifier MUST reject a statement in which the three disagree. The bootstrap profile fixes the exact signed bytes and the envelope (BOOT-1). An in-toto predicate is a JSON object, so a canonical Bebop predicate needs one defined wrapper (§ 23.1 DEC-1 — Binding envelope and bootstrap wire format).
| Kind | Predicate fields | Lifetime |
|---|---|---|
| Admission | subject kind (artifact or publisher-index), purl, ArtifactId, SHA-256, VerificationProfileId, match rule, digests of upstream signatures and attestations; publisher-index adds the exact admitted UnitRoot or LayerRoot and the publisher Eligibility BindingRecordId
| Permanent, under status |
| Refusal | purl, reason class, the production request descriptor it answers when the reason is request-level (PUB-29), expiry | Expires; not logged |
| Result | ActionKey, typed output root (UnitRoot, LayerRoot or NormalizedIndexRoot); artifact Admission for public artifact extraction; normalization adds SelectionRoot, normalization and profile identities, and committed transformation inputs
| Permanent, under status |
| Eligibility | purl, ArtifactId and SHA-256 for a package artifact, root, provenance class
| Permanent, under status |
| Delivery | root, delivery directory digest | Permanent |
| Discovery | purl; for each unit root, its recipe, condition classes, and supported operations, and the digest, byte length, and schema of its root bundle; the complete layer set; sequence; expiry | Expires |
| Status | one root, state, successor or reason class, purge scope, sequence, expiry | Expires |
| Memo | complete normalization inputs and parameters (EXEC-5), output leaf ObjectId
| Optional exchange; valid only in the signer’s trust domain |
| Anchor | trust domain, signing identities and permissions, anchor-update authorities and signature threshold, version, predecessor anchor, expiry, removal dispositions | Versioned; expiring |
| Kind | Operator | Publisher | Realm |
|---|---|---|---|
| Admission | |||
| Refusal | |||
| Result | |||
| Eligibility | index data about its own exact package artifact | ||
| Delivery | |||
| Discovery | |||
| Status | public publication, including publisher data | realm publication | |
| Memo | |||
| Anchor | its anchor-update authorities | its anchor-update authorities |
4.5. Verified and fully matched
-
TRUST-18 A verification profile MUST state how a purl resolves to exact artifact bytes on the canonical registry, where signing assets are found, which match rules are available, and what authenticated evidence authorizes a publisher or delegated builder for that coordinate. A repository URL asserted by a submitter is not such evidence. It MUST NOT assert a registry behavior not confirmed for that registry.
-
TRUST-19 The operator MUST treat a purl as verified and fully matched only when all of the following hold, and MUST NOT admit a package that is not.
-
The purl names a concrete version and enough qualifiers to resolve one artifact under the verification profile. The operator computes its
ArtifactIdand separately checks each required registry digest under that digest’s own algorithm; digests under different algorithms are not compared as values. -
The name and version in the artifact’s own metadata equal the purl’s.
-
Evidence for that artifact digest is retrievable: a publisher’s signature or attestation, or the registry’s own attestation of the bytes it serves.
-
Each signature in that evidence verifies (permitted signature technologies) under the profile’s signing-time and current-revocation rules (AUTH-7).
-
A match rule (match rules) ties the evidence to the coordinate.
-
-
TRUST-20 An admission record MUST state the match rule, the exact artifact identities, the authenticated signer, builder, or registry identity, and the evidence for its coordinate authority. It MUST also name, by digest, each upstream signature or attestation over the artifact that the operator retrieved, such as an in-toto statement, whether or not the match rule relied on it. Its verification profile MUST make that evidence independently checkable.
-
TRUST-23 A trust policy MAY set a minimum match rule; the operator’s default accepts registry-bound, provenance-bound, and registry-attested. An admission record under the registry-attested rule MUST say so, and a consumer MUST NOT treat it as evidence of a publisher’s identity.
| Rule | The signer is tied to the coordinate because |
|---|---|
| Registry-bound | The registry asserts that the identity belongs to the coordinate’s publisher; the profile names the registry mechanism |
| Provenance-bound | An attestation binds the exact artifact to the expected source and build parameters, and the profile authenticates its signer, builder, or workflow as authorized for that coordinate and source; matching repository text alone is insufficient (AUTH-6) |
| Continuity-bound | The same key signed an earlier version of the coordinate that was admitted under another rule, per the Rote log. It cannot admit a coordinate’s first version. It stays disabled (§ 23.8 DEC-8 — Initial ecosystem and condition scope, and publisher onboarding) |
| Registry-attested | The registry itself signs, or commits in a checksum database the profile authenticates, the exact artifact bytes it serves for the coordinate. Where a registry does neither, the operator fetches the bytes from the canonical registry over an authenticated channel and records their digest in its signed, logged admission. Either way this shows what the registry serves, not who published it, so it is a separate rule that a policy can see and refuse |
Evidence note: every first-wave experiment admitted an artifact because its digest equalled the one its lock pinned from the registry, which is the registry-attested rule without a signed admission. No run retrieved or verified a publisher signature or an upstream attestation, so admission rates under the other rules are unmeasured. Several registries publish no publisher signature tied to a coordinate, so those rates may be low; FLOW-2 requires them per rule before an ecosystem is claimed.
Rationale for accepting the registry-attested rule by default: a unit describes bytes, and a consumer’s lock pins the bytes it installs by the same digest (CLOSURE-1). An index of those exact bytes is correct for that consumer whoever published them. A publisher signature would add assurance about origin that the consumer’s own package manager did not require either.
-
AUTH-6 A provenance-bound match MUST check the attestation kind, artifact digest, source identity, authorized signer, builder, or workflow, and security-relevant build parameters against the profile’s expectations. The verification profile MUST name the authenticated source of those expectations and the scope of any delegation. It MUST reject unexplained parameter or authority mismatches. Authority to build an artifact MUST NOT imply unrestricted authority to sign index data for other coordinates or record kinds. SLSA verification guidance
-
AUTH-7 Each verification profile MUST define revocation, expiration, retirement, and compromise handling, and MUST separate verification under a currently authorized key from acceptance based on historical signing-time validity. Historical acceptance MUST rely on the independently trusted timestamp, log, or prior-verification evidence the profile names, never the signer’s own timestamp. Current-key verification needs an external timestamp service only where the profile requires one. Signing of anchored Rote records follows the operator’s or realm’s policy, including private-service restrictions (PRIV-1 to PRIV-3).
4.6. Publisher-shipped index data
Publisher data reaches the public index only through operator admission. Enabling it for an ecosystem requires a tested verification profile and companion-bundle distribution.
-
TRUST-24 The operator MUST admit publisher-shipped index data only when all of the following hold.
-
The package is verified and fully matched.
-
The publisher-signed Eligibility record names its exact
ArtifactId, SHA-256, and submitted root. -
The signer is the identity the match rule authorizes for that package.
-
Every condition class in the unit is one PUB-4 permits.
-
Every object passes SAFE-1 validation.
-
The complete publishable graph passes the publication gate (PUB-13).
The operator MUST NOT admit index data about a package from a signer that is neither the operator nor that package’s publisher.
-
-
TRUST-25 The publisher MUST sign Eligibility over its exact submitted root and package inputs, and MUST NOT sign a Result. For each publisher root it accepts, the operator MUST sign and log a publisher-index Admission that binds the unchanged root and that Eligibility’s
BindingRecordIdto the verified artifact, then sign and publish Delivery, Discovery, and Status for the root and log the records LIFE-15 requires. The Admission MUST refer to the root and Eligibility; the graph the publisher signs MUST NOT be required to include that Admission and MUST NOT include the operator’s Delivery, Discovery, or Status records. Artifact Admission alone MUST NOT authorize an index bundle. The Admission points to the Eligibility and never the reverse, so publisher signatures survive operator repacking of unchanged content. -
TRUST-26 The operator MUST keep admitted publisher data as separate units or layers of provenance class publisher, MUST NOT merge it into or relabel it as operator output, and MUST apply the usual validation, confidentiality, and native-artifact rules to it. It MUST NOT represent admission or delivery signatures as evidence that it ran the publisher’s recipe. It MUST NOT issue an operator Result for publisher data unless it ran the recipe itself through the operator pipeline; it MAY then compare normalized roots, recording agreement as reproduction evidence and disagreement as a conflict.
-
PUBLISHER-1 A consumer MUST NOT treat a publisher bundle as public Rote index data unless the operator admitted it; this specification defines no direct-acceptance path. To select public publisher data, a consumer MUST verify the publisher Eligibility and the operator publisher-index Admission, check that their artifact and root bindings agree and that the Admission names that exact Eligibility, and require that its trust policy explicitly accepts both the matched publisher identity and tier for the namespace and operator admission for public publication.
-
PUBLISHER-5 If withholding or modifying content would change a submission’s canonical root, the operator MUST either refuse the root or obtain a new publisher-signed Eligibility over a resealed graph with accurate coverage and repeat admission. It MUST NOT attach the old publisher signature to a modified root.
-
PUBLISHER-6 The operator is the lifecycle authority for admitted publisher roots. A publisher withdrawal request or upstream revocation of the publisher’s signing identity MUST enter operator re-evaluation under LIFE-2 and LIFE-13, and operator Status expresses the result. Consumers MUST still enforce publisher-identity and trust-policy validity as well as operator status.
4.7. Trust policy and verification order
| Trust policy field, per namespace pattern | Governs |
|---|---|
| Accepted operator | TRUST-29 |
| Pinned resolver | REALM-7 |
| Accepted tiers and identities per record kind | TRUST-2 |
| Minimum match rule | TRUST-23 |
| Automatically selectable provenance classes | MODEL-24 |
| Log and freshness conditions | LIFE-8, LIFE-17 |
| Policies accepted as equivalent | SEL-6 |
-
TRUST-29 The default trust policy shipped with client tools MUST name the one operator it accepts for each public namespace, accept the consumer’s own realm for its pinned namespaces, and accept nothing else.
-
TRUST-30 For each subject and operation, a consumer MUST make each acceptance below depend on the checks it lists, and MUST stop the dependent branch when a check fails. Independent candidates, packages, and tasks do not wait for one another.
-
Namespace: the resolver and destination of REALM-7, with labels checked before any request leaves the realm.
-
Discovery: signer, freshness, and sequence (LIFE-10) and public log evidence (LIFE-17); the stale-use exception of LIFE-8 never covers first acceptance.
-
Status: active and fresh (LIFE-4), or an accepted view within LIFE-8; a known withdrawal, purge, or disqualifying authority compromise blocks use.
-
Binding records: eligibility and result records from an accepted tier for operator-produced or realm-produced data, or the records of PUBLISHER-1 for public publisher data; these paths MUST NOT be substituted for each other. Public artifact admission MUST use an acceptable match rule.
-
Selection and binding: the facts an operation uses MUST belong to its exact selected inputs and closure, MUST be bound by the link step (LINK-2), and MUST belong to an immutable view or an explicitly provisional local revision (PIPE-8); a final
SelectionRootis needed only to claim final selection. -
Objects: SAFE-1 applies to every fetched object. Items 1 to 3 authenticate an object’s expected identity and transfer authority, so it MAY be fetched and validated once they pass; semantic use needs all of items 1 to 6.
-
Normalization: where a history-independent result is claimed, SEL-8 applies, and the root MUST NOT include rejected candidates or depend on completion order.
- untrusted input
- accepted
- branch stopped
4.8. Scope of operator trust
-
TRUST-31 A consumer MUST NOT treat an operator signature as evidence that the package is benign, that the extractor is free of defects, of coverage beyond what the unit declares, that the operator ran a publisher’s recipe merely because it admitted the publisher’s root, that prose is safe to act on, or of anything about realm data.
5. Public indexing
An explicit indexing request asks the operator to produce an index. A discovery lookup reads what already exists and never starts production.
5.1. Pipeline
-
PUB-1 The operator MUST start production only on an explicit indexing request, including one from a backfill campaign (BACKFILL-2). It MUST publish index data, including any partial index, only for a verified and fully matched artifact.
-
PUB-2 The operator MAY use realtime edge execution, queued execution, or both; every mode MUST yield identical roots for the same declared effective inputs and recipe.
-
PUB-3 The operator MUST identify a job by its
ActionKey, so that concurrent requests coalesce, and MUST answer a queued request "pending" with a retry hint. -
PUB-4 The operator MUST produce a unit only under the condition classes its language profile declares for public production, and against a producer context it resolves itself from the release’s own published metadata. It MUST NOT accept a caller-supplied condition class, dependency version, or other context. The language profile MUST state how the producer context is chosen, so that it depends only on the release and a recorded registry state. A unit is the same for every consumer; a consumer’s own resolution is handled by the link step, not by producing again.
-
PUB-6 For operator-produced indexing, the operator MUST run the production stages in order and end the run where the table says. A run also ends with a refusal or a retryable failure (PUB-20) whenever a stage’s requirements cannot be met.
| Stage | Action | The run ends here when |
|---|---|---|
| 1. Canonicalize | Normalize the purl; rate-limit requests | The purl has no concrete version: answer with an unsigned request error. It has no verification profile or is outside a known public registry: refuse as ecosystem unsupported (PUB-20)
|
| 2. Look up | Serve a current discovery record or an unexpired signed refusal that satisfies the request (PUB-29) | The request is satisfied, or it is a discovery lookup (PUB-27) |
| 3. Resolve | Fetch the artifact from the canonical registry, and its signing assets through the profile’s permitted retrieval paths (LIMIT-1, LIMIT-2); compute ArtifactId
| |
| 4. Verify and match | Apply TRUST-19; sign an Admission record | A condition fails: refuse (PUB-20) |
| 5. Extract | Run the pinned recipe in a sandbox with no network access and fixed resource budgets, once per declared condition class and its producer context | A budget is exceeded, subject to PUB-19 |
| 6. Seal candidate | Merge the classes into conditional facts (MODEL-32), build the interface tables and the interface artifact, assign canonical local identifiers, partition (STORE-3), and compute the candidate UnitRoot, not yet publishable
| |
| 7. Gate | Apply PUB-13 | The profile requires refusing the unit |
| 8. Sign | Sign Result, Eligibility (class operator), and Delivery records over the final gated root | |
| 9. Publish | Write objects and the root bundle to static storage, issue an active status record for the root and a discovery record that lists it, append the records to the Rote log, and publish a checkpoint |
-
PUB-29 An explicit indexing request MUST carry a production request descriptor: the purl, the recipe or capability wanted, and the condition classes and operations wanted, each defaulting to the language profile’s public defaults. An existing discovery record satisfies a request only when it lists an active unit root whose recipe, condition classes, and operation coverage cover the descriptor. An unexpired refusal satisfies a request only when its reason is artifact-level, or when it is request-level and its descriptor covers the request (PUB-20). A request that is not satisfied MUST proceed past stage 2, whatever older outcomes exist for the same purl. Running a satisfied request again, or replacing an active root of the same recipe, MUST use an operator-authorized maintenance path; a public caller MUST NOT be able to force a rebuild. Without the descriptor, an old index for a release would stop every later recipe or capability from running for it.
-
PUB-13 At the gate the operator MUST apply the profile’s three rule sets, on credentials and secrets, on disclosure of non-public content, and on redistribution, to every facet and auxiliary object proposed for public publication, including source-derived names, literals, mappings, diagnostics, and interface artifacts, and MUST withhold affected content or refuse the unit as the profile permits. Every transformation that changes published facts or coverage, including filtering and resealing, MUST be deterministic given the inputs, policy revisions, and tool revisions committed by the recipe and
ActionKey. Policy MAY later refuse, withhold, or withdraw a computed result but MUST NOT substitute different content under the same action. After changing operator-produced content, the operator MUST reseal the graph and recompute its root and coverage; publisher modifications follow PUBLISHER-5. -
PUB-18 The signer MUST sign a public record that endorses a produced root (Result, Eligibility, Delivery, Discovery, or an active Status) only for a final root that passed the publication gate for an admitted artifact, and only the records authorized for the request’s path, operator execution or publisher admission. Admission, Refusal, Anchor, and adverse Status records endorse no produced root and are not limited by the gate.
-
PUB-19 On an exceeded budget the operator MUST refuse unless the profile defines a deterministic partial-result contract satisfying EXEC-1 to EXEC-3; a published partial unit MUST declare its omitted scope in coverage.
5.2. Deterministic partial execution
-
EXEC-1 A profile permitting partial results MUST define the selected work and coverage as a deterministic function of the declared inputs, recipe, and effective work budget, including stable work ordering or partition selection and how unsupported work counts in coverage. Worker count, queue placement, and completion order MUST NOT affect the published facts.
-
EXEC-2 The
ActionKeyMUST commit, directly or through the pinned recipe or profile, to every output-affecting budget and truncation rule. A producer MUST NOT reuse a result under a different budget or rule without a profile-defined sound equivalence. -
EXEC-3 If elapsed-time cancellation, worker loss, or implementation-specific resource exhaustion prevents completing the deterministic plan, the producer MUST retry or refuse, and MUST NOT publish the partitions that happened to finish. It MAY keep internal checkpoints to resume the same plan but MUST NOT publish them or treat them as evidence of completeness.
5.3. Retrieval and worker boundaries
-
PUB-16 The extractor MUST treat the artifact as hostile and MUST NOT run its build scripts, macros, plugins, or generators except as the pinned recipe provides inside the sandbox. Extraction workers MUST NOT hold or acquire signing identities or publication credentials.
-
LIMIT-1 The public fetcher MUST check the destination, scheme, and resolved address of every artifact and signing-asset request, redirect, and connection attempt against a locally approved verification profile. It MUST keep the approved destination through connection establishment, verify the expected transport identity, and refuse local, link-local, and private network services. Artifact-provided URLs MUST NOT widen that policy, and retrieval MUST bound bytes, redirects, attempts, and elapsed time.
-
LIMIT-2 Before extracting an archive or container, the pipeline MUST impose cumulative compressed and expanded byte limits and entry-count, nesting, time, and storage limits, whether or not the artifact’s signature is valid. It MUST keep every created path, including through links, inside the job’s isolated extraction root, and reject entries that escape it or create unsupported special files.
-
LIMIT-3 The trusted pipeline controller MUST bind each worker invocation and its output to the admitted artifact,
ActionKey, pinned recipe, and declared context over an authenticated job channel. Sealing, gating, and signing MUST use that binding and verify output identities, not a worker’s own admission or action claim.
- untrusted input
- holds signing or publication authority
- published
5.4. Refusal
-
PUB-20 A signed package refusal MUST carry exactly one of the reason classes below, MUST expire, and MUST NOT be logged. Expiry lets a later-signed package be retried, and anyone can provoke a refusal for an arbitrary name. A request-level refusal MUST name the production request descriptor it answers and MUST NOT block a request that descriptor does not cover. A transient network, upstream-service, or worker failure MUST instead be reported as retryable and MUST NOT be cached as a refusal. A pending or retryable response confers no index or artifact authority. A refusal response SHOULD state that the package can be indexed in the consumer’s realm.
Artifact-level reasons, which hold for every request about the artifact:
-
no signing assets
-
signature invalid
-
signer not matched
-
registry digest mismatch
-
coordinate disagreement
-
ecosystem unsupported
-
artifact malformed or unsafe
-
retrieval policy rejected
Request-level reasons, which hold for one recipe, condition class, or capability:
-
resource budget exceeded
-
publication gate failed
-
condition class or capability not offered
-
5.5. Serving
-
PUB-24 The operator MUST serve discovery at a URL derived from the canonical purl, cacheable for its validity period; discovery GET and HEAD requests MUST be discovery lookups (PUB-27). Static hosting MUST suffice to deliver a published index, and static mirrors need only the read path. [RFC8246] [RFC9110]
-
AUTH-8 The authoritative public store and discovery service MUST accept mutations only from authenticated operator publication services; public callers MAY request indexing and read published data. A future submission area MUST be a separately authorized namespace whose contents confer no publication or result authority.
-
PUB-26 A consumer MUST NOT trust a cache or mirror for more than byte delivery, and MUST verify every response per TRUST-30.
5.6. Discovery lookups and indexing requests
-
PUB-27 A discovery lookup MUST return an existing eligible discovery record, a still-valid refusal, or a bounded availability outcome such as unavailable or already pending, and MUST NOT enqueue extraction, admit a package, or otherwise start production. An unavailable index is not evidence that the package is absent, unsafe, or ineligible. A consumer MUST use a known lookup-only service or profile for speculative candidates and MUST NOT fall back to a request that starts production.
-
PUB-28 An explicit indexing request MUST be a separate operation from a discovery lookup, subject to the service’s admission, quota, and job-coalescing rules. Canceling one request or subscription MUST NOT cancel shared production that other accepted requests need. An availability response MUST state any cache lifetime or retry hint, MUST NOT be cacheable indefinitely, and MUST NOT carry the authority of a signed refusal.
5.7. Useful coverage and launch profiles
-
FLOW-1 A language profile MUST separate intrinsic facts, which hold for a release whoever consumes it, from binding, which says what an edge or a conditional fact means in one closure. A producer publishes the intrinsic facts with their conditions and witnesses; a consumer computes the binding by the link step (§ 9.3 The link step). Each advertised operation MUST identify the facets and the binding it needs. A consumer MUST judge applicability locally by the link step, and MUST NOT use a fact produced under another condition class or dependency resolution unless the fact’s condition and witness hold in its own closure. A fact whose applicability cannot be shown MUST stay unbound or not produced. An authorized realm producer MAY compute missing facts for its own closure, and a consumer MUST then report them as realm-produced, not as public coverage.
-
FLOW-2 Before claiming support for an ecosystem, the project MUST publish a reproducible coverage evaluation over representative dependency closures and real build configurations, stating its corpus and configuration assumptions. Every lockfile of the corpus MUST resolve to the same artifacts from an empty cache. It MUST report each of the following separately:
-
artifact admission, per match rule, with refusals;
-
condition coverage: consumer instances whose condition assignment lies in a produced domain;
-
binding coverage per fact kind: bound, unbound by cause, and not produced;
-
bound-but-different facts against a full local analysis, which MUST be zero (LINK-4);
-
dependency artifacts parsed, compiled, or extracted on the client, which MUST be zero; and
-
supported-operation coverage, including partial analysis.
-
The launch profile fixes the initial ecosystem, mandatory operations, and their success criteria (§ 21.1 Bounded launch profile).
5.8. What a producer publishes
-
PUB-30 For each release it indexes, a producer MUST publish one unit that holds under one root:
-
the release’s intrinsic facts for every declared condition class, merged into conditional facts (MODEL-32);
-
the producer context of each class (MODEL-33);
-
its interface tables (MODEL-35);
-
its usage sites with per-target edge counts (MODEL-7);
-
its linkage facts, where the release forwards to another artifact (MODEL-39); and
-
its interface artifact (MODEL-40).
It MUST also publish an interface table for each artifact of a producer context that has no unit of its own (MODEL-36).
-
-
PUB-31 A producer MAY build binding tables (MODEL-38). Demand for a table MUST be stated as a unit, a condition class, and a dependency’s witness class, and MUST NOT carry a consumer’s identity, lockfile, or private coordinate. A consumer MAY request a table only for a pair of public releases, as an explicit indexing request. A campaign MAY schedule tables for the dependency versions that public lockfiles commonly resolve (BACKFILL-1).
Evidence note: producer cost was not optimized in the first wave. Building binding tables cost about 1.5 CPU seconds each for Rust and about 6 for Kotlin (experiment 11); class and member tables for 22 producer-context jars cost 9.9 CPU seconds and 0.9 MB in total.
6. Backfill and incremental maintenance
Backfill indexes public artifacts before a consumer asks for them, builds search projections from published units, and revisits the corpus when a producer, language profile, or resolver gains a capability.
6.1. Corpus selection and explicit requests
-
BACKFILL-1 The operator MUST authorize public backfill with a campaign descriptor naming the selection policy, exact selected artifacts, condition classes, operations, producer or projection profiles, and work budgets. Selection MAY use any recorded policy, such as popularity, dependency reach, or curation, but a mutable ranking such as "top 1,000" MUST be resolved to a versioned exact inventory before dispatch; a later change is a new campaign revision.
-
BACKFILL-2 A campaign MUST issue explicit indexing requests through the normal production path, under all its admission, context, gate, signing, and lifecycle requirements; membership, importance, public availability, or demand MUST NOT substitute for admission or authorize arbitrary repository crawling. Prior validation MUST be rechecked where current authority or status requires it. Discovery lookups, solver requests, and search misses MUST NOT create campaign work. A search-projection backfill over admitted roots need not re-extract artifacts whose required facts and current acceptance evidence are available.
-
BACKFILL-4 A campaign MUST state whether it covers only the named artifacts or a bounded dependency expansion, and MUST record each added artifact by exact identity. Missing condition classes, unresolved dependencies, and unavailable required facets MUST remain explicit gaps, never filled with a nearby artifact or condition class.
6.2. Resumption, scheduling, and coverage
-
BACKFILL-5 A scheduler MUST keep durable state for each work item (pending, running, completed, refused, retryable failure, obsolete, or canceled) and MUST reconcile it against the current campaign revision after a restart or lost notification. A work item MUST count as completed only when a checkpoint names its exact inputs and verified outputs; a queue acknowledgment is not enough.
-
BACKFILL-6 Production work MUST coalesce by
ActionKeyand compatible authorization scope, and search-projection work by exact admitted inputs, scope, and projection recipe, including output-affecting model or resolver configuration. Delivery retries MUST be idempotent at publication and index-application boundaries. Canceling a campaign MUST withdraw only its own requests and MUST NOT cancel work another accepted request still requires. -
BACKFILL-7 The operator MUST bound campaign concurrency, fetched and expanded bytes, extraction, embedding, indexing, storage, retries, and queued work, and campaign work MUST yield to required foreground work under an explicit scheduling policy. Priority MAY change when an artifact becomes available but MUST NOT change its version selection, canonical result, provenance, or coverage.
-
BACKFILL-8 Campaign reports MUST separate inventory membership, artifact admission, condition coverage, canonical production, binding-table construction, projection construction, and query-visible readiness, and MUST report progress and gaps per advertised operation, including denied or unsupported work.
-
BACKFILL-9 A campaign MAY expose completed artifacts or projections before it finishes; a search corpus exposed during backfill MUST state its actual serving inventory and operation coverage, not the campaign target.
-
BACKFILL-10 A superseded campaign or late worker result MUST NOT overwrite a newer accepted inventory, restore removed membership, or restore withdrawn content. Before applying a completion, the receiver MUST recheck that the work is still requested, current authority and status, and the expected predecessor or revision of any mutable publication pointer.
6.3. Incremental changes to facts and derived indexes
-
CHANGE-1 A producer or derived-index service that claims incremental maintenance MUST keep a dependency inventory linking its outputs to the exact source artifacts, units, layers, context, profiles, recipes, and other output-affecting inputs. Derivation and scheduling metadata MUST stay outside history-independent normalized fact bytes. It MAY invalidate a larger domain instead of proving a smaller one sufficient.
-
CHANGE-2 A change MUST create new immutable facts and roots where canonical inputs or results differ, and MUST NOT mutate the bytes named by an existing identity. Unchanged canonical leaves and eligible projection payloads MAY keep their identities. A new producer recipe MUST have a new action identity even when its output is unchanged.
-
CHANGE-3 An incremental change set MUST state additions, replacements, and removals against an exact predecessor and name the resulting revision or inventory. A replacement MUST remove the superseded contribution, not only add new facts. An interrupted consumer MUST detect a missing predecessor, a revision gap, or an incompatible recipe, and MUST reconcile from an authoritative inventory before claiming to be current.
-
CHANGE-4 A producer MUST invalidate resolution-dependent facts when a declared resolution input changes, such as a required binding, lookup scope, or candidate set, and MUST invalidate the outputs whose dependency contract covers a changed documentation, declaration type, or source position. A reference that becomes resolved, becomes unresolved, or changes target MUST trigger replacement of its facts and derived postings even if its source text is unchanged. Text or vector reuse MUST depend on the actual projection or embedding input, not on unchanged names, and every hit MUST carry the correct source and semantic bindings for its serving revision.
-
CHANGE-6 After the same declared work, incremental maintenance MUST converge to the canonical facts and coverage of a clean production run, and derived search MUST converge to the same logical documents, membership, and relationship postings under the same projection profile. Approximate vector structures and ranking need not be byte-identical, but MUST NOT change those logical bindings or claim deterministic ranking unless their profile establishes it.
-
CHANGE-7 Services MUST apply current withdrawal, purge, and authorization restrictions even while a backfill, incremental update, or replacement index is incomplete, and MUST keep enough derivation metadata to remove affected access paths and derived content, including embeddings and cached snippets. A late replay or rebuild MUST NOT restore purged content.
-
CHANGE-8 Notification streams MAY speed up maintenance but MUST NOT be the only means of recovery. A service MUST be able to rebuild from retained, currently admissible canonical inputs and a versioned inventory, or report the inputs it can no longer reconstruct. Recovering Rote facts MUST NOT require search index files or backend row identifiers.
6.4. New types, analyses, and resolution over time
-
EXTEND-1 A new language, type form, relation, or analysis MUST have an immutable semantic specification and exact schemas for its subjects, context, dependencies, conflict behavior, and coverage. Linked enrichment and versioned replacement schemas MUST follow MODEL-28 and EVOLVE-1 to EVOLVE-7; an existing schema identity MUST NOT gain fields or meanings.
-
EXTEND-2 A new extractor or resolver capability MUST name its pinned recipe and the exact profiles and condition classes it produces facts for. A service MUST be able to select historical admitted inputs for capability backfill and report which requested operations stay unsupported meanwhile. Installing a new decoder or advertising a capability MUST NOT imply that historical artifacts have been reanalyzed.
-
EXTEND-3 Enrichment MUST be a separate layer when the base facts keep their meaning. A correction or replacement MUST explicitly supersede its affected domain under the applicable schema and selection policy, so stale claims never appear current beside new ones.
-
EXTEND-4 A search projection MUST declare how each supported type and relation feeds filters, lexical fields, semantic input, and typed postings. It MAY leave an unknown optional form opaque or omit it with reduced coverage. An unsupported form that an operation requires MUST block the operation or yield an explicitly incomplete result. Unsupported semantics MUST NOT be rendered as an unconstrained type, an absent reference, or a complete empty domain.
-
EXTEND-5 A changed search schema, tokenizer, embedding profile, or resolver mapping MUST be built and evaluated as an identified projection generation, and the service MUST check its schema compatibility, source revision, and indexing readiness separately before switching operations to it. Old and new generations MAY serve in parallel during migration, but a response MUST NOT combine incompatible field meanings, vectors, or resolution contexts.
-
EXTEND-6 Conformance tests MUST compare clean and incremental production across a new artifact version, a documentation-only edit, an added overload, a newly supported type, a newly resolved and a retracted reference, a deleted subject, and a changed projection or embedding profile. They MUST also cover restart during backfill, duplicate and out-of-order delivery, concurrent foreground requests, withdrawal during rebuild, and migration with partially indexed historical inputs, stating expected identities, invalidation, coverage, and query-visible membership.
7. Private realms
A realm controls its own signing identities, resolver, and readers. It composes private facts with public units without modifying those units or publishing the private relationships.
7.1. Signing and composition
-
REALM-1 An identity listed in the realm anchor MUST sign every private binding record, and the realm MUST hold its own signing keys in every deployment.
-
REALM-2 A realm MUST NOT write its records to the Rote log; it MAY run its own log.
-
REALM-3 A realm MUST accept another realm’s data only for packages that realm publishes, and only where its trust policy names that realm’s identity for the namespace.
-
REALM-4 A closure manifest MUST bind each import slot to an exact public
UnitRootor a private unit and MUST NOT rewrite a public unit. -
REALM-5 A producer MUST give the realm’s label to every private unit, closure manifest, layer, usage-site facet, anchor table, facet directory, facet root, query, source map, recipe, provenance record, and consulted-set record.
-
REALM-6 A producer MUST NOT emit a public object, record, or log entry that references a private object.
-
REALM-7 A trust policy MUST pin each private namespace to the realm’s resolver. A consumer MUST treat a coordinate as public only when its lockfile or resolver configuration records that the coordinate resolved from a public registry that a verification profile names; a name or a namespace pattern alone MUST NOT establish that. It MUST NOT send any other coordinate to a public resolver, nor fall back from a private resolver to a public one. In a flat namespace, such as unscoped npm names, a private package can carry any name.
-
REALM-8 A client MUST send a whole-lockfile request only to a service inside its realm. That includes a closure-manifest lookup by lock digest, and a lookup by an
InstanceKeywhose subtree contains a private instance. It MAY batch-resolve public coordinates, and look up subtrees made only of public instances, at a public service. -
REALM-9 A derived object’s authorized readers MUST be contained in the intersection of its inputs' authorized readers; public inputs add no restriction. Realm and group identities MUST be qualified by their issuing authority. An implementation that cannot represent or enforce the intersection MUST reject the composition, and MUST NOT publish as readable any output whose reader intersection is empty or unrepresentable.
-
REALM-10 A service MUST NOT filter a shared derived object per reader; a principal authorized for a subset of layers receives its own selection under its own
SelectionRoot. -
REALM-11 A service MUST make a private object and a nonexistent object indistinguishable to an unauthorized principal in status and error body, and SHOULD in timing.
-
REALM-12 A store shared by realms MUST NOT skip or accelerate an upload because another realm holds the same bytes, and MUST NOT expose have-lists across realms.
- signed record or signing authority
- private to the realm
7.2. Local composition service
-
REALM-13 The local composition service MUST:
-
listen only on an operating-system-local channel or the loopback interface;
-
reject a request whose Origin or Host header is not expected;
-
require a per-session secret that a web page cannot obtain;
-
authorize every object named in a batch individually, and again at each subscription event; and
-
issue session handles that are unguessable and bound to one principal.
-
-
REALM-18 A realm MUST NOT publish a live view or let it leave the realm.
7.3. Deployment
| Option | Private data and queries live in | The operator observes |
|---|---|---|
| Operator-hosted realm | A realm-scoped store and resolver run by the operator | Private data and all fetches |
| Private cloud account | The same service in the organization’s own cloud account, with an in-realm mirror | The mirror’s pulls of public objects |
| Behind the firewall (future) | Self-hosted store, resolver, and mirror | The mirror’s pulls, or nothing if fed offline |
-
REALM-20 A self-hosted mirror MUST obtain current status records and required checkpoints. An air-gapped consumer MUST enforce an explicitly configured stale-use policy under LIFE-8, and an offline snapshot MUST keep the signed freshness and authority evidence that policy needs. Disconnection MUST NOT reset expiry or hide a known withdrawal.
7.4. Private identifier confidentiality
-
REALM-21 A realm MUST treat every identifier of private content as labeled metadata and MUST NOT emit it in public outputs, public logs, or public resolver requests. Such an identifier MAY enter another private administrative boundary only through cross-realm sharing under PRIV-4. Keyed private identifiers are rejected (§ 22 Rejected proposals).
7.5. Private services, derived labels, and operational egress
-
PRIV-1 Private identifiers, coordinates, paths, source excerpts, context, queries, confidential signing identities, and access metadata MUST keep their labels when copied into diagnostics, crash reports, telemetry, support bundles, or model-service requests. A service MUST authorize the destination and its readers before exporting that material, and MUST redact it before it reaches an unauthorized destination. Ordinary logging, failure reporting, or model invocation MUST NOT implicitly authorize export.
-
PRIV-2 A realm MUST explicitly configure the external services that may receive its labeled data or metadata, including signing, identity, certificate, transparency-log, and timestamp services, and MUST authorize each for the specific labels it receives and the outputs it produces; an allowlisted network endpoint alone is insufficient. REALM-7 also applies to these paths.
-
PRIV-3 A realm signing path MUST NOT publish private digests, binding records, identity details, or other labeled metadata to a public certificate or transparency log. A realm using Sigstore MUST use trust roots and services whose disclosure behavior satisfies its labels and whose required evidence the verifier supports; otherwise it MUST use another permitted signing path. Signing with required verification evidence suppressed MUST NOT be presented as the original signing profile. Public Sigstore logs digests, signatures, and certificates publicly (signing flow).
-
PRIV-4 Cross-realm sharing MUST explicitly map receiving principals and services to the source’s reader constraints and MUST preserve those constraints on copies and derived results. Equal group names, equal content digests, or acceptance of a signing identity MUST NOT establish that mapping.
-
PRIV-5 Labels MUST cover derived routing, projection, filter, dictionary, and diagnostic metadata as well as semantic leaves. A service MUST check authorization before revealing these objects or their existence, including from cache, and changing physical packaging MUST NOT change the authorized-reader set.
8. Data model and identity
A unit holds the facts of one release that do not depend on who consumes it. Its references into other releases are symbolic and carry witnesses, and a consumer binds them to its own closure (§ 9 Closures and binding). Facts are stored in separately rooted facets, interpreted by exact schemas, and extended by linked layers. A Merkle hierarchy commits to the resulting objects, their scope, and their coverage.
8.1. Graph and facets
-
MODEL-1 The common model MUST represent declarations, containment, scopes, references, import and export relations, source occurrences, documentation, type terms, and typed external associations. [SEMANTICDB] [SEMANTICDB-SCHEMA] It MUST also represent what binding needs: conditions, symbolic edges, witnesses, interface tables, binding tables, and linkage facts (§ 8.4 Conditions, § 8.5 Symbolic edges and witnesses).
-
MODEL-2 A producer MUST encode types as structured terms, with recursion expressed by explicit binders or finite recursive groups.
-
MODEL-3 A producer MUST leave an unsupported required semantic form unsupported and MUST NOT substitute a guessed relation.
-
MODEL-4 A language profile MUST be addable without change to the serving protocol.
-
MODEL-5 A unit MUST root each facet separately, and MUST key each facet by what a consumer looks up, as in the facet table. A language profile MAY give a facet more than one key order, such as members by name and by key, and MUST state each.
-
MODEL-6 A producer MUST store an occurrence span relative to its owning declaration’s anchor, and MUST store each file’s anchor positions and line table in a separate anchor table, committed under the facet that holds the file’s occurrences. An occurrence outside any published declaration, such as a top-level statement, a file-level import, a comment, or code inside a private item, MUST be owned by its file’s anchor.
-
MODEL-7 A unit MUST publish a usage-site facet: every outbound edge it stores, under every condition, keyed by import slot and then by symbolic target, with the sites that hold the edge and the condition of each. The unit MUST also publish, for each target, the number of edges it stores per condition set, so that a consumer can tell a full answer from one with an edge missing. Some edges can denote a different item in another closure, such as an edge without a resolved target or one through an alias of a module specifier, and such an edge is stored under a key that a lookup for that item does not read. A language profile MUST say which of its edges are of this kind, and a unit MUST publish how many of them it stores per import slot and condition set (FLOW-11). A symbol’s references in a closure are the bound edges among the matching entries of every instance that can reach the symbol’s instance.
-
MODEL-8 A unit MUST reference a dependency only through an import slot and a symbolic target (MODEL-33), which the link step binds through the closure (LINK-2).
-
MODEL-9 An object MUST NOT contain its own digest. A producer MUST express semantic cycles through local references, finite recursive groups, and closure binding tables.
-
MODEL-10 A producer MUST NOT place machine-local paths, timestamps, worker identifiers, or enumeration order in a semantic object unless the language observes them.
-
MODEL-11 Extraction MUST be reproducible: equal effective inputs and recipe under one language profile yield equal normalized facts. [REPRODUCIBLE-BUILDS] Representation MUST be canonical: equal normalized facts, logical scope, coverage, and conditions, under the same schemas and the same language, encoding, and partitioning profiles, yield byte-identical objects and roots from every conforming encoder.
| Facet | Keyed by | Read for |
|---|---|---|
| Declarations | Item key | Declaration lookup |
| Documentation | Item key | Hover text |
| Types | Item key | Signatures and type terms |
| Exports | Exported item key, and exported name | Export checks; name-prefix lookup |
| Interface | Type or module key; member name; simple name; supertype | Witness checks and binding a consumer’s own references (MODEL-35) |
| Reference sites | File, then position | Binding the unit’s own sites; rules that apply per file |
| Usage sites | Import slot, then symbolic target | References to one item across a closure (MODEL-7) |
| Conditions and producer contexts | Condition-set index | Evaluating conditions and witnesses |
| Linkage | None; one record | Forwarding a release without code (MODEL-39) |
| Interface artifact | None, or package or module | Analyzing a consumer’s own code (MODEL-40) |
| Body and analysis; ABI and debug; evidence | Profile-defined | Optional operations |
| Event | Stable | Changes |
|---|---|---|
| Docstring edit | Declaration and type pages | One documentation page and its ancestors up to the unit root |
| Insertion above a declaration | Semantic facets; occurrence pages of untouched declarations | Anchor table |
| New overload | Unaffected declarations | One CandidateSetId and its readers
|
| A dependency publishes a new version | Every unit that depends on it | Nothing published; a consumer that adopts the version gets a new closure |
| A consumer changes a dependency version | Every unit | ClosureRoot; the InstanceKeys from the changed instance up to the root; bindings whose witnesses no longer hold
|
| Layer withdrawn, or a trust policy clause for its namespace changed | Every addressed object | SelectionRoot; normalized result if admitted facts differ
|
| Recompression | Every ObjectId
| RepresentationIds, delivery directory, and binding
|
8.2. Identifiers and headers
-
MODEL-13 Every canonical object MUST begin with a header naming its family, role, schema, language profile, and encoding profile.
-
MODEL-15 An encoder MUST compute
ObjectIdover the complete canonical bytes, header included, with the collision-resistant cryptographic hash and digest size the encoding profile fixes. The hash need not be a tree hash: verification is per whole object (MERKLE-7), and only a profile that verifies part of an object needs one. Every content identifier MUST carry an algorithm tag. A reference to an existing object, specification, or dependency MUST keep the target’s own algorithm-tagged identity, so a unit MAY mix algorithms, subject to EVOLVE-6. -
MODEL-18 Where the content hash is not SHA-256, a producer MUST publish a SHA-256 of an object only inside a signed binding record that also names its
ObjectId.
Evidence note: the first wave hashed with SHA-256. Before paging, SHA-256 was 40% and decompression 45% of cold query cost, and hardware SHA made cold queries 2.8 times faster (experiment 06). With pages, hashing is about 1% of cold query time with hardware support and 2 to 6% without (experiment 12). The launch encoding profile uses SHA-256 (§ 23.2 DEC-2 — Initial content hash and digest size).
8.3. Intrinsic identity and binding context
A fact has two parts that earlier drafts hashed together. Its intrinsic identity says which release, recipe, and condition it came from. Its binding context says which dependency instances it meets in one consumer’s closure. The first is fixed when the unit is produced; the second is computed by each consumer and never enters a unit’s identity.
-
FLOW-3 A unit’s identity MUST depend only on intrinsic inputs: the exact artifact, the pinned recipe, the condition classes the producer built, and the producer context of each class, every one named by content identity. It MUST NOT depend on a consumer’s closure, lockfile, configuration, or request. Every identifier derived from a descriptor MUST hash that descriptor’s canonical bytes under a fixed schema and profile, and a machine-local locator string MUST be replaced by a content or logical identity unless the language observes its value. An
ActionKeydescriptor MUST bind the pinned recipe and all declared action inputs, MUST NOT name a consumer context, and MUST NOT depend on the root it looks up. [REMOTE-EXECUTION] A key that hashes exact dependency identities discards a whole unit when one transitive version differs, although almost none of its facts depend on that version. -
FLOW-10 A language profile MUST define its condition vocabulary: the inputs, other than dependency releases, that select or change a unit’s facts, such as target, features and configuration flags, language and resolution mode, platform release, generated inputs, and toolchain.
ConditionClassIdMUST be the digest of one canonical assignment of that vocabulary. A condition class MUST NOT name a dependency release or version; the dependencies a producer analyzed against are its producer context (MODEL-33). -
FLOW-4 A language profile MUST define
InstanceKeyas the digest of the instance’sArtifactId, its condition assignment, any nominal-instance discriminator its semantics require, and the ordered pairs of import slot andInstanceKeyfor the instances its slots bind. A cyclic dependency group MUST first be condensed into one canonical component, so that no key depends on itself. AnInstanceKeyMUST NOT depend on aUnitRootor on theClosureRoot, so that a consumer can compute it from a lockfile before it fetches any unit. A closure MUST contain a canonical instance table and ordered bindings from each importer and import slot to its exact instance. Different versions and semantically distinct instances MUST have distinct keys even when they share pages, and two closures that agree on a dependency subtree MUST give its instances the same keys. -
FLOW-5
ClosureRootMUST identify the canonical closure manifest (CLOSURE-2): its instance table, its slot bindings, the unit selected for each instance, and the language profile’s link tables.SnapshotRootMUST identify a canonical descriptor that commits to that closure and to the exact source-content and source-map identities used for source positions. A mutableLiveViewIdMUST be scoped to an authorized realm session and name a revision explicitly, and MUST NOT be presented as an immutable content identity. Sealing a live revision creates the ordinary immutable identities and bindings for its objects.
- present only where the language requires it
ActionKey or UnitRoot, and no produced root reaches InstanceKey.Evidence note: under the 0.12 key, which hashed exact dependency identities, experiment 00 reused 29% of units and avoided 16% of work (scored). In its Rust corpus 2,927 of 4,873 producer comparisons had equal declarations, but only 751 had equal keys. Per identity, facts are mostly the same in every context: 96.4% of JVM items and 99.2% of JVM edges, and 93.2% of Rust items once presence is a condition (experiment 10).
8.4. Conditions
-
MODEL-32 A fact that holds only under some condition assignments MUST be stored once with a condition over the language profile’s vocabulary, and MUST NOT be stored once per condition class. A condition is either a predicate the producer read from source or metadata, or the set of produced condition classes under which the producer observed the fact. A unit MUST state its produced domain: the condition assignments for which its facts are complete. A fact under an assignment outside the produced domain is not produced, unless the language profile defines a sound projection from produced classes onto that assignment.
A Rust profile can define such a projection for features. When a release’s feature predicates are monotone, a fact that is equal under the default and the all-features classes is equal for every feature set between them.
Evidence note: Rust items are 24.5% invariant across contexts when stored per context and 93.2% once presence is a condition; TypeScript items are 81.8% and 98.3% (experiment 10). 1.1 million of 1.4 million unbound Rust references sit in condition classes that no producer built (experiment 11), which is why a predicate read from source is preferred to an observed set.
8.5. Symbolic edges and witnesses
-
MODEL-33 A reference to an item of another release MUST be stored as a symbolic edge: the import slot it goes through and a symbolic target, such as a path or an owner, name, and descriptor, in a form that names no dependency version. The dependency release the producer resolved the edge against is part of the producer context. A unit MUST record its producer context per condition class, by artifact identity, and MUST NOT make it part of any fact.
-
MODEL-34 A language profile MUST define a witness for each kind of fact whose value can depend on a dependency: an edge’s target, a declaration whose signature or documentation depends on other releases, and an export. A witness names the interface items the producer’s resolution consulted, by digest, and the negative entries it relied on: names that had to be absent from a scope. A witness MUST be sufficient: when every witnessed item has the same digest and every negative entry still holds in a consumer’s closure, the fact MUST equal what a full local analysis of that closure produces. A profile MAY use a wider witness than a fact needs. Where a profile cannot define a sufficient witness for a kind of fact, such a fact MUST bind only in a closure where every release it could depend on is the one in the producer context.
-
MODEL-35 A unit MUST publish an interface table per condition class: a digest of the signature-level content of each exported item, and the type, member, supertype, and name lists that the profile’s witnesses read. Digests MUST be computed over a form that names import slots, not versions. The table MUST name an item by every name another language on the same platform uses for it, such as a Kotlin declaration’s Kotlin key and its JVM binary names, and MUST hold an item for each form a reference can target, such as a class literal.
-
MODEL-36 A producer MUST publish an interface table for every artifact in the producer context of a unit it publishes, whether or not it publishes a unit for that artifact. A table published without facts MUST be marked as such, and a consumer MUST NOT bind a unit from it. A witness that asks whether a name exists in a jar cannot be decided without that jar’s name list.
-
MODEL-37 A declaration whose content depends on whether types of other releases resolve MUST record those types. A consumer MUST bind such a declaration only when each recorded type resolves in its closure exactly when it resolved in the producer context, and MUST leave it unbound when a type’s presence cannot be decided because an artifact has no interface table. A documentation join by parameter types, for example, succeeds only when optional parameter types are on the classpath.
-
MODEL-38 A producer MAY publish a binding table for a unit and one of its dependencies: the unit’s facts recomputed with that dependency replaced by another release, stored as a difference from the unit. A binding table MUST be independent of any consumer. Its key MUST be the unit, the condition class, and the dependency’s witness class, which is the digest of the dependency’s items that the unit’s witnesses name, so that dependency versions equal in those items share one table. A consumer MUST check every witness again against the table’s own producer context before it binds a fact from the table. A producer MUST NOT build a table that needs facts for an artifact that has no unit.
-
MODEL-39 A release that carries no code for a platform and forwards to another artifact, such as a Kotlin Multiplatform root, MUST be published as a unit with a linkage fact that names the target coordinate and artifact, read from the release’s own published metadata. A consumer follows a linkage fact by table lookup when it establishes its closure (CLOSURE-1): it adds the forwarded artifact and the dependencies the fact gives for it. It MUST mark each instance it reaches this way as forwarded, since its lock does not pin that instance, and MUST NOT follow a linkage fact for its own root artifact (§ 23.12 DEC-12 — Linkage semantics and tables for unproduced artifacts).
| Profile | Import slot | Witness | Tables |
|---|---|---|---|
| JVM, Java sites | Implicit: any other jar on the classpath; a class binds to the first jar in classpath order that defines it | Name family: no jar that the consumer has and the producer lacked declares a member of that name in the target’s type hierarchy | Classes with supertypes; members by simple name with digests |
| JVM, Kotlin sites | The same | Kotlin name: no such jar declares a class or callable with the target’s simple name or its accessor spellings | Adds Kotlin classifiers, JVM binary names, and package-level members |
| Rust | name@~compat, so incompatible versions are separate slots
| Interface slice: digests of the dependency items the unit reaches, with module nodes that cover visible names; the toolchain crates loaded; the macros each file invokes | Item digests in slot form; exports; impl items |
| TypeScript | name@*, and an ambient slot for globals
| Route: the target exists and every export of the same name points to it; a global merge table keyed by compiler version, library files, and environment releases | Item digests; exports; entries, import labels, and augmentations |
The JVM rows summarize § 10 JVM language profile, which is normative for the pilot; the Rust and TypeScript rows describe first-wave prototypes.
Evidence note (experiment 11): with these rules no bound fact differed from a local analysis in any of the three ecosystems. JVM references bind at 0.983 (Java 0.996, Kotlin 0.946) and every JVM declaration and export binds; TypeScript references bind at 0.995; Rust references bind at 0.651. Tables for the 22 producer-context jars without units, together with two fixes to closure establishment, raised Kotlin reference coverage from 0.770 to 0.946. Before MODEL-37’s rule, 1,185 references and 643 declarations were bound but different. Binding tables raised Rust declaration units from 0.599 to 0.693 and TypeScript from 0.67 to 0.83.
8.6. Interface artifacts
A consumer’s analyzer has to resolve names and types in the consumer’s own code, and for that it needs its dependencies' interfaces. If it reads the dependency artifacts to get them, it is indexing dependencies.
-
MODEL-40 For each unit and condition class, a producer MUST publish an interface artifact: a form of the release’s interface that a stock compiler or language server for the ecosystem can load in place of the dependency. It MUST be committed under the unit root and MUST be fetched and verified like any other object. A language profile states whether it is one object per unit and condition class, pages cut by package or module, or both. It MUST keep what the analyzer needs to resolve names and types in code that uses the release; it need not keep bodies, and it need not support code generation. A consumer MUST NOT execute code from an interface artifact. An interface artifact is subject to the publication gate (PUB-13), since it reproduces part of the release.
| Profile | Artifact | Keeps | Does the analyzer parse interface text? |
|---|---|---|---|
| JVM | Stub jar: the release’s class files without method bodies, private and synthetic members, or local classes | Signatures, constants, annotations including Kotlin metadata, inner-class and module attributes, multi-release entries, and the *.kotlin_builtins and *.kotlin_module files
| No; class files are binary interfaces |
| TypeScript | Declaration bundle: the release’s own declaration files and package manifest, with an item table | Every declaration file, since pruning to reachable files lost references | Yes; the gain is bytes, not CPU |
| Rust | Stub crate per condition class, generated from the public interface | Module tree, public signatures, impls, macro_rules! text, and procedural-macro declarations
| Yes |
Evidence note (experiment 11, interface harness): consumers that compiled their own code over stub jars bound 226,884 of 226,907 Java and 11,970 of 11,972 Kotlin dependency references, with none wrong and no dependency file opened. Stub jars were 0.51 MiB per configuration against 3.50 MiB for unstripped ones. On an older corpus, stub jars fetched whole cost 0.38 MiB and one round trip per configuration; the same stubs as package pages cost 0.28 MiB and 10 sequential round trips, because each read depends on what the compiler attributed before. Without JVM binary names in the tables, 1,437 Java references into a Kotlin release bound but had no item. Compiler metadata is not a usable interface artifact for Rust: none of 18 configurations could compile its root crate from producer-published metadata (§ 22.5 Compiler metadata as an interface artifact).
8.7. Layers and provenance classes
-
MODEL-19 A layer MUST state its subjects,
SpecIds, condition and closure requirements, coverage, dependencies, and conflict semantics. -
MODEL-20 A unit MUST NOT reference a layer over it.
-
MODEL-22 An eligibility binding MUST carry a provenance class (provenance classes). An operator or realm signer MUST have permission for that class in its anchor. An agent-class layer MUST be signed by a realm identity whose anchor entry permits only the agent class. An operator anchor MUST NOT grant the agent class, and one identity MUST NOT hold the agent class together with another. A publisher signer has no anchor: a consumer MUST accept it only through § 4.6 Publisher-shipped index data, and only as class publisher for the matched artifact.
-
MODEL-24 A consumer MUST NOT select an agent-class layer except by explicit choice, and MUST select the other classes automatically only as provenance classes and its trust policy allow.
| Class | Produced by | Selected automatically |
|---|---|---|
| Operator | The public pipeline | Yes, under the default policy |
| Publisher | The package’s signing identity | Only where the policy accepts the publisher tier for the namespace |
| Realm | A deterministic tool under a realm key | Yes, inside that realm |
| Agent | A non-deterministic author under a realm key | Never |
8.8. Schemas and annotation
-
MODEL-26 A canonical object MUST contain exactly the fields of the schema its header names; a validator MUST reject a field tag, union discriminator, or enumeration value that the schema does not define.
-
MODEL-27 A holder that does not know an object’s body schema MUST treat the object as opaque. After the transport and byte-identity checks of SAFE-2 to SAFE-6, it MAY store and forward the bytes, but MUST NOT interpret the body or claim canonical validity, semantic validity, or coverage from it. Unsupported schema and malformed data MUST be distinct outcomes.
-
MODEL-28 An annotation or other additive enrichment of an existing record type MUST be a separate canonical object under its own
SpecId, linked to its subject by identifier; a producer MUST NOT embed it in its subject. A typed annotation page MAY hold many annotations and subject links under one schema, context, and authorization label. The field set named by an existingSpecIdMUST NOT change. New fields need a replacement schema under a newSpecId(EVOLVE-5). -
MODEL-31 A consumer MUST NOT download or execute code because an object names a
SpecId.
8.9. Compatibility and migration
-
EVOLVE-1 A published unit or layer MUST authenticate, through its accepted root and discovery metadata, the schema, semantic-profile, and extension requirements of each advertised operation and coverage claim. A consumer MUST check them before claiming support or completeness. It MUST block each operation that needs an unsupported schema or semantic extension, or an unknown operation descriptor or extension, and MUST NOT block unrelated supported operations. A blocked operation MUST report unsupported or incomplete, not an empty result. It MUST NOT skip an unsupported layer except for operations whose authenticated requirements mark that layer optional, and MUST then drop any completeness claim that depends on it.
-
EVOLVE-2 Discovery MUST distinguish roots that differ in recipe or condition coverage from schema or encoding compatibility variants of the same facts, and MUST identify each advertised root’s profiles, condition classes, and supported operations. A consumer MUST select a root that it can interpret and whose produced domain covers its condition assignment, under its trust policy, whether or not a newer one exists. It MUST NOT treat a root’s missing support for an operation as a negative query answer.
-
EVOLVE-3 Each deployment’s published compatibility policy MUST name its supported base schemas and operations, how a variant is deprecated, and how long a compatible predecessor stays available. An additive schema release MUST NOT by itself make a predecessor unsafe or unusable. Compatibility retention MUST NOT override a lifecycle withdrawal for a security, privacy, or correctness reason.
-
EVOLVE-4 A batched annotation schema MUST define canonical subject ordering, duplicate and conflict rules, partitioning, and the interpretation context of each subject link. Each page MUST obey ordinary label and object-size bounds. Annotation pages MAY share a delivery pack with other authorized objects, but packing MUST NOT change semantic identities or make a subject reference a layer over itself (MODEL-20).
-
EVOLVE-5 A replacement schema MUST identify the operations it preserves or changes and its supported migration direction. A converter claiming preservation MUST produce canonical output under the target profile, keep the applicable coverage and context, and report any dropped or unsupported meaning. Conversion receipts and source history MUST stay outside normalized facts, and conversion MUST NOT silently confer completeness or authority. Dual publication during migration MAY occur and creates separately identified variants.
-
EVOLVE-6 A consumer MUST enforce its accepted-algorithm policy on every content identity it relies on, including references inside otherwise acceptable new objects. Migration MAY rehash authenticated canonical bytes and publish new authorized bindings, but MUST NOT reinterpret an old digest under another algorithm or rewrite the bytes an existing identity names. A migration that retires an algorithm MUST also give every layer or object that links to a rehashed subject by its old identity either a relinked copy or an authenticated alias from the old identity to the new one. Otherwise a client that drops the old algorithm loses the linked facts: a rehash left 1,584 annotation and binding objects naming old identities (experiment 08).
-
EVOLVE-7 The conformance suite MUST exercise:
-
an old reader with an unknown optional annotation;
-
an unknown required extension;
-
a compatible predecessor beside an unsupported successor;
-
a lossy conversion; and
-
a graph containing independently tagged old and new references.
Expected support, coverage, and lifecycle outcomes MUST be explicit.
-
The initial support window and the mandatory base schemas and operations are deferred to the production compatibility profile (§ 23.7 DEC-7 — Compatibility support contract).
8.10. Merkle hierarchy
- present only where needed
-
MERKLE-1 A leaf, range node, facet descriptor, and root descriptor MUST each be a canonical object identified by its
ObjectId;UnitRoot,LayerRoot, andNormalizedIndexRootname the corresponding root descriptor. A parent MUST commit to its children’s content identities in its canonical bytes, not to the containers that carry them. -
MERKLE-2 A range-node schema MUST encode its logical scope and facet, interval bounds, and an ordered list of child descriptors. Each descriptor MUST bind its key interval, record count, and coverage state. A materialized child descriptor MUST also bind the child’s role and schema expectations, algorithm-tagged
ObjectId, and canonical byte length. An inline empty descriptor has no child identity or length, MUST state zero materialized records with explicit coverage, and MUST NOT imply complete analysis beyond what that coverage states. Headers and roles (MODEL-13) MUST distinguish leaf, range, and root encodings. The partitioning profile MUST define count aggregation and coverage propagation, including for empty, partial, and not-analyzed ranges. -
MERKLE-3 A partitioning profile MUST fix child ordering, interval comparison, canonical grouping, fanout limits, empty-range representation, and the rule for omitting unnecessary levels. Within one scope and facet, sibling intervals MUST be disjoint and together cover the parent interval, including explicit empty or not-analyzed portions. Tree shape MUST depend only on canonical content and the profile, not on worker grouping, arrival order, or delivery packaging.
-
MERKLE-4 A consumer MUST authenticate a selected leaf or subtree by checking its descriptor chain from an accepted root and checking fetched child bytes against the expected identity. It MUST validate every descriptor it interprets and check interval, count, and coverage consistency along the path it consumes. It MAY keep authenticated sibling descriptors without fetching or validating their bodies; a commitment to unread content is not a claim to have validated it.
-
MERKLE-5 A producer or consumer MAY reuse the identity of an unchanged canonical object and compute an ancestor from child descriptors without rehashing descendant bytes. Reuse MUST preserve the canonical grouping and all committed metadata. An implementation MUST NOT assume that the hash of concatenated leaf bytes equals a hash built from their digests.
-
MERKLE-6 Repacking, recompression, fetch order, and mirror choice MUST NOT change a logical content identity.
-
MERKLE-7 Verification is per whole object: a consumer MUST NOT expose a byte range or column only because it knows the enclosing object’s digest. Any capability for verifying part of an object MUST specify proof encoding, authenticated length and range semantics, and enough schema validation for the exposed values. Such a capability is optional and its wire format is unresolved.
BLAKE3 supplies the tree hash and Bao shows proof encodings for verified streaming and slices; neither supplies Rote’s ordering, partitioning, or coverage rules.
9. Closures and binding
A consumer indexes its own code and nothing else. It establishes its closure from its lockfile, obtains or assembles a closure manifest, and binds published facts to the closure by lookups. No step reads a dependency artifact.
- Establish closurelockfile and own manifests · CLOSURE-1
- Obtain manifestcache hit or assembly · CLOSURE-4
- Check manifestroots and derived tables · CLOSURE-3
- Index own codeover interface artifacts · LINK-6
- Bind on demandconditions, witnesses, tables · LINK-2
- Answerbound, unbound, not produced · FLOW-11
9.1. Closure establishment
-
CLOSURE-1 A consumer MUST be able to establish its closure, meaning its instances, their condition assignments, and their slot bindings, from its lockfile and its own manifest files together with published per-release rows. It MUST NOT need to run a build tool or a resolver over dependency sources, run a dependency’s build script, or read a dependency artifact. A language profile MUST define the lockfile formats it supports and the rows a producer publishes for this: a release’s dependency edges with their kind, optionality, and conditions; its artifact digests; and its linkage targets. Where an ecosystem has no lockfile, the consumer’s build tool resolves once, the result is recorded as the lock, and its cost is reported separately. An instance whose configuration the rows cannot establish exactly MUST be reported as not established and MUST NOT be approximated.
| Profile | The consumer reads | Published per release | Result |
|---|---|---|---|
| JVM | A lockfile, or one Maven resolution recorded as a lock; the target JVM release | Jar and sources digests; direct dependencies; multi-release versions; linkage targets | Jar instances with their release and multi-release selection; a closure per instance in classpath order |
| Rust | Cargo.toml, Cargo.lock, target, and features
| The registry index row: dependencies with kind, target, optionality, and features; library name; build-script outputs per condition class | Instances with platform and resolved features; extern slots |
| TypeScript | package.json, package-lock.json, and compiler options
| Entries and import labels per condition class; globals and augmentations; library references | Program instances, slots, library files, and the global merge key |
Evidence note (experiment 13): establishment cost at most 0.0043 of the baseline’s CPU and opened no dependency file. It was exact in 15 of 18 Rust, 22 of 24 JVM, and 19 of 30 TypeScript configurations; the JVM figures predate the current corpus.
9.2. Closure manifests
-
CLOSURE-2 A closure manifest MUST contain:
-
the instance table: each instance’s
InstanceKey, release, condition assignment, and selectedUnitRoot; -
the slot bindings of each instance and of the consumer’s root;
-
references to the binding tables the closure uses; and
-
the language profile’s link tables, such as the order in which a JVM closure’s jars are searched for a class, or a TypeScript closure’s global merge key.
A manifest that a manifest service serves SHOULD embed each selected unit’s root bundle and facet directories with their authentication paths, including the usage-site directory and any filter (STORE-30). It MAY embed a merged exported-name index over the closure. Embedding the directories removes a round trip from every cold lookup: with directories fetched separately, cold Java queries took 87 to 141 ms at a 20 ms round trip (experiment 15).
-
-
CLOSURE-3 A closure manifest is a derivation from a lockfile and published objects, and carries no authority of its own. Any party MAY build and cache one, and a manifest needs no signature. A consumer MUST verify every embedded root bundle and directory against a
UnitRootit accepted under TRUST-30, and MUST check the instance table and slot bindings against its own closure (CLOSURE-1). It MUST reject as a whole a manifest that fails either check. A derived table that the consumer did not compute, such as a merged name index, MUST be recomputed, or checked against authenticated pages for each entry an answer uses, or covered by a Result record from a signer the trust policy accepts for derivations; an answer that rests on an unchecked derived table MUST NOT claim completeness. -
CLOSURE-4 A manifest service MUST key cached manifests by lock digest and cached subtrees by
InstanceKey, so that two closures share every subtree in which release, condition assignment, and bound dependencies agree. A consumer MUST be able to assemble a manifest itself from the root bundles of its instances when no cache holds one, still without reading a dependency artifact. A lookup that covers a private instance is subject to REALM-8.
| Tier | A consumer gets its manifest by | Typical case |
|---|---|---|
| 1 | An exact hit on its lock digest | CI, teammates, popular templates |
| 2 | Subtree hits plus a few new nodes | A lockfile after a version bump |
| 3 | Its own assembly from root bundles fetched in one batch | A lockfile no cache has seen |
Evidence note (experiment 13): 432 of 432 tampered manifests were rejected. How often real lockfiles hit tiers 1 and 2 is unmeasured.
9.3. The link step
-
LINK-1 The link step MUST consist only of lookups, condition evaluation, and digest comparison over published objects and the consumer’s own closure. It MUST NOT analyze source in any language, and MUST NOT read a dependency artifact.
-
LINK-2 For each instance, with its dependencies bound first, a binder MUST decide each fact as follows.
-
Evaluate the fact’s condition under the instance’s condition assignment (MODEL-32). A fact whose condition is false does not exist in this closure; an assignment outside the produced domain makes the fact not produced.
-
Find the changed dependencies: the instances the unit’s slots bind whose release or condition class differs from the unit’s producer context.
-
Bind the fact when its witness holds in the closure (MODEL-34): every witnessed item has the same digest in the bound instances' interface tables, and every negative entry still holds. The bound target is the instance and item that the profile’s lookup rule gives for the edge’s slot and symbolic target.
-
Otherwise, bind it from a binding table whose key matches, after checking the table’s witnesses (MODEL-38).
-
Otherwise, report it unbound with a cause.
A profile MAY leave a wider scope unbound than a failed witness requires, such as every site of a file, when it cannot tell which facts of the scope depend on the difference.
-
-
LINK-3 For one closure, every fact a query could return MUST have exactly one binding state: bound, with its target instance and item; unbound, with a cause from the cause table; or not produced. A consumer MUST NOT guess a target for an unbound edge, substitute the target the producer resolved, or drop the edge without reporting it.
-
LINK-4 A language profile’s binder MUST be sound: a bound fact MUST equal the fact that a full local analysis of the consumer’s closure produces. Before a profile is claimed, it MUST show this by replay against local analysis over its evaluation corpus (FLOW-2). The local analysis MUST be independent of the binder, and the replay’s scope MUST include every unit the profile produces facts for, in every language of the platform. A bound fact that differs is a defect of the profile that blocks its release. The defect MUST be fixed by a narrower binding rule, never by removing the case from the corpus.
-
LINK-5 The link step MUST be evaluable on demand. Binding one site, declaration, or target MUST need only the root bundles of the instances involved and a bounded number of pages per instance (STORE-36). A consumer MUST NOT need to fetch a whole unit, or to build a table over every instance of its closure, before it binds one fact. A consumer SHOULD read a binding table at most once per session, and a language profile MAY publish a table as pages keyed by site. The first-wave demand binder read a table again for each site it blamed on a jar: 541 fetches where the whole-unit binder made 6 (experiment 14).
-
LINK-6 A consumer indexes its own code with its ecosystem’s analyzer over interface artifacts (MODEL-40) in place of dependency artifacts. A reference from its own code into a dependency is bound when its target is an item of the bound instance’s interface table. A consumer MUST report a reference whose target is not such an item as bound without an item, not as an error and not as a different target.
| State | Cause | Meaning |
|---|---|---|
| Bound | The fact holds in this closure, with a named target instance and item | |
| Unbound | Witness failed | A witnessed item differs or a negative entry no longer holds, and no binding table applies |
| Witness undecidable | An artifact the witness must read has no interface table | |
| Dependency absent | An artifact of the producer context has no counterpart in the closure, or the reverse, and the fact could depend on it | |
| Unresolved by the producer | The producer’s own analysis left the target unresolved, and the closure differs from the producer context | |
| Tainted scope | The profile unbinds a wider scope, such as a file, because it cannot localize a difference | |
| Generated or non-portable input | The fact depends on generated code or a build output that is not published or not reproducible | |
| Consumer-side change | The consumer’s program changes the target’s meaning, for example by a module augmentation | |
| Unit unavailable | The unit of an instance the witness reads is withdrawn or not accepted under the consumer’s policy | |
| Not produced | No unit or facet | No unit exists for the release, or the facet the operation needs was never produced |
| Condition not produced | The instance’s condition assignment is outside the unit’s produced domain |
Evidence note: the JVM binder leaves 249,068 of about 14.5 million reference sites unbound: 128,654 by file taint, 60,526 unresolved by the producer under a different classpath, and 57,068 by a producer jar absent from the consumer closure (experiment 11). A binder that reads pages on demand gave the same binding for all 14.26 million bound sites as one that loads whole units, with cold p95 of 0.5 to 20 ms instead of 33 to 6,700 ms and client peak memory of 90 to 161 MiB instead of 312 to 1,022 MiB (experiments 14, 15, and 16).
9.4. Proposed additions
Status: proposed. The first wave suggests each change below but does not yet support it. None is a requirement.
| Addition | Evidence so far | Would change |
|---|---|---|
| A producer record of how a release was compiled: compiler arguments, plugins, the Kotlin source-set graph, and its compile-only and provided dependencies | The Kotlin compiler reports errors in 126 of 180 producer variants because flags have to be reconstructed | FLOW-3, PUB-30, JVM-3 |
| Toolchain facts as their own target class: Kotlin built-ins depend on the compiler version, not on the standard library’s | Seen in the Kotlin rounds of experiments 00 and 11; not counted | MODEL-33 |
| Per-file import sets, to narrow the Kotlin name witness; a taint scope finer than a file | The name witness alone left 12% of Kotlin references unbound; file taint holds back 128,654 sites | JVM-9, JVM-10 |
| Rust: published build-script outputs and facts for generated code, conditions read from source across profiles, and macro provenance | 192 of 267 build-script units equal, 68 missing, 7 differ only in an output path (experiment 13); 81,000 references lost to macro provenance (experiment 11) | MODEL-32, PUB-30 |
| TypeScript: peer-slot profiles, exact ambient modules, and a rule for augmentation in the consumer’s program | References rose from 0.893 to 0.995 (experiment 11); 37,900 occurrences still missed to augmentation (experiment 14) | MODEL-34 |
| Usage-site filters with a size budget; one filter merged per closure, or none for a unit without edges into other releases | No false negatives, false positives at most 0.75%; the size budget of 1.5 bytes per key was missed at 2.1 to 3.5, because a fixed header dominates small filters (experiment 14) | STORE-30 |
| A page size and dictionary rule that meets the store-size budget | Paged stores are 1.41 to 1.66 times the whole objects against a budget of 1.4; a shared dictionary saves 6 to 7% (experiment 12) | STORE-3, STORE-8 |
| Linkage facts for Maven relocations and for coordinates that publish only a BOM | Only Kotlin Multiplatform roots were exercised: 21 code-free releases have linkage facts, and 10 targets were verified | MODEL-39, JVM-7 |
| Platform tables of the JDK per target release, so that a consumer on a release no producer built can bind | Every first-wave consumer used a release a producer had built, so none was needed | JVM-2 |
| Interface artifacts opened on demand through a verified lazy classpath | javac read 3.8% of the class entries of its stub jars; the Kotlin compiler opens 10 to 32% of stub classes over directories and maps whole jars otherwise (experiments 11 and 16) | MODEL-40, JVM-14 |
| Fetching a facet’s pages in one batch when a consumer binds most of a unit | Demand cost reaches whole-unit cost only when a consumer binds the whole release; sampled sites touch every page of a unit from about 1,000 sites (experiment 16) | LINK-5 |
| Rules for merging a complete layer with a partial one, and for a client that loses its state after a withdrawal | No failing run; the behavior is undefined today (experiments 03 and 05) | SEL-2, LIFE-10 |
10. JVM language profile
This section is the language profile of the pilot ecosystem (§ 21.1 Bounded launch profile): Java and Kotlin releases published as jars and resolved by a Maven-compatible resolver. It states what § 8 Data model and identity and § 9 Closures and binding leave to a language profile. Its rules are those of the first-wave JVM implementation (experiments 00, 11, 13, 14, 15, and 16), and each binding rule was needed to reach no bound-but-different fact on that corpus. The profile is a draft: its schemas are not written, and its evidence is unscored.
Gradle variant selection is outside this profile. A Maven-compatible resolver selects one artifact for each coordinate. A classifier identifies a distinct artifact.
10.1. Units, conditions, and producer context
-
JVM-1 A unit is the index of one jar. Its intrinsic inputs (FLOW-3) are the jar, the sources artifact the release publishes for it, and the recipe, each by content identity. A consumer whose lock pins a different sources artifact for the jar has no unit for that pair, and the release is not produced for it (LINK-3). A unit MUST carry the facts of every language its sources use, so that a release written only in Kotlin has references as a Java release has.
-
JVM-2 The condition vocabulary (FLOW-10) has two inputs: the target JVM release, which is the compiler’s
--releasevalue, and the multi-release selection, which is the highestMETA-INF/versions/Ndirectory not above the target release, or none. A declaration or an export holds under a set of multi-release selections, and an edge holds under a set of target releases (MODEL-32). A revision of this profile MUST list the target releases of public production, and a producer builds each listed release that is at or above the class-file level of the jar. A consumer whose target release lies outside a unit’s produced domain MUST report the unit’s facts as not produced (LINK-2). The resolver, the kind of classpath a consumer uses the jar on, and the consumer’s scope are not conditions. -
JVM-3 The producer context of a unit (PUB-4) is the classpath that Maven’s resolution gives the release when the release is the only dependency of an empty module: nearest-first mediation, compile and runtime scopes, optional dependencies left out, and dependency management and imported BOMs as the release publishes them. The classpath lists the unit’s own jar first and then its dependencies in resolved order. A producer MUST record it per target release, each entry by artifact identity (MODEL-33). This is the release’s own POM closure at a recorded registry state. It is not the classpath the release was compiled against, which no release publishes.
-
JVM-4 An edge has one of four target owners: the unit’s own jar; another jar, through the one implicit import slot of this profile; the toolchain, for platform classes of the JDK and for Kotlin built-ins; or none, for a name the producer could not resolve. A symbolic target (MODEL-33) names a Java class by its binary name, a Java member by its class, name, and erased parameter types, and a Kotlin declaration by its Kotlin-level key: a class, a type alias, or a callable with its receiver and parameter types, in a class or at package level. A class literal is a target of its class. A target local to a file, such as a local variable, is named by its source position. The jar in which the producer resolved a target is producer-context data and MUST NOT be part of the edge.
-
JVM-5 An interface table (MODEL-35) is published per jar and multi-release selection, and holds:
-
each class with its superclass and interfaces;
-
each member under its simple name, with its class, its key, and a digest of its kind, signature, attributes, and deprecation;
-
each Kotlin class and type alias with the supertypes of its Kotlin signature, and each package-level Kotlin member;
-
for each Kotlin class and member that the JVM can see, its JVM binary name mapped to the Kotlin declaration it implements; and
-
enum entries, synthesized members, and an item for each class literal.
A table for a producer-context jar that has no unit (MODEL-36) holds the same lists and no facts.
-
10.2. Closure establishment and linkage
-
JVM-6 A consumer establishes its closure (CLOSURE-1) from its target JVM release and a lock that pins every artifact by digest. The consumer uses its package manager’s lockfile or records the result of one Maven-compatible resolution as its lock. For each release a producer MUST publish these rows: the digests of the jar and of its sources artifact; its direct dependencies of compile and runtime scope that are not optional, read from its POM with the parent chain applied as Maven applies it; its multi-release versions; and its linkage target (JVM-7). A dependency declaration is identified by group, artifact, type, and classifier, and a child’s declaration overrides its parent’s. The rows MUST carry the exclusions a declaration states, and the walk MUST apply them as the consumer’s build tool does. An instance is one jar with a target release and a multi-release selection. Its closure is the transitive walk over the published rows at the versions the lock pins, and its classpath is its own jar followed by that closure in the consumer’s resolved order. The classpath order is part of the instance’s slot bindings (FLOW-4), because a class that several jars define binds to the first of them. A consumer MUST NOT put its own root artifact in the closure of a dependency. It MUST report an instance whose rows are missing as not established, and MUST NOT give such an instance the rest of the classpath.
-
JVM-7 A release whose jar holds no class files, and whose published metadata names the JVM artifact that carries its code, as a Kotlin Multiplatform root does, MUST be published with a linkage fact (MODEL-39): the target coordinate, the target’s artifact identity, and the target’s dependency rows, read from the release’s POM and module metadata. A consumer follows the fact when it establishes its closure. A producer MUST NOT build a binding table for a jar that has no unit, which includes a consumer’s own artifact reached through linkage. A forwarded instance is marked as such (MODEL-39).
10.3. Binding rules
These rules are the binder of LINK-2 for this profile. A changed jar is a jar of an instance’s classpath whose bytes are not in the unit’s producer context.
-
JVM-8 A class target binds to the first jar in the instance’s classpath order whose interface table defines the class. A member target binds only when the bound class declares the member. A package-level Kotlin member binds to the first jar in classpath order that declares exactly that member, since a package can span jars and a class cannot. A site is bound once, from the edge stored for the instance’s target release. An edge without a resolved target binds, as unresolved, only when the instance’s classpath equals the producer context jar for jar.
-
JVM-9 A member edge at a Java site binds only when the name-family witness holds (MODEL-34). For every changed jar, the members of the target’s name that the jar declares in the target’s hierarchy MUST equal, key for key and digest for digest, those that the producer-context jar of the same module declares there; a changed jar with no counterpart in the producer context MUST declare none. The hierarchy of a class is the class, its subtypes in the closure, and every supertype of those. An edge at a Kotlin site binds only when the Kotlin name witness holds: the same comparison over every class and callable that has the target’s simple name or its
get,set, orisaccessor spelling, in any class or package. A changed jar without an interface table makes either witness undecidable. javac chooses a member from the receiver’s static type, which an edge does not record. Kotlin resolution also sees extensions from imported packages, implicit receivers, and synthetic properties, so any declaration of the name can change the choice. -
JVM-10 A binder MUST apply two wider scopes (LINK-2). When a jar of the producer context has no jar of the same module in the instance’s classpath, the binder MUST leave unbound every site of each file that reaches the missing jar: a file with an edge into that jar, an edge without a resolved target, or an edge to a class whose supertypes reach a class of that jar. Where the missing jar has no interface table, a class whose supertypes leave the closure counts as reaching it. When the instance’s classpath differs from the producer context, the binder MUST leave unbound every edge to a file-local target in a file that has any unbound site. Where a compiler cannot attribute part of a file, it may not attribute the rest as the producer’s compiler did.
-
JVM-11 A declaration or an export whose content was joined from documentation binds when the instance’s classpath equals the producer context, or when every type it names resolves in the instance’s classpath exactly when it resolved in the producer context (MODEL-37). The types it names are those of its parameters, its descriptor, and its generic signature, including return and thrown types; the supertypes and outer classes of its class; and the same for every overload of its name. A type that a jar without an interface table could define is undetermined, and the declaration stays unbound.
-
JVM-12 A binding table (MODEL-38) is the unit’s edges recomputed for one target release with one dependency jar replaced. It stores the edges that differ from the unit’s, the sites it could not attribute, and the classpath it was computed on. A binder consults a table only for a site whose failed witness names exactly one changed jar, and MUST check every rule of this section again against the table’s classpath before it binds from the table.
| Rule | Outcome | Cause |
|---|---|---|
| The name-family or Kotlin name witness finds a new or changed declaration (JVM-9); the bound class does not declare the member (JVM-8) | Unbound | Witness failed |
| A changed jar, or a jar that could define a named type, has no interface table (JVM-9, JVM-11) | Unbound | Witness undecidable |
| A producer-context jar has no jar of its module in the closure; the target’s class is in no jar of the closure (JVM-10, JVM-8) | Unbound | Dependency absent |
| An edge without a resolved target on a different classpath (JVM-8) | Unbound | Unresolved by the producer |
| A file-local target in a file with an unbound site (JVM-10) | Unbound | Tainted scope |
| The jar has an interface table and no unit; the sources artifact differs (JVM-1) | Not produced | No unit or facet |
| The target release is outside the produced domain (JVM-2) | Not produced | Condition not produced |
10.4. Facets and references
-
JVM-13 A unit’s facets (MODEL-5) have the keys of the JVM key table, so that every rule of § 10.3 Binding rules is decided from the pages one lookup reads (LINK-5). The link table of a closure manifest (CLOSURE-2) is each instance’s classpath order; a binder finds the jar of a class by a class-key lookup in that order and needs no table of every class in the closure. A references query for an item of release D reads, in D’s own unit, the usage-site entries under the item’s own-jar key, and, in each instance whose closure contains D, the entries under its other-jar key (MODEL-7). A usage-site filter (STORE-30) covers only keys into other jars; a consumer reads D’s own unit without a filter.
| Facet | Key | Read by |
|---|---|---|
| Interface | Class (c); supertype, giving subtypes (s); member simple name (m); member key (k); simple name of any class or callable (w)
| Class lookup and hierarchy; the name-family witness; the member check; the Kotlin name witness |
| Declarations | Item key (d); the overloads of one name are one key range
| Declaration lookup; JVM-11 |
| Exports | Exported item key (e); exported name (n)
| Export checks; prefix lookup |
| Reference sites | File, then position (r); one file is one key range
| Binding the unit’s own sites; the file-wide rules of JVM-10 |
| Usage sites | Target owner, then symbolic target (o)
| References across a closure |
10.5. Interface artifact and own code
-
JVM-14 The interface artifact (MODEL-40) is a stub jar: the release’s class files without method bodies and debug attributes, and without private and synthetic members and local and anonymous classes. It MUST keep signatures, constants, annotations including Kotlin metadata, inner-class and module attributes, multi-release entries, and the
*.kotlin_builtinsand*.kotlin_modulefiles. It is published as one object per unit, which serves every condition class because it keeps the multi-release entries, and a producer MAY also publish it as pages cut by package. It supports analysis only: a compiler cannot generate code against it, because Kotlin inlining reads method bodies. -
JVM-15 A consumer indexes its own code (LINK-6) with the stock Java and Kotlin compilers and an indexing plugin, used for analysis only, over a classpath that holds verified stub jars and no dependency artifact. The compilers, their indexing plugins, and the platform signatures of the JDK are the consumer’s analyzer toolchain: they are pinned by digest, and their cost is reported apart from dependency cost. Neither a producer nor a consumer runs annotation processors or third-party compiler plugins. A name that only such a processor or plugin would generate stays unresolved (MODEL-3).
Evidence note (unscored; 35 Maven and Elide configurations of the current corpus): with these rules no bound fact differed from a local analysis. References bound at 0.983 (Java 0.996, Kotlin 0.946, units with both 0.953), and all 931,108 declarations and 673,384 exports bound (experiment 11). A binder that reads pages on demand bound all 14,257,982 sites as the whole-unit binder did (experiments 14 and 16). Of 249,068 unbound reference sites, 128,654 fall under the file-local rule of JVM-10, 60,526 have no resolved target on a different classpath, 57,068 follow a producer-context jar missing from the closure, and 2,820 have other causes. Consumers that indexed their own code over stub jars bound 226,884 of 226,907 Java and 11,970 of 11,972 Kotlin dependency references, none wrong, and opened no dependency file.
| Failure | Rule |
|---|---|
| A producer-context jar was missing from a consumer’s closure, so the consumer’s compiler left code unattributed that the producer’s had attributed: 1,185 references and 575 declarations bound but different | JVM-10 |
| An optional jar was present for the consumer and absent for the producer, so documentation joined to other members: 68 declarations bound but different | JVM-11 |
| A jar without a POM got the whole classpath as its closure, root included, which caused 46% of Kotlin witness rejections; and a parent POM’s dependencies were not inherited | JVM-6 |
Dependency declarations were identified by group and artifact only, so a test-scoped test-jar hid a compile jar
| JVM-6 |
| Producer-context jars that are not produced releases had no tables: Kotlin references bound at 0.770, and at 0.946 once 22 such jars had tables and the two closure defects above were fixed | MODEL-36, JVM-5 |
| 1,437 Java references into a Kotlin release, and 306 class literals, bound but had no item | JVM-5 |
Without *.kotlin_builtins the Kotlin compiler reported every built-in type as inaccessible: 13,365 errors against 272
| JVM-14 |
| Maven and Elide resolve a Kotlin Multiplatform root to a jar without classes | JVM-7 |
| The replay’s truth counted only units with Java classes, so 681 correct occurrences in Kotlin-only libraries were reported wrong | LINK-4 |
Where the first-wave implementation falls short of this profile, and what is not measured
-
The store keeps references once per target release, not once with a condition (MODEL-32); the demand-addressed store is 8 times the size of the whole-unit one.
-
Binding tables are keyed by the digest of the replacing jar, not by witness class (MODEL-38); 91 dependency versions would collapse to 60 witness classes (experiment 10).
-
The dependency rows ignore Maven exclusions; their edges matched Maven’s own for 120 of 126 shared modules.
-
Lock-only establishment (experiment 13) is timed but is not yet the binder’s input in the time-to-ready run, and has not been rebuilt on the current corpus.
-
Elide’s lock format is not published; the first wave read a JSON export of it.
-
Every consumer used a target release that a producer had built, so platform tables of the JDK across releases were not needed and do not exist.
-
Not measured: Kotlin compiler plugins and annotation processors in a consumer’s build; on-demand import shadowing; documentation links; a release’s compile-only and provided dependencies; the effect of linkage on the coverage of Kotlin Multiplatform consumers.
-
Every artifact was admitted because its digest equalled the lock’s. That is the registry-attested rule (§ 23.8 DEC-8 — Initial ecosystem and condition scope, and publisher onboarding) without its record: no run signed an admission or recorded an upstream attestation.
11. Canonical encoding
Every canonical object is encoded in the Rote strict Bebop profile, a project-owned profile of Bebop that admits exactly one encoding per value. [BEBOP-PAPER] [BEBOP-WIRE] [BEBOP-RELEASE] [BEBOP-TS-RUNTIME] The planned implementation is truffledata, Elide’s in-house implementation of this profile, which runs on the JVM.
11.1. Formats considered and tradeoffs
This non-normative comparison draws on the cited specifications. The one measurement so far is unscored: strict Bebop objects were 0.94 times the size of canonical Cap’n Proto and validated faster, but the two codecs ran on different runtimes, so their timings do not compare (experiment 01). Strict Bebop is adopted, and Arrow or backend-native layouts are optional derived representations. ENC-22 requires a comparison with canonical Cap’n Proto, and query performance, including conversion and validation, is measured under § 11.7 Freeze and § 24.2.3 Conformance and performance evidence.
| Format and status | Storage | Query | Interchange |
|---|---|---|---|
| Strict Bebop 2026 Adopted design [BEBOP-WIRE] | Canonical factsUnique bytes per admitted value.Cost: project-owned validation over a pinned prerelease wire format. | Direct column scansFixed-width arrays and offsets.Cost: unaligned; separate kernels and search indexes. | Exact Rote objectsExplicit presence and exact schema identities.Cost: peers need the Rote profile; a generic Bebop decoder does not check canonicality. |
| Canonical Cap’n Proto Required comparator [CAPNP-ENCODING] | Canonical alternativePublished canonicalization rules.Cost: presence, sets, maps, and floats need Rote mappings. | Direct structured accessAligned primitives and relative pointers.Cost: column layouts are schema work; packed delivery needs unpacking. | Schema-based messagesCould carry the same facts.Cost: defaults need mapping to absent or present; not a drop-in substitute. |
| Protocol Buffers Producer adapter candidate [PROTOBUF-CANONICAL] [PROTOBUF-ENCODING] | Producer recordsTagged fields and packed repeated values.Cost: deterministic is not canonical; needs re-encoding. | Decode or projectSequential decoding of packed fields.Cost: no random-access column directory. | Existing extractor inputsProducers that already emit protobuf.Cost: adapters fix presence, unknown-field, type, and coverage mappings. |
| FlatBuffers Direct-access alternative [FLATBUFFERS] | Structured binary recordsOffsets and vtables for direct access.Cost: one value has several valid layouts. | Views and scalar vectorsAligned vectors for bulk reads.Cost: indirection and verification; no search indexes. | Schema-based buffersGenerated accessors.Cost: defaults, presence, and canonical construction need reconciling. |
| Apache Arrow / IPC Optional compute layout [ARROW-COLUMNAR] | Derived column batchesPersisted analytical buffers.Cost: padding and null payloads defeat unique bytes. | Batch computationTyped, aligned buffers and bitmaps for vectorized kernels.Cost: conversion, memory, and exact subject bindings. | Bulk analytical exchangeShared column conventions.Cost: Rote types, identity, and coverage need an adapter. |
| Apache Parquet Optional analytical export [PARQUET] | Large derived datasetsColumn chunks and row groups.Cost: layout choices need constraints for canonical identity. | Column-oriented scansReads only relevant chunks.Cost: unevaluated for small interactive lookups; no code-search indexes. | Offline bulk exchangeA declared corpus revision.Cost: schemas, subject bindings, and coverage must accompany it. |
| JSON / JCS API and inspection candidate [RFC8785] | Inspectable recordsJCS gives canonical JSON.Cost: NaNs, signed zeros, and wide integers need tagged mappings. | Result inspectionReadable named fields.Cost: parsing precedes column kernels. | APIs and diagnosticsSuits service boundaries.Cost: binary, numeric, and presence mappings; plain JSON is not JCS. |
Backend-native search indexes (§ 15 Search projections and derived indexes) are derived, rebuildable files with exact subject bindings and serving revisions; they need not use a canonical format.
11.2. Profile rules
-
ENC-1 An encoder MUST encode every canonical object in the profile.
-
ENC-2 An encoder MUST order map entries by bytewise comparison of each key’s complete canonical encoding, including its length prefix, and MUST NOT emit a duplicate key. Language string orders disagree; encoded-byte order does not.
-
ENC-3 An encoder MUST encode indexed-message payloads in ascending field-tag order and MUST NOT emit duplicate tags. Field boundaries, directories, and control bytes MUST use the canonical forms of the pinned Bebop 2026 wire profile [BEBOP-WIRE]: its minimal boundary widths, directory forms, and deterministic tie rules (ASSURE-3). Legacy message layouts are not interchangeable.
-
ENC-4 The profile MUST define no default values: a message field is absent or present, a present field is encoded even when zero or empty, and a schema MUST NOT define absence as equivalent to any present value.
-
ENC-6 The exact schema MUST declare every array occurrence, nested ones included, as a sequence or a set without changing upstream array framing; a decorator or schema overlay MAY carry the declaration, but the resolved semantics MUST participate in schema identity. Sequence equality MUST preserve order and repetition; set equality MUST ignore order and repeated host members. Host normalization MUST remove duplicate set members, and the encoder MUST emit distinct elements in canonical encoded-byte order, so wire duplicates are invalid. A loader MUST NOT silently ignore an unrecognized required semantic annotation or read a declared set as a sequence. No new upstream decorator syntax is reserved, and programmatic schemas can be tested without a descriptor loader.
-
ENC-7 An object’s length MUST be exactly what its structure implies: no trailing bytes and no byte inside a length-prefixed region that the region’s content does not consume.
-
ENC-8 Every directory, offset table, or index inside an object MUST be a function of the object’s content.
-
ENC-9 Numeric primitives and the lengths of collections and strings MUST use the fixed widths of the pinned wire profile [BEBOP-WIRE]; an implementation MUST NOT substitute variable-length integers.
-
ENC-10 A string MUST be well-formed UTF-8 without Unicode normalization. The encoder MUST use the pinned profile’s byte length and required NUL terminator [BEBOP-WIRE]; the terminator is framing, not part of the value. Readers MUST use the authenticated length and keep embedded NULs.
-
ENC-11 A page-local dictionary MUST be a set array (ENC-6), and an encoder MUST NOT emit an entry that no row references. Validation of a page (ENC-13) MUST check that the dictionary’s entries are distinct and in canonical order, that at least one row references each entry, and that every row’s index is in range; a page that fails a check is not canonical. These rules span fields, so a codec does not check them by itself: neither codec in experiment 01 rejected an unused entry or an out-of-range index.
11.3. Canonical values and admitted wire primitives
-
ASSURE-1 A profile MUST define an abstract canonical value domain: explicit message presence, ordered sequences, mathematical finite sets, unique-key maps, exact Unicode scalar sequences, and the floating-point values of TYPE-3. Host adapters MUST normalize supported host values into this domain before encoding and MUST reject values without a defined mapping, including distinct host map keys that collapse to one canonical key.
-
ASSURE-2 Before freeze, a profile MUST enumerate the primitive types it admits from the pinned Bebop 2026 revision, with their value ranges, widths, and canonical encodings. Other upstream types MUST stay unsupported until their semantics, assurance evidence, and vectors are supplied under § 18 Assurance. The launch encoding profile admits only Boolean, the integers of 8 to 64 bits, strings, arrays of bytes, and the UTC instant; the other primitives of § 11.4 Extended primitive rules are specified but not admitted until a schema needs one. Boolean encodings MUST be exactly
00and01. A newly supported upstream feature MUST NOT silently change an existingSpecIdor encoding profile. -
ASSURE-3 Indexed-message validation MUST check reserved control bits, permitted directory kinds, minimal boundary width, canonical directory choice, tag ordering and uniqueness, rank and count consistency, and exact bounded consumption of every present field. Equal adjacent boundaries are permitted only when the named field schema admits a zero-byte encoding. A field range MUST NOT justify reading outside the authenticated object. [BEBOP-WIRE]
-
ASSURE-4 A profile MUST NOT admit a timestamp, duration, UUID, or reduced-precision floating-point type except under the rules of § 11.4 Extended primitive rules, which fix its equality, valid range, normalization, unique encoding, and whether a timezone offset is semantic data; host-library defaults MUST NOT choose these rules.
-
ASSURE-5 The language profile MUST define logical symbol-key comparison and prefix-range construction separately from encoded-byte order, which fixed-width little-endian lengths and values make differ from lexical Unicode or numeric order. Routing and prefix queries MUST use the declared logical comparator; serialization follows ENC-2 and ENC-6.
-
ASSURE-6 Conformance vectors MUST cover:
-
admitted primitive boundaries, integer extrema and overflow, and UUID byte order;
-
alternate Boolean and NaN encodings and signed zeros;
-
temporal bounds and normalization, and timestamp-containing arrays and structs with following fields;
-
absent versus present-empty fields;
-
malformed UTF-8, embedded NULs, and string terminators;
-
lengths around width transitions and canonical directory ties;
-
zero-width collection elements and nested collection semantics;
-
invalid enums and unions;
-
dictionary ordering and unused entries; and
-
checked offset and count arithmetic.
TYPE-9 fixes the fixture format.
-
11.4. Extended primitive rules
These rules restrict the pinned upstream format and add no wire primitives, tags, message directories, alignment padding, or collection framing. A supported primitive has the same width and layout in scalars, fields, and arrays.
-
TYPE-1 An encoding-profile identity MUST bind the upstream wire revision, the canonical-rules revision, and the admitted primitive subset. For this draft, the wire revision is Bebop
2026.0.0-alpha.6at commitf73e40a1b118aff6d29d91a00ed3fdb7b4fe5e8c, and the canonical-rules revision isrote-bebop-rules-0.13. It differs fromrote-bebop-rules-0.11, which drafts 0.11 and 0.12 shared, only in making the dictionary checks of ENC-11 part of validation. The applicable schema identity MUST bind the exact root type and semantic refinements, including collection kinds and UTC-instant constraints. Experimental implementations MUST identify themselves as experimental; a changed acceptance or equality rule requires a new applicable identity. The profile identifier is metadata, not a field inserted into each upstream primitive or indexed message.
| Type | Bytes | Value and equality | Strict rule |
|---|---|---|---|
| Signed and unsigned integers | 1, 2, 4, 8, or 16 | Exact integer over the full range of the admitted width. | Fixed-width little-endian; signed values use two’s complement. No rounding or overflow wrapping. |
| UUID | 16 | All 128-bit patterns; equality of the 16 bytes. | Upstream RFC byte order, equivalent to hexadecimal text order. No variant or version restriction. |
| float16, bfloat16, float32, float64 | 2, 2, 4, 8 | One NaN value per type; every non-NaN bit pattern is distinct. | Little-endian bits; the NaN table below fixes the only accepted NaN per type. |
| Timestamp | 16 | Tuple of epoch seconds, nanoseconds, and offset milliseconds. Offset participates in equality. | Signed 64-bit seconds, signed 32-bit nanos, signed 32-bit offset, in that order and little-endian. |
| UTC instant refinement | 16 | Epoch seconds and nanoseconds, with offset fixed at zero. | Schema constraint on timestamp; the four offset bytes remain present and zero. |
| Duration | 12 | Exact signed span; equality of its unique (seconds, nanoseconds) pair. | Signed 64-bit seconds followed by signed 32-bit nanos, little-endian; sign-consistent and normalized. |
11.4.1. Integers, UUIDs, and floating point
-
TYPE-2 An admitted signed integer of width
nbits MUST cover -2n-1 through 2n-1-1; an unsigned integer MUST cover 0 through 2n-1, for upstream widths 8, 16, 32, 64, and 128. Upstreambyteis the unsigned 8-bit type. The 128-bit encoding MUST store the low 64-bit half first and each half little-endian. A UUID MUST preserve all 16 bytes in upstream RFC byte order, including nil, all-ones, and unfamiliar variant or version patterns. UUID equality and canonical map and set ordering MUST compare those bytes; application restrictions on UUID meaning belong to a separately identified schema constraint. Host integer adapters MUST preserve exact values, reject out-of-range or inexact input, and make any host bit-container convention explicit. -
TYPE-3 The abstract value domain of an admitted floating-point type MUST contain exactly one NaN, encoded as the canonical NaN in the following table; a decoder MUST reject every other NaN encoding, and encoding any host NaN MUST produce that pattern. All other bits MUST be preserved, including positive and negative zero, infinities, and subnormals; an implementation MUST NOT flush subnormals to zero. Two non-NaN values are equal exactly when their canonical bits are equal. Converting a non-NaN host number MUST be exact or fail, with no implicit rounding, clamping, or overflow to infinity; an application MAY first apply its own conversion with an explicit rounding and overflow policy. Query comparisons follow QUERY-7, not canonical bit equality.
| Type | Bit pattern | Wire bytes, in order |
|---|---|---|
| float16 (IEEE binary16) | 0x7E00
| 00 7e
|
| bfloat16 (1 sign, 8 exponent, 7 fraction bits) | 0x7FC0
| c0 7f
|
| float32 (IEEE binary32) | 0x7FC00000
| 00 00 c0 7f
|
| float64 (IEEE binary64) | 0x7FF8000000000000
| 00 00 00 00 00 00 f8 7f
|
11.4.2. Timestamps and durations
-
TYPE-4 An admitted timestamp MUST use the upstream 16-byte encoding, with seconds in the full signed 64-bit range, nanoseconds in
[0, 999999999], and offset milliseconds in[-86400000, 86400000]. The (seconds, nanoseconds) pair is the UTC instant since the Unix epoch; the offset is extra semantic data, not an adjustment to that pair. Equality MUST include all three fields. A host calendar range, whole-minute offset rule, or narrower timezone-library limit MUST NOT silently restrict the domain. A decoder MUST reject out-of-range fields and MUST NOT normalize them. -
TYPE-5 The exact schema of a Rote-owned issuance, expiry, freshness, or observation instant MUST fix the timestamp offset at zero, and its validator MUST reject a nonzero wire offset and MUST NOT repair it. A host adapter MAY drop a presentation-only offset after obtaining the exact UTC pair, without shifting the pair again. Source-language data with a meaningful offset MAY use the full timestamp or an explicit offset field; an adapter MUST NOT drop a semantic offset silently. This requirement does not rewrite externally signed timestamp evidence from another protocol or replace that protocol’s verification rules.
-
TYPE-6 An admitted duration MUST use 12 bytes: full-range signed 64-bit seconds and signed 32-bit nanoseconds with
-1000000000 < nanos < 1000000000. Positive seconds MUST NOT accompany negative nanos, and negative seconds MUST NOT accompany positive nanos; zero seconds permit either nanos sign. Its abstract span isseconds * 1000000000 + nanosnanoseconds, evaluated without overflow. A decoder MUST reject any other form. A low-level encoder MAY require canonical pairs; a separately defined host adapter MAY normalize an equivalent span with exact arithmetic, truncating quotient and remainder toward zero and rejecting a result outside the domain. There is one zero duration,(0, 0).
Timestamp · 16 bytes
Duration · 12 bytes
Upstream added the offset field [BEBOP-PR3], and the pinned wire specification and C runtime use 16 bytes [BEBOP-WIRE] [BEBOP-C-RUNTIME]; the descriptor documentation and scalar-type table still say 12 [BEBOP-SCALAR-TABLE] [BEBOP-DESCRIPTOR], so generated sizes, strides, and field offsets need checking (ASSURE-6).
11.4.3. Conformance evidence
-
TYPE-8 Conformance evidence MUST check value preservation against an independently specified, schema-aware reference for abstract normalization and equality, which MUST cover supported host mappings, nested sets and sequences, canonical map-key collisions, field presence, integer signedness, floating-point distinctions, and temporal refinements. A round-trip test MUST compare the decoded value with the original input’s abstract value, computed without the encoder or decoder under test. Byte-exact re-encoding and differential acceptance (ENC-13, ENC-15, and ENC-16) are separate requirements.
-
TYPE-9 Positive and negative vectors MUST be shared across implementations as versioned JSON fixtures with an explicit fixture schema, exact wire, profile, and root-schema identities, hexadecimal wire bytes, and typed expected values or rejection outcomes. Wide integers MUST be decimal strings and floating-point expectations fixed-width hexadecimal bit strings. Fixtures MUST distinguish malformed or noncanonical bytes, unsupported schemas or types, host mapping failures, and local resource limits, and a limit case MUST name its budget and operation. Conformance reports MUST separate semantic acceptance from operation-specific budget exhaustion. For each admitted 16-bit floating-point type, evidence MUST cover all 65536 wire bit patterns, accepting every non-NaN and the canonical NaN and re-encoding each accepted pattern exactly. Upstream interoperability checks MUST compare shared valid values and physical layout, and MUST NOT use upstream’s more permissive acceptance as the canonical oracle.
11.5. Validation
-
ENC-13 A validator MUST accept bytes
bonly if the strict decoder yields a valuevandencode(v)equalsbbyte for byte, and MUST reject all other input. An implementation MAY replace literal re-encoding with a single-pass check that accepts exactly the same inputs. An accepted second encoding gives the same facts a secondObjectId. -
ENC-15 An admission service or producer that endorses canonical validity MUST validate every object it endorses under its exact schema and MUST refuse an object that fails. An opaque relay (MODEL-27) MUST NOT advertise byte-identity verification as canonical validation.
-
ENC-16 An interpreting consumer MUST establish successful validation under the same canonical rules before exposing values from an object (SAFE-8); it MAY reuse a qualifying cached validation result under PERF-1.
11.6. Column-wise leaf pages
-
ENC-18 A leaf-page schema MUST model the page as one array per column, row-aligned to the key column, with an offsets column for each variable-width column. It MUST NOT assume that an owner occupies the same leaf as the row that names it. An encoder MUST order rows by storage ordering key with no duplicate key, and MUST derive every offsets column from its data column: first entry zero, non-decreasing, last entry equal to the data length. A reader MUST be able to binary-search the key column and read any one column without decoding another.
A leaf page encoded without an indexed-message directory is read by bounded structural traversal; a reader can keep the column locations it finds. Batch access (§ 24.2 Batch query execution) begins after verification and validation.
11.7. Freeze
-
ENC-22 The project MUST NOT freeze an encoding, partitioning, or default delivery profile before measuring the end-to-end workloads of PERF-7. Encoding comparisons MUST include canonical Cap’n Proto and a reference implementation of the same logical contract without optional accelerators. Comparisons MUST hold correctness and coverage equal, and the measured costs, workload assumptions, and acceptance criteria MUST be published with the profile. [CAPNP-ENCODING] Before an encoding profile is frozen, this specification MUST itself state the complete wire rules of the admitted subset, so that the frozen encoding does not depend on an upstream prerelease.
12. Storage and delivery
Storage fixes the canonical boundaries of facts and the authenticated routes to them. Delivery fetches those objects without changing their identities, and transport packing is independent of both. Every size, threshold, and cap named here is a profile constant.
12.1. Partitioning
Each facet is an ordered run of records, cut into pages by encoded size. A lookup routes by key to the page that holds it, so its cost does not grow with the unit.
One facet in key order, cut by encoded bytes
Facet directory
-
STORE-1 An encoder MUST sort a facet’s records by storage ordering key.
-
STORE-2 A party MUST NOT treat the visibility class as part of
SymbolKeyor as an access control. -
STORE-3 A partitioning profile MUST derive page boundaries deterministically from a facet’s ordered canonical records and profile constants alone, and MUST bound every page by its encoded bytes, not only by a record count. A record larger than the page cap MUST get a page of its own, use its schema’s canonical chunked form, or be outlined (STORE-7); it MUST NOT be left out of a range that claims to be complete. No count limit keeps a page under a byte cap when one record can be large: real signatures reach 135 KiB, and count-only cuts produced pages above a 256 KiB cap (experiment 02).
-
STORE-4 A partitioning profile MUST partition each facet independently over its own key domain, and facets MUST be joined by exact subject identity and condition, never by row position or range number. Before freeze every candidate profile MUST measure metadata, cold retrieval, and edit amplification, with fixtures that include key sets with no natural boundary and edits near forced cuts. Every partitioning profile MUST state its edit-locality assumptions and MUST NOT claim worst-case local updates, since one insertion can move many boundaries.
-
STORE-7 An encoder MUST outline an eligible payload above the outlining size as a separately hashed object. It MUST inline an eligible child below the inlining size only where its schema permits and gives the child no independent identity, never across a facet or label. Every inline row, including keys and references, MUST fit the row bound. A value above the object byte cap MUST use the schema’s canonical chunked form or be reported as unsupported or resource-limited, and MUST NOT be silently omitted from a complete range.
-
STORE-8 A partitioning profile MUST define dictionary scope, canonical entry order, reference interpretation, and bounds. The baseline interns per page and MUST NOT emit a unit-wide string or prefix table. Another profile MAY share bounded dictionaries whose identities and reference domains are authenticated, if bootstrap and lookup costs stay bounded and rebuild and edit costs are measured. Sharing MUST respect authorization and label boundaries, and an identifier MUST NOT carry meaning outside its dictionary.
Evidence note: independent facets with byte-bounded pages of 4 to 32 KiB gave the fewest objects and the lowest metadata share, and were the only layout without outlining that encoded every real unit (experiment 02). Pages of at most 32 to 64 KiB were used in experiments 12 and 16. A shared dictionary saved 6 to 7% of bytes, but a frequency shift rewrote the facet. Dictionaries are local to a page, and the page cap is a constant the partitioning profile fixes by measurement (§ 23.3 DEC-3 — Storage layout and projection granularity).
12.2. Range and size invariants
-
ROUTE-1 The logical partition MUST cover the profile’s storage-key domain with ordered, disjoint, half-open intervals between explicit start and end sentinels. A profile MUST define the comparator and how exact-key and prefix intervals are built, and MUST NOT rely on canonical wire-byte order for prefix semantics.
-
ROUTE-2 A routing node MUST commit to its complete, independently hashed children (MERKLE-1 to MERKLE-4) and authenticate each child’s interval, kind,
ObjectIdwhere present, record count, and coverage. Children MUST tile the parent’s interval, and the parent’s count and coverage MUST agree with its children under the profile’s aggregation rules (MERKLE-2). An empty interval MUST have an explicit zero-count descriptor, and a missing descriptor MUST NOT be read as empty. A leaf MUST hold only its interval’s records, in order and under one label, and nodes and subtree references MUST stay inside their facet and authorized label boundary. -
STORE-18 Every facet-range and routing descriptor MUST state its coverage: complete, partial, or not analyzed. A parent MUST claim complete only when its children tile its interval and all are complete, and an empty descriptor MAY be complete only when the producer analyzed the interval and found no records.
-
ROUTE-4 Before freeze, a partitioning profile MUST set the page byte cap, the maximum key and reference size, the inline-row size, the dictionary size, and the metadata overhead, including dictionaries and offsets, so that every conforming page fits the canonical-byte cap. The encoder MUST enforce these limits when it cuts pages (STORE-3).
- explicit empty interval
12.3. Bounded hierarchical lookup
| Object | Content |
|---|---|
| Facet root | The facet’s key domain and its complete range inventory, with authenticated bounds, record count, and coverage |
| Facet directory | The ordered range descriptors of one facet: first key, page ObjectId or subtree ObjectId, canonical length, record count, and coverage; a bounded tree of routing nodes when large
|
| Delivery directory | Per canonical ObjectId: RepresentationId, codec, dictionary identifier, transfer and canonical lengths, pack range; a bounded authenticated tree when large
|
| Root bundle | Unit-root object, facet roots, condition table, top facet directories or their authenticated references, capability vector, top delivery metadata, and required bindings with their inclusion proofs, with its own digest |
| Closure manifest | One closure’s instances and link tables, optionally with the root bundles and facet directories of its units (CLOSURE-2) |
-
STORE-9 A unit root MUST commit to every facet. A facet root MUST commit, directly or through canonical routing trees, to every reachable leaf and to the complete range inventory and key domains its profile requires. A discovery record MUST commit to the complete layer set. Routing MUST NOT make omitted ranges appear complete.
-
STORE-36 A unit MUST be demand-addressed. Every lookup that a supported operation or the link step makes MUST be answerable from the root bundle, the routing nodes on one path, and the pages that hold the looked-up keys. The number of objects read per lookup MUST be bounded by the routing depth of STORE-11 and MUST NOT otherwise grow with the unit’s size. A consumer MUST NOT need to fetch or decode a whole facet or unit to answer a lookup. An interface artifact is the exception: an analyzer loads it, and a language profile MAY publish it as one object (MODEL-40).
-
STORE-37 A root bundle MUST be bounded in size independently of its unit (PERF-4). A unit whose facets fit under the bundle cap MAY be carried whole in its root bundle, and its routing nodes are then omitted under MERKLE-3’s rule for unnecessary levels.
-
STORE-38 A store MUST serve every canonical object it publishes, including routing nodes and delivery-directory nodes, in uncompressed canonical form at a URL derived only from the store’s base URL and the object’s algorithm-tagged
ObjectId; the bootstrap profile fixes the derivation. A pack’s location MUST be named by an authenticated delivery entry. A static mirror that copies these paths MUST need no other index to serve them. -
STORE-10 A client MUST find a key by ordered search through the requested facet’s authenticated directory and subtree, and independent child fetches MUST be schedulable concurrently once their descriptors are known (PIPE-1). A client MAY search exported and internal visibility runs concurrently, exported first, but MUST resolve precedence by the profile’s lookup rule, not response order, and check every required run before claiming absence.
-
STORE-11 A profile MUST define one canonical rule, depending only on the ordered descriptors and the profile, that groups routing descriptors recursively into one root under explicit fanout, node-byte, depth, and total-entry limits. A producer MUST reject a structure that exceeds them. A client MUST stop traversal at them or at any stricter local budget it sets, MUST report hitting a local budget differently from malformed data, and MUST NOT claim completeness over unvisited ranges. A client MUST treat a structure that exceeds the profile limits as malformed.
12.4. Sparse-read verification
-
STORE-12 A consumer MUST take expected identifiers from an accepted root, never from a server’s locator.
-
STORE-14 A producer MUST publish, per facet, a delivery directory whose digest a signed delivery binding names.
-
STORE-15 A consumer with an authenticated expected
ObjectIdbut no authenticatedRepresentationIdMAY fetch only the uncompressed canonical bytes, without a pack or dictionary, or refuse; without an authenticated expected identity it MUST NOT use this fallback. It MUST bound the read by an authenticated exact length if one exists, and otherwise by a local pre-authentication cap, and MUST verify theObjectIdbefore interpreting any content. -
STORE-17 A mirror MUST serve representations byte for byte.
-
STORE-19 A consumer MAY answer "known empty" to an exact-key or prefix query only after authenticating the full queried interval in every relevant key domain and run, establishing complete coverage for every intersecting range, and validating the relevant leaves or verifiable absence evidence. The answer holds for the selected view and is only as strong as the tier that endorsed the coverage. When these conditions do not hold, the consumer MUST answer that the result is unknown or incomplete (FLOW-11), never that it is empty.
-
STORE-22 A consumer MUST answer "unknown" to a security-bearing query unless the answer rests on an unexpired discovery record and complete ranges. A query is security-bearing when its operation descriptor says so or its caller marks it. A caller that will permit an action, or assert that something is absent or safe, on the strength of an empty or negative answer MUST mark the query.
12.5. Compression
-
STORE-16 Recompression MUST produce a new delivery directory and binding and MUST NOT change a canonical
ObjectId. A root bundle whose delivery metadata changes MUST get a new digest and address, and an old address MUST NOT be overwritten with different bytes. -
STORE-23 Compression MUST apply only to delivery representations, in independent frames, and an object meant for incremental delivery MUST have its own authenticated representation unit, processable without waiting for an unrelated object (PIPE-7). [RFC8878] [RFC9842] A compression dictionary MUST be an immutable, size-capped object named in the delivery directory and never in canonical bytes, and a consumer MUST NOT use one it has not authenticated.
-
STORE-26 A producer MUST NOT share a compression frame, dictionary-training corpus, or session compression context between private and public content, or between private payloads with different authorized-reader sets. A dictionary trained on private content MUST carry its inputs' reader restrictions and MUST NOT reach a principal not authorized for those inputs. An isolated private frame MAY use an immutable dictionary trained only on public content, but this MUST NOT publish any state trained on private content.
12.6. Bootstrap and deltas
-
STORE-27 The operator MUST publish each root bundle at an immutable path derived from the digest of its exact bytes, and the discovery record MUST bind
UnitRootto that digest and to what is needed to fetch and authenticate the bundle. AUnitRootlocator MAY resolve to current delivery metadata but MUST NOT be treated as that metadata’s immutable identity. -
ROUTE-7 Unless withdrawal or purge requires removal, the operator MUST keep each root bundle and the delivery objects it names while any discovery record that references the bundle is valid, and recompression MUST NOT break those references.
-
STORE-28 The operator MAY publish a unit’s exported run as one surface pack.
-
STORE-30 A producer MAY publish a probabilistic filter over a unit’s exported names, or over the targets of its usage sites, so that a consumer can skip a fetch. The filter MUST state its scope, construction, and unit identity, and a private unit’s filter MUST stay inside its authorized boundary. A missing or unsupported filter MUST NOT block ordinary lookup. A consumer MAY treat a negative result as absence only when the filter is committed under the unit root and its construction admits no false negative; the answer then rests on the unit’s coverage, as an answer from a page does. It MUST NOT treat any other filter result as evidence of absence.
-
STORE-32 The operator MAY publish, per pair of adjacent versions, a delta pack: the whole objects present in the newer version and absent from the older. A client MUST verify each member against its own
ObjectId. -
STORE-33 A server MUST treat a "have" claim as a hint, never as entitlement, and MUST NOT derive a response from a base the client may not read. A client MUST send "have" sets about private content only to an in-realm service.
-
STORE-35 A duplex session MUST use the identifiers and checks of static delivery. [RFC8441] [RFC9220]
12.7. Optional acceleration and performance evidence
The core path is static authenticated delivery and whole-object validation. Accelerators and transport choices never define identity or add authority to their inputs.
-
PERF-1 An implementation MAY cache a successful canonical validation of identical immutable bytes under a key that MUST include the algorithm-tagged
ObjectId, exact schema and profile identities, and the validator and validation-policy revisions. Before reuse it MUST confirm the bytes are unchanged and enforce current local resource limits. A cached verdict MUST NOT replace current trust, authorization, context, coverage, or lifecycle checks. -
PERF-2 A consumer MAY keep a disposable local reverse-reference or search index over an admitted selection. The index MUST be bound to that exact view, closure, and context, MUST preserve query coverage, and MUST be updated or invalidated when the view or an input’s admissibility changes. An incomplete index MUST NOT claim complete answers, and a rebuild MUST preserve query meaning.
-
PERF-3 Implementations MAY pack independently identified objects for delivery. Packing MUST respect authorization boundaries, MUST leave each object’s expected identity and checks unchanged, and MUST NOT require semantic re-encoding or a whole-batch readiness barrier (PIPE-7).
-
PERF-4 Performance reports MUST state cold and warm assumptions and count all required trust material, root bundles, closure manifests, routing nodes, delivery directories, dictionaries, and outlined values. A latency requirement or claim MUST be stated as a number of sequential round trips plus a budget for local work, with the network profile it assumes; a wall-clock figure alone MUST NOT be a gate. A profile MUST bound the initial bootstrap and routing-fetch footprint independently of package size, MUST permit bounded hierarchical retrieval, and MUST state the round trips each supported operation needs in each state of the round-trip table. To claim a fixed round-trip count, a profile MUST NOT require the whole unit directory or a root bundle that grows without limit.
| Consumer state | Sequential round trips |
|---|---|
| Closure manifest cached, with embedded directories | 1: the pages, in parallel. 1 more when a binding table or a dependent interface lookup is needed |
| Manifest cache hit (tier 1 or 2) | 2: the manifest, then the pages |
| No cached manifest (tier 3) | 2: every root bundle in one batch, then the pages. 3 when a directory is not in its bundle |
Evidence note: a wall-clock gate of 20 ms cannot be met over a link with a 20 ms round-trip time. Local p95 was 0.2 to 7.3 ms (experiment 12); with a cached manifest at a 20 ms round trip, queries took 20.8 to 30.1 ms (experiment 13); and with directories fetched separately, Java queries took 87 to 141 ms (experiment 15). Page count, not bytes, sets cold cost.
-
PERF-5 Column-selective access MUST NOT be described as column-selective transfer or validation unless the supported layout and verification capability provide those properties. An optional projection layout MUST measure its added identity, routing, dictionary, and row-alignment costs against what it saves.
-
PERF-6 A baseline implementation need not implement filters, delta packs, duplex sessions, exchanged normalization memos, fine-grained incremental reuse, edge execution, or native materialization. A deployment MUST identify its supported optional capabilities and, where one is absent, MUST use a core path or return an explicit unsupported-operation result without weakening identity, verification, authorization, or coverage.
-
PERF-7 The freeze evidence of ENC-22 MUST measure the workloads in the table below over tiny and large units, dense and sparse facets, long and duplicate-instance closures, more than one language profile, and any intended constrained client, such as a browser or a WASM runtime outside a browser. It MUST identify hardware, runtime, and profile parameters and report distributions and worst observed cases. No threshold is set and no result is claimed.
| Workload | Required measurements |
|---|---|
| Time to ready from a fresh clone | Wall time, CPU, and bytes until a fixed query set is answered, split into own code and dependencies; dependency artifacts read on the client (LAUNCH-2) |
| Cold and warm lookup, hover, prefix, and references | End-to-end latency, request and round-trip counts, transfer bytes, verification, binding, and interpretation work |
| Whole-leaf access and projected views | Authentication and validation CPU, allocation and peak memory, projection metadata and dictionary overhead |
| Closure assembly and normalization | Input and output bytes, reused leaves and subtrees, deduplication and conflict work, root construction time |
| Docstring, declaration, overload, and boundary edits | Re-extraction and re-encoding work, invalidated objects, hash recomputation, transfer amplification |
| Adversarial layouts and maximum-size inputs | Bound enforcement, forced-boundary cascades, routing depth and metadata, failure behavior, resource ceilings |
| Optional accelerators and delivery modes | Gains and costs, including maintenance and cold start, against the same core implementation with the capability off |
| Solver and retrieval pipeline | PIPE-12 |
| Batch query execution | PERF-8 |
12.8. Verification bootstrap
The bootstrap authenticates the metadata that ordinary fetches start from. Its schemas and rules ship with the implementation or arrive by an already authenticated update, so a peer cannot select a new executable decoder.
- Requestlocal resolver and trust roots · BOOT-2
- Bounded parseverification material only · BOOT-1, BOOT-2
- Verify envelopesignature, signer, kind, schema · BOOT-3
- Accept recordTRUST-30
- Authenticate bundlelength, cap, digest · BOOT-4
- Validate bundleschema, root, bindings · BOOT-5
- Separate directoryby expected digest · BOOT-6
- Ordinary fetchesSAFE-1
-
BOOT-1 A bootstrap profile MUST fix envelope framing and signed-byte rules, identity algorithms, required control-object schemas, and limits on envelope bytes, nesting, signatures, and trust material, and MUST preserve TRUST-13. An implementation MUST enforce local pre-authentication limits before trusting any peer-supplied length or profile, and an unsupported bootstrap version MUST fail explicitly, never fall back to an unsigned reading.
-
BOOT-2 The initial request MUST use the resolver and trust roots of local policy. An implementation MUST verify a bootstrap signature envelope over the bytes that remain once any HTTP content coding is removed, with no Rote representation decoding applied. Where it controls its HTTP stack, it MUST request no content coding and reject a response that carries one. A client that cannot control content decoding, such as a page using a browser’s fetch, MUST treat the browser’s network stack as part of its trusted base, MUST enforce its own byte limits on the decoded output, and MUST state that reduced guarantee; a native mediator is needed for the stronger one. Before authentication it MUST parse only the bounded envelope and the material its signature verifier needs, and MUST NOT follow payload references, install schemas, or fetch issuer-selected URLs.
-
BOOT-3 Before using any statement in a bootstrap envelope, a consumer MUST verify its signature over the exact prescribed bytes, its permitted signer and record kind, its payload against a locally supported control-object schema, and the per-subject acceptance dependencies of TRUST-30. An authenticated candidate descriptor can authorize bounded fetching before final selection, but a parse or a valid signature alone grants no semantic authority.
-
BOOT-4 An accepted discovery record MUST authenticate the digest, exact byte length, and schema of the uncompressed root bundle, which the producer MUST serve, so the bootstrap never depends on a delivery directory inside the bundle it authenticates. A consumer MUST enforce that length and its local cap and verify the digest before parsing the bundle.
-
BOOT-5 A consumer MUST then validate the bundle schema, verify the enclosed root, binding records, and delivery-directory commitments before following them, and check each embedded object against its expected identity and role. A bundle MUST NOT contain its own discovery record or depend on it as a hashed child.
-
BOOT-6 A separately obtained delivery directory MUST be fetched through STORE-15 by the expected digest from an accepted delivery binding or other authenticated parent, and schema-validated before its entries govern a transfer; ordinary fetches then MUST follow SAFE-1. The store MUST serve every delivery-directory node, however large the directory, through the object path of STORE-38. An implementation MUST keep separate success states for cryptographic, schema, and trust-policy checks.
-
BOOT-7 An implementation MAY relay unsupported object bodies subject to SAFE-6, but MUST NOT relay an unsupported control record as if it authorized a root, resolver, codec, schema, coverage, or trust transition. An unknown required control schema blocks the dependent operation; an unknown optional semantic object follows EVOLVE-1 and MODEL-27.
The statement layout is decided (§ 23.1 DEC-1 — Binding envelope and bootstrap wire format); the envelope and the rest of the bootstrap profile are to be fixed before the interoperable wire format freezes. In-toto tooling can read a binding record, but accepting it as a Rote record also needs the predicate checks of TRUST-13.
13. Selection and normalization
Selection records which inputs a consumer admits under its policy for one closure. Normalization turns those inputs into canonical facts, resolving overlap and conflicts by fixed rules. The two have separate identities because input history and final content answer different questions.
The pilot serves selected views under SelectionRoot (SEL-8) and needs no normalizer.
- untrusted input
- answerable view
- excluded
- optional or derived
-
SEL-1
SelectionRootMUST be the content identity of a canonical selection descriptor that commits to the closure by itsClosureRoot, the selected layers and source identities, logical scope, projection selectors, applicable profiles, selection policy, andEffectivePolicyId.EffectivePolicyIdMUST be the digest of the canonical list of trust-policy clauses that govern the namespaces of the selected inputs, so that a policy edit touching none of those clauses leaves the root unchanged. A descriptor that selects pages or subtrees directly MUST bind their ordered identities, scoped ranges, and coverage. It MUST NOT depend on delivery packing or compression. -
SEL-2 A consumer MUST apply trust policy and status to whole units and layers before merging facts. A normalizer MUST NOT read a unit or layer the policy does not admit, and MUST record each exclusion with its reason.
-
SEL-4 Normalized content MUST NOT include trust policy, contributing layer identifiers, production history, or derivation receipts, and MUST commit to the logical scope, projection semantics, context, profiles, resulting facts, and coverage needed to interpret it.
-
SEL-5 A binding record that endorses a
NormalizedIndexRootMUST name theSelectionRootit was computed from. -
SEL-6 A consumer MUST treat a foreign normalized root as comparable to its own only when it was produced under its own
EffectivePolicyIdor one its policy lists as equivalent. -
SEL-8 A service MAY serve a view lazily under
SelectionRootand MUST supplyNormalizedIndexRootbefore claiming a history-independent result. -
SEL-9 A relation’s specification MUST fix its cardinality. A normalizer MUST deduplicate equal facts and MUST keep conflicting singleton claims explicit or resolve them by a rule pinned in the selection policy, never by arrival order or recency.
-
SEL-11 A response MUST distinguish an empty result from a proven-empty domain, and MUST report presence, completeness, binding, precision, interpretability, and authorization separately.
-
SEL-15 A view served lazily under
SelectionRootMUST give the same results, conflicts, and coverage whatever the order in which its inputs were fetched. It MUST return once a fact that several admitted inputs state equally. It MUST either keep conflicting singleton claims explicit in the result or resolve them by the rule the selection policy pins, and MUST define result order and pagination over the deduplicated result. A launch profile MAY instead reject a selection whose inputs overlap. -
SEL-13 A language profile that offers candidate-set incremental reuse MUST define
CandidateSetIdas the digest of scope, name, canonical member list, and the member attributes resolution reads. Caching on complete declared inputs and conservative whole-unit invalidation do not need it. -
SEL-14 A producer that keeps a resolution across changed inputs by candidate-set invalidation MUST record every candidate set the resolution consulted, including empty sets and exhausted lookups, and the profile MUST account for changes to lookup scope, precedence, and closure bindings. The producer MUST invalidate the resolution when any recorded set or other profile-required lookup dependency differs or its evidence is unavailable, and MAY invalidate a larger domain.
13.1. Client composition and projection
A client can compose a selected suite from several accepted sources without downloading one combined index.
SelectionRoot and NormalizedIndexRoot each cover full and projected views.
-
MERKLE-8 A selection descriptor MUST order its source and subject domains, facets, ranges, and projection selectors canonically, and MUST distinguish declarations from different dependency instances even when their local
SymbolKeys are equal. It MUST drop exact duplicate entries and keep overlapping entries explicit until normalization resolves them (SEL-9). -
MERKLE-9 A normalizer MAY reuse an admitted, authenticated leaf or subtree without decoding it when its semantic and encoding profiles, logical scope, canonical boundaries, projection, context, and coverage match the target and nothing across its boundary needs deduplication, conflict resolution, or other transformation; otherwise it MUST normalize the affected regions. A reused node MUST sit where the target’s canonical tree puts it.
-
MERKLE-10 A projection profile MUST define, for its supported operations, the selected semantic rows, columns, and facets, output schema, subject-key interpretation, required reference and dictionary data, and coverage meaning. Projection MUST NOT turn omitted or unsupported information into an empty or complete result, and projected objects MUST obey ordinary authorization and label propagation.
-
MERKLE-11 A baseline client MAY project by validating the complete source objects and encoding the selected facts as ordinary canonical objects. These MUST carry everything needed to interpret their values, MUST omit unused dictionary entries and unselected semantic fields, and MUST have identities that depend only on projected content and its semantic context.
-
MERKLE-12 A client MAY instead keep a lazy selector over an authenticated source leaf under
SelectionRoot; it stays bound to the complete source identity and MUST NOT be presented as a content-independent fingerprint of the projected facts. Before a client combines independently hashed column groups, their authenticated parent MUST bind their common row-key domain, ordering, row counts, ranges, and required dictionaries. Sub-leaf transfer and validation follow MERKLE-7. -
MERKLE-13 A hash match MUST NOT expand a source’s authority, authorization, freshness, or coverage. Composition MUST first satisfy SEL-2 and the applicable lifecycle rules, and a locally computed normalized root endorses none of its contributing claims.
Two clients that select the same admitted leaves and projection under the same policy get the same SelectionRoot, whether they fetched a pack or single leaves.
Different inputs that normalize to the same projected facts and coverage can get the same NormalizedIndexRoot; sorting the hashes of differently partitioned or overlapping source leaves cannot.
13.2. Query and local-edit contract
These rules apply when an implementation offers query or live-edit operations; a static object host need not.
-
FLOW-6 A query MUST bind its operation, logical scope, projection, arguments, and exactly one of: a selected immutable view, an exact live revision, or an explicitly provisional solver revision (PIPE-8). Every response MUST identify that view or revision and report the coverage dimensions of SEL-11. A response MUST give the binding state of what it returns (LINK-3): it MUST return bound facts as results, and MUST report the unbound and not-produced facts in its scope by count and cause, and on request by site. A response that reports source positions MUST also identify the
SnapshotRootwhose source-content and source-map identities those positions use. Each page and continuation MUST stay bound to the same query and view and MUST be authorized again, and a changed view requires a restart or a separately identified result. If an authorization or lifecycle change makes the bound view unusable, a continuation MUST fail with an explicit error and MUST NOT return a page that could be read as complete. Cancellation or resource exhaustion MUST return a distinguishable incomplete outcome, not a complete negative answer. -
FLOW-11 A response MUST NOT claim a complete answer for a scope when any of the following holds:
-
an instance in the scope has no unit, or its unit lacks the facet the operation needs;
-
a fact in the scope is unbound or not produced;
-
for a references operation, the edges returned from a unit for a target number fewer than the unit’s published count for that target under the instance’s conditions (MODEL-7); or
-
for a references operation, a unit in the scope stores edges that can denote a different item in another closure (MODEL-7), and the consumer has not shown, for each such edge that is unbound in this closure, that it cannot denote the target.
An answer drawn from a unit whose facet was never produced MUST be reported as not produced, never as complete and empty. In the first wave, two engines returned an empty "complete" answer where references had never been produced. One run claimed a references answer complete with an occurrence missing in each of two ecosystems: the producer had stored the occurrence under another key, so no edge the consumer read was unbound.
-
No run has yet used a signal for edges stored under another key. Experiment 15 proposes a count of edges per unit and import slot, or a mark on each site whose key is ambiguous. For the JVM such edges are those without a resolved target, and a lookup of unresolved names equal to the target’s simple name would find them. Which mechanism a language profile requires is to be settled by a run on the JVM in experiments 14 and 15, not by a choice.
-
FLOW-7 A live overlay MUST identify its base snapshot, revision, and the source or declaration domains it replaces or deletes. Replacement MUST suppress the superseded facts in that domain, and deletion MUST remove their facts and invalidate dependent answers under the language profile; an implementation MAY invalidate more. Sealing MUST resolve the overlay into ordinary canonical facts and explicit coverage, without edit history or transient session handles in normalized content.
-
FLOW-8 A dependency refresh MUST produce a new closure and selection when exact bindings or admitted inputs change, MUST keep each already-issued query view’s identity while lifecycle and authorization policy still allow its use, and MUST invalidate or recompute answers that changed dependencies affect. It MUST bind again the facts whose witnesses read a changed instance, and MAY keep the bindings of the rest. Reusing an unchanged page MUST NOT erase the distinction between the instances that share it.
13.3. Worked project workflow
This scenario is the conformance fixture of FLOW-9, not a description of an implemented client. A private application imports public A version 1 and B version 2, and B imports A. B’s producer analyzed B against A version 2, and the application’s lockfile also binds B’s slot to A version 2. The operator has admitted and published units for these releases; publisher data enters only through publisher admission and a policy that permits it.
- private to the realm
-
Establish the closure from the lockfile and obtain its manifest. A speculative lookup that misses starts no production; a confirmed need may request indexing.
-
Index the application’s own code over the interface artifacts of A version 1 and B version 2. No dependency artifact is read.
-
Answer a hover, fetching only the declaration, type, and documentation pages it needs, and a references query for an item of A limited to the closure, both under one view. B’s edges into A bind unchanged, because the closure matches B’s producer context.
-
Edit an application declaration, then delete it, as live revisions; the base copy does not reappear and public objects do not change.
-
Page through a references query, revoke or withdraw the view between pages so the continuation fails explicitly, then cancel a fresh query after one page.
-
Move the application to A version 2. Both slots now bind one instance; unaffected pages are reused, and old answers keep their old view.
-
Move the lockfile to A version 3, which B’s producer never saw. B’s edges whose witnessed items are equal in version 3 stay bound. One edge whose witnessed item changed is reported unbound, and the references answer is not complete. After a binding table for B against version 3 is published, the edge binds from it and the answer is complete.
-
FLOW-9 Before a launch profile is frozen, the conformance fixture MUST make concrete its exact schemas, identifier descriptors, expected bindings, supported operations, and coverage transitions. It MUST give exact bytes and expected identities for one artifact, one dependency binding, one admitted unit, one private selection, one query, one update, and one withdrawal. It MUST state the discovery URL, the object counts and sizes, and the round trips of a hover on one real release. It MUST include an edge that binds unchanged, an edge left unbound by a failed witness, an edge bound from a binding table, an instance whose condition class was not produced, and, for a solver-integrated client, the scheduling cases of PIPE-12.
13.4. Observable invariants of retrieval and execution
How a client schedules fetches and executes queries is its own business (§ 24 Client implementation guide). These four rules are the part of that behavior another party can observe, and they bind every consumer.
-
PIPE-6 Speculation MUST have explicit local budgets for candidate count, bytes, concurrency, and lifetime. Speculative candidates use discovery lookups only (PUB-27), and producing an index for one needs a separate explicit request (PUB-28), which exploring versions is not. Private coordinates and contexts stay inside their authorized resolver boundary at every tentative stage.
-
PIPE-7 A completed, independently authenticated and validated object MUST be eligible for readiness notification at once, without waiting for unrelated facets, the rest of its unit, a response batch, or the final graph. A streaming pack may expose a member early only when its authenticated per-member or per-frame identity, length or range, codec, and dictionary dependencies are known before its payload is interpreted; otherwise the client MUST wait for them or use independent object requests. Each exposed member MUST satisfy SAFE-1 on its own.
-
PIPE-9 Final closure and selection identities MUST commit to the solver’s exact chosen bindings and policies. Canonical normalized results MUST be independent of fetch order, scheduling, speculation, and canceled work, and an index miss or response speed MUST NOT choose a package version, provenance class, conflict winner, or context. Partial progress does not relax EXEC-1 to EXEC-3.
-
QUERY-7 For a supported exact operation, scalar, SIMD, and materialized execution MUST give the same values, selected subjects, specified ordering, and coverage under matched inputs and limits. Before an optimized implementation is accepted, the operation contract MUST define signedness, overflow, missingness, floating-point comparison including NaN and signed zero, and reductions. Canonical bit equality (TYPE-3) and numeric comparison MUST NOT silently stand in for each other. A local resource refusal MUST remain distinguishable from a complete negative answer.
14. Reuse and incrementality
Published facts are reused across consumers by binding (§ 9.3 The link step), not by key equality. This section covers the other kind of reuse: a producer or a normalizer reusing its own earlier work. That reuse is keyed on complete declared inputs. A language profile may narrow the key or the invalidation only when it shows that the omitted inputs cannot change the result; conservative recomputation always conforms. The general two-level cache of run-observed input manifests is rejected (§ 22 Rejected proposals).
14.1. Action keys
An ActionKey is a lookup key for one recipe applied to declared inputs:
ActionKey ← { pinned recipe,
declared inputs by content identity:
for extraction, the artifact, the condition classes,
and the producer context of each class;
for derived work, UnitRoot, facet root, or LayerRoot,
output-affecting budgets and truncation rules }
-
REUSE-1 A consumer MUST accept an external action-cache claim only through a Result binding signed by an identity its policy permits for that action and namespace. Across trust domains, reuse MUST follow a permitted operator, publisher, or publisher-realm path (TRUST-30, PUBLISHER-1, REALM-3), and authorization to receive the private data and authority to assert its facts MUST both hold. Cache write access, entry presence, or a matching digest MUST NOT establish either. Internal memoization, validation caches, and derived accelerators need no external signature and confer no external authority.
-
REUSE-3 An
ActionKeyMUST name declared inputs by content identity not by theActionKeythat produced them, so an extractor upgrade that yields an identical facet root invalidates nothing downstream. A producer MUST reuse a result only under equal declared inputs, or under a narrower sufficient projection that the language profile defines. It MAY invalidate whole units or larger domains, and MAY recompute conservatively without recording candidate sets if it checks every declared output-affecting input identity; it MUST NOT claim reuse across an unchecked change. -
REUSE-5 Clean, incremental, and differently parallelized production MUST reach the same
NormalizedIndexRootfor the same facts, scope, context, coverage, applicable profiles, and effective conflict and normalization rules, whatever the production history and scheduling. [GLEAN-INCREMENTALITY] [SKYFRAME] -
REUSE-6 A worker MUST NOT assign identifiers by completion order. A sealer MUST fail a job with a missing required partition; it MAY seal a gap only when the profile’s deterministic partial-result contract requires that gap independently of scheduling (EXEC-1 to EXEC-3).
14.2. Memoized normalization
A Memo (a record kind in the record-kinds table) relates a memo descriptor, the canonical descriptor of one normalization step’s inputs and parameters, to that step’s output.
-
REUSE-8 A normalizer MUST compute
NormalizedIndexRootkey range by key range over the canonical partition of the normalized facts under the applicable partitioning profile, as the Merkle hierarchy of MERKLE-1 to MERKLE-6. It MAY reuse compatible unchanged leaves and subtrees (MERKLE-9), and MUST NOT substitute the selection manifest hash for the normalized result. -
REUSE-9 An implementation MAY keep memoization internal and never exchange Memos. A consumer MUST reuse an exchanged Memo only if the Memo was signed in the consumer’s own trust domain, trust, status, and authorization checks have admitted the current selection, the Memo’s complete memo descriptor passes EXEC-5, and its output has the expected identity, schema, range, and coverage. Reuse MUST NOT admit an otherwise excluded input or change
NormalizedIndexRootrelative to fresh computation. A consumer accepting exchanged Memos SHOULD recompute a random sample and MUST reject a Memo that disagrees. -
EXEC-5 An exchanged Memo’s memo descriptor, and the lookup that reuses it, MUST commit to every output-affecting dependency: input object identities with their roles and relevant coverage; interpretation context and closure; selected logical scope and projection; output key range; encoding, partitioning, and normalization profiles; and conflict-resolution semantics. A parameter MAY be omitted only when a committed profile fixes it or defines a sound sufficient projection. Equal input leaf hashes alone MUST NOT establish Memo eligibility. Memo descriptors and derivation receipts are not part of normalized fact bytes.
-
REUSE-11 A producer MUST NOT publish a set-homomorphic hash as a commitment. Such a hash proves nothing about sparse reads and makes add-and-remove guessing cheap.
15. Search projections and derived indexes
A search service derives a disposable index from admitted Rote facts, linked exactly back to subjects and evidence, for lexical, source-pattern, vector, and relationship queries. Hosting search is optional and needs no particular storage, database, embedding model, or ranking engine.
- admitted or returned
- derived, rebuildable
- withdrawn or suppressed
15.1. Search subjects, payloads, and corpus membership
A search subject is a declaration or meaningful region, such as a function, class, module, documentation section, or example. A storage leaf may hold several subjects, and a large declaration may span several regions, each keeping its enclosing subject and exact source range. A search entry binds one subject to an immutable search payload, which entries may share; a corpus revision lists entries.
-
SEARCH-1 A search projection profile MUST define eligible subjects, region boundaries, field schemas, text and identifier normalization, type and relation mappings, source-coordinate conventions, and per-operation coverage, and its identity MUST commit to the rules needed to reproduce its logical output from the selected inputs.
-
SEARCH-2 Each search entry MUST bind exact admitted units or layers, subject identifiers, interpretation context, and its projection profile; a source-position result MUST also bind the exact source content and the mappings that interpret its range. A package name, repository URL, mutable branch, or displayed signature MUST NOT stand in for these.
-
SEARCH-3 The corpus inventory MUST record which accepted publications contribute each entry and payload, with the admitting evidence and operation coverage, and MUST bind its source selections, trust policy, and projection configuration. Published projection objects and inventories MUST follow the typed-object and authorized binding rules. A serving revision is service bookkeeping and MUST NOT be presented as a semantic identity. Public entries, including source text, examples, embeddings, and snippets, MUST contain only content permitted under PUB-13.
-
SEARCH-4 A service MAY deduplicate identical payloads, store metadata beside entries, and collapse duplicate hits for display. It MUST keep each entry’s exact publication, instance, context, and source bindings, each publication’s membership and derivation authority, and enough versions and contexts to expand a collapsed group to an exact subject. Equal content MUST NOT transfer an endorsement, widen reader permissions, or merge distinct subjects.
A corpus revision is a versioned inventory of entries. A serving revision is one built index over exactly one corpus revision and one projection generation (EXTEND-5). A request binds a corpus revision (SEARCH-13); a hit names its serving revision (SEARCH-15), which determines the corpus revision; and pagination stays within one serving revision.
15.2. Access forms
| Form | Indexed input | Identified configuration | A result does not establish |
|---|---|---|---|
| Lexical | Original identifier spelling, with optional profile-defined component terms | Tokenizer, case handling, stemming, stopwords, field weighting | Exhaustive matching or a proven-empty domain |
| Source pattern | Explicitly published source with exact content and coordinate bindings | Regular-expression syntax, matching units, flags, resource limits, domain (region, file, or other declared scope) | Completeness beyond the declared domain, or after a timeout or truncation |
| Vector | Exact semantic input | Embedding model and revision, preprocessing, exact semantic input, dimensions, comparison semantics | Exhaustive matching, a proven-empty domain, type compatibility, equivalence, or reference resolution |
| Relationship | One relationship inventory, as forward and reverse postings | Relation specification, provenance, resolution context | Coverage of private consumers or of every reference in existence |
-
SEARCH-5 For each form in the access-forms table that it serves, a service MUST index the stated input, MUST identify the stated configuration (per serving revision for lexical and vector access, in the operation for a regular expression, in each posting for relationships), and MUST NOT present a result as establishing anything in the last column. Text normalization MUST NOT change subject identity or be presented as preserving source.
-
SEARCH-6 A consumer MUST NOT present source rebuilt from declaration and type facts as original source; missing source MUST yield an unsupported or reduced-scope operation. A file-wide regular-expression operation over chunked storage MUST account for matches across chunk boundaries; a fixed overlap does not suffice for arbitrary patterns. A timeout, candidate truncation, or unsupported pattern MUST yield an explicit incomplete or unsupported outcome.
-
SEARCH-8 Embedding reuse MUST be keyed by the exact semantic input and configuration. A service MUST NOT compare vectors from incompatible embedding spaces. If embedding is nondeterministic, the service MUST keep the actual output under an exact artifact identity, distinct from its input recipe, and MUST NOT claim reproducible vectors or rankings without an established reproducibility contract. An embedding or generated description MUST NOT silently become an authoritative semantic fact or an automatically selected agent-class layer.
-
SEARCH-10 A relationship projection MUST record the relation specification, exact source subject, target key or import slot, provenance, and the resolution context any exact target depends on, and MUST keep unresolved, ambiguous, and resolved relationships distinct. A resolved target MUST name the dependency instance and selected unit; a global service MUST NOT invent one universal target for a reference whose binding depends on a consumer’s closure. Forward and reverse postings MUST derive from the same relationship inventory revision, and a changed or removed relation MUST be updated in both before the service reports that revision ready. A reverse-reference answer MUST report its indexed corpus and context scope.
15.3. Queries and hits
-
SEARCH-13 A search request MUST bind its corpus revision, operation, filters, scope, and projection and ranking configuration. A service MAY resolve a mutable corpus alias at request start but MUST report the resolved revision. Version selection, such as "latest eligible release," MUST be explicit policy; popularity and response speed MUST NOT decide semantic applicability.
-
SEARCH-14 A query combining retrieval methods MUST keep required filters and report candidate limits and omitted or unavailable operations. A regular expression evaluated only over approximate vector candidates MUST NOT be described as complete corpus search. Pagination MUST stay bound to one corpus revision and query configuration or fail with an explicit restart. Relevance pagination MUST NOT promise stable or exhaustive enumeration that the backend cannot preserve; exhaustive export needs a separate inventory traversal.
-
SEARCH-15 A hit MUST identify its exact subject, serving revision, matching operation or fields, context and coverage, and a path to its backing Rote objects and acceptance evidence. Highlight offsets MUST refer to the displayed text in its declared coordinate units. A service MUST render hit text inertly (SAFE-15 to SAFE-17). Before using a hit’s facts for an exact semantic operation, a consumer MUST perform the ordinary trust, status, context, schema, and coverage checks. Missing precise typing or resolution MUST stay visible whatever the ranking score.
15.4. Storage and updates
A search backend need not use canonical Bebop as its physical layout; § 24.2 Batch query execution defines bulk predicates and optional compute buffers.
-
SEARCH-12 A service MUST keep reverse derivation mappings, or an equivalent bounded means, from contributing publications and objects to the entries, payloads, vectors, postings, and cached answers derived from them, without requiring a canonical unit to reference indexes over it. Before returning hits, including from an older retained revision, the service MUST recheck current lifecycle restrictions; if suppression shrinks a query domain, the response MUST disclose the reduced coverage or require a restart. An entry MAY survive removal of one publication only if another currently admitted derivation independently establishes its facts and no applicable purge (LIFE-7) forbids it.
-
SEARCH-18 A service MUST be able to rebuild its logical index from the declared canonical inputs, corpus inventory, and projection recipes (CHANGE-8). It MAY denormalize or pack that output and keep payloads and inventories in object storage with mutable indexes over them, but storage locations, row layouts and IDs, and shard assignment MUST NOT redefine Rote identity or carry semantic authority.
-
SEARCH-19 Backfill and incremental indexing MUST use the same projection contracts and maintenance rules. A service MUST support adding historical admitted subjects, replacing changed entries, removing retired membership, and scheduling newly supported fields or operations over the retained corpus, and MUST track readiness per access form where their work differs. A serving revision MUST present a coherent inventory for each advertised operation, and the service MUST stage updates or otherwise keep visibility revision-consistent, so partly applied deletes, replacements, or reverse postings never appear as a complete revision.
-
SEARCH-22 A sharded service MUST bind queries to a versioned shard inventory, account for every shard the operation needs, and report failures or omitted scope. Ranked top-k retrieval MAY be approximate, but a missing shard MUST NOT be presented as empty. The serving policy MUST define cross-shard score combination, duplicate grouping, and candidate budgets, and they MUST be evaluated for retrieval quality.
-
SEARCH-23 A service MUST bound query fan-out, candidate and result counts, regex, vector, payload, and reranking work, and background indexing work. It SHOULD return a subject locator and bounded snippet, not full source or vectors, when that suffices. Each additional indexed field or modality MUST be justified by its storage, write amplification, query cost, and useful coverage.
-
SEARCH-24 Corpus membership, operation readiness, and lifecycle filtering MUST be observable independently of ranking. Retrieval MUST NOT write queries or per-user access patterns to the public transparency log. Explicit campaign publication is subject to PRIV-6; proactive indexing does not by itself make requesters anonymous.
15.5. Acceptance evidence for a search profile
-
SEARCH-25 Before claiming a supported public search profile, a service MUST evaluate representative identifier, natural-language, source-pattern, and relationship queries against a declared corpus and expected results, including negative cases for exact operations and patterns that cross storage or document boundaries. It MUST report, apart from package counts, retrieval quality, duplicate and version effects, context gaps, and operation coverage. It MUST also report cold, warm, and tail latency, fan-out, transferred and indexed bytes, embedding work, storage and write amplification, backfill throughput, incremental lag, and withdrawal-to-suppression delay, measured under concurrent queries and background maintenance, with corpus production kept apart from index construction. No numerical targets are set.
-
SEARCH-27 Search conformance tests MUST cover interrupted backfill, stale completions, removed membership, changed source mappings, newly resolved targets, retracted references, incompatible embedding migrations, failed shards, and withdrawal or purge during pagination. They MUST show that a clean rebuild and a completed incremental run agree on logical documents, subject bindings, postings, and coverage (CHANGE-6), and that reused payloads do not keep stale membership, source locations, or semantic targets.
16. Consuming untrusted data
Every fetched object is authenticated, type-checked, and validated within bounds before its values are exposed; a valid signature replaces none of these checks.
16.1. Ordered checks
- ExpectSAFE-2 · identity from parent or binding
- FetchSAFE-3 · exact length
- AuthenticateSAFE-4 · delivery representation
- DecompressSAFE-5 · bounded
- VerifySAFE-6 · bytes match ObjectId
- TypeSAFE-7 · expected header
- ValidateSAFE-8 · canonical, within budgets
- ExposeSAFE-9 · immutable view
-
SAFE-1 An interpreting consumer MUST apply SAFE-2 to SAFE-9 in order to every fetched ordinary object and MUST NOT start a step before the previous one passes. On the direct uncompressed path of STORE-15, SAFE-4 and SAFE-5 do not apply: no decompressor or pack parser runs, and SAFE-6 authenticates the fetched bytes. Bootstrap envelopes and root bundles establish the initial authenticated metadata under BOOT-1 to BOOT-6. An opaque relay MAY stop after SAFE-6 (MODEL-27); that is not semantic acceptance.
-
SAFE-2 A consumer MUST take the expected
ObjectIdfrom a verified parent or accepted binding. It MUST either takeRepresentationId, exact lengths, codec, and any dictionary or pack range from an authenticated delivery directory, or select the direct uncompressed path of STORE-15. It MUST NOT take an expected identity, codec authority, or trusted allocation limit from the response. -
SAFE-3 A consumer MUST enforce the authenticated exact transfer length of a delivery representation, or the authenticated length or local cap selected under STORE-15. It MUST abort on excess bytes, including when a server ignores a range request, and MUST reject truncation against an authenticated exact length.
-
SAFE-4 A consumer MUST check a complete delivery transfer unit against its authenticated
RepresentationIdbefore any decompressor or pack parser reads it. Independently described object or frame units MAY pass this check as each arrives (PIPE-7); a whole-pack digest cannot authenticate an early member. -
SAFE-5 For an authenticated compressed representation, a consumer MUST cap decompressed output at the declared canonical length, cap the window, and use only an authenticated dictionary.
-
SAFE-6 A consumer MUST check the canonical bytes against
ObjectId. An authenticated delivery entry MUST NOT stand in for this check (§ 23.2 DEC-2 — Initial content hash and digest size). -
SAFE-7 A consumer MUST check the header against the family, role, schema, and profiles the parent or accepted binding expected. A consumer lacking a required body schema MUST report the operation as unsupported; it MAY retain the object opaquely under MODEL-27.
-
SAFE-8 A consumer MUST establish canonical validation (ENC-13) for the exact supported schema within the applicable budgets, by running the validator or reusing a qualifying verdict under PERF-1. An opaque object MUST NOT contribute facts or a completeness claim.
-
SAFE-9 A consumer MUST expose an object only as an immutable view after the preceding checks pass, per object rather than per package, batch, or graph. It MAY report a verified candidate as byte- and schema-verified before final selection, but an API claiming facts applicable to an operation MUST also satisfy TRUST-30. An API exposing opaque bytes MUST label them uninterpreted and MUST NOT present them as validated values.
-
SAFE-10 On an object-validation failure, a consumer MUST reject the affected object and MUST NOT infer that unrelated objects are invalid; it MAY end the operation or session when resource or abuse limits require. It SHOULD report the failure to the issuer only through a path authorized for the object’s metadata, and reports MUST distinguish malformed data, unsupported capabilities, and exhausted local resources.
16.2. Budgets and limits
-
SAFE-11 Before direct access, a consumer MUST enforce the applicable profile maxima on the quantities below, together with its local and aggregate limits (LIMIT-4, LIMIT-5). A peer-supplied profile MUST NOT raise a locally configured pre-authentication limit.
| Class | Bounded quantities |
|---|---|
| Structure | Total length, section bounds, offset monotonicity, counts, arithmetic overflow |
| Keys and references | Key length, reference-table bounds, ordering and uniqueness |
| Work | Recursion depth, traversal steps, decoded allocation |
| Compression | Output length, window, dictionary size |
| Routing | Closure size, partition-table size, routing depth |
-
SAFE-12 A consumer MUST traverse cyclic semantic graphs with a visited set or a bounded evaluator.
-
SAFE-13 A producer MUST NOT emit an object that exceeds a profile constant.
-
SAFE-14 A service that normalizes or composes for clients MUST apply per-principal quotas and aggregate operation limits, and MUST bound total concurrent and queued work across principals, even when each object or request is individually valid.
-
LIMIT-4 A consumer or service MUST account for cumulative work across an operation, including bootstrap, routing, object and dictionary fetches, graph visits, signature and proof verification, decompression, schema validation, and normalization. It MUST bound fetched and expanded bytes, object and edge visits, verification work, allocation and storage, execution time, and concurrent work, and stop before a limit is exceeded. Shared or cyclic references MUST NOT reset the accounting, and batch or session limits MUST bound the combined work of their requests.
-
LIMIT-5 An implementation MAY set stricter local resource limits than a supported profile’s maxima. Exceeding a local limit MUST yield a resource-limit or unsupported-capability outcome, not a claim that the content is malformed or a query domain empty. A partial response MUST identify its evaluated scope and gaps, and cancellation MUST NOT turn incomplete work into a complete canonical result.
16.3. Untrusted text and execution
-
SAFE-15 A schema MUST mark as untrusted text every field holding documentation, examples, deprecation notes, annotation prose, display signatures, string values, or displayed symbol names.
-
SAFE-16 A consumer MUST render untrusted text inertly: no active markup, no automatically fetched link, and no control sequence that changes how other text is displayed. Before it shows untrusted text in a terminal, a log, or an agent’s context, it MUST remove or visibly escape bidirectional control characters and terminal escape sequences.
-
SAFE-17 An agent MUST treat untrusted text as delimited data, never as an instruction or as authority to reveal private context. Because delimiting does not reliably stop instruction injection, the application mediating an agent’s tools and data access MUST authorize each tool invocation, destination, and disclosure against the caller’s policy, whatever the indexed text, authenticated or not, suggests. Source prose, display names, annotations, and model output MUST NOT grant permissions or override realm restrictions.
-
SAFE-18 A client MUST fetch an external URI only under an explicit scheme and origin policy, and MUST NOT let index data cause an automatic read of a local file or internal service.
-
SAFE-19 A consumer MUST NOT treat addressability as authorization to execute or load.
16.4. Parser
-
SAFE-20 The project MUST provide a reference parser, in a memory-safe language, that implements SAFE-1 to SAFE-12.
-
SAFE-21 The project MUST fuzz the reference parser continuously, with coverage guidance and against the oracle of PROOF-9.
-
SAFE-22 The conformance suite MUST include a corpus of malformed objects. It MUST include pages with permuted or duplicate keys, invalid offsets, invalid UTF-8 slices, out-of-range or unused dictionary entries, a parent and child that disagree on interval or count, and keys in encoded-byte order where the logical comparator orders them differently (ENC-18, MERKLE-4, QUERY-10).
-
SAFE-23 An independent implementation SHOULD be fuzzed differentially against the reference parser.
-
SAFE-24 A party ingesting data not yet admitted under § 4 Trust model SHOULD do so in an isolated process.
-
SAFE-25 On a parser defect, the project MUST ship a fix and the issuer MUST withdraw the triggering objects with reason class
hazardous-data(LIFE-6); neither waits for the other. Once a fixed validator is released, the issuer MAY reinstate them (LIFE-11).
17. Lifecycle
Canonical bytes never change, but permission to rely on them can. Signed status, authority transitions, and freshness evidence decide whether a root may enter a new selection or stay in an existing view.
The lifecycle table is authoritative; the figure and the requirements below are read against it.
| Kind | Name | Entered when | Effect on a consumer |
|---|---|---|---|
| State of a root, signed by its issuer | active | The first status record is issued at publication, or a reinstatement restores it | May select and use the root |
| superseded | From active: a status record names a successor root. From withdrawn: a reinstatement restores it | Does not select the root automatically; may select it by an explicit pin; keeps accepted views, marked superseded (LIFE-5) | |
| withdrawn | From active or superseded: a status record states a reason class | Stops using the root (LIFE-6), and quarantines or purges its copies as the reason class requires (LIFE-7) | |
| Condition of a consumer’s copy, signed by no one | Stale | The consumer’s freshness evidence for the root expires (LIFE-4) | Ends when the consumer accepts current evidence, and the root is then in the state that evidence gives; or when the stale-use deadline passes, and the view becomes unusable (LIFE-8) |
| Purged | The consumer deletes its copies under a withdrawal whose reason class requires purge (LIFE-7) | Does not end for that publication; the root cannot be reinstated (LIFE-11) |
-
LIFE-21 An issuer MUST NOT sign a state or a transition that the lifecycle table does not list. A consumer MUST treat stale and purged as conditions of its own copy, and MUST NOT report either as a state the issuer asserted.
17.1. Status records
-
LIFE-1 The authority controlling publication MUST issue its status records: the operator for public roots, including admitted publisher roots, and the realm authority for realm roots. Each record MUST name exactly one root, MUST be signed, expiring, and sequence-numbered, and MUST state active, superseded with a successor root, or withdrawn with a reason class.
-
LIFE-2 A withdrawal MUST carry exactly one reason class of the reason-class table, which fixes what a consumer does with its copies and whether the root can be reinstated.
| Reason class | Meaning | Copies | Reinstatement |
|---|---|---|---|
erroneous-facts
| The facts are wrong | Stop use | Permitted |
hazardous-data
| The bytes are unsafe to parse, or the data is unsafe to act on | Quarantine | Permitted, naming the validator revision that makes the bytes safe |
confidential-content
| Secret or private content was published | Purge | Never |
license
| Redistribution is not permitted | Purge | Never |
signing-asset-revoked
| The signing identity behind an admission was revoked | Stop use | Permitted after the admission is verified again |
removed-upstream
| The registry removed the release | Stop use | Permitted |
publisher-request
| The publisher asked for withdrawal | Stop use | Permitted |
-
LIFE-3 A discovery record MUST list each selectable unit and layer root, and MUST NOT embed a status record. Each listed root has its own status record sequence, and a renewal of one root’s status MUST NOT require the discovery record or another root’s status to be issued again. A consumer that finds one listed root superseded or withdrawn MUST exclude that root and MUST still accept the others on their own status. One embedded status cannot describe several roots, and embedding forces a discovery re-issue at every status renewal.
-
LIFE-4 First acceptance of a root MUST require an unexpired active status record for that root and all other required current trust and discovery evidence. A client MUST re-check a pinned root when required freshness evidence expires; only LIFE-8 permits continued use of a retained view meanwhile. A newer known withdrawal or disqualifying authority compromise MUST override an older positive record. A withdrawal whose signature verifies is known, and MUST be honored, even when it has expired or arrives without inclusion evidence.
-
LIFE-5 On superseded status, a client MUST NOT select the root automatically and MUST re-resolve at its next refresh. It MAY select a superseded root when the consumer names that exact root, for example through a lockfile or a pinned closure manifest, while the root’s status is current; the resulting view MUST be marked superseded. It MAY keep serving an already accepted view, marked superseded, while the status is current, or under LIFE-8 after it expires. Superseded means not preferred, not inadmissible: a fresh CI worker has to be able to rebuild the view a developer’s machine still holds.
-
LIFE-6 On a verified withdrawal, a client MUST stop using the affected root under that authority and invalidate dependent views and answers under FRESH-3. Facts of other units whose witnesses read the withdrawn unit become unbound (LINK-3); those units are not withdrawn.
-
LIFE-7 Before enforcing a withdrawal’s purge scope, a consumer MUST verify that its accepted issuer has authority over the affected publication and label scope; a purge scope MUST NOT extend that authority to unrelated public or other-realm publications. The scope is the publications the withdrawal names; an object that another still-usable root also reaches stays available through that root. For reason class
confidential-contentorlicense, the consumer MUST delete, within that scope, the affected canonical objects, compressed representations, packs, cached answers, and derived copies. For reason classhazardous-data, the consumer MUST quarantine them: it MUST NOT parse, serve, or use them, and MAY keep the bytes. A purge scope forconfidential-contentSHOULD name a root or a facet, not the digests of the objects that hold the content. A consumer MUST remove a mixed pack or rebuild it without the affected content under a new representation identity, and where storage deduplicates bytes across independently authorized scopes, it MUST remove only the affected scope’s references and access paths. A derived view MAY be recomputed from permitted inputs, but purged content MUST NOT return to the affected scope through another reference. Purge governs local retention; it does not recall distributed copies. -
LIFE-9 A mirror MUST replace each status and discovery record it serves before that record expires, or stop serving it as current. It MUST stop serving withdrawn index data and the objects in a purge scope, and MUST keep serving authenticated withdrawal metadata. A policy-controlled offline snapshot is historical evidence, not a current discovery response.
-
LIFE-10 A client MUST persist the highest accepted sequence and exact record identity for each authority, record kind, and subject, and MUST reject a lower sequence or a different record at the same sequence. The subject MUST distinguish the public or realm namespace and the coordinate, or the root; identical content under another authority does not inherit that authority’s status. When an accepted anchor transition removes an identity as compromised, a client MUST discard the sequence state that records signed by that identity established, and MUST establish it again from records that a currently accepted identity issued and logged after the transition. Otherwise a compromised key that signs the highest possible sequence locks out the legitimate issuer for good.
-
LIFE-11 An issuer MUST reinstate a withdrawn root only by a newly accepted higher-sequence status record that names the withdrawal it reverses and the state it restores: active, or superseded with a successor. It MUST NOT reinstate a root withdrawn under a reason class that requires purge. A reinstatement after
hazardous-dataMUST name the validator revision that makes the bytes safe, and a consumer whose validator is older MUST keep its quarantine. Public reinstatements MUST be logged; realms MUST follow their authenticated status sequence and any configured log policy. A client MUST NOT infer reinstatement from any expiry (including the withdrawal’s own), a cache hit, or a repeated old active record.
17.2. Continued use, compatibility, and derivation
-
LIFE-8 A trust policy MUST set a maximum stale-use grace period, which MAY be zero. A client MUST compute the stale-use deadline as the earliest expiry of the status, discovery, checkpoint, and authority evidence the retained view requires, plus the grace period; refetching or replaying that evidence MUST NOT restart grace. Before the deadline, a client MAY keep using only a retained view whose roots and evidence were accepted while valid, and MUST mark the resulting answers stale with their evidence cutoff. A client MUST retain the evidence and previously observed adverse transitions, and MUST NOT claim freshness or extend stale use if it cannot establish time within the policy’s clock-uncertainty bound or recover its rollback state. Grace MUST NOT admit a new root, add newly received data to a view, or authorize a security-bearing absence claim forbidden by STORE-22.
-
FRESH-2 The operator MUST declare the supported schema and profile variants and their retirement policy. It MUST also declare the set of client versions it supports. While a variant is supported, the operator MUST keep active a variant that every client in that set can interpret, or report that none is available; it MUST NOT silently substitute an incompatible schema, and MUST NOT let a new schema alone supersede the last such variant within its declared support period. A withdrawal overrides compatibility support, whatever its reason class: the support period limits supersession by a new schema, not withdrawal. Exact support windows are operator policy.
-
FRESH-3 A consumer retaining a selection, normalized materialization, query cache, or native artifact MUST keep detached derivation metadata that finds its contributing roots, bindings, and authorities. An input withdrawal or disqualifying authority change MUST invalidate every dependent result until it is recomputed or revalidated from a still-permitted selection. Another accepted derivation of the same canonical content MAY support reuse, but a hash match alone MUST NOT transfer an endorsement or bypass a purge. Derivation history MUST stay outside normalized content.
17.3. Revocation
-
LIFE-12 A consumer MAY rely on an otherwise valid historical record signed by a retired identity only when authenticated log ordering proves the record precedes the retirement and current policy and subject status still permit it; otherwise it MUST NOT rely on the record. A consumer MUST NOT rely on a record signed by a compromised identity, whatever its earlier log inclusion. A consumer of a realm that has no authenticated log ordering MUST NOT rely on a record of any removed identity, retired or compromised. Each bar holds until a currently accepted authority revalidates the claims and issues them again; revalidation MUST NOT consist solely of copying the removed identity’s signature. A record with no log position cannot meet the first condition, so the records a root bundle carries need the inclusion evidence of LIFE-17.
-
LIFE-13 The operator MUST verify its admission records again at an interval that its published policy states, and when a publisher’s key or certificate identity is revoked upstream, MUST re-evaluate every admission that relied on it and supersede or withdraw the affected units.
17.4. Rote log
The Rote log makes rollback, freeze, and split view detectable; it confers no authority. A witness signature asserts log continuity, not that index facts are correct.
-
LIFE-15 The operator MUST append the
BindingRecordIdof every operator-tier admission, result, eligibility, discovery, status, and anchor-transition record to the Rote log, served as immutable static tiles. The operator MUST log an anchor transition before admitting public records that rely on authority it newly grants, and a client relying on newly granted authority or on a retirement cutoff MUST verify that ordering. The operator MUST serve the exact signed bytes of every logged record by itsBindingRecordId, and the log’s entries MUST be enumerable in order, so that any party can audit the log and a publisher can watch the admissions for its coordinate. A per-coordinate index over the log is derived data and carries no authority. -
LIFE-16 The operator MUST publish signed checkpoints committing to the log identity, tree algorithm, size, root, issuance time, and expiry. A consumer MUST verify those fields against local policy and time limits before treating a checkpoint as current.
-
LIFE-17 First acceptance of a public record of any logged kind MUST require an inclusion proof under a current accepted checkpoint bearing the witness signatures policy requires, with each independently controlled witness identity counted at most once toward the threshold. This covers a discovery record; a status record, including a renewal and a reinstatement; and the admission, result, and eligibility records a root bundle carries. A validly signed record of a logged kind that arrives without that evidence MUST NOT be accepted, except a withdrawal (LIFE-4). A client MUST persist its accepted checkpoint and advance it only under FRESH-5. Inclusion does not show that the record is the newest; sequence and expiry checks still apply.
-
LIFE-20 A public discovery response MUST carry, beside the discovery record, the current status record of each root it lists, an inclusion proof for each of those records under one checkpoint, that checkpoint, and the witness signatures on it. A root bundle MUST carry the inclusion proofs of the binding records it holds. The response is an unsigned container and confers nothing; a consumer verifies each element on its own. A status renewal fetched alone MUST be served with its inclusion proof and checkpoint in the same way.
-
LIFE-19 The operator MUST NOT write private coordinates, realm records, or private context identifiers to the Rote log. The same restrictions apply to external signing, certificate, transparency, timestamping, and operational services under PRIV-1 to PRIV-4.
17.5. Checkpoints
-
FRESH-5 A consumer, and a witness before countersigning, MUST authenticate an offered checkpoint and compare it with its retained checkpoint for the same log identity and tree algorithm, with the outcomes in the checkpoint-comparison table. An offered checkpoint with the retained size and root but an earlier issuance time MUST be rejected, so that validity cannot be rolled back. A renewal, or an old record’s inclusion in a newer checkpoint, MUST NOT refresh any underlying record or extend its expiry. Log migration MUST use an authenticated policy transition, not a reset of retained state.
| Tree size | Root | Outcome |
|---|---|---|
| Smaller | Any | Reject |
| Same | Different | Reject |
| Same | Same | Renewal: may refresh checkpoint validity once its signatures and time bounds pass and its issuance is not earlier than the retained one’s |
| Larger | Any | Advance only with a verified append-only consistency proof |
-
FRESH-6 A transparency policy MUST name the accepted log and witness identities, signature threshold, checkpoint age and clock bounds, and failure behavior. Its documented split-view guarantee MUST state the witness-independence and honest-overlap assumptions it needs across accepted views; disjoint witness sets or no witness requirement MUST NOT be advertised as an unconditional cross-client guarantee.
-
FRESH-7 Before setting production validity periods, the operator MUST measure or conservatively estimate renewal signatures, log growth, witness work, client refresh traffic, and the maximum withdrawal-observation delay at the intended catalog size. It MAY batch publication and retrieval of existing records and proofs if their individual identities, sequences, and expiry are preserved; an aggregate freshness format is proposed in § 17.6 Aggregate freshness.
Evidence note (experiment 05, local simulation): in a catalog of 434 purls with 800 roots, embedding status in discovery made each renewal round cost one signature and one log entry per root and one more per purl. No candidate policy kept 0.99 of client views fresh during a log or witness outage. A client that polled at the status cadence was stale 45% of the time, because the checkpoint a retained view needs expires sooner (LIFE-8). A client that loses its rollback state accepts a still-valid record that predates a withdrawal, for up to one validity period; this is an accepted risk (§ 20 Accepted risks).
17.6. Aggregate freshness
Status: proposed. Every status and discovery record expires, so every one is signed and logged again each validity period, and renewal work grows with the catalog. LIFE-3 removes the forced re-issue of discovery records; this proposal would remove per-record expiry.
-
Status and discovery records carry a sequence and no expiry.
-
The operator publishes a short-lived, signed, logged snapshot that commits to the latest sequence of every subject.
-
A consumer checks a record against the current snapshot with an inclusion proof, and the snapshot’s validity is the only freshness it tracks.
This is the split between snapshot and timestamp roles in The Update Framework [TUF-ROOT-UPDATE]. Open before it can be adopted: the proof size and its delivery in the discovery response, how a withdrawal reaches a client between snapshots, and what LIFE-8’s deadline becomes (§ 23.6 DEC-6 — Freshness and offline behavior).
Merkle inclusion and append-only consistency are separate checks, as in RFC 9162; Rote does not claim wire compatibility with Certificate Transparency.
18. Assurance
The strict Bebop profile and the canonicalization algorithms are checked against executable references, positive and negative vectors, and differential tests; machine-checked proofs can be added per capability. A missing proof does not waive correctness. No proof or implementation exists yet.
18.1. Properties
-
PROOF-1 Round trip: for every profile-admitted canonical value
vof a supported schema within the profile bounds,decode(encode(v)) = vunder the abstract equality of ASSURE-1. -
PROOF-2 Canonicality: if the strict decoder accepts bytes
bas valuev, thenb = encode(v). -
PROOF-3 Safety: the decoder terminates on every input, never reads outside the input, and checks count, length, arithmetic, work, and allocation bounds before expansion or access. Its resource bound is stated in terms of input size and profile limits, including collections of zero-width values. A local resource refusal is reported separately from malformed encoding.
-
PROOF-4 Views: every zero-copy accessor returns what decode-then-project returns.
-
PROOF-5 History independence: normalization, sort order, partition boundaries, and logical Merkle roots are deterministic functions of the facts, scope, context, coverage, applicable profiles, and effective conflict and normalization rules, not of production history or worker scheduling. Those rules are explicit algorithm inputs or fixed by a committed profile. Trust-policy identities and derivation history are not normalized content.
-
PROOF-6 Every implemented capability MUST satisfy its applicable properties among PROOF-1 to PROOF-5, whether or not a proof exists. An implementation that offers selected views without normalization MUST NOT claim a history-independent normalized result.
Under one schema, header, and encoding profile, PROOF-1 and PROOF-2 make canonical values and accepted bytes correspond one to one. Equating a matching digest with equal bytes also assumes the hash is collision resistant.
18.2. Executable specifications and differential testing
-
PROOF-7 A release MUST publish an assurance inventory listing supported capabilities, executable references, conformance vectors, differential checks, any machine-checked proofs, and known gaps. Machine-checked specifications and formal verification of a production implementation MAY come later and in stages, independently of the first profile freeze. A formal-assurance claim MUST name the exact primitives, schemas, algorithms, properties, and assumptions its proofs cover, and MUST NOT claim more. Codec proofs do not cover normalization, ordering, partitioning, or Merkle history independence, and reference-model proofs do not cover the production implementation, extractor correctness, or useful coverage.
-
PROOF-8 The codec specification MUST be executable as an encoder and strict decoder over the canonical value domain. Each implemented normalizer, partitioner, and logical Merkle algorithm MUST also have an executable reference for its conformance fixtures and differential checks.
-
PROOF-9 The project MUST use the executable specification as the oracle for differential fuzzing of the production parser, under matched schemas, profiles, and resource limits. The two MUST agree on canonical acceptance and on accepted values, and the project MUST treat a disagreement as a release-blocking defect. A local resource refusal MUST be checked against the configured budget, recorded separately from malformed-input rejection, and never counted as a canonical verdict or used to hide a disagreement.
-
PROOF-11 Before admitting a new primitive or schema construct, the project MUST extend the affected executable references and positive, negative, and differential conformance vectors. A change to normalization, ordering, partitioning, or Merkle construction MUST update its own reference and fixtures. Before changed behavior enters a formal-assurance claim, the affected proofs MUST be extended; otherwise the assurance inventory MUST narrow the claim.
19. Interoperability
Adapters, none of them built yet, connect Rote to existing semantic formats, native artifacts, and service protocols.
-
INTEROP-1 An adapter MUST state which of these capabilities it provides: accepting an artifact, preserving its bytes, understanding its semantics, producing native data, and speaking a service protocol.
-
INTEROP-2 A consumer MUST accept a native IDE artifact (such as
.ijx) only if the operator pipeline generated and signed it from a verified and fully matched artifact, or the consumer’s realm generated and signed it. A party MUST NOT accept a native artifact from the publisher tier or through the layer path. -
INTEROP-4 Before passing a native artifact to a native loader, a client MUST verify its signed binding, exact byte identity, and authenticated compatibility descriptor (INTEROP-7). The client MUST reject an unsupported or mismatched descriptor and MUST NOT load the artifact to test compatibility.
-
INTEROP-5 A foreign-format input (SCIP, SemanticDB, an IDE bridge) MUST enter as extractor output through the operator pipeline or under a realm key, and its text is untrusted text. [SCIP] [SCIP-DESIGN] [SEMANTICDB]
-
INTEROP-6 An association to an external identity (purl, bill of materials, DWARF) MUST be typed, scoped, and explicit about the relation it asserts. [PURL] [CYCLONEDX-BOMLINK] [SPDX-EXTERNAL-ID] [DWARF5]
-
INTEROP-7 A native-artifact profile MUST define a compatibility descriptor giving the artifact family and its format or serializer version, the supported loader or IDE build range, required plugins and their versions, and target or platform properties that affect compatibility. A binding MUST tie that descriptor to the exact native bytes.
-
INTEROP-8 A native adapter MUST enforce local limits while unpacking and loading, confine its filesystem writes, and keep the artifact from gaining network, execution, or plugin-installation authority. It SHOULD run an untrusted-data parser or loader in a constrained process where the host supports that. Where it cannot, it MUST declare the unisolated path in its capabilities so local policy can disable it. A signature MUST NOT be described as evidence of memory safety.
A JetBrains IDE can be served three ways: reuse of native .ijx artifacts with compatibility metadata (INTEROP-2), a semantic bridge that extracts facts through a pinned IDE and plugin environment (INTEROP-5), or a native materializer that produces native index families from Rote facts, which is uninvestigated [IJX-ZIP] [IJ-STUB-SERIALIZATION].
20. Accepted risks
| Risk | Why accepted | Mitigation |
|---|---|---|
| Fetch patterns disclose dependencies and working focus | Fetching packages already discloses dependencies; no protocol machinery is added | Private cloud account or in-firewall mirror; prefetch root bundles or surface packs |
| The operator is a single root of trust for the public index | Inherent to operator-produced indexing | Rote log and witnesses; private indexing. Extraction is reproducible only by a party that can run the recipe, and no record kind yet carries an independent reproduction |
| A client that loses its rollback state accepts a still-valid record that predates a withdrawal | The exposure equals a new client’s: at most one validity period | Short status validity; § 17.6 Aggregate freshness |
| A consumer with no reachable store has no facts for its dependencies | Local re-indexing of dependencies is what this design removes | Mirrors and offline snapshots (REALM-20); stale use within policy (LIFE-8) |
| Some facts stay unbound in a closure the producer never saw | Guessing would give wrong answers | Binding tables; wider producer condition coverage; explicit reporting (FLOW-11) |
| An operator-hosted realm exposes private data to the operator | Convenience option | The other deployments of § 7.3 Deployment |
| Published bytes cannot be recalled | Inherent to immutable public distribution | Publication gate (PUB-13); status records; purge lists |
| A verified package can be malicious; an extractor can be wrong | Signatures establish origin, not quality | Sandbox, untrusted-text rules, supersession |
| The public index covers only packages a verification profile can admit | An unverifiable index is worse than none | Realm indexing |
| Under the registry-attested rule, an admitted artifact is whatever the registry served for the coordinate | A consumer’s lock pins the same digest, so the index describes the bytes the consumer installs; publisher identity is not established | Stronger match rules where a registry supports them; a policy can set a minimum (TRUST-23); upstream attestations are recorded (TRUST-20) |
| Edit locality is bounded in expectation only | Price of history-independent ordered partitioning | Byte bounds and measured edit amplification (STORE-4) |
A schema change is a new SpecId, opaque to older clients
| Price of exact schemas and provable canonicality | Extension by linked objects (MODEL-28) |
20.1. Public on-demand activity disclosure
With on-demand public indexing and an enumerable log (LIFE-15), anyone reading the log can learn that a package was requested and roughly when; the log does not name the requester, but rare coordinates and outside timing data can allow correlation. Adopted decision D3, that the operator observes public fetch patterns (§ 21 Adopted decisions and implementation scope), covers only the fetch patterns seen by serving infrastructure.
-
PRIV-6 Before launching on-demand public indexing in production, the operator MUST either document that it accepts this disclosure or adopt a reviewed publication design that reduces it while keeping the stated transparency and freshness guarantees (§ 23.9 DEC-9 — Public on-demand activity disclosure). The operator MUST NOT describe the disclosure as covered by D3 or promise requester anonymity from the log alone.
21. Adopted decisions and implementation scope
A profile is frozen for interoperability only when its schemas, algorithms, constants, and wire rules are fixed and its conformance evidence exists. Optional capabilities have correctness rules here but are not prerequisites.
| Decision | Scope and status |
|---|---|
| D1: publisher-signed index data is the long-term third-party policy | Public admission needs publisher authority and operator publication; each ecosystem first needs its profile and conformance evidence. |
| D2: operator-controlled public indexing, realm-owned private authority, restricted native artifacts | Public callers cannot write the authoritative store. |
| D3: the operator observes public fetch patterns | Public on-demand log activity is deferred: the pilot indexes by campaign only (§ 23.9 DEC-9 — Public on-demand activity disclosure). |
| D4: lifecycle controls and a fuzzed, safe parser | Includes stale-use, derivation invalidation, purge, and bounded verification rules. |
| D5: existing signing ecosystems | No new signature primitive; signing and bootstrap profiles are not frozen. |
| Indexing once per release | A unit is produced from the release alone, by a registry or author. A consumer indexes only its own code and binds published facts by the link step; re-indexing a dependency on the client is a failure. |
| Intrinsic identity and binding context | No consumer context in a unit’s identity; conditions, symbolic edges, and witnesses; bound, unbound, or not produced, never guessed. |
| Closure manifests | Established from a lockfile; unsigned and checkable; shared by subtree. |
| Linkage | A linkage fact changes the closure, and forwarded instances are marked; it never forwards a consumer’s own root. |
| Content hash | SHA-256 with 32-byte digests in the launch encoding profile; identifiers keep algorithm tags. |
| Binding record statement | The in-toto statement layout with one defined predicate wrapper; the envelope follows the signing technology. |
| JVM language profile | The profile of the pilot ecosystem, written from the first-wave implementation. A draft: unscored, and its schemas are not written. |
| Canonical encoding | Strict canonical Bebop on the pinned Bebop 2026 indexed format, exact schemas, linked typed extension, explicit operation compatibility and batched annotations. |
| Assurance | Executable references, vectors, and differential checks; staged machine-checked proofs. |
| Merkle hierarchy and client composition | Independently verifiable subtrees, transport-independent identities, separate selected and normalized results. |
| Storage routing | Demand-addressed facets in byte-bounded pages with page-local dictionaries and bounded authenticated range inventories (§ 23.3 DEC-3 — Storage layout and projection granularity). |
| Trust before normalization | Local composition and matching hashes grant no authority; acceptance is per subject and operation, with no whole-graph I/O barrier. |
| Pipelined graph resolution | Required for solver-integrated retrieval; static hosts need no solver or duplex protocol. |
| Backfill and incremental maintenance | Explicit operator campaigns over exact trusted artifact inventories; admission rules unchanged. |
| Search projections | Optional; correctness rules adopted; no backend or model selected. |
| Batch query execution | Scalar semantics; optional SIMD and derived compute buffers; hardware-independent canonical bytes. |
| Scope | Contents |
|---|---|
| Baseline | Trusted bootstrap; canonical known-schema interpretation; opaque byte relay; authenticated whole-object and Merkle delivery, including whole-page derivation of projected canonical objects; closure establishment from a lockfile, closure manifests, and the link step; explicit scope, conditions, binding, and coverage; conservative reuse; public operator publication; private authorization and lifecycle checks. A deployment implements only the producer, relay, consumer, or realm roles it advertises. |
| Optional | Materialized history-independent normalization, fine-grained incrementality, normalization memo exchange, exported-name filters, compression dictionaries, surface and delta packs, duplex sessions, edge execution, live editor service, campaign scheduling, public search hosting, SIMD, derived compute buffers, specialized native materialization, independently hashed column groups, and sub-object proof formats. Each brings its own safety and semantic rules and needs none of the others. |
| Future consideration | Separate contributor submissions, nominated-builder attestations, and consumer-selected quorum acceptance. No contributor tier, self-nomination, or consensus-based public write authority is enabled. |
21.1. Bounded launch profile
The first milestone is a useful end-to-end pilot on the JVM for Java and Kotlin projects using Maven-compatible dependency resolution. Its language profile is § 10 JVM language profile. Its baselines (LAUNCH-2) are IntelliJ IDEA with JetBrains shared indexes, which is the existing practice of publishing indexes for dependencies; Eclipse JDT LS; and Kythe, as an existing precomputed cross-reference index. The first wave measured JDT LS only; draft runs of the other two followed (the tool comparison). Rust and TypeScript follow under the same model once their coverage limits are addressed (§ 25 Evidence from the first experiment wave). The pilot has four operations: declaration lookup with documentation, exported-name prefix lookup, references across the closure, and indexing of the consumer’s own code over interface artifacts. It uses admitted immutable objects, closure manifests, the link step, selected views, whole-object validation, scalar column access, and conservative invalidation. It uses no eager normalization, embeddings, native IDE artifacts, SIMD, or general-purpose query engine.
-
LAUNCH-1 Before claiming pilot acceptance, the project MUST publish a versioned launch profile naming its ecosystem, condition classes and artifact inventory, operations, trust policy, resource budgets, evaluation corpus, baselines, and acceptance thresholds. The profile MUST list its supported combinations of schema, condition class, recipe, resolution capability, and operation, with their compatibility and retirement behavior, and every unsupported operation, condition class, and schema. Thresholds and comparator configuration MUST be recorded before the scored run; a changed evaluation contract MUST be published as a new revision. Broader ecosystem support MUST NOT be inferred from the pilot.
-
LAUNCH-2 Acceptance MUST measure time to ready: from a fresh clone with a lockfile and an empty cache until a fixed query set is answered completely and correctly, as wall time, CPU, and bytes, each split into the consumer’s own code and its dependencies. A run in which the client parses, compiles, or extracts any dependency artifact MUST be scored as a failure, whatever its speed. Acceptance MUST compare, on the same machine and projects, against the ecosystem’s language tool with cold and with warm dependency caches, and against a simple precomputed index of whole artifacts. It MUST use real dependency closures and configurations (FLOW-2), including releases that are refused or unmatched, condition classes that were not produced, and generated inputs. It MUST measure the whole cold path: discovery, log evidence, manifest, routing, pages, validation, binding, and any fallback. It MUST state the analyzer and its configuration on each side, including any change made to load interface artifacts and whether annotation processors or compiler plugins ran. It MUST compute each ratio over the queries that both sides answer, and report the queries that only one side answers separately. It MUST report wrong answers, which MUST be zero, the fractions of facts bound, unbound, and not produced, public coverage apart from realm-produced facts, and the distribution of unit sizes. Refused artifacts, missing condition classes, unbound facts, and realm fallback work MUST count in the denominator and the costs. If the pilot misses its declared usefulness or cost thresholds, the project MUST document a narrowing, redesign, or stop, not claim success by package count.
-
LAUNCH-3 The pilot MUST run an exact trusted-artifact backfill, the declared queries, an incremental version or content update, a resolution-capability change, and a withdrawal through the complete serving path. A clean rebuild and a completed incremental run MUST agree on supported facts, results, bindings, and coverage, including newly resolved references that had no previous target edge. Interrupted work, stale completions, and withdrawn inputs MUST NOT restore stale results.
-
LAUNCH-4 Each enabled derived representation MUST have a named consumer, owner, source and conversion identities, resource budget, and tested invalidation and rebuild path. A representation whose dependencies cannot be tracked precisely MUST use conservative invalidation or be omitted. Whole-view or whole-unit recomputation MAY satisfy the baseline if it fits the launch budget.
-
LAUNCH-5 Each expansion of the launch profile MUST have a concrete consumer and acceptance evidence for incremental correctness, lifecycle behavior, and operational cost. Unimplemented optional capabilities and unavailable experiment strategies MUST be reported as unmeasured, not passed.
-
LAUNCH-6 The pilot MUST exercise the authentication, expiry, rollback, withdrawal, and authority-transition behavior of its trust policy, including dependency outages and restart. A public deployment MUST meet the public log and freshness requirements of § 17 Lifecycle, with no implicit log or witness bypass. A local simulation or narrower experimental trust model MUST state its reduced assumptions and MUST NOT claim public-profile conformance or the guarantees it omits.
| Gate | Draft threshold | First wave, JVM |
|---|---|---|
| Dependency artifacts read on the client | 0 | 0 |
| Wrong answers; bound-but-different facts | 0 | 0 |
| Declarations and exports bound | At least 0.99 of closure units | All bound |
| References bound | At least 0.95 | 0.983 |
| Cold time to ready against the baseline, at broadband | At least 4 times faster | 4.8 times against JDT LS at the median, 1.9 to 8.1 across configurations: passes. Draft runs against IntelliJ and Kythe are in the tool comparison |
| Dependency CPU against the baseline | At least 10 times lower | 182 times lower |
| Bytes fetched against the baseline’s downloads | At most 0.25 | 0.07 |
| Sequential round trips before a first cold answer | 1 with a cached manifest, 2 without (the round-trip table) | 1 for all but 14 of 5,985 reference queries, which read a binding table (older corpus) |
| Closure establishment CPU against the baseline | At most 0.1 | At most 0.00004 (older corpus; not rebuilt on the current one) |
| Binding CPU per configuration | At most 2 s | Whole-unit binder: median 1.25 s, 6.0 s at the largest, which misses. Demand binder: at most 0.01 s of link state, with binding charged to each query |
| Store size against whole objects | At most 1.4 times | 1.66 times on the JVM, on the older corpus (TypeScript 1.41, Rust 1.46): misses |
21.2. Experiment program
Non-normative. Each experiment has a briefing and an implementation in the project repository, run by a shared Make and mise runner. An experiment records input identities, profile and code revisions, toolchains, host and runtime, workload, limits, raw measurements, correctness checks, and a decision. Synthetic fixtures can test correctness and hostile cases but cannot show useful ecosystem coverage. Experiments do not publish artifacts or change external trust infrastructure. Only experiment 00’s first Rust run is scored; no result is accepted.
| Experiment | Question | First verdict |
|---|---|---|
| 00 Useful coverage | Does exact-context reuse avoid enough real work? | Scored: no. 29% unit coverage, 16% avoided work. Narrow or redesign |
| 01 Canonical codecs | Does strict Bebop earn its cost against canonical Cap’n Proto? | Bebop is 0.94 times the size; timings ran on different runtimes |
| 02 Storage layout | Which layout meets lookup and update budgets with the least machinery? | Independent facets with byte-bounded pages; alignment does not earn its cost |
| 03 Selection and normalization | When does a normalized root repay its cost? | Keep lazy views; no normalizer |
| 04 Incremental invalidation | Do updates and withdrawals converge with a clean rebuild? | Keep unit-level invalidation; the store was too small to separate strategies |
| 05 Trust and freshness | Can acceptance and refresh meet operational budgets? | No candidate keeps 0.99 freshness through a log or witness outage |
| 06 Query execution | When do SIMD or aligned buffers help? | Only for warm, large pages; cold cost is decompression and hashing |
| 07 Search projections | Which search modalities repay their maintenance? | Names and paths are strong; documentation text reaches 0.47 against a 0.50 target |
| 08 Evolution and compatibility | How small can the support matrix stay? | No wrong answers; no expansion has a named consumer |
| 09 End-to-end pilot | Does the bounded product earn a proceed decision? | Serving is correct and cheap; coverage carried over from 00 |
| 10 Context factoring | How much of a release’s facts is the same in every context? | Most: 96.4% of JVM items, 93.2% of Rust items once presence is a condition |
| 11 Link binding | Can producer facts bind soundly to any consumer resolution? | Yes: no bound fact differs in three ecosystems; coverage 0.983 JVM, 0.995 TypeScript, 0.651 Rust |
| 12 Shard layout | Do item-addressed, separately verified pages fix the cold path? | Yes: 5 to 35 times faster cold, 90 to 98% fewer bytes; store size over budget |
| 13 Closure vector | Can a lockfile map to a closure manifest with almost no client setup? | Yes: at most 0.0043 of baseline CPU; every tampered manifest rejected |
| 14 Usage sites | Can closure-wide references be answered from producer data alone? | Yes on the JVM: 8,524 queries, none wrong, 0.997 bound |
| 15 Time to ready | How much sooner is a consumer ready than with the language’s own tool? | Java 4.8 times faster than JDT LS; Rust and TypeScript runs are stale |
| 16 Demand scaling | Does consumer cost follow use, not dependency size? | Yes: same bindings, client memory 90 to 161 MiB instead of 312 to 1,022 MiB |
21.3. Implementation path
Non-normative. The first wave replaced the 0.12 plan of running experiment 00 and then building toward experiment 09. Next, in order, with the JVM first. Close the seams of the JVM run (§ 25 Evidence from the first experiment wave): count Kotlin-only units in the references scope of experiment 00, rebuild experiments 12 and 13 on the current corpus, and give the binder the closures of lock-only establishment. Run the references-completeness check (FLOW-11). Freeze and score the JVM contracts of experiments 10 to 16 on the current corpus revision; the owner freezes a contract and its thresholds. Then rerun experiment 15 for Rust and TypeScript on the current binder, and freeze their contracts. Then build what the pilot needs: the primitive and schema subset, the reference codec, byte-bounded pages, closure manifests, the JVM binder, selected views, and scalar readers. Settle the applicable open decisions and § 23.14 Evidence required before profile freeze, and freeze the profile. Add normalization, SIMD or materialization, search modalities, native adapters, or stronger formal-assurance claims afterwards, one at a time, each with its experiment, evidence, and maintenance owner.
22. Rejected proposals
An earlier draft proposed the first two optimizations below as one decision, D6, and both are rejected for the baseline. The other three were tried or analyzed in the first experiment wave.
22.1. Observed-input action keys
A two-level cache would record the inputs a run actually read and reuse results across otherwise different contexts. That needs complete read tracking, including absent files and environment reads; a miss causes silent wrong reuse; manifests disclose paths and flags; and lookup gets more machinery, all for optional cache efficiency. Keys over complete declared inputs are already sound, and the public cache’s write policy does not depend on this. Conservative invalidation is conforming, and language-profile projections and candidate-set dependencies are allowed where their correctness is specified. Reconsidering needs measured benefit, a sound tracking contract, and a new design decision.
Witnesses (MODEL-34) are not this proposal. They record dependencies at the level of language interface items, with explicit negative entries, and they decide binding, not cache keys. A witness that fails leaves a fact unbound; it never causes reuse of a wrong result.
22.2. Keyed private identifiers
Private content identifiers would be keyed with a realm secret, so observers of private fingerprints could not test candidate content or compare identifiers across realms. That addresses one metadata exposure, not public-cache write authorization, at the cost of key provisioning, distribution, and epoch rotation, verifier dependencies, rehashing and rebinding, and cross-realm interoperability. Private identifiers are instead labeled metadata under explicit authorization, including in auxiliary services and approved private sharing paths. Ordinary private hashes are still not safe to publish, and a service can read plaintext it stores. Reconsidering needs a concrete authorized use for external fingerprints and a new policy decision.
22.3. Exact-context reuse between consumers
Draft 0.12 keyed a unit on its whole resolved context, dependency versions included, and reused it only under an equal key. Scored, that gave 29% unit coverage and 16% avoided work (experiment 00). Intrinsic identity with a link step replaces it (§ 8.3 Intrinsic identity and binding context).
22.4. Aligned declaration ranges
Draft 0.12 offered a profile that cut one partition over declaration keys and shared it across facets. It did not earn its cost: independent facets with byte-bounded pages gave fewer objects and less metadata, and count-based cuts could not keep pages under the byte cap (experiment 02). Reconsidering needs a measured benefit over STORE-4.
22.5. Compiler metadata as an interface artifact
A producer could publish a compiler’s own metadata, such as Rust rmeta, for consumers to compile against.
It needs the same compiler commit and the same inputs across the whole dependency closure: none of 18 configurations could compile its root crate that way (experiment 11).
Interface artifacts are generated from the public interface instead (MODEL-40).
23. Decisions and evidence needed
Each entry below is decided, deferred, or open. A decided entry states the choice and the engineering work that remains, and can be revisited until the profile that depends on it is frozen. A deferred entry is not needed by the pilot and is taken when the production profile is written. An open entry waits for the project’s owner, and a recommendation is not a decision. Experimental implementations may parameterize the affected behavior, but a production profile MUST state its concrete choice before claiming interoperability or a security or performance guarantee that depends on it.
| Decision | State | Blocks |
|---|---|---|
| § 23.1 DEC-1 — Binding envelope and bootstrap wire format | Decided: the in-toto statement layout. The envelope follows DEC-4 | Wire freeze, until the bootstrap profile is written |
| § 23.2 DEC-2 — Initial content hash and digest size | Decided: SHA-256, 32 bytes, two checks per compressed page | Nothing |
| § 23.3 DEC-3 — Storage layout and projection granularity | Decided: independent facets, byte-bounded pages, page-local dictionaries. Store size is a pilot gate at 1.4 times | Partitioning freeze |
| § 23.4 DEC-4 — Operator signing and anchor recovery | Direction decided: Sigstore for operator records. The rest deferred | Production |
| § 23.5 DEC-5 — Transparency service and witnesses | Deferred | Public rollout |
| § 23.6 DEC-6 — Freshness and offline behavior | Deferred | Production |
| § 23.7 DEC-7 — Compatibility support contract | Decided for the pilot: one revision, no variants. Support windows deferred | Production |
| § 23.8 DEC-8 — Initial ecosystem and condition scope, and publisher onboarding | Decided: the JVM, no publisher path, no continuity-bound matching, and the registry-attested rule accepted by default | Nothing |
| § 23.9 DEC-9 — Public on-demand activity disclosure | Deferred: the pilot indexes by campaign only | On-demand public indexing |
| § 23.10 DEC-10 — Public redistribution and publication policy | Open: awaits legal review | The first public deployment |
| § 23.11 DEC-11 — Initial search and backfill profile | Decided: no search in the pilot; names and paths first | Nothing |
| § 23.12 DEC-12 — Linkage semantics and tables for unproduced artifacts | Decided | Nothing |
| § 23.13 DEC-13 — Licence and public access to the evidence | Licence decided: Apache-2.0 or MIT, with a patent statement. Open: public access | External implementers and public review |
23.1. DEC-1 — Binding envelope and bootstrap wire format
decided A binding record’s statement uses the in-toto statement layout, with the canonical predicate carried as TRUST-13 defines. An all-Bebop statement is not pursued: every tool that checks a record would need a Rote-specific verifier, and existing attestation tooling could not read one. The envelope that carries the signature follows the signing technology (§ 23.4 DEC-4 — Operator signing and anchor recovery). Remaining work, not a decision: the bootstrap profile’s exact signed bytes, schemas, lengths, and rejection rules, tested against the external verifiers that are actually needed. That work blocks wire freeze.
23.2. DEC-2 — Initial content hash and digest size
decided The launch encoding profile uses SHA-256 with 32-byte digests as the content hash. Verification is per whole page, so no tree hash is needed (MODEL-15). With pages, hashing is about 1% of cold query time with hardware support and 2 to 6% without, and the one BLAKE3 timing was inconclusive (experiment 12). SHA-256 is the digest the first wave’s locks and stores use throughout, browsers provide it natively, and every record already carries it (TRUST-12). BLAKE3 stays a candidate for a later profile that verifies part of an object, and identifiers keep their algorithm tags for that migration (EVOLVE-6). A consumer checks a compressed page twice, its transfer bytes and its canonical bytes (SAFE-4, SAFE-6), and a delivery entry does not stand in for the second check: the saving is small, and the shortcut would make an object’s identity depend on its compression.
23.3. DEC-3 — Storage layout and projection granularity
decided Facets are partitioned independently into byte-bounded pages (STORE-3, STORE-4), with dictionaries local to a page (STORE-8). A shared dictionary is not in the launch profile: it saved 6 to 7% of bytes, and a frequency shift rewrote the facet (experiments 02 and 12). Verification is per whole object and views are lazy; materialized projections, independently hashed column groups, and sub-object proofs each need a measured benefit and a named consumer (LAUNCH-5). Left to the partitioning profile as a measured constant, not a design decision: the page cap, between 32 and 64 KiB.
decided Store size stays a pilot gate, at a draft threshold of 1.4 times the whole objects (the pilot gates). The first wave misses it: 1.66 times on the JVM.
23.4. DEC-4 — Operator signing and anchor recovery
decided The operator signs its records through Sigstore (permitted signature technologies). This is the owner’s direction, not yet a profile.
deferred The pilot does not need the rest: it runs its trust path as a local simulation with stated assumptions (LAUNCH-6). To choose for production: a public or a private Sigstore instance, the identity that operator certificates carry, and the anchor-update thresholds. A public instance logs every signed record a second time, which adds to the disclosure of PRIV-6 (§ 23.9 DEC-9 — Public on-demand activity disclosure). Already required: publication identities separate from anchor-update authorities (AUTH-2), and an authenticated recovery path (AUTH-4). Blocks production: an identity and authority profile and the initial trust distribution.
23.5. DEC-5 — Transparency service and witnesses
deferred The pilot does not need this (LAUNCH-6). To choose before public rollout: running a log or integrating an existing one, and the witness requirements, which cost availability as they get stronger. Recommended: an existing compatible log and witness implementation where it meets the requirements, with a named log identity, independent witnesses, thresholds, and migration policy. The split-view guarantee rests on the witness assumptions; inclusion proofs alone cannot provide it. A narrower simulated policy can measure costs but does not meet the omitted public requirements, which change only by a later profile decision. To choose from experiment 05: a threshold of 2 of 3 or 3 of 3 witnesses, and whether a new client or one that lost its state needs extra evidence before first acceptance.
23.6. DEC-6 — Freshness and offline behavior
deferred The pilot does not need this (LAUNCH-6). Short validity windows speed withdrawal but add signing, traffic, and offline failures. Recommended: set the validity and bounded stale grace of status, discovery, checkpoints, and anchors from measured renewal cost and an explicitly accepted withdrawal window; stale grace never overrides known adverse status. Blocks production: concrete time and clock bounds, none chosen yet. To choose from experiment 05: a withdrawal window of 24 or 6 hours; whether offline clients count toward availability; whether a retained view needs a current checkpoint (LIFE-8) or only first acceptance does, which trades offline time against split-view detection for long-lived clients; and whether to adopt § 17.6 Aggregate freshness. A consumer has no local fallback for dependencies, so this decision also sets what a client does when no store is reachable.
23.7. DEC-7 — Compatibility support contract
decided The pilot supports one schema and profile revision and no compatibility variant. In experiment 08 no proposed expansion had a named consumer, so each is rejected under LAUNCH-5 until one is named.
deferred Support windows and the mandatory client feature set are operator policy for the production profile (FRESH-2): longer support costs storage, testing, and producer work, and shorter support forces client upgrades.
23.8. DEC-8 — Initial ecosystem and condition scope, and publisher onboarding
decided The pilot ecosystem is the JVM, with the conditions of JVM-2 (§ 21.1 Bounded launch profile). No publisher is onboarded, continuity-bound matching stays disabled, and coverage gaps are filled in realms.
decided The registry-attested match rule is adopted, and the default trust policy accepts it (§ 4.5 Verified and fully matched, TRUST-23). The operator’s signed admission is the record of what the registry served, and it refers to the upstream’s own attestations where they exist (TRUST-20). A policy can still require a stronger rule. Remaining work, not a decision: a verification profile for Maven Central, and the admission rate per rule on the pilot corpus (FLOW-2).
23.9. DEC-9 — Public on-demand activity disclosure
deferred The pilot indexes by campaign from an exact inventory (LAUNCH-3), so no public request starts production and the disclosure of PRIV-6 does not arise. To choose before on-demand public indexing: accept the disclosure, keeping on-demand publication simple, or redesign publication timing, at a cost in delay, expense, or less direct demand correlation. Accepting means a service statement that log observers can infer publication and package-interest timing, no requester identity or per-request and cache-hit telemetry, and an evaluation of batching that keeps transparency. Batching coarsens timing but does not hide which packages were indexed, and its delay must fit freshness policy. D3 does not decide this; production needs explicit author acceptance or a reviewed alternative.
23.10. DEC-10 — Public redistribution and publication policy
open Useful documentation, body, and navigation coverage trades against redistribution limits and irreversible disclosure. Recommended: before enabling source-reproducing facets publicly, define ecosystem-specific eligibility for them and the handling of restricted or credential-bearing content. The policy needs review; artifact signatures and secret scanning do not supply it. Interface artifacts reproduce part of a release, such as declaration text and macro definitions, so they fall under this decision (MODEL-40). A pilot served from a local or private store is not blocked; the first public deployment is.
23.11. DEC-11 — Initial search and backfill profile
decided The pilot has no search (the pilot subset), and its backfill is one campaign over the exact inventory of the evaluation corpus (BACKFILL-1). When search is added, it starts as declaration-oriented lexical search over names and paths with source bindings, where the first wave was strong. Documentation-text search reached 0.47 against a target of 0.50, and embeddings have no named consumer (experiment 07, LAUNCH-5). A search profile collapses hits that are the same item in other versions and keeps them expandable (SEARCH-4): about 3.4 of the top 10 hits were such duplicates. To choose when a search deployment is planned: ranking and refresh policy, the source-pattern domain, and resource budgets. These choices govern a search deployment, not package admission, and static object hosts need not serve search.
23.12. DEC-12 — Linkage semantics and tables for unproduced artifacts
decided A linkage fact changes the closure: the consumer adds the forwarded artifact and its dependencies, as a resolver that reads the release’s own module metadata would, and marks those instances as forwarded, since its lock does not pin them (MODEL-39, JVM-7). Feeding indexing only would leave a consumer of a code-free release without facts for it. Linkage never forwards a consumer’s own root artifact: a consumer’s own code is what its build compiles (LINK-6). An artifact that only a consumer’s closure contains is a release like any other. Its interface table comes from an ordinary indexing request or campaign for that release, or from the consumer’s realm when the artifact is private (PUB-29, FLOW-1); until it exists, a witness that needs it is undecidable and the fact stays unbound (LINK-3).
23.13. DEC-13 — Licence and public access to the evidence
decided The repository, this specification included, is to be licensed under Apache-2.0 or MIT, at the user’s choice, with a statement from Elide that it will not assert patents against conforming implementations. Remaining work, not a decision: counsel’s review of that statement, and adding the licence files and the notice on this page. If outside contributors or a foundation join, the specification text moves to the Community Specification License 1.0.
open The repository is private while the rendered specification is public, so a reader cannot open the experiment briefings or the issue tracker. To choose: whether to publish the briefings and evidence beside the specification or open the repository.
23.14. Evidence required before profile freeze
A profile freezes for its declared capabilities once the applicable decisions above are made and its implemented capabilities have their evidence: experiment results, the assurance inventory of PROOF-7, and the items below. An absent optional capability needs none. A missing required comparator is an evidence gap; an unavailable optional strategy is reported as unmeasured (PERF-8).
| Item | Completion criterion |
|---|---|
| Wire schemas | The complete wire rules of the admitted subset stated in this specification (ENC-22); exact supported types, canonical primitive and temporal rules, bootstrap objects, and routing and compatibility descriptors, with cross-language positive and negative vectors. |
| Binding | For each language profile: frozen and scored contracts for the binding, layout, closure, usage-site, time-to-ready, and demand experiments on one corpus revision, with no bound-but-different fact (LINK-4). |
| Batch query access | Bounded column views, presence and dictionary contracts, backing-storage lifetimes, and operation semantics; scalar and bulk differential checks; the experiment 06 comparisons of § 24.2.3 Conformance and performance evidence. No SIMD instruction set or new wire padding is required. |
| Solver and fetch integration | Demand and readiness semantics of the local adapter, revision reconciliation under backtracking and saturation, per-object authentication for any streaming pack, and measured speculation and concurrency budgets. Budgets and optional bundle layouts are engineering work, not a trust-tier decision. |
| End-to-end performance | Cold and warm lookup, metadata and proof bytes, references, projections, composition, incremental edits, verification and decompression allocation, browser and WASM behavior, optional-feature break-even points, and PIPE-12 solver and fetch overlap and head-of-line barriers. |
| Aggregate resource budgets | Bounds on hostile archives, fetches, graph traversals, signatures, normalization, and concurrent work; tests of clients at lower limits and of deterministic partial execution. |
| Native and external adapters | Each adapter’s exact version and compatibility contracts and conversion losses, shown separately from file acceptance or service-protocol compatibility. |
24. Client implementation guide
The requirements in this section bind only a client that claims the capability named: solver-integrated retrieval, or batch query access. They constrain scheduling and reader internals that cannot be observed on the wire, so a core conformance claim does not depend on them. Their observable consequences are requirements of the core (§ 13.4 Observable invariants of retrieval and execution).
24.1. Pipelined graph resolution and retrieval
A solver-integrated client couples a dependency solver with Rote retrieval. The solver picks exact bindings, the fetch scheduler retrieves evidence and data, and consumers interpret the verified facts that apply to them, all three overlapping through local demand and readiness notifications. These rules bind only such clients; static hosts need nothing new, and independent HTTP requests satisfy them.
-
PIPE-1 A solver-integrated client MUST let discovery, metadata retrieval, and independent candidate, facet, annotation, routing, and dictionary fetches overlap graph exploration. Work MUST become eligible for asynchronous dispatch, within current demand, priorities, and aggregate budgets, as soon as its identifiers, destination authorization, and other prerequisites are available, and MUST NOT wait for the whole graph, package, unit, closure, final selection, or normalized root.
-
PIPE-2 The solver-to-scheduler interface MUST represent candidate demand, tentative selection, retraction, priority change, and final selection, or equivalent transitions. Its notifications MUST carry an exact session-local solver revision and enough artifact, context, and scope information to reach their consumers. A candidate is demanded, tentatively selected, retracted, or finally selected. The legal transitions are: into demanded; between demanded and tentatively selected, either way; from either of those to retracted; and from tentatively selected to finally selected. A priority change is legal in any state before retraction or final selection. A retracted candidate MAY be demanded again only under a later solver revision, so that a late completion of the retracted demand is never taken for the new one.
-
PIPE-3 Updating demand MUST NOT perform network I/O synchronously or block unrelated graph exploration on fetch-queue capacity. Under backpressure the scheduler MUST bound, coalesce, or drop speculative work and reconcile with current demand without losing retractions or revision changes. A task waiting on a necessary input MUST yield. CPU, verification, decompression, buffered bytes, and notifications MUST obey aggregate limits, not only network concurrency limits.
-
PIPE-4 Scheduling MUST favor inputs that unblock required solver or semantic work over speculative alternatives, bulk warming, and unrelated rich facets, and background work MUST NOT monopolize the resources reserved for progress. Independent prerequisites SHOULD run concurrently; a dictionary fetch may overlap its payload’s fetch, but decompression waits for the authenticated dictionary. Priorities affect only readiness (PIPE-9).
-
PIPE-5 The scheduler MUST coalesce in-flight demand by algorithm-tagged canonical identity within a compatible authorization scope, also matching representation identity and transfer metadata for exact transfer reuse, and coalescing MUST NOT reveal existence or share state across unauthorized realms or reader sets. It MUST track each consumer of shared work; a retraction cancels or deprioritizes only that consumer’s demand and MUST NOT stop a transfer another consumer still needs. When authorization or lifecycle changes, failures, or resource limits stop shared work, each affected consumer MUST get an explicit failure, cancellation, or retry outcome. A cached object kept after retraction MUST pass current acceptance and context checks before later use. The scheduler MUST NOT deliver a completion for which no live demand remains; it MAY keep the verified object in its cache, and a consumer still makes the checks of PIPE-8 on what it is given.
-
PIPE-8 Readiness MUST distinguish fetched bytes, authenticated and validated objects, and facts applicable to an operation. Context-sensitive interpretation MUST wait for the operation’s exact bindings, trust, status, and coverage, and only for those. A provisional result MUST name its solver revision and declared scope and MUST NOT be presented as final or as complete beyond established coverage. Before delivering a late completion into an active view, the consumer MUST recheck its revision, live demand, and current applicability.
-
PIPE-10 A solver MUST track in-progress dependencies as well as visited nodes and MUST NOT create an unresolved wait cycle by recursively awaiting work in the same dependency cycle. Cyclic bindings MUST use the profile’s finite component or cohort representation, and context-sensitive inference follows its fixed-point or cohort execution contract.
-
PIPE-11 A client MAY request, and a publisher MAY provide, a bounded bundle of existing routing descriptors, delivery entries, and authentication-path material to shorten serial metadata fetches. The bundle MUST use a supported, profile-defined, bounded framing that preserves canonical identities and bounded bootstrap, and every statement in it MUST verify back to an accepted root or binding; every destination stays subject to local routing and authorization policy. A client that does not support the offered bundle capability or framing MUST fall back to ordinary object reads.
-
PIPE-12 Conformance MUST exercise graph backtracking with late responses, two consumers sharing a fetch while one cancels, queue saturation without solver deadlock, speculative misses that start no production, slow unrelated facets, incremental packed-member verification, missing dictionaries, cyclic dependencies, and private candidate routing. Measurements MUST include time to first useful verified object, graph progress before full resolution, solver time waiting on necessary I/O versus avoidable scheduler barriers, overlap of solving, fetching, and verification, serial metadata dependencies, cancellation cost and latency, peak buffered bytes, and wasted speculative transfer. Comparisons MUST use identical chosen graphs and coverage under controlled cache, latency, and failure conditions.
24.2. Batch query execution
Column layout, zero-copy access, and SIMD execution are separate properties. No instruction set or query backend is selected.
24.2.1. Column batches and safe access
-
QUERY-1 A consumer that queries canonical leaf pages MUST offer bounded batch access to supported columns, with fixed-width primitive columns available as typed spans or equivalent views that allocate nothing per element. A view MUST identify element type, width, byte order, row range, byte bounds, backing-storage lifetime, and the exact source object, schema, and profile. Batches MUST stay within local memory and work budgets and MUST NOT require materializing the whole unit or corpus.
-
QUERY-2 A batch view MUST expose schema-defined presence and keep absent, present-empty, zero, and schema-defined missing values distinct where the schema does. Variable-width views MUST identify validated offset units, counts, and data bounds, and dictionary views MUST identify the exact dictionary and its validated index domain. A derived validity bitmap MAY encode existing presence but MUST NOT add nullable Bebop array elements or mark an ordinary value as missing.
-
QUERY-3 A reader or kernel MUST NOT assume that canonical data is CPU-aligned or followed by readable padding. Every load MUST stay inside its input buffer, so a final partial vector MUST use bounded loads, a scalar tail, or an explicit scratch buffer whose padding contributes no values, validity, or matches and whose cost counts toward resource limits. A view MUST hold its immutable backing storage for its lifetime or detect invalidation before access.
-
QUERY-4 Canonical bytes and identifiers MUST be independent of vector width, CPU features, host byte order, and allocation alignment. An encoder MUST NOT pad, change primitive widths, or reorder data for an execution kernel beyond what its canonical schema and encoding profile define. A new canonical layout MUST have an explicitly identified profile and its ordinary conformance evidence, and a runtime optimization MUST NOT silently create one.
Pinned Bebop arrays and structs have no alignment padding, so fixed-width values can start at an unaligned address. [BEBOP-WIRE] Arrow’s aligned, padded buffers are an optional compute layout, not a canonical wire format. [ARROW-COLUMNAR] The Bebop indexed-message directory locates fields, not rows or text matches, and SIMD scanning supplies no full-text or regex index; § 15 Search projections and derived indexes governs public search.
24.2.2. Execution and derived compute layouts
-
QUERY-5 Batch predicates MUST keep each selected row bound to its exact canonical subject and context, and a selection mask or row list MUST name its row domain and MUST NOT be applied to a differently ordered or unrelated column. Combining facets, batches, or relationship postings MUST establish compatible subject bindings and coverage, not rely on row positions or numeric identifiers. Results MUST pass the ordinary authorization, applicability, and lifecycle checks before exposure.
-
QUERY-6 A dictionary predicate MAY be evaluated once per entry and applied to row indices, and MUST then use the operation’s declared comparison, normalization, and missingness rules. Dictionary identifiers MUST stay scoped to their dictionary, so comparing across leaves MUST compare values or use a validated remapping. Encoded-byte order MUST NOT be taken as semantic prefix or numeric order (ASSURE-5).
-
QUERY-8 Approximate retrieval and floating-point ranking MUST identify their numerical and approximation policy: precision, permitted reduction variation, and tie handling where relevant. A policy MAY allow implementation-dependent scores or candidates if it says so, and MUST be evaluated under § 15.5 Acceptance evidence for a search profile when used for public search. Approximation MUST NOT weaken exact filters, subject bindings, or declared coverage, or change canonical facts or identifiers.
-
QUERY-9 A consumer MAY derive aligned, padded, byte-swapped, or backend-native compute buffers from admitted canonical inputs as disposable state, invalidated under PERF-2 and FRESH-3. A buffer MUST have a defined conversion that keeps the canonical distinctions supported operations need, and a cache identity that includes its source and view identities, conversion revision, layout, and execution semantics. Reuse MUST recheck current admissibility, and a buffer MUST NOT replace canonical bytes for hashing or publication. A reader MUST support bounded scalar execution of its advertised exact operations without SIMD hardware, and materialization MUST stay within declared resource limits.
-
QUERY-10 Vectorized validation MUST accept and reject exactly what the scalar reference validator does under matched schemas, profiles, and limits, and skipping unselected rows MUST NOT skip validation an exposed object requires (MERKLE-7, PERF-5). An optimized validator MAY fuse bounded scans but MUST check all Boolean, UTF-8, offset, directory, and dictionary constraints before exposing a view.
24.2.3. Conformance and performance evidence
-
QUERY-11 Implementations MUST test bulk accessors and optimized kernels against decode-then-project and scalar execution on the same fixtures, covering as applicable: empty and single-row batches; vector-width boundaries and tails per kernel; unaligned starts and truncated buffers; invalid and overflowing offsets; absent and empty fields; high-bit unsigned values; NaNs and signed zeros where admitted; dictionary identifiers colliding across leaves; reordered or mismatched selection masks; expired backing storage; and derived buffers made stale by a view or lifecycle change. Optimized validators MUST take part in the oracle-based differential checks of PROOF-9, and disagreement in supported exact query results MUST block release of the affected implementation.
-
PERF-8 The freeze evidence of ENC-22 MUST compare scalar direct scans, SIMD direct scans where supported, and optional aligned materialization followed by batch execution, and MUST report an unavailable strategy as unmeasured rather than claim its benefit. It MUST cover cold and repeated warm queries, tiny and large leaves, low and high selectivity, dictionary predicates, and applicable relationship and source-search operations. It MUST report authentication, decompression, canonical validation, conversion, predicate work, selected-value retrieval, allocation, and peak memory separately and in total, with required whole-object work in cold-query totals, and MUST report materialization break-even and maintenance costs, including cases with no benefit. It MUST identify hardware, runtime, enabled instruction sets, batch sizes, input alignment, and query semantics. An intended constrained target, such as a browser or a WASM runtime outside a browser, MUST keep a measured scalar path and measure any available SIMD separately.
These comparisons extend the encoding comparison, including canonical Cap’n Proto. No vector width, alignment, batch size, CPU feature, or speedup is fixed.
25. Evidence from the first experiment wave
Non-normative. Seventeen experiments (00 to 16) ran up to 2026-11-17. Only experiment 00’s first Rust run has a frozen contract and a scored result; every other figure is unscored, and most are single runs on a shared machine. In every run the consumer opened no dependency file.
| Ecosystem | State | Newest figures | Limit |
|---|---|---|---|
| JVM (Java and Kotlin), resolved with Maven or Elide | Works end to end | References bound 0.983, declarations and exports fully bound, none bound but different. 8 Java and 4 Kotlin consumers answered every query, none wrong. Java cold time to ready 4.8 times faster than JDT LS at broadband, against a draft gate of 4 | File taint and real classpath differences; no scored Kotlin baseline; the consumer’s own compile sets time to ready for large projects |
| Rust | Sound, low coverage | References bound 0.651, declaration units 0.693, none bound but different. 0.47 of queries answered against rust-analyzer’s 0.89, on an older binder | Feature and configuration classes no producer built; build-script outputs; macro provenance; type-dependent edges |
| TypeScript and JavaScript | Sound, references bind, small gain | References bound 0.995, declaration units 0.830, none bound but different. 0.80 of queries answered against tsserver’s 0.92, on an older binder | Peer dependencies, augmentation in the consumer’s program, ambient globals; tsserver is already fast; JavaScript consumers unmeasured |
Not measured anywhere: producer signing, publication, and discovery; admission with a signed record or under a publisher-signature rule (TRUST-19); scored IntelliJ and Kythe baselines, of which only draft runs exist; repeated timings. No candidate trust policy kept 0.99 of views fresh through a log or witness outage (experiment 05), so offline and witness policy are not yet decided (§ 23.5 DEC-5 — Transparency service and witnesses, § 23.6 DEC-6 — Freshness and offline behavior).
The JVM run is end to end with stand-ins at three seams. The time-to-ready run gives the binder the closures of the corpus planner, not those of lock-only establishment, which is timed beside it (experiment 15). Its declaration and prefix transfers are charged from an earlier page store that predates two closure fixes, so some of those queries carry no transfer charge. Closure manifests bind that earlier store’s objects, not the binder’s units, and have not been rebuilt on the current corpus (experiment 13). The page-layout gates of experiment 12 and the scaling figures of experiment 16 were measured on the older corpus.
After the first wave, two Java consumers were run against three existing tools: IntelliJ IDEA 2026.3 with JetBrains shared indexes on, Eclipse JDT LS, and Kythe 0.0.76 with each dependency’s entries produced ahead of time. The runs are single, unscored, and on a shared machine, and their ratios are not computed over commonly answered queries (LAUNCH-2), so none is a gate figure. Time to ready is cold, at the broadband profile, and bold marks a clear winner.
| Rote | IntelliJ, shared indexes on | JDT LS | Kythe | |
|---|---|---|---|---|
| google-java-format | ||||
| Time to ready, cold | 1.71 s | 11.85 s | 7.27 s | 27.6 s (64.5 s without precomputed entries) |
| Time to ready, warm | 1.56 s | 6.66 s | 6.55 s | not measured |
| Queries answered, of 25 | 25 | 25 (24 warm) | 18 | 17 |
| Client CPU | 1.45 s (0.17 s for dependencies) | 119.8 s | 33.8 s | 42.6 s |
| Bytes fetched | 0.61 MiB | 5.74 MiB | 5.74 MiB | 33.2 MiB |
| jib-core | ||||
| Time to ready, cold | 2.05 s | 12.58 s | 9.32 s | 80.5 s (253.9 s without precomputed entries) |
| Time to ready, warm | 1.83 s | 6.93 s | 7.54 s | not measured |
| Queries answered, of 25 | 25 | 25 | 18 | 20 |
| Client CPU | 1.59 s (0.21 s for dependencies) | 104.2 s | 38.2 s | 101.6 s |
| Bytes fetched | 1.44 MiB | 19.93 MiB | 19.93 MiB | 121.5 MiB |
| Both | ||||
| Wrong answers | 0 | none reported | 0 | 0 (it never claims an answer is complete) |
| Exported-name prefix lookup | yes | yes | types only | no equivalent |
| Kotlin | yes | yes | no | no |
| Work before the first query | own code only | indexes every dependency jar | indexes every dependency jar | builds serving tables for the whole closure (1.0 and 3.5 GiB) |
| Dependency versions differ from the producer’s | bound by witness, or reported unbound | not applicable: it indexes the consumer’s own jars | not applicable: it indexes the consumer’s own jars | references go missing with no signal |
Three things qualify the table. With shared indexes on, IntelliJ used only the index bundled for its own runtime: nothing was downloadable for the project’s JDK and the Maven-library index server refused access, so it indexed every dependency jar itself. The JDT LS score may be low because of a tab-column defect in the baseline harness, which is not yet fixed. Kythe’s entries name each dependency with its version, so a reference into a dependency whose version differs in the consumer’s closure hangs off a name the consumer does not have: 4,061 references from one library to an annotation were returned when everything was indexed together, and none from precomputed entries, with nothing to tell the consumer. This is the case the link step reports as bound or unbound (LINK-3).
26. Source references
Sources describe existing formats and mechanisms, not an implementation or benchmark of Rote. The pinned Bebop 2026 indexed format [BEBOP-WIRE] is the wire-format evidence; legacy Bebop documentation does not substitute for it.
-
**[SCIP] SCIP schema:** scip-code/scip, scip.proto. Symbol identities, occurrences, documentation, signatures, relationships, and position encodings.
-
**[GLEAN-INCREMENTALITY] Glean, Incrementality:** Implementation documentation. Unit ownership, visibility, and derived-fact ownership.
-
**[SKYFRAME] Bazel, Skyframe:** Bazel documentation. Explicit dependencies, deterministic evaluation, invalidation, and change pruning.
-
**[REMOTE-EXECUTION] Bazel Remote Execution API:** remote_execution.proto. Separate action cache and content-addressable storage concepts.
-
**[CAPNP-ENCODING] Cap’n Proto, Encoding Spec:** Canonicalization and layout.
-
**[RFC8878] RFC 8878, Zstandard Compression:** Zstd format and dictionaries.
-
**[RFC9842] RFC 9842, Compression Dictionary Transport:** Dictionary-aware HTTP compression.
-
**[RFC8246] RFC 8246, HTTP Immutable Responses:** Immutable cache directive.
-
**[RFC9110] RFC 9110, HTTP Semantics:** Strong validators and byte ranges.
-
**[RFC8441] RFC 8441, Bootstrapping WebSockets with HTTP/2:** Extended CONNECT.
-
**[RFC9220] RFC 9220, Bootstrapping WebSockets with HTTP/3:** HTTP/3 adaptation.
-
**[IN-TOTO-STATEMENT] in-toto Attestation Framework:** Statement specification.
-
**[SLSA-PROVENANCE] SLSA, Provenance:** SLSA v1.2 provenance.
-
**[PURL] Package URL specification:** package-url/purl-spec. Package components, qualifiers, and package-relative subpaths.
-
**[CYCLONEDX-BOMLINK] CycloneDX, BOM-Link:** External BOM and component identifiers.
-
**[SPDX-EXTERNAL-ID] SPDX 3.0.1, ExternalIdentifierType:** External identifier vocabulary.
-
**[DWARF5] DWARF Version 5:** Standard overview and normative specification link.
-
**[REPRODUCIBLE-BUILDS] Reproducible Builds, Definitions:** Reproducibility boundary. Specified source, environment, instructions, and expected artifacts.
-
**[SCIP-DESIGN] SCIP design rationale:** SCIP design rationale. Producer-oriented transmission, streaming and parallel indexing goals.
-
**[SEMANTICDB] SemanticDB specification:** SemanticDB specification. Structured types, symbols, scopes and producer conventions.
-
**[SEMANTICDB-SCHEMA] SemanticDB pinned schema:** SemanticDB pinned schema. Current type/signature fields, build-target data and unknown-field setting.
-
**[BEBOP-PAPER] Sampson, Saito and Chan, Simplicity Scales:** Sampson, Saito and Chan, Simplicity Scales. The supplied Bebop paper; benchmark scope and paper-era layout.
-
**[BEBOP-WIRE] Bebop 2026 indexed wire specification:** Bebop 2026 indexed wire specification. Pinned prerelease message boundaries, tag directories and canonical directory rules.
-
**[BEBOP-RELEASE] Bebop 2026 alpha.6 release:** Bebop 2026 alpha.6 release. Prerelease identity and release artifacts.
-
**[BEBOP-TS-RUNTIME] Bebop TypeScript wire runtime:** Bebop TypeScript wire runtime. Map writing follows supplied iteration order; primitive and collection handling.
-
**[IJX-ZIP] JetBrains reproducible-build comparison: ZIP handling of .ijx:** Primary source.
-
**[IJ-STUB-SERIALIZATION] IntelliJ StubSerializationHelper: serializer identifier remapping:** Primary source.
-
**[CLANGD-COMPILE-COMMANDS] clangd compile commands:** clangd compile commands. Compiler flags, include paths, target and language mode affect interpreted source and index applicability.
-
**[SIGSTORE-OVERVIEW] Sigstore overview: signing flow:** Sigstore overview: signing flow. Public signing flow persists artifact digest, signature and certificate in Rekor, with identity supplied through OIDC/Fulcio.
-
**[BLAKE3] BLAKE3 project:** BLAKE3 project. BLAKE3 cryptographic tree hash; candidate rather than frozen choice.
-
**[BAO] Bao specification:** Bao specification. Proof encodings and authenticated range/length considerations for within-object verified streaming and slices.
-
**[SLSA-VERIFYING] SLSA v1.2: Verifying artifacts:** SLSA v1.2: Verifying artifacts. Trusted signer/builder roots, exact artifact digest and source/build expectation checks.
-
**[TUF-ROOT-UPDATE] The Update Framework specification 1.0.37, root update:** The Update Framework specification 1.0.37, root update. Authenticated sequential root transitions, old/new authority thresholds and persistent trusted state; Rote adopts these principles rather than the full TUF protocol.
-
**[RFC9162] RFC 9162: Certificate Transparency Version 2.0, Merkle proofs:** RFC 9162: Certificate Transparency Version 2.0, Merkle proofs. Distinction between inclusion proofs and append-only consistency proofs; Rote-specific lifecycle policy is a design choice.
-
**[ARROW-COLUMNAR] Apache Arrow Columnar Format:** Buffer alignment and padding. Reference for optional derived compute buffers; no Arrow wire dependency or replacement canonical format is adopted.
-
**[PROTOBUF-CANONICAL] Protocol Buffers canonicality:** Serialization Is Not Canonical. Deterministic serialization does not establish canonical identity.
-
**[PROTOBUF-ENCODING] Protocol Buffers encoding:** Wire encoding. Tagged records, variable-width integers, and packed repeated fields.
-
**[FLATBUFFERS] FlatBuffers Internals:** Layout and construction. Vtables, aligned scalar vectors, and permitted construction-order variations.
-
**[PARQUET] Apache Parquet File Format:** Column chunks and file metadata. Analytical file layout; its role in Rote is a candidate derived export.
-
**[RFC8785] JSON Canonicalization Scheme:** Canonical JSON and its value-domain constraints. Canonical JSON alone does not encode Rote’s full abstract value domain.
-
Earlier briefing: Rote design briefing 0.6.