base-node (.bn) v1.0.0-rc.8

Base Node (.bn) Versioning & Evolution Specification

This document defines the versioning scheme, stability guarantees, and lifecycle management of the Base Node (.bn) language and of its core: the grammar and the reference implementations, in Python and in Rust. A host versions what is its own (its library, its targets, its modules) in its own documents.

---

1. The Versioning Tiers#

The core separates two tiers:

┌────────────────────────────────────────────────────────┐
│ Tier 1: Language Edition (Syntax & Grammar)            │
│         e.g., Edition 2026                             │
└──────────────────────────┬─────────────────────────────┘
                           │
┌──────────────────────────▼─────────────────────────────┐
│ Tier 2: Toolchain & Reference Packages                 │
│         Python: base-node 1.0.0rc8                     │
│         Rust:   base-node 1.0.0-rc.8                   │
└────────────────────────────────────────────────────────┘

The core and its hosts#

The core is the language and nothing of a destination: it reads a text, prints it and formats it, in Python and in Rust. It names no node, no socket, no kind of tree and no target.

A host library gives a text its meaning somewhere: its types, its formulas (a + b is a node of the host), its zones, its checker, its targets and its converters. It is code as much as data: each host writes it as it suits it, on the core.

PartWhereHolds
Corepython/base_node, rust/ (crate base-node)Lexer, parser, tree of the text, printer, formatter, head of a file, errors
base-node command linepython/base_node_cliThe core's commands, fmt [--check], parse and ast; a host library installed adds its own, by an entry point of the group base_node.cli

---

2. Tier 1: Language Edition (edition)#

To balance rapid language innovation with long-term code preservation, .bn uses Language Editions (inspired by Rust and WGSL epochs):

Source Annotation (Pragma)#

Source files can optionally declare their target edition in the file header:

// @edition 2026

When omitted, the text is read as the latest edition the reader knows.

A reader refuses a text whose edition it does not know, at the line of the directive, and reads none of it:

later.bn:1:13  @edition '2028': not an edition this reader knows (2026)

The parser does it, in Python (base_node.parse) and in Rust (base_node::parse), and so does everything that reads a text through it: the formatter, the commands fmt, parse and ast, and every host. header says it with the other errors of the head. The editions a reader knows are base_node.EDITIONS (base_node::EDITIONS), the latest last.

---

3. Lifecycle & Stability Policy (Pre-LTS vs LTS)#

Phase 1: Pre-LTS (0.x.y) — Active Rapid Iteration#

Phase 2: Long-Term Support (1.0.0 LTS)#

One number, 1.0.0, for the specification and the Python and Rust packages of the core. A host library has a version of its own, says the version of the core it needs, and says what it promises. What the number of the core promises is not the same for each part of it:

PartUnder the promiseOutside it
LanguageThe grammar of Edition 2026 and the limits of the reference—
ToolsThe interface of the core, in Python and in Rust, and the base-node command lineThe interface a host library gives: its host says

Before 1.0.0#

---

4. Tier 2: Toolchain & Implementation Synchronicity#

The packages of the core share a synchronized version number:

ComponentPathVersion Scheme
Python reference package[python/pyproject.toml](../python/pyproject.toml)PEP 440 (1.0.0rc8)
Rust WASM crate, the core[rust/Cargo.toml](../rust/Cargo.toml)SemVer (1.0.0-rc.8)

A pre-release is written in SemVer (1.0.0-rc.1) everywhere but in the Python package, whose version and __version__ take the PEP 440 form of the same version (1.0.0rc1): Cargo refuses that form.

CLI Version Reporting#

Running base-node --version reports:

base-node 1.0.0rc8 (Language Edition 2026)

---

5. Glossary#

TermMeaning
EditionThe grammar: tokens, keywords, syntax. Named by a year (2026). It only grows after 1.0.0
SpecificationThe reference and this document, at one version
CoreThe language as a library, in Python and in Rust: it reads, prints and formats a text, and knows nothing of a destination
Host libraryWhat gives a text its meaning for one destination: types, formulas, checker, targets, converters
HostA program that uses the core and a host library: the command line with a host library installed, an editor, an exporter
TargetWhat one destination accepts: kinds of tree, types, zones, nodes. Its host library defines it; a text promises some with @target
ModuleA .bn file a use names, by the @module of its head
ToolchainThe Python and Rust packages of the core, and the command line
Stable / experimentalUnder the promise of 1.0.0, or not yet
DeprecatedStill there and working, with a warning, for at least one minor version before it is removed
LTSThe 1.x line: what is under the promise does not break before 2.0.0