Syntax infrastructure and native type generation for TypeScript, Go, Rust and C++, using horos as the canonical type model.
How much of each language is supported? Start with the generated language overview: supported features, exclusions, provider and transformer matrices, and expandable test evidence for each language.
Current status, 6 November 2026: generic AST/CST carriers, typed pipeline
contracts, native syntax vocabularies, parsers, formatters, checks and a shared
printer are implemented in Go. The syntax engine registers languages and
ASTTransformer implementations, plans routes and composes existing text stages.
Parse/check/format/print and semantic-stage providers extend language.Provider;
generation source/target/mapping contracts receive endpoint identity at registration. The engine registers parsing,
checking, formatting and printing independently; identity registration installs
no capability. See the engine composition API. Horos's Go declaration model now
supplies module resolution, generic binding, general structural kinds and specialization. Bittype
implements its text and semantic frontend, resolver and semantic analyzer.
The engine captures syntax once and invokes each capability explicitly. Horos
analysis reuses the resolver's shared semantic graph, with
separate reports for validity, coverage and model availability.
The readable Horos syntax and its text stages are implemented.
The Horos module command lowers an ordinary source
module to canonical Ontos bytes for distribution, using the same parser and
module encoding as the frontend, without semantic resolution.
The first semantic pagination mappings generate
TypeScript, Go, Rust and C++ type ASTs from explicitly supplied Horos analysis.
The Syntax and Files design specifies the symmetry
Syntax : CST : AST and Files : Source : Semantics. Typed carriers, symmetric parse/format/print interfaces, multi-unit transformations
and the Horos Files composition are implemented. Bounded Go, TypeScript and Rust Files
resolution/analysis providers are implemented; C++ semantics remain deferred.
The TypeScript Files formatter uses one declaration
placement for emitted files and their local imports. Libraries select package exports.
Implementations use explicit Syntax/Files stage paths and role-named Go packages.
Each stage supplies its own implementation. The role contracts adapt these with
NewSyntax.../NewFiles... functions; concrete Files compositions receive an explicit
language/profile descriptor. See naming, placement and construction.
Package releases remain deferred.
The concrete Horos frontend uses the Horos Go module pinned in go.mod and Ontos 0.16.0. Consumers
must upgrade together; no older dependency path or compatibility shim remains.
See the dependency alignment.
The engine starts empty and has no built-in languages or mappings.
The joint verification composition
adds immutable source/target association and an optional Logos-backed Horos/Go
integration. Explicit Horos kind queries and registered bounded Go go/types semantic providers
supply TextBox counterexamples and conditional Page representation proofs,
including nested reuse. The owning composition imports the public Logos contract;
all packages use the root module and its anonymous installed-consumer gate.
Native admission enforcement and runtime bindings are separate.
The declarative generation SPI separates library-owned mapping descriptions from native AST construction. Engine.PlanGeneration selects and freezes the complete native program; GenerationPlan.Run constructs a fresh checked output. Engine.Generate performs both. All four native generators use this contract, with scoped generic substitution and kernel-owned composition. The superseded procedural operations have been removed. The registration example shows Horos to TypeScript. The output carries exposed sites and external destinations into TypeScript Files placement. The generation boundaries stay explicit: GEN-01 moved common source traversal into the kernel, and its correction awaits independent verification; GEN-02, open, adds native constraint enforcement. They include current guarantees and scope.
The stage-first layout groups shared tree representations under trees and public interfaces under contracts. Every native language implements the same syntax/parse/check/format matrix, enforced by architecture and shared conformance tests. The engine contains no built-in language catalogue. Horos implements the same text stages plus separately registered resolution and analysis.
The native pipeline separates source parsing, concrete layout and printing:
text -> Parser -> CST[L]
AST view[L] -> Formatter -> CST[L] -> Printer -> text
AST and CST expose the same borrowed AST-view interface. Parsers retain source tokens and trivia; formatters construct a new concrete layout directly from abstract syntax. The generic printer emits supplied leaves without knowing any native grammar. Native pagination generators consume analyzed canonical definitions and produce target ASTs, followed by this formatting/printing pipeline.
Function, Stream, Cell and future behavioral contracts remain library-owned. This milestone adds no runtime adapters, callable implementations, serialization, application-value validation or dependencies on bitwire/bitruntime.
Horos has one declaration language with general kinds.
Type, Data, Scalar, List<K> and Record<K> are ordinary prelude definitions.
Horos 0.10.2 authors those definitions in .horos source and packages the canonical
module produced by the Bittype encoder; the Go-authored definition table is removed.
Page<T> accepts data or capability types; DataPage<D: h.Data> = Page<D>
restricts arguments without a second language or copied template. The old
Horos/Wire frontend and profiles are removed without aliases. Ground Ontos values,
Horos ground checks and any remain data-only. Ontos/wire owns mixed values;
existing hydration remains in Bitwire/Bitruntime. The agnostic kernel does not
interpret these concrete type semantics.
The documentation map distinguishes current contracts, implementation limits, proposals and historical research. Start with the runnable Page/Cell walkthrough for generation and placement; Go/Rust/C++ placement remains proposed.
- Horos canonical input: ownership, declarations and native representation plan.
- General kinds: structural families, ordinary Data, constructor contracts and the semantic/native generation boundary.
- Type-system modeling: proposed terms, judgments, binding and rules for Horos and native languages, their relationship to Logos, and concrete Horos/Go reasoning examples; documentation only.
- Type-system reasoning architecture: expert-reviewed ownership, stage-first package roles, exact TextBox/Page statements, Logos checking prerequisites, implementation boundary and module isolation.
- Logos checking and the verification boundary: source-traced production request, direct checking APIs, typed proposal/experiment, Bittype-owned association work, scoped integration and remaining dependencies.
- Joint verification contract: implemented immutable artifact association, preparation/checking split, result/failure semantics and TextBox/Page walkthroughs, with the supported integration subset and limits.
- Preserving native kind constraints: proposed direct bounds and source witnesses for all four targets, guarantees and unresolved limits; documentation only.
- Logos preservation proofs: proposed source/native symbolic pagination proof with concrete scoped facts and structural rules; native admission is separate. Documentation only.
- Go native admission: proposed compositional certificate encoding and independent compiler tests for pagination, nesting, aliases, inference and attempts to forge evidence; no production implementation.
- Type and value domains: ownership, authoritative canonical input and explicit data boundary. The frontend guide documents implemented APIs and qualification.
- Concept preservation: retained ideas, superseded proposals and expert-review evidence for the ownership change.
- Native representations: direct generic pagination and library-owned type recipes configured for TypeScript, Go, Rust and C++; exact library mappings and pagination compositions use the public SPI.
- Public generation SPI: implemented descriptions, scoped planning, native construction and immutable output handoff.
- Type-owned generator plugins: implemented public contracts, automatic selectors, guarded overrides and the four migrated production mappings; native constraint enforcement remains proposed.
- Generic generation walkthrough: pagination across four targets, paired parameter/application conventions, nested results, Cell composition and the remaining implementation stages.
- Runtime values and hydration: type descriptions versus native instances, existing Wire/runtime carriers and future typed/dynamic adapters; documentation only, with pinned implementation evidence.
- Horos AST: model projection, binding references, checking and registration.
- Abstraction levels and typed relations: two views of
TypeScript's
Page, from source bytes to binders and effective type arguments. - Semantic facts: immutable entities, terms, occurrences and dependencies.
- Resolution capability: shared snapshots, explicit prerequisites and immutable model reuse.
- Provider matrix: implemented capabilities by language.
- Detailed capabilities: generated scope, structural definitions and named cases behind each matrix contribution.
- Capability report design: source annotations, public extractor composition and separately attributed execution observations.
- Analysis capability: request capture, explicit registration, completion/verdict reports and publication requirements.
- Generic AST: carriers, typed views, addressing and provenance.
- Target syntax: native vocabulary and supported type subsets.
- Parsing and formatting: CST model, providers, ownership, round trips and qualification.
- Syntax engine: registration, typed boundaries, path finding, execution and text-stage composition.
- Generation design: AST-to-AST pipeline and future mappings.
- Generation planner: implemented planning and execution for declaration ASTs, followed by the Files formatter for concrete imports and exports.
- Syntax and Files: Source/Semantics carriers, symmetric parse/format/print roles, multi-unit transformations and source-base parsing.
- Charter, contributor instructions and source layout: ownership, delivery and package boundaries.
Original research submissions and advice remain in research-docs/ as historical
evidence. Their maintained evaluation records link the current contracts; they
are not competing specifications. The documentation map identifies
current contract owners, proposals and historical research.
See native semantic providers for the bounded Go, TypeScript and Rust resolvers/analyzers, immutable native facts and explicit Go/TypeScript compiler queries. C++ semantics and broader Rust coverage remain planned.