Changelog
From 0.4.0-draft, the specs in this repository share one version: the Ord specification, Test format, Semantics, JSON mapping, CSV mapping, the informative Grammar and, from 0.6.0-draft, the informative LLM guide. Before that, each spec had its own version, listed under its name below.
Retired IDs. These rule IDs were removed and are never reused: C17, C18, C20, C28, C39, L9, L15, J13, J14, M9, M19.1, M19.2, M20.2, M30.1 to M30.4, M32 to M35, M38, J1, J1.1, J1.2, J1.3, J3a, J16.
Unreleased
JSON mapping
The mapping is rewritten, so that the hierarchy between a node and its fields is kept and simple Ord is simple JSON. It replaces the 0.7.0 mapping, with no migration, and the Unreleased changes to it listed here before.
- J21, J3, J4, new shapes: a node with children is
{"Label": [...]}, an object with one member, its label, whose value is its node array: its fields as one object first, when it has any, then its child nodes. A node without children is its label as a string; labels are text, so the line2026is"2026", except that an unquoted{}or[]is an empty object or array._labeland_childrenare no longer JSON keys. J2, J15: a root with only fields is an object, and any other root its node array. - J26, J22, J23, J24, new: a node object,
{"x": [...]}, where fields can also stand (first in a node array, as a field's value or in a field's array), is read by its marker_ord, then by what only one reading fits, then by the key (fields when it looks like a key, starting with a lowercase letter or_, without spaces) and its strings (a node when one is prose: three or more words, or ending with.,!or?). Writers add"_ord": "fields"or"_ord": "node"only where that reading would be wrong. - J20, J11, J15: index fields
0::,1::are also the array of a node with a label. A node array that isn't the shape J21 writes, with records, numbers, booleans,nullor nested arrays after its first element, is read as index fields, and so is a root array of one object. - J19:
_json, as a file's only line, is its JSON value:_json:: 5is5, in place of_json:: valueand a line, which after J4 would read as text._json:: objectis gone. J19.1 is given for a_jsonfield anywhere else. - J10: prose items of a field's array are written as lines under the field, other items inline, and a field line starts again where C38's order breaks.
- J28, new: a JSON object with a key twice keeps both, with a warning.
- J1a: a key that starts with
_passes through as written, both ways, so_id:: acmeis"_id": "acme". J1 and J16 are retired, and so is the warningJ1.2; J25 warns about an Ord field_ordthat would read as a marker. - J9: a JSON number is written as written, also with an exponent, which L22 now reads.
Spec
- L21, L35:
textis a value form, the fallback: a value that is none of the other forms, quoted or not, is of the formtext. Nothing reads differently. A dump still writes no name after a text item (D13). - C21, C25:
"is the only quote character. A backtick span hides::,;, brackets and Part 2 forms as before, but always keeps its backticks, even when it is a whole key, label, value or item:g:: `C:\temp`is the text`C:\temp`, where before it was the quotedC:\temp. So"quotes a whole value and backticks mark a literal part of a text, as code does in Markdown. C26 no longer quotes text for starting and ending with a backtick. The Grammar'squoted-stringis"only, and itsbt-stringisbt-span. The design goal on quoting says so. - C51, C15: a bracket hides
;as well as::, solinks:: [[a; b]]andnote:: Call [due:: x; y]have one item, where before the;split them. A[without a matching]still hides nothing. C26 quotes an item with a;only outside brackets and formula groups, and quotes one with a[that has no matching]after it, so items don't pair brackets across a;. - V14: a CSV cell quotes an item with
", which CSV doubles,"""x; y""", not with backticks, which would now stay in the text. LLM guide: csv.md, GUIDE.md, brief.md and diagnostics.md say so. - L3, L5: a name can start with
_followed by a letter, and one that does is reserved for what the specs build in (Semantics M92). So+_type,#_xand^_xare a type, a tag and an ID, where before they were text. An inline key's later names can't start with_. The grammar'snameandinline-keyfollow. - L22: a number can have an exponent,
eorE, an optional+or-, and digits, as in JSON:1e3and2.5E-7are numbers, where before they were text. The grammar'snumberand the brief follow. - C42: a tool writes an empty label as
"", as the JSON mapping does (J11);::no longer stands fornull. - L33, L34: formatting. Markdown emphasis in any flavor, as
**bold**,_italic_,~~strike~~and==highlight==, is formatting, not structure: it reads as no field and editors may draw it. Two labels that differ only in formatting are equal where labels are compared. - L28: an inline search,
? query, is the only way to write a search. It gives the node the typesearchand the query, and is no longer short for+searchwith[query:: …]. - L20, L21: trailing spaces and tabs, which a field item keeps (C8), don't stop it being one value trigger or value form:
b:: =(a * 2),a:: 2,due:: 2026-10-10andx:: [[Anna]]are a formula, a number, a date and a link, where before they were text.
Semantics
M11:
_json, as a file's only line, is the JSON value the file is (JSON mapping J19), in place of what a node is in JSON. M39: an object in a formula's result is always fields, never a node (J26). M85: several objects in a one-time result are written as index fields, as M39 and its test say, where the text said::lines.Section 9 is no longer a draft outline: tests in Appendix A cover M60 to M65. M65: a scope is
$query(text, under)(M76), and a mirror owned in the scope puts its source in; a query has no scope terms of its own. A search node never matches a query. M64: text sorts compare digits as numbers. M72: a search node'sresultlines and itsfooterin the graph dump.M94: tests with the
changeoption give a workspace and a person's edit, and expect every file after the tools' edits (M19, M37, M51, M84, M85, M93). M70: graph and change tests see 2026-10-15T14:30 as now, or the date oftoday:YYYY-MM-DD. New tests cover the rest of section 8 (M37, M42, M43, M45, M56, M58, M75 to M81, M84, M85, M91, M93), which is no longer a draft. LLM guide: no change.Section 8 is ordered by topic: definitions, what tools write, options and tags, formulas, the function library, one-time formulas. M37's example, which stood under M91, is back under M37. The rules with tests in Appendix A are settled.
M40: a
validcheck runs once per written value,$valuethat value and$valuesall of the node's values for the field; a calculated field's result is checked once. Before,valuewas the whole value. Only where the definition applies (M36).M93: the generators
$seq(n),$uuid(),$id()and$sid()are defined.$seqcounts on the type whose definition of the field applies (M36), where before the node's first type;$siduses the node's name. M42 lists them, and M43 and M85 refer to M93.M82:
$slug(), with no argument, is the slug of the formula's node's name.M46: a value is checked against the options of the one definition that applies (M36). M84: a change to a definition reaches only the nodes it applies to.
M72: the graph dump lists calculated and computed fields as
calclines. New tests for M24, M36, M39, M40, M41, M44, M46, M47, M55, M57, M74, M82, M83 and M87.M36: when several of a node's types define the same key, the last of them in type order wins, whole, with no settings merged; a field definition node applies only where none does. M26, M37, M47 and M87 follow: the last type's custom state, written value, tag field and calculated field, where before the first type's.
M62:
[key:: value]with a value form (L21) compares by value as well as by text:[n:: 1.5]matchesn:: 1.50, and[at:: 2026-10-15T14:30]matchesat:: 2026-10-15 14:30.M64: the
computedsetting is gone.view,fields,sort,groupandfooterare specified:fieldsholds one field line per column,key::or a template columnkey:: =expr, and a column's child lines are the implementation's own. The LLM guide no longer showsheaderunder a column.M62: a query word with
*, outside quotes, is a pattern a text must match whole,*standing for any characters:jour*matches what starts withjour. A word written^wordmatches a node's ID only, so^journal*finds the nodes whose IDs start withjournal. A quoted word is still literal.M92: a leading
_means built in, everywhere. A name or key that starts with_and names no system field or system type, whether a field's key, a type, a tag, an ID, a custom state or a definition'snameorkey, is the new errorM92. M11 no longer leaves other_keys free for a workspace.M53: the system types are
_type,_tag,_fieldand_workspace(andsearch), in place oford-type,ord-tag,ord-fieldandord-workspace, with no migration:+ord-typeis now an ordinary type and defines nothing. Every rule, example and test that wrote them follows.M60: a search is written only as
? query, with its view settings as field lines under it.+searchwith aquery::line, a multi-linequery::, and?combined withquery::lines under it are gone, with no migration:searchwritten as a type is the new errorM60.1, and the node is no search; aquery::line under a search node isM60.1too, and isn't read. Elsewherequery::is an ordinary field.M23: a label's name is without its formatting (L34), so
[[Ship v2]]namesShip **v2**.M11: the system field
_file, the path of the node's file, relative to the workspace folder. Writing it is the new errorM11.2. Its system field definition isFile +ord-field.M41: a node is true wherever a value is tested for truth (
?:,? :,and,or, predicates,$boolean,$not), whatever fields it has; JSONata alone counts an object without keys, such as a node without fields of its own, as false.M61: a field term with no value,
[key::], is the formula=($exists(key)): the nodes that have the field.M89: a workspace property's values, the node items under
pinned files::,pinned nodes::andpinned searches::in the workspace file, are no query results and no suggestions for a reference or a mirror.M91:
$ancestors(node?)gives a node's ancestors, the nearest first, its file's root last, without mirrors; M42 lists it. As a field'svalue, a one-time formula over it lets a field start with a value from the node's ancestors:project:: ~($ancestors()["project" in _types][0]).M85: a node in a field's one-time result is written as a reference to it, by its name, or
Label^idwhen the name alone doesn't name it, given an ID when it has none.M56:
initializeis not a setting. It was added in this version and is replaced by$ancestors()invalue, soM91.1is gone too.
LLM guide
- brief.md: a JSON section, the shapes of the JSON mapping at a glance, with how to write Ord from JSON.
- GUIDE.md: the JSON advice follows the new mapping:
{"Label": [...]}for a node, records as a field line each, index fields for root arrays of records and nested arrays, prose items as lines. brief.md:1e3is a number. - The system types are written
+_type,+_tag,+_fieldand+_workspace; the brief, the guide and the diagnostics list say a leading_is only for what is built in (M92).
0.7.0-draft (2026-11-22)
Spec
- C52: a node line that is only a formula,
=(or~(left open at its end, runs over several lines too, under a field, under a node or at the root, and keeps its child lines after the closing line. A formula after other text in a label still ends with its line. - M85: a one-time formula's result is written by the writer every field uses (J9 to J11, C16, C26), so lists, one-item lists and text with
;or line breaks are written as elsewhere; in a label, a list is joined by;. An editor writes it once the cursor is neither in it nor next to it, and a character that breaks it keeps the result it showed, with the character after it. - L5, C16: an inline field's value is a list the same way,
[x:: a;]and[x:: ;], and stays an inline field rather than a trigger. J3a: writing JSON reads a node line of only inline fields, as J8 writes an object without_label, back as that object, so such objects round-trip. D6:listcomes beforeinlinein the dump. - C16: a value with a
;and fewer than two items is a list, a newlistflag in the data model:a;is a list of one item and;an empty list. Writers keep the;(key:: a;,key:: ;), the dump printsfield "k" list(D6), JSON gives["a"]and[]for them (J5), and JSON's one-item and empty arrays are written that way (J10), so they round-trip; the known gaps on them are gone. M41: a formula reads a list as an array, whatever its length. - J10, J11, J8: an array of strings, numbers and booleans is read as the field's items,
key:: a; b, not node lines; so is one whose plain values come before its objects, and one object with only ordinary members becomes the field's field children. An object without_labelbecomes a node line holding its first plain member as an inline field,[a:: 1], with its other members under it, and""only when it has none. An array withnull, a nested array or an item after an object stays node lines. M39 and M85 write and show a formula's objects the same way, so several objects in one field can be written. - M85: a one-time formula that ends where the person is typing is written once a space or a line break follows it, its result shown until then; one elsewhere is written once edits pause.
- M39, M85, M11: a formula result that is an object is Ord fields, not JSON. It stands for an anonymous node (C13): each member a field, a list member its items, an object member a nested field. An editor shows its fields under the formula's line, a row each, as calculated fields (
a = 1), a nested object asb::with its rows under it; in one line, as in_name, it isa:: 1, b.c:: 2. A one-time formula on a field line writes it as field lines under the field; in a label or inline field, with several objects, or when the field already has field lines, it stays with an error. LLM guide: formulas.md says so. - L32:
~(…)and~exprare one-time formulas, read as L12 reads=ones. C15 and C52 count them as formula items, and the Grammar'sformulastarts with~too. In the CSV mapping's V8 example,Meet ~todayis now written quoted, since it holds a formula, andMeet ~ todaystays as it is. The names after~that editors used to write out as typed (~todayand the like), never part of the language, give way to them:~$today(). - L12:
=exprwithout parentheses works wherever=(…)does, as long as the expression has no spaces: after=, a letter, a digit,_,$,!,[,{, a quote or-and a digit starts one, so=$sum(x),=_name,=2*xand="a"&bare formulas, not text. It ends before a space, tab or;outside parentheses and strings, and.,,,:,?and!at its end are prose, as after a URL.=>,==and= 4stay text. The Grammar'sformulafollows. LLM guide: formulas.md says so. - C52: a field's value can hold a formula over several lines, read like a block between
=(and its matching): on a field line, or on a line of only the formula under a field line, a=(still open at the end of the line continues on the following lines until its parentheses close. Those lines are content, each without up to the opening line's indent; the rest of the closing line is the rest of the value. A formula that never closes stays on its line, as L12 says, and formulas in labels stay on one line. A writer writes such an item as its lines. C50, L12, the Grammar's reading steps and the principle on lines read on their own say so. LLM guide: formulas.md shows it. - L5: an inline field's key can be several names separated by single spaces, as in
[due date:: 2026-10-21], without quotes; the first may start with_, as system fields' keys do ([_type:: task]), which L5 now says. Any other key, such as one with two spaces or one that starts with a digit, is still quoted. The grammar hasinline-key.
Semantics
- M90: paths aren't checked for portability. A path link, a mirror's path or a
pinned filesvalue gets no diagnostic for being absolute, starting with~/, using\, leading outside the workspace or differing in letter case from the file's name; only a mirror's path that names no file where the workspace is read isM48.1, as before. - M61, M62: a word in a query matches a node whose label contains it, as before, or whose ID, types, tags, or fields' keys or values do (system fields other than
_tagsleft out), ignoring letter case, sobe086findsEvent ^BE086and a node withref:: BE086. Editors list label matches first when the search has nosort. - M48: a mirror of a file. A mirror's reference that ends in
.ord,.txtor.csvis a path, resolved as a path link (L14) from the mirror's folder, and its source is that file's root node:@ notes/plan.ordshows the whole file. The extension is required. A path to no file of the workspace is the new warningM48.1. Editors suggest files after@. LLM guide: GUIDE.md and diagnostics.md say so. - M53: the system types
type-def,tag-defandfield-defare renamedord-type,ord-tagandord-field:Task +ord-typewithname:: task,Urgent +ord-tag,Due +ord-field. The old names are no longer system types.searchkeeps its name. Every spec and the LLM guide use the new names. - M53, M88: a new system type,
ord-workspace. Its node in the workspace file names the workspace (name), shown by editors in place of its folder's name; a second one, or one in another file, is the new warningM88.1. - M89: workspace properties.
pinned files::andpinned nodes::field lines anywhere in the workspace file list the files and nodes an editor shows first, as pinned, each value a child line: a path from the workspace folder, or a reference. They are not settings. - M41: workspace formulas. The fields under a
formulas::field line in the workspace file, at any depth, are$names in every formula ($double(21),100 * $rate), evaluated with$as$rootwherever they are written. A key that isn't a$name or names a function is the new errorM41.1; one given twice,M41.2. LLM guide: formulas.md and diagnostics.md say so. - M41: a formula's result can be a function, alone or in an object, and other formulas call it where they read the field:
$node("Lib").double(21). It reads the nodes and variables where it is written; editors show it asƒ($x). M85: a one-time formula whose result holds a function is an evaluation error. LLM guide: formulas.md says so. - M11, M41, L2, L12, L32: the system field
_formulais renamed_result, with the one-letter aliasR:[_result:: =(a + b)], and in a formulaR.areads a member of a label formula's object result. A label formula's results stay its items, not fields of the node. M11, M23: while a node's own label formulas are evaluated, its name is read as written, so=(P.C[N = "Status"])in a label isn't a cycle. LLM guide: GUIDE.md, brief.md and formulas.md follow. - M22: a plain text value that is a reference (M21), in a field line, an inline field or a cell, is read as inside
[[and]], sofollows:: Send proof^p1names the node by ID and label andfollows:: ^p1by ID alone. Before, the whole value was read as a label and matched nothing (M23.1). M74:$node("Label^id")names the node by its ID too. - M86: what a workspace means comes in three layers. The files are the source of truth, and tools change them only to help the person writing: one-time formulas, a type's fields and template on a node given the type, a change to a type's fields on its nodes, and edits asked for, such as renames. Searches, mirrors and formulas are defined in the files and evaluated over the graph, and their results are never written into a file; they read each other. A search's
footerandcomputedare computed from its results, and nothing else reads them. M64 sayscomputedis never written. - M87: a field definition whose
valueis a formula,=expr, defines a calculated field: every node of the types that list it has the field, with the formula's result, and it is never written on the nodes. An editor shows it first under the node line, astotal = 2050, drawn apart from field lines and not editable. The formula starts on the definition's key line; a formula alone on a child line of a local field definition, and a nested field under a calculated field, are the new errorM87.2. Its settings apply to its result:valid,options,tags(a tag matches it in queries but never sets it),iconanddescription. A node that writes a field its type calculates has the new errorM87.1, and the written value is ignored. M37: a type no longer writes=expron its nodes;Invoice'svatisn't written. M36, M39, M44, M46, M56, M57 and the M40 and M46 positions follow. LLM guide: GUIDE.md, the brief, formulas.md, queries.md and diagnostics.md say so. - M62:
[key:: value]matches a computed field's and a calculated field's values too, as the text their results are written as, so[total:: 2050]finds a node whosetotalis calculated. Comparisons stay formulas:=(total > 1000).$query()(M76) follows the query rules, so it does too. M87: a field line with nothing on or under it,parts::, counts as having an anonymous node, so a type's nested calculated fields show under it. LLM guide: queries.md says so. - M84: renaming a field definition in place renames the field on each node that has it, keeping the node's value. A change to a calculated field's formula changes no file. A
valuethat becomes a formula removes the field from the nodes that still have the old value; a formula that becomes a plain value or none is written on the nodes as M37 does. - M38 is retired: a type no longer computes
_label._label:: =(…)underfields::is the errorM58.1, as for any system field. M11 and M58 follow. - M85: a one-time formula is evaluated as a
=formula there would be, and a tool writes its result in its place once the line is no longer being edited; an error or nothing stays, shown after it. Until then it adds no item. M37: a type's~exprvalue is written on its nodes and then replaced; for_id, it gives each node of the type without an ID one. M43:$seq,$uuid,$idand$sidare for one-time formulas.auto expris gone, with the warningM85.1. M58 follows. LLM guide: GUIDE.md, formulas.md, recipes.md and diagnostics.md use~. - M11, M23: a node's name,
_name, has each formula in its label replaced by its result, soParent =("bad")is namedParent bad, and links match it by that name as well as by the name as written._formularead in a formula gives the results of the label's formulas, one item each. Implementations resolve references again when a result changes a name, at most twice. LLM guide: GUIDE.md and formulas.md say so. - M11: the system fields
_typeand_tagare renamed_typesand_tags, as a node can have several of each; their system field definitions areTypes +field-defandTags +field-def.+taskis short for[_types:: task]and#urgentfor[_tags:: urgent], in labels, field lines, CSV columns, formulas and searches._typeand_tagare ordinary fields now. The formula aliasesYandGstay. Every spec and the LLM guide use the new names. - M11, M41: the system field
_name, the node's label without the tags at its end (its name, M23), read from the label, with the formula aliasN. Writing it is the new errorM11.1. Its system field definition isName +field-def. LLM guide: GUIDE.md, formulas.md and diagnostics.md list it. - M39, M44: a formula is a formula item wherever a field's value goes: on a field line among other items, in an inline field, or alone on a child line of a field line, which means the same as writing it on the field line. It stands for its result, one item per list element, so a field can mix formulas and plain values and hold several formulas; the rule that only the first formula counts is gone. Editors show each result after its formula. An evaluation error empties only that item. M36: a formula on a child line of a local field definition is its value. M11:
_formulais a formula in a label. LLM guide: GUIDE.md and formulas.md say so. - M37, M84, M36, M41: a type's fields are written on its nodes; a reader no longer gives a node a value from its types. When a node gets a type, each of the type's fields it lacks is written as a field line with the
valueas written: a formula, text, orkey::for no value or an auto value. M84: a change to a type's fields is a change to its nodes, written into their files: a new field is written on each node, and a changedvaluerewrites the nodes whose value is still the old one. M36: a child field line under a local field definition whose key isn't a setting is a nested field definition, written under its field. M41: a formula in a nested field line is evaluated on the node that owns the outermost field, so_label,_parentand the others are the node's at any depth. M38: a type's_labelformula is the one it still evaluates without writing. M39, M51, M57 and the field definition'svaluedescription follow; M44's positions are the formula. LLM guide: the brief, GUIDE.md's field definitions, formulas.md and diagnostics.md say so. - M42, M77 to M83: exact definitions of
$today(),$now(),$date(),$days(),$format(),$slug(),$first()and$last(), and of date names (M78). M43:$days()with one argument follows the clock, as tools already did. LLM guide:formulas.mdsays so too. - M42, M74 to M76: the function library has
$nodes(under?), every node or the nodes under one at any depth, and$query(text, under?), the nodes an Ord query matches. M74 defines$node(text), which M42 only listed. LLM guide:formulas.mdlists them. - M39, M64: a search node's
footerholds=expr, evaluated with the list of the results' nodes as$; it is no longer M39. - M64: a search node's
sortholds conditions separated by;, eachfield <asc|desc> <number|num|text|date>, withascandtextthe defaults. - M37, M39: what a node writes for a field comes before its types' definitions. A formula on an ordinary node's field line makes a computed field on that node, replacing its types' formula, and a plain value written for the field replaces it too. M39 is now the error for a formula on a setting of a system node, other than a field definition node's
valueandvalid; a formula on an ordinary node is no longer an error. - M53, M64: a search node's
columnssetting isfields. - M23: a label's name is the label without the tags at its end; tags in the prose are part of it. A reference matches a node by name, with or without the end tags:
[[Send proof]]and[[Send proof #mail]]nameSend proof #mail #teams, andCall #anna about budget #projectXis namedCall #anna about budget. Before, a label matched with all its tags or with none, and the tags in the prose were removed too. An editor writes a reference with the name. M22.2 compares names, so[[Send proof^p1]]no longer warns. M47 takes a node by its name after its label as written. L19 says references name a node by its name, not with its tags. - M41: in formulas, system fields have one-letter aliases:
L_label,P_parent,C_children,S_state,G_tag,Y_type,I_id. A node's own field of that name comes first. LLM guide: no change.
Wording
- Examples and tests in every spec and the LLM guide use the made-up company Acme Corp (ID
acme) in place of Ruukki AB; the second company in the C13 and L6 examples is Globex, and the project in the LLM guide's tag examples is Apollo, not ACME. No rule changes.
LLM guide
- New fields are field lines or tags, never inline fields, whatever the value's length: GUIDE.md's "Field lines, not inline fields" replaces "Inline or field line", and the Tasks recipe, the examples, the
Call note::gotcha and the checklist follow. Inline fields keep their meaning (L5) and stay where they are in existing files. The brief is unchanged. - The brief says an inline key can be several words,
[due date:: …], after L5. - CI: a change to a normative spec must change
LLM_guide/or say why not, with a lineLLM guide: no changein the changelog entry it adds. - Formulas, diagnostics and the checklist: a formula may sit on a node's field line, replacing its type's (M39); M39 is a formula on a setting. Queries: a search's
columnsisfields. Queries also say that system fields keep their_keys in terms, filters andfields::. A search'sfooteris a formula over the results (M64), no longer M39.sorttakes several conditions, with a value format. - Resolving (M22, M23): a label matches by its name, the label without the tags at its end; links are written with the name. M47 likewise.
0.6.0-draft (2026-11-03)
LLM guide
- New: LLM_guide, an informative guide for language models that read and write Ord, with references for formulas, queries, CSV, diagnostics and recipes. It shares the specs' version, and CI checks its version line. It was the Claude
ordskill, moved here and updated to 0.6.0-draft, so that a spec change and the guide change land together. - Ord in brief moves here from the ordlang.org repo, which now builds its
/brief.mdfrom this folder. The guide no longer repeats the brief's syntax and builds on it.
Spec
- L2, L4, L6 to L14, L19, L28 to L31, D10, D13, D14: system fields start with
_. Triggers and inline forms are read as_type,_id,_state,_tag,_link,_formula,_urland_mirror, and a label is the system field_label:^t9x1is short for[_id:: t9x1]. A field line or inline field with these keys means what the trigger does, andtype::,state::,id::and the like are ordinary fields. Core is unchanged. - L28: an inline search is written
? query, with one?, and is short for+searchand the inline field[query:: …].?? queryand\?are text. - L30, L31: mirrors. A line
@ Label^id, after any list marker, is a mirror: short for[_mirror:: Label^id], a reference as written inside[[and]], with nothing in it read as a form and an empty label. A field item@Labelis a mirror value, a reference as a link is, dumped as"@Label" _mirror(D13).\@is text. A writer writes@ Labelon a line and@Labelin a value. - Sigils are gone. L15 and its section are removed, so sections 16 to 21 are now 15 to 20; L2, L4, L6, L19, D11 and D14 no longer mention sigils, and the grammar has no
sigil-ref.@annaand%apolloare text. Refer to a node with a link,[[Anna]], or a field whose options name its type. This frees@for mirrors, a line@Label^idthat shows another node in its place, still a draft. - W2, W3: recommendations for editors: cycling a state goes
[ ],[-],[?],[x], and a label is shown by its state's base: in progress in a light blue, waiting in a light pink-orange, done in gray, new as other text. - L16:
#and a space is a list marker too, as-,*and+are, so# Headinghas the labelHeading. Editors may draw it as a heading. - L29:
[#Ord notes]is short for the inline field[_tag:: Ord notes], for a tag that is more than a name.[#1]stays text, and[#x](target)is a Markdown link. - F5: what the workspace file holds is a convention, not a requirement; it no longer names the workspace on its first line.
- L4, L8, L10: repeated text removed. How IDs match is only in Semantics M20, how a mirror is written only in L30, and quoted values in inline fields only in L5.
Semantics
Appendix A: the example for M10 and M26 gives their positions as
_state::puts them,work.ord:7:11andwork.ord:10:11; they were the columns ofstate::.M11, M53, M55, M58: the reserved fields are now system fields:
_label,_type,_id,_state,_tag,_link,_mirror,_formula,_url,_parentand_children. Each is defined by a built-in system field definition, a+field-defnode, and can't be defined again (M55.2). A type lists them like other field definition nodes, and may only compute_labeland give_idan auto rule. Other_keys are free for a workspace's own fields._parentand_childrenare a node's owner and the nodes it owns, and M14's CSV cells and M41's node members use the same keys.M12, M17, M53, M59: system types.
type-def,tag-def,field-defandsearchare built into every workspace, shown in white, and can't be defined in a file (M17.2). A type definition is a+type-defnode with anamefield,Task +type-defwithname:: taskunder it, and a tag definition a+tag-defnode with the tags as itsnamevalues, in any file.definesis gone, and the workspace file has no syntax of its own: a line+nameor#urgent [color:: red]is an ordinary node there. A system type's settings are local field definitions with a description each, and mean nothing on other nodes. A type definition without anameis the warningM17.3; a tag definition's names must be tags (M17.1), and a tag defined twice is the errorM17.2. The built-inPersontype is gone.M24, M36, M39, M46, M47, M55 to M58: field definition nodes. A
+field-defnode with akeydefines a field for the whole workspace: itsoptions,validandtagsapply on every node, and itsvalueon the nodes of the types that list it. A type lists one by its key, with no value or child lines (the errorM58.1otherwise), or by writing it underfields::. Keys match their definitions ignoring letter case; the Core still keeps keys as written. A local field definition and a field definition node are one thing written two ways, with the same settings; only their scope differs.M53, M60, M64:
searchis a system type. A search node is a+searchnode, or an inline search? query, its query is itsquerysetting, andview,columns,sort,group,footerandcomputedare its local settings. Thesearchfield is gone.M51: a type definition's
nodessetting is a content template: its node children are copied under a node when an editor or tool gives it the type, new or existing, without their IDs. A reader never adds them.M52:
icon(an emoji) anddescription(text) settings on types, tags, fields and searches are informative: editors may show them, and the spec gives them no meaning.M66: a type definition's
checkbox:: truegives the type's nodes a checkbox: an editor that gives a node line the type adds[ ]when the node has no state.M19, M59, M66: M19 is split: tag definitions are M59, and
checkboxM66. Section 5a holds the system types and fields.M62:
#tagalso matches a node whose field withtags:: truehas the value the tag would give it: withtags:: trueonproject,#LUmatches[project:: LU].M10, M11, M21, M48 to M50: mirrors.
_mirroris a single-valued system field whose value is a reference. A node with one is a mirror of the node it names, its source, which keeps its one owner. A mirror stands for its source: as a field's node item it is a reference from the field's node, and as a child it is its source in_childrenand formulas, once per owner. A mirror under its own source is the warningM50.1, and lines under a mirror the warningM50.2.M61, M65: a query matches a node in its own place, never a mirror. The term
@and a reference matches the node it names; in a scoped query, when it or one of its mirrors is in the scope.M9, M19, M21, M23, M24, M47, M61, M62: sigils are gone. A type definition has no
sigilsetting, so the errorsM19.1andM19.2are gone too; a sigil is no longer a reference, a query term or a way to match a one-word label; and a field named after a type is a reference field only when its options name the type (options:: +person).Section 8, Expansions, is removed, with its mention in M3; expansions left the spec in 0.4.0-draft. Sections 9 to 11 are now 8 to 10.
M3: fold state is view state, implementation-defined and never written into the files.
M24, M36, M46:
options:: +namereplacestarget. Anoptionsitem+namenames a type, and a field whose options name types is a reference field to their nodes:target:: personis nowoptions:: +person. Its other options stay text, and a value that is none of them is a reference instead of the warningM46. Thetargetsetting is gone.M36, M47:
tags:: truereplacesclaims. A field withtags:: truetakes its options as tags, and on a reference field the nodes of its types too: withoptions:: bug; feature,Crash +issue #bughasissue type:: bug. Theclaimssetting is gone, with its list of tags and its wordsoptionsandtarget; a tag the field should take is one of its options.M47: tags match only what is written, never a slug. A field with
tags:: trueand types among its options takes a node by its label as written, then by its label without its tags, then by its ID:#ord-notesrefers toOrd-notes +projector to a node with the IDord-notes,#ordtoOrd #new +project, and[#Ord Notes]toOrd Notes +project, which#ord-notesno longer names. Each option is taken as written:#tech-debttakestech-debt, andTech Debtneeds[#Tech Debt].
JSON mapping
- J1, J16:
_labeland_childrenreplace$ord:labeland$ord:children, so JSON uses the system fields' namespace. Other keys, also ones that start with_, are ordinary fields, and the warningJ1.1for unknown$ord:keys is gone.
CSV mapping
- V1, V3, V8, V11, V13: the label column is
_label, and hierarchy is written with_parentand_childrencolumns.
0.5.0-draft (2026-10-27)
Type replaces kind, + marks a type and # a tag
Two renames in one version, with one migration (ord migrate in Ordlang rewrites a workspace). There is no transition period: the old forms stop working at once.
- The concept kind is now type, the word Anytype and Capacities use. The reserved field
kind::istype::(M11), so a workspace's owntype::fields need another name; the migration renames them. In JSON and CSV thekindfield and column aretype, in the graph dump (M72) thekindlines aretype, and in formulas (M41) a node's memberkindistype. "Field types" are now "value types" (M3). Rule IDs stay as they are. - L7, L13: the
typetrigger is+and a name,+task; thetagtrigger is#and a name,#urgent, as hashtags are everywhere else.+reads as "is a":call #anna to decide on budget #projectX +task. - L13: a tag is
#and a name, with/between names for a nested tag (#project/apollo). It ends after its last name, so trailing punctuation is text:#projectX.is the tagprojectX. Before, a tag took every character up to the next space.#and a space, a digit or another#is not a tag, nor isC#. - L4, L19, D14: a tag stays in the label where it is written, like a link, and is an
embeddedfield in the dump. SoCall #anna about it +taskhas the labelCall #anna about it, and references, slugs and CSV labels keep the#. A+typeis still taken out of the label, and the writer moves it after the inline fields, before the ID. An inline[tag:: x]is no longer written as a trigger, since that would change the label. - L18: the escapes are
\+for a type and\#for a tag. - M38: a computed label keeps the tags written on the line, after the computed text.
- M23: a label matches a node by its label or by its label without tags, so
[[Buy milk]]still findsBuy milk #urgent; a sigil matches labels that are one word without their tags. - M62:
#projectin a query matches nested tags too, such as#project/apollo. - M17, M19: in the workspace file, a line that is only
+namedefines a type, and#urgent [color:: red]sets a tag's color. M47:claims:: #bug #feature. M61 to M63: queries are+task,#urgent,!#done, and archived nodes match only queries that name#archived.
Spec
- C3, S3: a no-break space (U+00A0) is read as a space everywhere: in the indent, around
::and;, and between forms, so#tag +type ^idreads as forms whatever spaces a phone keyboard typed between them. A writer writes a space for it. Other whitespace characters stay content. - Grammar: the parsing strategy replaces no-break spaces with spaces when it splits lines.
Semantics
- M36, M46: a field definition's
optionssetting lists the values the field is meant to hold. A value that is none of them, ignoring letter case, is the warningM46and stays. Options are about intended use, not value type. - M40: a value that fails its
validcheck is now an error, not a warning. - M36, M47: a field definition's
claimssetting takes tags for the field: on a node of the type,#bugis the field's valuebug, not a tag. A light way to write a value, beside sigils.claims:: optionsclaims the field's options, andclaims:: targetits target types' nodes, by slug or ID. - M19: a type's
colorcan name a field, as incolor:: project: a node's type then shows in the color of its value there, so the strongest visual cue is about the content.
0.4.0-draft (2026-10-23)
The specs move to their own repository, ordlang/ord, as Markdown files, with one shared version.
- Appendices A and B of the Spec (the AST dump and the test format) are the companion spec Test format, with their sections and the rule IDs
DandTunchanged. - Appendix E of the Spec (files) is Part 3, section 21. The rule IDs
Fare unchanged. - Appendices C and D of the Spec (grammar and parsing strategy) are the informative Grammar.
- The changelogs of all the specs are this file.
- S2: a removed rule is deleted, and its ID is listed above as retired. S10: the specs share one version, which can have a pre-release suffix.
- Semantics: its open questions are no longer part of the spec.
Spec
- C5: the separator is the first
::outside spans and brackets, whatever follows it.due::2026-10-10is a field line; a line no longer turns into a node when the space after::is missing. - C51: brackets,
[to its matching], hide::. C26: a key with[and a label with a::outside spans and brackets are quoted. - L5: an inline field is written
[key:: value], in a bracket. The value runs to the], so it can hold spaces, and a datetime can be written with a space.key::valueon a node line is a field line now. - F1, F3:
.txtis the usual extension. In a workspace, files without an extension are read as Ord too;.ordstays the way to mark a file as Ord outside one. - L28: a label starting with
??and a space or tab, after any list marker, is an inline search, short forsearch::with the rest of the label. L4: such a line is written as it is. - C42: a node with an empty label is written
"".::is written only for a label that is empty and not quoted, which tools no longer create except for the JSON mapping'snull. - F5: the workspace file is named
Ord.workspace, in any letter case, and there is no hidden variant. TheF5warning for a folder with both names is gone. - L11, D11: custom markers belong to custom states, which replace statuses in Semantics 0.3.0. Wording only.
- L15, D11: no sigil is bound by default.
@is no longer bound topersonwhen no kind binds it; a kind binds it withsigil:: @.
Semantics
- M17, M19, M61, M62: inline fields and field terms in queries are written
[key:: value], after Ord specification L5. - M19: a kind's
colorsetting, and tag settings in the workspace file: a line that is only+tag, e.g.+urgent [color:: red]. - M60: a search node can be written
?? query(Ord specification L28). Severalsearchfields on one node are combined with and, and a search without a label is named by its query. - M5, M17: the workspace file is
Ord.workspaceand is part of the workspace; in it, a line that is only#namedefines the kindname. - M43: the random ID generator for auto expressions is
$id(), as~idis (Expansions), not$rid(). - M19: no sigil is bound by default;
@is no longer bound topersonwithout a definition. - Built-in kinds: the
personID rule isauto $slug(label), with the$every JSONata function call needs (M41). Wording only. - Built-in kinds: no
sigilonperson, and no date kinds. Journal nodes are ordinary nodes found by their ID,journal-and the date.
JSON mapping
- J3, J8, J14: an object without
$ord:labeland a nested array become a node""instead of::, and an empty label is left out of$ord:label.::stays fornull(J4, J11) and an empty nested array, following Spec C42.
CSV mapping
- V8: an empty label from a cell, or a row without a
labelcolumn, is quoted, so it is written"", not::(Spec C42).
Spec, before 0.4.0-draft
0.3.0 (2026-10-16)
Simpler Core: fewer quote characters, fewer rules, one block syntax.
- C21, C22, C25:
"and`are the quote characters;'is ordinary text. Backticks open spans anywhere;"opens a span only where a key, label, value or item starts. The letter and digit rule for spans is gone. - C29, C31, C32: blocks are backtick fences only, closed by a fence at least as long as the opening one.
"""and'''lines are ordinary text. - C5: the 60-character limit on keys is gone.
- C16, C17, C18, C28, C38 to C40, C42, C43: empty items, the list marker and list nodes are removed. Empty parts of a value add no item, and a line
;is a node labelled;. - C20:
\;is removed; a backslash outside"strings is ordinary text. - C15: in a formula item's groups,
"and'strings are skipped, as in JSONata. - C26: quoting follows the new spans; keys over 60 characters, items ending in
\and the label;are no longer quoted. - L2, L9, L18, L24, T4: expansions (
~today) are removed from the spec; they are an editor feature. Tests no longer run at a fixed time. - D3, D4, D6, D10, A5: the dump has no
listnode,emptyorlist. - T1: tests are backtick blocks; a test holding a block uses a longer fence.
- F5: a workspace file is
workspace.ordor.workspace.ord. - Appendix C is informative.
- From Unreleased: C15, C20, C26: in a formula item, one that starts with
=, a;inside parentheses doesn't separate items, and the writer doesn't quote such an item for it, nor for spans that close within it.
0.2.0 (2026-10-15)
- C45:
fmtkeeps a file's line endings and BOM, and every line gets the file's line ending. - L6, L11: the
statetrigger reads as a state name, so[ ]isstate::newand[x]isstate::done. - L6: a link reads as itself, brackets included, as in
link::[[anna-47xu]]. - L9: dynamic references are now called expansions. In a label,
~nowand generators such as~uuidexpand to their value. - L10: in a reference field, a quoted value is a reference only in a field line. In an inline field it stays text, as L5 says.
- D10, D12 to D14: fields read from a label are marked
inlineorembedded, items of embedded fields have no name, and astateitem's range is its marker. - F5: hidden workspace files come after all others.
- S9, T3 to T5, T7: tests for the companion specs, with the
from-json,to-json,from-csvandto-csvoptions. - T3:
⟨U+XXXX⟩stands for any character in tests. - T4:
fmtwithlabelstests L4. Tests run at a fixed time, andtoday:sets another date. - Tests for every rule in Parts 1 and 2 that a test can show. C48 and C49 can't be shown with these test options.
0.1.0 (2026-10-15)
First numbered version. The spec was rebuilt from scratch and has:
- Core: the data model, reading order, blocks, quoting and spans, lines, tree, fields and items, writing in canonical form, and diagnostics (C1 to C50).
- Label syntax: inline fields, triggers, sigils, and value forms for numbers, booleans, dates, datetimes, weeks and months (L1 to L27).
- The AST dump and the test format, with tests for both parts (D1 to D13, T1 to T7).
- A grammar, a parsing strategy, and rules for files and workspaces (F1 to F5).
- Conventions, versioning and conformance (S1 to S10).
The JSON mapping moved to its own companion spec.
Semantics, before 0.4.0-draft
0.3.0 (2026-10-16)
- M11, M19, M26 to M31: statuses are custom states. A kind's
statesetting defines them, each with an optional marker and an optional base, a built-in state.statusis no longer reserved, andM30.1toM30.4are removed: a node has one state, so a marker and a field can't disagree, except as the errorM10. - M26: the warning covers custom states, not just the four built-in ones.
- M62: a state trigger in a query matches the base too.
- M72: the graph dump shows
baseinstead ofstatus.
0.2.0 (2026-10-16)
M6, M7, M9, M20, M32 to M35: follow Spec 0.3.0: no list nodes or empty items, and expansions are a typing aid, not a part of the language, so expansion names are no longer reserved IDs (M20.2 removed).
Built-in kinds, from Workspace structure, as an informative part of section 5.
M23: letter case compares by Unicode default lowercase, without normalization.
M24: without
target, plain values are text, never references.M41: JSONata 2.x is the formula language.
M14.2: a disagreement between
parentandchildren, not a one-sided column.M20: duplicate IDs resolve to the first; M20.3 for an ID that isn't a name.
M21, M24: plain values of
link, and of a field named after a sigil's kind, are references.M29: a marker no status has gives no state.
M71: nodes in another file show their path; node items show their field.
A third test: ownership through CSV, loops, IDs and quoted labels.
0.1.0 (2026-10-15)
First draft. Graph, fields, ownership, kinds, IDs, references, states and statuses, expansions and diagnostics as rules; field definitions, formulas and queries as an outline; the graph dump and two tests.
JSON mapping, before 0.4.0-draft
0.3.0 (2026-10-16)
- J2, J5, J6, J10, J13 to J15: the Spec has no list nodes, empty items or list marker any more. Arrays become node children; nested and root arrays become
::nodes and root lines, and come back as objects. Empty and one-item arrays come back asnulland the item.
0.2.0 (2026-10-15)
- J1 and the rules that use it:
$ord:valueis renamed$ord:label, since a node has a label.
0.1.0 (2026-10-15)
First numbered version. The mapping moved out of the Spec into this companion spec, in the layout the companion specs share, with tests in place of the tables.
CSV mapping, before 0.4.0-draft
0.3.0 (2026-10-16)
- V8, V9, V14: follow Spec 0.3.0:
~todayand;labels are plain,\;is gone, and cells have no list marker, soa; b;is two items.
0.2.0 (2026-10-15)
- V8: label cells are quoted only where they have to be.
0.1.0 (2026-10-15)
First numbered version, in the layout the companion specs share.
Source: CHANGELOG.md in ordlang/ord, licensed under CC BY 4.0.