diff --git a/CHANGELOG.md b/CHANGELOG.md index 7fabcb98..3bf405c3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,8 +6,39 @@ Current unpublished workspace version: `0.0.1`. ## [Unreleased] -On 20 November 2026, the experimental interpreter source became public. All eight -workspace crates remain unpublished. The launch ran [hosted correctness CI](https://github.com/slowchop/rustia/actions/runs/44695193616) +### Changed + +- The docs index separates the published API reference from the reference + built from `main`. The README uses the published crate, and the homepage has + an expanded runtime comparison. + +### Added + +- A manual workflow verifies all six published crate archives against an exact + commit before creating its GitHub tag and release. + +## [0.2.0] - 2026-11-28 + +Rustia's first Luau interpreter preview is available on crates.io. It requires +Rust 1.95 or newer. The API may change before 1.0. + +- Embed Luau in Rust games and tools. Edit scripts without rebuilding, carry + selected state across reloads, and opt into deterministic execution for + multiplayer and replays. +- Expose Rust functions and typed objects, and set instruction and VM memory + limits. The `send` feature lets you move an idle interpreter to another + thread. The default `platform-adapters` feature supplies platform services. +- Add the library with `cargo add rustia@0.2.0` or install the CLI with + `cargo install rustia-cli --version 0.2.0 --locked`. + +[GitHub prerelease][0.2.0] · [Versioned API docs](https://docs.rs/rustia/0.2.0/rustia/) · +[Publication record](design/90-release-readiness.md#rustia-020-interpreter-preview) + +## Development history through 0.2.0 + +On 20 November 2026, the experimental interpreter source became public while +all eight workspace crates still had publication disabled. The launch ran +[hosted correctness CI](https://github.com/slowchop/rustia/actions/runs/44695193616) and [differential smoke](https://github.com/slowchop/rustia/actions/runs/44695193576). The benchmark workflows described in earlier entries ran in the private predecessor. @@ -1308,8 +1339,11 @@ The benchmark workflows described in earlier entries ran in the private predeces ## Release Policy -- `0.0.x` is an unpublished/private-preview line. -- The first public preview will start at `0.1.0` only after the release gates in - `design/90-release-readiness.md` are satisfied. -- Breaking public-facade changes after `0.1.0` require migration notes here. -- Semver and API stability rules are defined in `design/91-semver-policy.md`. +- `0.0.x` is the unpublished development line. +- The first Luau interpreter preview is `0.2.0`. The older `rustia 0.1.0` + package was the original game engine. +- Document breaking public API changes in this changelog. See the + [SemVer policy](design/91-semver-policy.md) and the + [supported-release gates](design/90-release-readiness.md). + +[0.2.0]: https://github.com/slowchop/rustia/releases/tag/v0.2.0 diff --git a/design/90-release-readiness.md b/design/90-release-readiness.md index b6ef5234..71ef0888 100644 --- a/design/90-release-readiness.md +++ b/design/90-release-readiness.md @@ -1,17 +1,14 @@ # Release Readiness Checklist -This checklist tracks what must be true before any public rustia crate flips -from `publish = false` to publishable. Updated 2026-10-19; the ordered runtime -blockers below take precedence over packaging polish. +This checklist tracks publication and supported-release gates. The ordered +runtime blockers below take precedence over packaging polish. The first stable release target and its acceptance checklist are in -[`92-first-release.md`](92-first-release.md). The current workspace remains -unpublished; passing preflight does not by itself close this checklist. +[`92-first-release.md`](92-first-release.md). Publication is disabled on +`main`. Passing preflight is one of the supported-release gates. -This checklist gates package publication and supported releases. Public source -access launched on 2026-11-20. The [launch record](public-source-activation.md) -covers visibility, CI and reporting. The package and supported-release checklist below -remains open. +Public source access launched on 2026-11-20. The +[launch record](public-source-activation.md) covers visibility, CI and reporting. The active public-source profile runs hosted correctness and artifact checks. Public benchmark measurement and publication remain paused. The private maintainer @@ -24,6 +21,39 @@ caller. They do not make deterministic execution universal: `standard()` permits providers/capabilities, and `live()` is a first-class intentionally non-reproducible builder preset. The same general embedding API must remain available to those users. +## Rustia 0.2.0 interpreter preview + +The first Luau interpreter preview shipped on 28 November 2026 from +[`release/0.2`](https://github.com/slowchop/rustia/tree/release/0.2) at +[`c89abc121b5233d29353846217d2db95b93e8a34`](https://github.com/slowchop/rustia/commit/c89abc121b5233d29353846217d2db95b93e8a34). +It requires Rust 1.95 or newer. The [GitHub prerelease](https://github.com/slowchop/rustia/releases/tag/v0.2.0) +uses tag `v0.2.0` at the same commit. See the +[versioned documentation](https://docs.rs/rustia/0.2.0/rustia/) and +[release checklist](https://github.com/slowchop/rustia/issues/83). + +The crates.io index records these SHA-256 archive checksums in publication order. + +| Package | SHA-256 | +| --- | --- | +| [rustia-lexer](https://crates.io/crates/rustia-lexer/0.2.0) | `3a461f32ccad15b1c67f09c37f19f15a04dcd5356c1911411e0eefdf09dc1693` | +| [rustia-parser](https://crates.io/crates/rustia-parser/0.2.0) | `e6b4869d5fcdc219f5c4f30f0cdb3ee589ebbc6be2cde54fb4a34d127bfc3d1f` | +| [rustia-vm](https://crates.io/crates/rustia-vm/0.2.0) | `3a91eec1795722001ae9463af4ab34901af9187a750c6e266176843e7ad186fd` | +| [rustia-compiler](https://crates.io/crates/rustia-compiler/0.2.0) | `c2dd5373725423fd1e616e640747c7b7f5418b55c6975143c6cecafd7934aa44` | +| [rustia](https://crates.io/crates/rustia/0.2.0) | `fd0f6870721b50c0e4f69cf7999ff122e489fbc1e25a8a12e0a9bcd6a66382df` | +| [rustia-cli](https://crates.io/crates/rustia-cli/0.2.0) | `cf9071aa83627ae9339a411dd7bd74560b1cc720da37309a501bcdb41463e6b6` | + +The [post-publication workflow run](https://github.com/slowchop/rustia/actions/runs/46109369868) +verified the checksum and recorded commit of every archive. The existing tag and +release were unchanged. Both README examples passed in a fresh Cargo project +using the published library, and the installed CLI reported `rustia 0.2.0` and +evaluated `print(40 + 2)` to `42`. The conformance runner and benchmark harness +retain `publish = false`. + +The remaining gates below apply to supported releases. Full platform +acceptance, controlled-client rollout, API stability and fresh performance +evidence remain under the +[supported-release tracker](https://github.com/slowchop/rustia/issues/34). + ## Current Release Blockers (Ordered) The mixed-heap correctness gate is closed by the shared native/Node-V8 @@ -109,12 +139,14 @@ reviews remain required for this slice; wider semantic-tail work stays open. ## Current Policy -- Keep all workspace crates `publish = false` until the P1 engine, conformance, - benchmark, and API gates below are complete. +- Keep the development workspace on `main` at `publish = false`. Supported + releases require the P1 engine, conformance, benchmark, and API gates below. + The [0.2.0 interpreter preview](#rustia-020-interpreter-preview) was a + separately approved release from a dedicated branch. - Semver and API stability rules are defined in [`91-semver-policy.md`](91-semver-policy.md). -- Keep `script-bench-harness` unpublished while it depends on unpublished - workspace path crates for the optional rustia adapter. +- Keep `script-bench-harness` unpublished. Its optional Rustia adapter uses + the development workspace crates on `main` through path dependencies. - Use dual `MIT OR Apache-2.0` licensing for every public crate. - Keep public rustia APIs generic. Do not publish grabby-specific host types, effect catalogs, or integration code from this repository. @@ -145,17 +177,18 @@ reviews remain required for this slice; wider semantic-tail work stays open. `design/publishability.json` and runs `cargo package --no-verify --allow-dirty` for the generated first publish candidates. The current candidates are `rustia-lexer` and `rustia-vm`. -- Full-workspace packaging is still blocked until internal crates are published - in topological order. The current generated order is `rustia-lexer`, +- Packaging the development workspace for publication requires publishing each + matching internal dependency version in topological order. The current generated order is `rustia-lexer`, `rustia-parser`, `rustia-vm`, `rustia-compiler`, `rustia`, `rustia-cli`, then `rustia-conformance`; `rustia-lexer` and `rustia-vm` are the first candidates after the policy flip because they have no internal dependencies. This generated workspace order includes conformance archive validation; the initial public publication order in `91-semver-policy.md` excludes conformance and benchmark tooling. Keep both tools unpublished unless separately selected. -- The benchmark crate must either publish the `rustia-*` crates first, move the - rustia adapter into a git/path-only integration crate, or ship that adapter as - an example outside the core package. +- Before publishing the benchmark crate, update its optional Rustia adapter to + use compatible registry versions, or move the adapter outside the published + package. The 0.2.0 preview does not satisfy the adapter’s current development + workspace dependencies. ## API Gate @@ -303,8 +336,9 @@ registry installation, public release, or complete platform matrix is implied. ## Release Process Gate -- `just release-preflight` and hosted CI invoke the same - `tools/run-release-preflight.js` driver before any publishability flip. It checks +- Before enabling package publication, including for an interpreter preview, + run `just release-preflight`. + It invokes the same `tools/run-release-preflight.js` driver as hosted CI and checks formatting, strict workspace Clippy, strict Clippy for the builds only the benchmark host compiles, release notes, package file lists, generated progress HTML, benchmark result freshness, crate metadata, workflow policy, example @@ -390,5 +424,5 @@ registry installation, public release, or complete platform matrix is implied. - README, `design/CURRENT.md`, `design/progress.json`, generated progress HTML, conformance TSVs, benchmark inventory, and current benchmark result JSON agree on conformance counts, benchmark state, and release status. -- The crate graph has a documented semver policy before the first non-`0.0.x` +- The crate graph has a documented semver policy before the first supported release. diff --git a/design/91-semver-policy.md b/design/91-semver-policy.md index 1aa4e4c5..024e4e7c 100644 --- a/design/91-semver-policy.md +++ b/design/91-semver-policy.md @@ -1,25 +1,27 @@ # Semver And API Policy -This policy defines how rustia will move from the current unpublished `0.0.x` -workspace to publishable public crates. It applies to the public rustia project +This policy defines how Rustia moves from its development workspace to +supported public releases. It applies to the public rustia project only; grabby-specific integration code remains outside this repository. Repository visibility is separate from package versions and publication. -Rustia’s source is public for inspection and experimental use. The workspace -remains unpublished and its API is still under development. The [launch record](public-source-activation.md) -covers source access. +Rustia’s source is public for inspection and experimental use. The +[launch record](public-source-activation.md) covers source access. +The API is still under development. ## Current Status -- All public workspace crates are currently `0.0.1` and `publish = false`. +- The development workspace on `main` remains at `0.0.1` with publication disabled. +- The [0.2.0 interpreter preview](90-release-readiness.md#rustia-020-interpreter-preview) + shipped from a dedicated release branch with separate approval. - The 0.x milestone validates the API with controlled client applications. - Keep publication disabled; a public candidate or stable release needs a - separate publication decision. See [`92-first-release.md`](92-first-release.md). + A supported release candidate or stable release needs its own publication + decision. See [`92-first-release.md`](92-first-release.md). - `0.0.x` means implementation-preview only. APIs may still change while P1 engine, conformance, benchmark, and release gates are open. -- Until Rustia’s first published crate release, prefer the cleanest coherent long-term - API over compatibility with controlled clients. Treat necessary completeness - as part of the feature and migrate every active client in the same rollout. +- Until Rustia’s first supported release, prefer a coherent long-term API over + compatibility with controlled clients. Treat completeness as part of the + feature and migrate every active client in the same rollout. - The public compatibility target is Luau 0.709 until `design/05-luau-target.md` is deliberately re-pinned and the conformance oracle is refreshed. - The minimum supported Rust version is the workspace `rust-version` in @@ -32,7 +34,7 @@ covers source access. contract. Supporting lexer/parser/compiler/VM packages retain separately versioned 0.x APIs; conformance and benchmark tooling remain unpublished. Separate package versions and update uniform-version release checks when - preparing the first package release candidate. + preparing the first supported release candidate. ## Public Crate Roles @@ -84,8 +86,8 @@ covers source access. and non-exhaustive enums for classifications expected to grow. Match non-exhaustive classifications with a fallback arm. -Before the first candidate, record the complete facade API and run consumer -compilation tests. After 1.0, compare proposed changes with that released API +Before the first supported release candidate, record the complete facade API +and run consumer compilation tests. After 1.0, compare proposed changes with that released API baseline in CI. Migration notes explain a breaking change; they do not make it compatible with 1.x. Replay/fuel/module ABI identifiers remain separately versioned and must be included in an application's replay identity. @@ -126,8 +128,8 @@ Before a breaking public-facade change lands after `0.1.0`: ## Publish Order -After a separate publication decision, publish the initial public packages in -dependency order: +The 0.2.0 preview used this dependency order. Use it for later coordinated +publications after a separate publication decision: 1. `rustia-lexer` 2. `rustia-parser` @@ -139,7 +141,6 @@ dependency order: Conformance and benchmark tooling are excluded from that initial publication. Publishing either tool later requires its own packaging and publication decision. -The benchmark crate remains unpublished until the rustia adapter strategy is -chosen: publish `rustia-*` first, move the adapter into a git/path-only -integration crate, or keep it as an example adapter outside the core benchmark -package. +To publish the benchmark crate, update its optional Rustia adapter to use +compatible registry versions, or move the adapter outside the published +package. The adapter currently uses the `0.0.1` development workspace crates. diff --git a/design/CURRENT.md b/design/CURRENT.md index b8eda8fd..3a2dd2d5 100644 --- a/design/CURRENT.md +++ b/design/CURRENT.md @@ -1,6 +1,6 @@ # Rustia — current state -Updated: 2026-11-28 (Australia/Hobart). +Updated: 2026-11-29 (Australia/Hobart). This is the single authority for implemented state and active project constraints. [GitHub Issues](https://github.com/slowchop/rustia/issues) owns development work, @@ -12,12 +12,16 @@ and evidence. When an older status statement disagrees, this file wins. Rustia is a from-scratch Rust interpreter for pinned standalone **Luau 0.709**. The experimental interpreter became public on 20 November 2026 under MIT OR Apache-2.0. -The workspace on `main` remains at **`0.0.1`** with **all 8 blocked by publish=false**. The six-crate **0.2.0 interpreter preview** was published -from [release commit `c89abc1`](https://github.com/slowchop/rustia/commit/c89abc121b5233d29353846217d2db95b93e8a34). +The workspace on `main` remains at **`0.0.1`** with **all 8 blocked by publish=false**. +The **0.2.0 interpreter preview** shipped on 28 November 2026 +as six crates.io packages and a [GitHub prerelease](https://github.com/slowchop/rustia/releases/tag/v0.2.0). +The tag and all six archives identify +[release commit `c89abc1`](https://github.com/slowchop/rustia/commit/c89abc121b5233d29353846217d2db95b93e8a34). See the [published crate](https://crates.io/crates/rustia/0.2.0), [versioned API docs](https://docs.rs/rustia/0.2.0/rustia/), and -[release tracker](https://github.com/slowchop/rustia/issues/83). -Stable APIs, full Luau parity, consumer rollout and supported releases have separate acceptance gates. +[publication record](90-release-readiness.md#rustia-020-interpreter-preview). +The release freeze on `main` is lifted. Stable APIs, full Luau parity, consumer +rollout and supported releases have separate acceptance gates. - **`slowchop/rustia-historic`** retains the original private evidence. The operations sibling **`rustia-ops`** and private benchmark infrastructure stay private. @@ -36,6 +40,11 @@ commits. Quick runs the early checks. Bulk stops after each failed stage: Quick first, portable and differential checks second, then the full platform and preflight suite. The private controller and repository settings remain inactive. +The [manual GitHub release workflow](../.github/workflows/github-release.yml) +checks the archive checksum and exact commit for every published crate before +creating the Git tag and release. The [0.2.0 verification run](https://github.com/slowchop/rustia/actions/runs/46109369868) +verified all six archives and left the existing tag and release unchanged. + ## Website [website/](../website/README.md) builds the static Rustia homepage and browser playground from this checkout. The browser workers use bounded Rustia sessions for console and sprite projects. Site rollout is tracked in [issue #84](https://github.com/slowchop/rustia/issues/84). diff --git a/design/EGM.md b/design/EGM.md index 340d43fb..7ad01569 100644 --- a/design/EGM.md +++ b/design/EGM.md @@ -10,6 +10,8 @@ Design specifications, canonical project state, structured evidence, and a gener launch commit, completed hosted CI and differential runs, reporting policy and historical preparation. - Canonical state: [CURRENT.md](./CURRENT.md), kept to current contracts, permissions and links to the GitHub issue backlog. +- [Release readiness](90-release-readiness.md) records the published 0.2.0 + preview commit, tag and crate archive checksums alongside the supported-release gates. - Historical pre-compaction text: [CURRENT-2026-10-30-snapshot.md](./CURRENT-2026-10-30-snapshot.md). Its original authority statements are historical; it must never override CURRENT. - Architecture: [30-architecture.md](./30-architecture.md). - Memory benchmark protocol v2, historical v1 compatibility and pending measured acceptance: [57-memory-benchmarking.md](./57-memory-benchmarking.md).