SEMAPRAX documentation

September 18, 2026 · View on GitHub

Status: living public documentation entry point for v0.5.0; the HOSTED GREEN implementation baseline remains v0.4.0.

Audience: language users and integrators.

This is the public documentation entry point for SEMAPRAX. Start here to learn the language and its supported workflows. Contributor process, implementation evidence, private experiments, and repository internals live in the separate development guide.

SEMAPRAX is alpha. A versioned document describes an exact bounded contract; it does not imply that the broader feature is complete or stable. The completion matrix is the product-status authority. The v0.4.0 baseline records HOSTED GREEN for the released implementation and supersedes its pre-release local-only status.

The v0.5.0 prerelease contains smoke-tested Linux x86-64, Apple Silicon macOS, and Windows x86-64 archives. The implemented release code has HOSTED GREEN evidence; the release-note publication issue is not an outstanding code-evidence gate. See the release baseline and release record and checksums. The release remains unsigned, not notarized, and alpha. Recent project and tooling notes are summarized in CHANGELOG.md, with compact highlights in CHANGELOG-SUMMARY.md, and full history in docs/CHANGELOG-ARCHIVE.md.

Choose a path

You want to…Start with…
Understand the current implementation and evidence stagev0.4.0 HOSTED GREEN baseline
Install a working toolchainInstall
Track recent changesCHANGELOG
Try the languageFollow the executable quickstart, then explore the root README
Learn the language itselfWork through the language tour
Write SEMAPRAX as a coding agent with a small context windowLoad the compiler-checked agent quick reference
Fix a known SPX-* diagnostic without loading the full referenceRun semaprax help diagnostic <SPX-code>; semaprax help diagnostic codes lists exact supported codes
Find a standard-library declaration and its contractRead the generated standard library catalog; Standard Library v1 owns the tiers and required modules
Find a minimal example to point a command atExamples index
Find or automate a compiler commandUsing the SEMAPRAX CLI and Unified CLI
Highlight .spx files in Visual Studio CodeThe repository's VS Code extension
Understand the language designRFC 0001
Work with records, variants, matching, Option, or ResultRFC 0002
Understand ownership and cleanupRFC 0003
Build a multi-file projectProject Manifest v1, then the owning additive profile
Run a source-defined AgentIterative lifecycle v2 and Direct Runtime v2
Use generic collections or callbacksGeneric compiler collections, function values v2, and closures v2
Call SEMAPRAX from JavaScriptWasm Scalar Exports v1
Inspect the unpromoted Project v8 owned-byte SDK boundaryPublic Owned Data API v1
Inspect the unpromoted Project v9 flat-record boundaryPublic Flat Owned Record API v1
Inspect the unpromoted Project v10 owned-string boundaryPublic Owned UTF-8 API v1
Query program meaningAgent Context v2 and Universal Semantic Query
Preview or apply a semantic changeSemantic Patch v2, then Impact and Review
Validate an authority-free Project transactionUniversal Semantic Transaction v2 and composition
Integrate a compiler report or generated artifactUse the reference catalog
Contribute to the compilerFirst contribution, then the development documentation

Core concepts

Source and identity

Readable .spx source is the canonical Git projection. Public declarations can carry persistent @id identities, while expression identities may change with a revision. Canonical formatting removes incidental textual differences.

Checked semantic representation

The compiler parses and verifies source before producing stable-ID HIR and a versioned semantic graph. Graph queries expose bounded context without making source text the agent's only representation.

Evidence and authority

Reports and evidence capsules are deterministic descriptions. They are not signatures, approvals, or write authority. A mutating route must authenticate its inputs, replay the relevant evidence, and own the final transaction.

Shared backend meaning

Native and WebAssembly implementations consume the same verified HIR and target-neutral cleanup plans. The released implementations have hosted-green evidence within their admitted target profiles. This does not extend a feature to targets or shapes excluded by its owning specification.

Public language and workflow references

Agent workflow references

The supported conceptual flow is:

graph/context → patch → impact/review → evidence replay → atomic apply

The additive Project transaction APIs also provide authority-free validation and replay; validation alone does not perform the final apply operation.

Reference catalog

Versioned reference documents are intentionally precise. They define one wire format, report, ABI, admission profile, or evidence boundary. They are useful to tool and host authors but are not the recommended introduction to SEMAPRAX.

The exhaustive, audience-separated list is in source catalog:

  • public language and workflow references;
  • agent and workspace protocol references;
  • target, ABI, schema, and package projections;
  • internal architecture, quality, status, roadmap, decisions, and private experiment contracts.

Compatibility and status

  • v0.4.0 baseline owns the current hosted-green release evidence classification and its relationship to historical evidence.
  • Protocol migrations records compatibility changes between versioned agent-facing formats.
  • Completion matrix owns product status and completion criteria.
  • Changelog owns historical implementation changes.
  • Changelog summary gives a compact latest-notes view.
  • Roadmap owns future sequencing, not implementation claims.

Keeping these responsibilities separate prevents the same status narrative from drifting across the README, RFCs, architecture, and roadmap.