CoordX Types: A Trustless, Swappable Type System for Shared Records
Analyze & explore related research in Conceptio
Connect this record directly into your research workflow or AI agent. Explore citations across open repositories, query full text, and export structured proof bundles.
CoordX Types: A Trustless, Swappable Type System for Shared Records David Hyland-Wood and Rob Ewin CoordX
arXiv:2611.16128v1 [cs.CR] 12 Nov 2026
White paper, 9 November 2026 Abstract The CoordX Protocol carries signed and encrypted entries between parties. It proves who wrote each entry and who had permission to write it. It does not say what an entry means. That task belongs above the protocol layer. This paper describes the CoordX type system, the layer that gives entries a meaning. A type is a short document that says how to read one part of a shared record: which entries count, what each position means, what a party may do there, and what a party must do next. The type system has two key properties. It is trustless: a type is an ordinary signed object fixed by its digest, and every party evaluates it for itself over entries that the CoordX Protocol has already verified. No party has to trust a server, a registry or another party’s software. It is swappable: a type names the interpreter it is written for, so many interpreters, of different capabilities and designs, can be used side by side in one record. We describe how to write type schemas, and we define the expressive power of the schema language. Payloads form a regular language. Entry structure forms a regular tree language. Every rule and every computed value is a total function in the primitive recursive class, so evaluation always halts. We compare this with KQML, FIPA-ACL and CBCL, and we relate it to language-theoretic security.
Keywords: Decentralised coordination, shared records, agent communication languages, languagetheoretic security, deterministic evaluation, partial knowledge. ACM CCS (1998): C.2.4; D.3.1; F.4.3; I.2.11
1
Introduction
The CoordX Protocol white paper [1] describes a protocol for shared records with no central server. Each record is an object: a causal tree [14] of signed, immutable entries. Each entry has one parent. Each party checks every entry by itself. It verifies each entry’s validity including access permissions. However, the contents of entries are opaque to the protocol. It does not know if an entry represents a vote, a payment, a comment or a chess move. A workspace needs more than that. Three companies that sign a contract must agree on what “signed” means. Two teams that share a task list must agree on when a task is done. A group of software agents must agree on whose turn it is. With a central server, the server’s code holds these rules. Without a central server, the rules must travel with the record, and each party must run them for itself. A type holds these rules. It is a short document, written in a small schema language, that says how to read one typed subtree of an object. Every party that reads the subtree under the same type gets the same meaning from the same entries. This paper makes four contributions: 1. It shows why the type system is trustless (Section 3). 2. It shows why the type system is swappable: the type system is separate from any one interpreter (Section 4). 1
3. It describes how to write type schemas (Sections 5 to 15). 4. It states the expressive power of the schema language, and compares it with other agent communication languages (Sections 16 and 17). This paper describes the type system and its schema language. It does not describe how an interpreter is built. The schema language described here is the one accepted by interp/4, the first interpreter that CoordX publishes.
2
Design principles
Six principles define the type system. 1. Types. A type is the payload of an entry. Anybody can write and publish one. Nothing gives a type special standing. A type names its interpreter and its dependencies by protocol refs. The name that a type gives itself, such as tracker/1, is only for display purposes. 2. Meaning is positional. The meaning of a type entry depends on entries in the tree between it and the root entry. Each entry has a parent entry and can have zero or more children entries. The location of an entry within a tree is its position. 3. A reading is a pure function of what the reader holds. The interpretation of a tree of entries is deterministic. It does not depend on external factors such as the time. Interpretation is stateless, keeping nothing between calls. As such, all parties with the same entries interpret the entries in precisely the same way. 4. A judgment is a fact. A rule decides if an entry is admitted. A rule reads only the entry’s causal past: the entry, its ancestors, and the entries it cites, transitively. A rule never reads children, siblings or grants, because those can arrive at any later time. 5. Conflicts are shown, not resolved. Rules cannot see siblings. So two parties can each act from the same position, each adding entries. Both entries can be admitted. The rule does not choose a winner. It says what the two entries mean together: for example “contended”, “disputed” or “spent twice”. 6. An action is a plan. A party never asks a server to “do something”. The type turns an action into a plan: an ordered list of the exact entries and grants to write. Before anything is posted, the proposer reads the tree with the plan’s entries added. If the type would refuse a planned entry, the proposer sees that first.
3
Trustless by construction
“Trustless” has a narrow meaning here. A party never has to accept a statement because of who made it. Each party can check each statement for itself, from bytes it holds. The type system gets this property in two layers. The protocol layer. The CoordX Protocol [1] gives the type system its inputs. Each entry is signed. Each entry names the permission that allowed it. Any party can check the signature and the permission without help. Content is encrypted, so relays see only sealed bytes. Two honest parties that check the same bytes with the same keys get the same answer. So the entries that a type reads are already facts.
2
The type layer. The type system keeps that property as it adds meaning: • Types are fixed by digest. A record cites its type by a ref to exact bytes. Nobody can change a type in place. A changed type is a different type with a different digest. So the rules cannot change under a party after it has joined a record. • There is no registry. No party owns the list of types or the list of interpreters. A type is found by its ref, like any other entry. • Every party evaluates. Each party runs the type on its own client, over the entries it holds. Nobody sends a party “the result”. A party that doubts a result computes it again. • Evaluation is deterministic. The same type and the same entries always give the same reading. There is no clock, no hidden state and no unordered choice. Randomness that an action needs is fixed into the plan before it is posted, so every party can check it. • Judgments do not depend on the future. A rule reads only the causal past. So a verdict cannot be changed by an entry that arrives later, and a party cannot be refused because of something it could not see. • Partial knowledge is honest. A party that cannot open an entry gets unknown, not a guess. A reading never claims more than the reader can check. A party does not have to trust… a server or a relay the author of a type another party’s software another party’s reading the order of arrival
because… there is none in the semantics; relays carry sealed bytes only. the type is public, fixed by digest, and chosen by the parties that use it. each party evaluates the type itself. a reading is reproducible from the entries. a verdict reads only the causal past. The tree structure does not depend on arrival order.
What remains is trust in what is chosen, not in who runs it. A party must choose a type whose rules it accepts, and an interpreter implementation that it is willing to run. Both choices are local, and both are visible to every other party.
4
Swappable interpreters interpreter B another design ref
interpreter A e.g. interp/4
ref
type entry
ref
tracker/1
dependency a conversation type
read under
read under
instance root object read under
nested root subtree read under the dependency
tracker/1
beneath
Figure 1: Interpreters, types and instances are all entries, linked by refs. A nested subtree can be read under a type for a different interpreter. The type system and the interpreter are different things. The type system is the model of this paper: positions, entry types, rules, verdicts, views, obligations and plans. An interpreter is a language, and the
3
software that runs it. A type names its interpreter by a ref, as Fig. 1 shows. The interpreter is published as an ordinary entry, like the type. The runtime is the software that hosts interpreters on a party’s client. Interpreters are plug-ins to the runtime. So: • Many interpreters can exist. Anybody can publish one. Each is identified by its digest, in the same way as a type. • Interpreters can differ. One interpreter can be small and easy to audit. Another can have complex features such as more built-in functions. • Interpreters can be mixed in one record. A type can nest a subtree whose type is written for another interpreter. The runtime reads each subtree under its own type. An interpreter that a runtime does not have leaves that subtree unread. It does not make the enclosing type invalid. • Implementations can be swapped. Two implementations of one interpreter must give the same result. CoordX checks this with a conformance suite. A party can therefore choose the implementation it trusts, or write its own from a published interpreter definition. • Old meaning is kept. A type keeps its meaning under the interpreter it names. A new interpreter never changes an old type. A type moves to a new interpreter only when its author writes it again. Swapping happens per type, not per reader. Two parties that read the same subtree under the same type use the same interpreter definition, so they get the same meaning. This is what lets the type system be swappable and still trustless.
5
Writing a type schema
The rest of this paper uses the schema language of interp/4. Authors usually write a type in TOML [4]. The authoring tool checks it and writes the canonical JSON [2] that is published: members sorted by key, no extra white space. Each expression is a string.
5.1
The schema document Member schema label description entries state rules views exports verbs create
Meaning The name the type gives itself, for display. Required. How the type is named to a person. What the type is for. It has no semantics. The entry types (Section 6). The projections (Section 7). The admission rules (Section 8). The views (Section 9). What an enclosing type can read (Section 9). The actions (Sections 10 and 11). How to start a new instance (Section 13).
The grammar is closed. A member that the grammar does not define makes the schema invalid. A schema is checked in full when it is loaded, before it reads any entry. A misspelt field, a rule that looks where it must not, or a fold that could depend on order is refused at that point, with a reason. So an error is found by the author, not by a reader.
5.2
Values
The language has scalars: integers (no other numbers), text, booleans, parties, entries of this subtree, refs to entries of other objects, and enumeration values. It has collections: lists (in order), sets (no order) and maps. An enumeration value is a bare upper-case name, with optional arguments: DONE, WON(p). Entry
4
type names are enumeration values. A party is an identity. A type can compare parties, put them in plans and records them in payloads. It can do nothing else with them. Two kinds of nothing. The language separates two cases that most languages join: • none means absent. A map key is missing, or an optional field is not given. • unknown means this reader cannot see it. The entry is sealed (held but not readable), or content is not fetched yet. none acts like “false” in and and or. unknown spreads through every operation, even ==. This is three-valued logic in the style of Kleene [3]. A condition holds only when it is exactly true. The function known(x) stops the spread. Use it where the type means to go on with what this reader can see. This split lets one type serve every reader. A reader that holds the whole object and a reader that holds half of it run the same type. The second reader gets unknown where it cannot see, not a wrong answer.
5.3
Expressions
Expressions use familiar forms: x if c else y, and, or, not, comparisons, in, integer arithmetic, field access, index, slice, ranges a..b and calls. There are comprehensions ([e for x in S if c], and the set and map forms), quantifiers (any, all, count, sum, min, max, one, filter) and a fold: fold(x in S: init -> step), with the accumulator named acc. The set of functions is small and fixed: known, len, keys, values, range, sorted, tip, deref, str, int, and two sources of randomness that only actions may use. There are no user-defined functions and no recursion. An entry has fields: id, parent, root, depth, path, children, descendants, author, type, grants, sealed, hypothetical, its payload fields and its projections. Which of these a part of the type may read is limited (Section 8).
6
Entries and payloads
An entry type has a name, a list of the parent types it may sit under, and a payload: named fields, each with a payload type. The type ROOT names the subtree root. Payload type int, string, bool Member ref [T], {T} T?
Value An integer, a text, a boolean. A party. An entry, of this object or another one. A list or a set of T. An optional field.
A ref that names an entry of the same object reads as that entry. That entry becomes part of the citing entry’s causal past. This is how a rule can reach beyond the path from the root. An entry type can also declare a label, a one-line summary (Section 13), and two flags: • private: the entry is posted, and what is posted beneath it is readable only by the parties then granted there. The entry itself stays readable to everyone who reads its parent. This is how a type seals something now and reveals it later. • subtree: an entry of this type is the root of a nested subtree, read under a dependency type (Section 12).
5
7
Projections
A projection is a named value computed at a position. It is read like a payload field: self.balance at an entry, self.root.counts over the whole subtree. A projection gives exactly one of three forms: • value: one expression. • match: the first arm whose when holds, with an optional else. • fold: a start value, then a step for each element of a collection. A projection can be limited to some entry types with on. Projections may read each other, but not in a cycle. Folds and order. Entry ids carry no meaning, so a result must not depend on the order of a set. A fold over something that may be a set must combine with + or * from an integer start, or with and or or from a boolean start. Any other fold must be over a list: a path, a range, a sorted collection or a list field. The loader refuses any other fold.
8
Rules and verdicts
A rule has an id, the entry types it applies to, and a require expression. Each entry gets exactly one verdict: Verdict admitted refused
unverified waiting sealed
Meaning The entry counts. Its parent is admitted and every rule holds. The entry does not count. Its payload or type is wrong, it sits under the wrong parent, its parent is refused, or a rule fails. The verdict names the rule. No rule fails, but at least one rule reached content that this reader cannot open. Something the entry needs has not arrived yet. The reader cannot open the entry.
A verdict is never firmer than its parent’s. Verdicts only move forward. A waiting entry is judged when what it waits for arrives. An unverified entry becomes admitted or refused when its past becomes readable. A refused entry stays in the tree, because the protocol admitted it. The type leaves it out of children, descendants, views and exports. Note the two layers. The protocol says an entry is valid. The type says it does not count.
8.1
What each part can see
The most important rule for an author is that each part of a type sees only part of the tree. The loader checks these limits. Part a rule who may act (for), who must act (of) a view; an obligation’s when; an input’s default and choices
Sees the entry, its ancestors, and what it cites, transitively (its causal past) the causal past of the position, and the reader the path to the position and everything beneath it
6
Never sees children, descendants, siblings; grants; the reader children, descendants, siblings; grants siblings of the position or of its ancestors
Three results follow. First, the root sees everything. Anything that must take the whole object into account belongs at the root. Second, a lower position is blind to its siblings. Third, a rule sees only the past. So a rule cannot stop two parties from acting at the same position. It can only check each entry against what came before it. Authorship is a rule like any other: self.author == self.parent.author. There is no built-in owner.
9
Views and exports
A view belongs to a position. It has the entry types it appears at, an optional for condition, a show expression and a label. Views appear only at admitted or unverified entries. Values describe themselves. Each value that a view gives has a fixed display form: text, number, boolean, party, entry, none, unknown, record (a map with text keys), or list. So a generic client can show any type without code written for that type. Layout hints are not part of the language. An export is a named expression evaluated at the subtree root. Exports are what an enclosing type can read of a nested subtree.
10
Verbs: moves and obligations
A verb is an action that a type offers at a position. Each verb has a kind: • A move is the reader’s choice. • An obligation is a duty of the party that of names. Offers. A verb is offered to the reader at an entry of a type in at when its for holds. An obligation is offered when of is the reader. Because for and of read only the causal past, who may act at a position is settled by its past. An offer is presentation, not permission. A party may propose any declared verb at any position. The rules judge the result. The only place that can refuse an entry is a rule, and every reader runs the same rules. Outstanding obligations. An obligation is outstanding at an entry when of gives a party and when holds. Unlike a rule, when reads what is beneath the entry. So an obligation is discharged by what is posted beneath it. Where one option excludes another, state one obligation with a choice, not one obligation for each option. Inputs. A verb has an ordered list of named inputs. Each has a type: text, number, boolean, party, entry, options (with choices) or list. A default and choices are evaluated like a view at the position.
11
Plans
A verb’s body says what the action writes. Proposing the verb gives a plan, or not allowed with a reason. A plan is data: ordered steps, each naming exactly what it writes.
7
Step part let create delegate post, under, with each grant then
What it does Binds names, in order. Randomness lives here. Writes the root of a nested subtree under a dependency. Proposes an action of an existing nested subtree, through that subtree’s own type. Writes one entry of a type, at a place, with payload fields. Writes one entry for each element of a list. Gives parties kinds of permission at entries. The next step.
Inside a step, self is the position, reader is the proposer and args are the arguments. $entry is what the step posted. $entries, $item and $index belong to each. Placement. A plan writes only at three places: at the position; at an entry that the plan creates; or at an existing entry beneath the position that the proposer names as an argument. A plan never picks among existing entries by itself. Where to act is the proposer’s decision. An action that must also write somewhere unrelated is a separate action there. Rehearsal. Before a plan is posted, the proposer reads the tree with the plan’s entries added as hypothetical entries. A planned entry that this reading refuses would be refused for real. No atomicity. A plan is several writes. Other parties receive its entries in any order, and some may not arrive at all. A type must read soundly for any subset of a plan’s entries.
12
Composition
A type can build on other types in two ways. Nested subtrees. An entry type with subtree cites a dependency. An entry of that type is both an entry of this type and the ROOT of a subtree read under the dependency. For example, a tracker/1 item carries a discussion read under a conversation type. The enclosing type sees only where each nested root sits, which dependency it cites, and its exports. A rule may read only those exports that cannot change as entries arrive. If the enclosing type refuses the nested root, the nested reading is discarded. Other objects. A ref can name an entry of another object. deref(r) is that entry once the runtime has fetched it. Until then it is unknown, and an entry whose rule needs it is waiting.
13
Creating an instance and summaries
The create member describes how to start a new object read under the type. It has inputs, like a verb, and a with map that gives the ROOT payload fields. An entry type may declare a summary: an expression over the entry alone, shown as one value. For example ["claimed by", self.author]. Summaries let a generic client list entries without reading the whole tree.
14
A worked example: sign-off in order
The type signoff/1 is a document that needs approval from named approvers, in order. The excerpt below shows the parts that matter.
8
schema = "signoff/1" [entries.ROOT] payload = { approvers = "[Member]", title = "string" } [entries.DRAFT] parent = ["ROOT", "DRAFT"] payload = { text = "string" } [entries.DECISION] parent = ["DRAFT", "DECISION"] payload = { note = "string?", verdict = "string" } [[rules]] id = "APPROVERS" on = "ROOT" require = "len(self.approvers) > 0 and self.author not in self.approvers" [[rules]] id = "IN_TURN" on = "DECISION" require = "self.author == self.parent.next_approver" [verbs.decide] at = ["DRAFT", "DECISION"] kind = "obligation" of = "self.next_approver" when = 'not any(c in self.children: c.type == DECISION)' post = "DECISION" with = { note = "args.note", verdict = "args.verdict" }
The type works like this: 1. The author creates the object. The rule APPROVERS refuses a root whose author is also an approver. Nobody approves their own work. 2. The author posts a DRAFT under the root. A revision is a DRAFT under a draft. 3. Each DECISION sits under the decision before it, so the decisions form a chain. The projection next_approver reads that chain, which is the causal past of each position. 4. The rule IN_TURN refuses a decision by anybody except the next approver. The rule reads only the parent, so its verdict is a fact. 5. The obligation decide names the next approver. It is outstanding while no decision sits beneath the position. When one arrives, the obligation goes away, and the next approver’s obligation appears beneath it. 6. If two decisions sit under one position, no rule can see that, because they are siblings. The projection status at the draft sees both and shows the draft as contended. A scenario file plays the type with several parties. The signoff/1 scenario tries an approver who acts out of turn, and expects refused by IN_TURN. It then checks what each party sees and owes at the end. The authoring tools start a type from a template, check it, play scenarios, and explain why an expression reads as it does for one party at one position.
15
The cookbook
CoordX ships a cookbook of types. Each one shows patterns that most shared records need.
9
Type poll/1 signoff/1 thread/3 thread/4 tracker/1 tokens/2 tictactoe/1,
What it is The smallest type: people each add something once. A document approved in order (Section 14). A conversation: each message under what it answers, citing what its author had seen. thread/3 with an end. After the end, nobody who has seen it can write. A work tracker: items and sub-items, claims, finishes, links, and a discussion nested under each item. A ledger of bearer notes: a handover sits under the holding it spends, so a note’s history is its path. Games. They show turns, sealed moves, and reveals.
rps/3, hangman/2
Pattern Act at the root and name the target Carry a fact forward Cite, do not search Seal now, reveal later A path is a sequence Two from one is read, not prevented Nobody approves their own Obligations say what is next
16
Use it when An action must take the whole record into account but writes at one entry. A later position needs a fact from another branch. The entry records it, and a rule checks it against what it cites. An entry must provably come after others. Something must exist now but stay hidden: sealed bids, votes, an answer key. Steps happen in order, each answering the last. Two parties may act from one point. The reading says what that means. An approval must come from somebody else. A party must act for the record to go on.
Expressive power
We state the power of the schema language at four levels. Each level is a separate language with its own class. We give each result with a short argument. Schemas. A schema is a canonical JSON document checked against a closed grammar. JSON is a deterministic context-free language. Canonical form gives each schema exactly one byte encoding, so two parsers cannot disagree about which schema they hold. Payloads: regular. A payload type is built from five scalar types by list, set and option, with a nesting depth that the schema fixes. There is no recursive payload type. A language of documents of bounded depth over a finite set of field names is regular. So each entry type’s payloads form a regular language, and a payload is recognised in full before any rule reads it. A payload that does not match is refused. Structure: a regular tree language. Each entry type lists the parent types it may sit under. This is a constraint between a client’s label and its parent’s label only. The set of trees that it allows is a local tree language, which is a subclass of the regular tree languages [5]. Rules and projections: primitive recursive. Every iteration in the expression language runs over a finite collection that exists before the iteration starts: a comprehension, a quantifier, a fold or a range. There are no user-defined functions, no recursion, no unbounded loop and no cycle between projections. So every expression halts on every input, and every rule is a total, decidable predicate.
10
The class is exactly the primitive recursive functions. For the upper bound, each construct is a bounded loop in the sense of the LOOP language [6]: its iteration count is fixed before the body runs. For the lower bound, a fold over range(0, n) whose step is any expression is a LOOP statement, and a fold whose start value is the outer accumulator nests one loop inside another. LOOP programs compute exactly the primitive recursive functions [6]. So a type can compute any primitive recursive function of its causal past, and nothing more. Plans: bounded. A plan is a finite chain of steps. The only repetition is each, over a list fixed before it runs. So the writes that one action can make are bounded by the type and its arguments. What a type cannot express. The limits are deliberate: • General computation. No type is Turing complete. A type cannot loop until a condition holds. • A global order. A type cannot say which of two siblings came first. It can only show that there are two. An order must be built from citations and paths. • Prevention of conflicts. A rule sees only the past, so two parties that act at one position can both be admitted. The type must read the conflict and say what it means. • Hidden state or time. A type cannot read a clock, a network or anything outside the entries that a reader holds. A note on cost. Primitive recursive does not mean cheap. A primitive recursive function can grow very fast. The guarantee is that evaluation halts and is the same for every reader. The cost of a reading is bounded by a function fixed by the type, not chosen by the party that sends an entry. A party chooses a type before it accepts entries under it, so it can refuse a type whose cost it does not accept.
17
Comparison with agent communication languages
17.1
Language-theoretic security
Language-theoretic security (LangSec) [7] treats every input as a language. Its main claims are three. First, an input must be recognised in full before it is processed. Second, the input language must be no more powerful than the task needs, because the power of a recogniser above the deterministic contextfree class makes parser equivalence undecidable. Third, an input handler with more power than intended becomes a “weird machine” [8] that an attacker can program. CBCL [9] applies LangSec to agent communication. It limits every message, including the definitions of new dialects, to the deterministic context-free class. Three invariants, checked in Lean, bound expansion, apply resource limits and keep the core vocabulary. CBCL’s literature review classifies earlier agent communication languages by the complexity of their interpretation pipeline. We extend that classification to CoordX types.
17.2
KQML and FIPA-ACL
KQML [10] introduced speech-act performatives, such as tell and ask-if, as the envelope of a message. It does not fix the content language. Its authors state that it is too early to standardise on one. They name KIF as a common content language, and KIF is “based on first order logic” with extensions [10]. FIPA-ACL defines 22 communicative acts [12]. A message names its content language in a language parameter, and FIPA does not fix one language [11]. The semantics of each act is given in FIPA SL. SL is “a logic of mental attitudes and actions, formalised in a first order modal language with identity”. Its primitive attitudes are belief, uncertainty and choice [12]. KIF and SL both contain first-order logic, so validity in either is undecidable. CBCL notes that both ACLs use an S-expression envelope, which is deterministic context-free, but that neither constrains the content language. It classes both as context-free, with partial verification and partial extensibility [9]. 11
Three further differences matter here: • Semantics that cannot be checked. The FIPA-ACL semantics is stated in terms of the sender’s belief, uncertainty and choice. Another agent cannot check a mental state. Singh [13] identified this reliance on “unverifiable mental states rather than observable social commitments”, as CBCL puts it [9]. CoordX types are public in that sense. A verdict, a view and an obligation are computed from signed entries that every party can check. An obligation is close to Singh’s social commitment, but it is computed, not asserted. • Trusted infrastructure. KQML relies on facilitators: agents that keep a registry of service names, forward messages and route them by content [10]. Neither the KQML paper nor the FIPA message structure specification [11] defines how a message is authenticated. CoordX has no facilitator. Every entry is signed and every party checks it. • Messages, not records. An ACL message is sent and then gone. A FIPA message can name an interaction protocol and a conversation, but the protocol is defined in another specification [11]. A CoordX type holds the protocol, the record and the obligations together, in one object that every party holds.
17.3
Extension
CBCL extends itself by dialects. A dialect is a message, and the invariants keep it safe. KQML lets communities agree on new performatives [9]. FIPA-ACL allows user-defined parameters with the prefix X-, but FIPA does not define their semantics [11]. Neither checks an extension. CoordX extends at two levels. A new type is an ordinary object, checked in full when it is loaded. A new interpreter is also an ordinary object, and types choose it by ref. Neither can change the meaning of an existing type, because each type is fixed by its digest. This plays the part of CBCL’s invariant that keeps the core vocabulary.
17.4
Summary
Language
Input class
Semantics
KQML
CFL envelope; content open CFL envelope; content open (e.g. SL) unbounded (JSON-RPC) DCFL, including dialects regular payloads; regular tree structure; primitive recursive rules
FIPA-ACL
MCP CBCL CoordX types
Extension
Trust
speech acts
Checkable by receiver partial
by agreement
facilitators
mental states
partial
X- parameters
not specified
tool calls
no
yes
server
message forms
yes
not addressed
public, computed from signed entries
yes, by every party
dialects, bounded new types and new interpreters, by digest
none beyond the protocol
The MCP row follows CBCL’s own table [9]. “Trust” is what a party must rely on beyond its own checks. The comparison has one caveat. CBCL limits the language at the parser. CoordX types limit it at the parser and also limit the computation that gives an entry its meaning. That computation is above the context-free class, but it is total. So CoordX accepts more power than CBCL in the rules, in exchange for meaning that every party can compute and check. It accepts much less power than an ACL whose content is open, or a tool protocol whose handlers can run any code.
12
18
Limits • Plans are not atomic. A reader can hold part of a plan. A type must read soundly for any subset. • Readings differ by reader. That is correct, not a fault. A reading is never the state of the object, and a client must not present it as one. • A sealed entry hides its type. A reader sees only the set of types its parent admits there. Rules that reach it give unverified. • Silent none. In interp/4, a view or condition that reaches outside its position’s sight gets none, not unknown. A later interpreter may change this. • Silent failure of obligations. In interp/4, an obligation whose of or when fails to evaluate is left out. The record then shows nothing owed. • Mixed interpreters share little. A nested subtree under another interpreter exports nothing that interp/4 can read.
Interpreter-specific limits like these are exactly what swappability is for. A later interpreter can remove them without changing any existing type.
19
Status
interp/4 is frozen. It has a reference implementation that the runtime loads as a plug-in, a conformance
suite, authoring tools, and the cookbook. Proposals for a later interpreter are under review. They do not change interp/4 or any type written for it.
20
Conclusion
The CoordX Protocol proves who wrote an entry and who could. The type system says what the entry means. It is trustless: a type is an ordinary object fixed by its digest, every party evaluates it, and every judgment reads only a past that every party can check. It is swappable: a type names its interpreter, so interpreters of different designs can coexist and improve without breaking old types. Its schema language is deliberately small. Payloads are regular, structure is a regular tree language, and every rule is primitive recursive and so always halts. That places CoordX types with CBCL on the safe side of the LangSec line, and well inside the power of KQML and FIPA-ACL, while it adds what neither of those has: meaning that every party computes for itself.
21
Acknowledgements
Thanks to Peter Robinson for his reviews and contributions to the type system description.
A
Terms
causal past An entry, its ancestors, and what it cites by ref, transitively. The only part of the tree that a rule reads. dependency A type that another type cites by ref, to type a nested subtree. export A named value of a subtree, evaluated at its root, that an enclosing type can read. interpreter A language for types, and the software that runs it, published as an entry and named by a type. interp/4 is one. 13
move A verb that the reader may choose to do. obligation A verb that a named party must do. It is outstanding until something beneath the position discharges it. plan The exact ordered writes that carry out an action. position An entry, seen as the place where a meaning, a view or an action belongs. primitive recursive The class of functions computable with loops whose number of runs is fixed before they start. projection A named value computed at a position. reading What one reader’s client knows of a subtree: verdicts, views, exports and obligations. rehearsal Reading the tree with a plan’s entries added as hypothetical, before posting. rule An expression that must hold for an entry to be admitted. runtime The software on a party’s client that hosts interpreters. sealed An entry that the reader holds but cannot open. swappable Able to use many interpreters, chosen per type. trustless Able to check every result from bytes one holds, without relying on who made it. type A schema that says how to read one typed subtree. type system The model of this paper: positions, entry types, rules, verdicts, views, obligations and plans. unknown A value that this reader cannot see. Different from none, which is absent. verdict The judgment of one entry: admitted, refused, unverified, waiting or sealed. view A named, self-describing value shown at a position.
References [1] D. Hyland-Wood and R. Ewin, “CoordX Protocol: Peer to peer cryptographically verified shared records,” arXiv:2611.06034 [cs.CR], 2026. doi:10.48550/arXiv.2611.06034. [2] T. Bray, “The JavaScript Object Notation (JSON) data interchange format,” RFC 8259, 2017. [3] S. C. Kleene, Introduction to Metamathematics. North-Holland, 1952. [4] T. Preston-Werner et al., “TOML: Tom’s obvious minimal language,” v1.0.0, 2021. [Online]. Available: https://toml.io/en/v1.0.0 [5] H. Comon et al., Tree Automata Techniques and Applications, 2008. [Online]. Available: http: //tata.gforge.inria.fr
[6] A. R. Meyer and D. M. Ritchie, “The complexity of loop programs,” in Proc. 22nd ACM National Conference, 1967, pp. 465–469. 14
[7] L. Sassaman, M. L. Patterson, S. Bratus and M. E. Locasto, “Security applications of formal language theory,” IEEE Systems Journal, vol. 7, no. 3, pp. 489–500, 2013. [8] S. Bratus, M. E. Locasto, M. L. Patterson, L. Sassaman and A. Shubina, “Exploit programming: From buffer overflows to ‘weird machines’ and theory of computation,” ;login: The USENIX Magazine, vol. 36, no. 6, 2011. [9] H. O’Connor, “CBCL: Safe self-extending agent communication,” in Proc. IEEE LangSec Workshop, 2026. arXiv:2604.14512. [10] T. Finin, R. Fritzson, D. McKay and R. McEntire, “KQML as an agent communication language,” in Proc. 3rd Int. Conf. on Information and Knowledge Management, 1994, pp. 456–463. [11] Foundation for Intelligent Physical Agents, “FIPA ACL message structure specification,” SC00061G, 2002. [12] Foundation for Intelligent Physical Agents, “FIPA communicative act library specification,” SC00037J, 2002. [13] M. P. Singh, “Agent communication languages: Rethinking the principles,” IEEE Computer, vol. 31, no. 12, pp. 40–47, 1998. [14] P. Darondeau and P. Degano, “Causal trees” in International Colloquium on Automata, Languages, and Programming, Springer, 1989, pp. 234–248.
15
Related documents
- NIST SP 800-130: A Framework for Designing Cryptographic Key Management Systems#2880
- The Data Transfer Protocol#212113
- The Data Transfer Protocol#141802
- The Data Transfer Protocol#19401
- An Interface and Algorithms for Authenticated Encryption#420316
Retrieved via Conceptio: every document is proof-bundled with source, license, and retrieval metadata.
Read the Docs → · View CLI source on GitHub · Conceptio Open Knowledge Archive