Roadmap
sloptor is a native reimplementation of the roblox-ts compiler (rbxtsc). It builds on
tsrs, a Rust port of typescript-go.
It began in Go. The Rust port in crates/ replaced that code, and the Go code no longer
exists. The phase records below are history. They still name the Go packages and tools of
their day. The contract is upstream parity on code paths the fork leaves alone. The verified
@isentinel/roblox-ts@4.0.11 fork archive is the authority for code paths the fork changed.
sloptor still targets the same @rbxts/* ecosystem and command-line tool, much faster: see the
benchmarks for how much.
- Design spec:
docs/superpowers/specs/2026-06-05-rotor-design.md - Detailed plans:
docs/superpowers/plans/ - Porting source of truth: research digests in
docs/superpowers/research/, ordered by authority fromreference/down through digest and plan to tests - Acceptance test: the real
randomnessgame project follows the applicable upstream or fork-authoritative oracle for each feature area
Legend: ✅ done · 🚧 in progress · ⬜ not started
Status at a glance
Section titled “Status at a glance”| Phase | Scope | Status |
|---|---|---|
| 0 | Foundation, repo, tsgo mirror, checker spike | ✅ |
| 1 | Luau abstract syntax tree and renderer, a port of @roblox-ts/luau-ast 2.0.0 |
✅ |
| 2 | Transformer core and differential harness against real rbxtsc | ✅ |
| 2b | Functions, destructuring, for-of over arrays, switch, loop closures | ✅ |
| 3a | Imports, module resolution, Rojo resolver, new and constructor macros |
✅ |
| 3b | Macro tables, optional chaining, full iteration, pnpm and baseUrl resolution |
✅ |
| 3c | JSX, classes, decorators, spread, async, try, enums, namespaces | ✅ |
| 4 | Project layer, with emit layout, watch, incremental builds, command-line flags, sidecar | ✅ |
| 5 | Conformance, with the behavioral suite, diagnostics corpus, and acceptance runs | ✅ |
v1.0, drop-in rbxtsc replacement |
✅ |
Measured progress: the differential and conformance suites cover the upstream reference plus fork-authoritative fixtures. The upstream behavioral and diagnostics suites act as regression oracles where the fork hasn't changed behavior. Fork-divergent fixtures don't count as upstream matches.
Phase 0, foundation ✅
Section titled “Phase 0, foundation ✅”Plan: docs/superpowers/plans/2026-06-06-rotor-phase0-phase1.md. This phase tests the core
bet: driving tsgo's real TypeChecker from Go.
- Task 1. Repo scaffolding. Go module. Layout:
cmd/,internal/,tools/,reference/,tsgo/. Plus README and LICENSE. - Task 2. Vendoring the reference sources. Snapshot roblox-ts 3.0.0 and luau-ast 2.0.0 into
reference/. The snapshots record SHAs, strip.git, and keep the licenses. - Task 3. The tsgo mirror tool.
tools/mirrorsnapshots a pinned typescript-go commit and rewritesinternal/...import paths to importablesloptor/tsgo/...paths. It also adds an overlay system for unexported APIs, such astsgo/checker/rotor_exports.go. - Task 4. Run the mirror and build tsgo. Pinned at
1f955e97. The vendored tree compiles. - Task 5. The checker spike. Parse and typecheck one file from Go, then call
GetTypeAtLocationandGetSymbolAtLocation, load config, and create a program.
Phase 1, Luau abstract syntax tree and renderer ✅
Section titled “Phase 1, Luau abstract syntax tree and renderer ✅”Plan: same file as Phase 0. Pure code with no checker. Unit tests exercise the code, and formatting is byte-exact.
- Task 6.
SyntaxKindand node interfaces. All 40 Luau node kinds. - Task 7. List. Doubly linked statement lists.
- Task 8. Node structs.
- Task 9. Factories that clone on reparent.
- Task 10. Type guards, validators, and globals.
- Task 11.
RenderStateand render utilities. - Task 12.
solveTempIds. A scope-aware solver for temporary identifier collisions. - Task 13. Expression renderers.
- Task 14. Statement renderers and
RenderAST. - Task 15. Golden integration test and benchmark.
Phase 2, transformer core and differential harness ✅
Section titled “Phase 2, transformer core and differential harness ✅”Plan: docs/superpowers/plans/2026-06-06-rotor-phase2.md. This phase produced the first
byte-identical Luau. The harness runs real rbxtsc goldens through tools/oracle/oracle.ps1
and drives manifest-gated diff tests. Every later phase builds on it.
- Task 1. The fixture project and oracle runner. The committed goldens include
testdata/diff/project, pinned to roblox-ts@3.0.0 and typescript@5.5.3, fixtures 01 through 10, plustools/oracle/oracle.ps1. - Task 2. The differential harness.
internal/diffcompares bytes against goldens, and each test runs only when the manifest lists it. - Task 3. Diagnostics and
DiagnosticService. Error and warning factories produce exact upstream messages. By Phase 3a that covered 66 byte-exact diagnostics. - Task 4. The
TransformStatecore. It handles the prereq statement stack, capture,pushToVar*, thegetTypecache,valueToIdStr, hoisting maps, andRuntimeLibtracking. - Task 5. The per-file pipeline.
transformSourceFile, the statement-list hoist merge, export strategies,CompileFile, and a tsconfig sanitizer. The sanitizer strips options that TS7 removed:downlevelIteration,baseUrl, andmoduleResolution: "Node". - Task 6. Dispatch and literals. This produced the first byte-identical goldens: raw-text numerics, string quote rules, templates, and array and object pointers.
- Task 7. Identifiers, variable statements, and expression statements. Symbol lookup,
undefinedtonil, hoist checks, export-let routing. - Task 8. Type predicates and truthiness.
isDefinitelyTypeandisPossiblyTypecombinators, pluscreateTruthinessChecks. That covers the~= 0,NaN, and~= ""order, the TS#32778 workaround, andlogTruthyChanges. - Task 9. Binary, logical, assignment, and unary operators. It picks
+or..from the types and converts===to==. Bitwise operators becomebit32.*. Compound assignment, logical chain flattening, and??complete the set. - Task 10. Access and calls. +1 array indexing with constant folding,
LuaTupleselect,isMethodfor:versus., andensureTransformOrder. - Task 11. Control flow support. if/while/do, C-style for loops with optimized numeric-for detection, break/continue/throw, and the return rules.
- Task 12. Export strategies end to end. There are four strategies, and a mutable export forces the exports-table strategy.
- Task 13. The conformance sweep. Adversarial fixtures 11 through 13 cover edge numbers, strings, and prereq stress cases. Then final review and merge.
Phase 2b, functions, destructuring, for-of, and switch ✅
Section titled “Phase 2b, functions, destructuring, for-of, and switch ✅”Plan: docs/superpowers/plans/2026-06-07-rotor-phase2b.md.
- Task 1. Fixtures and goldens. Fixtures 14 through 19 cover functions, arrows, destructuring, for-of, switch, and closures.
- Task 2. The reference walker, loop closure copies, and case hoisting. A port of
eachSymbolReferenceInFile, real closure-copy machinery that replaces the Phase 2 panic, and a fix for the body-write loop divergence. - Task 3. Functions. Declarations, expressions, and arrows, with default and rest parameters, an implicit
self, andthiselision. It also covers bodiless overloads andexport default function. - Task 4. Destructuring. Array and object binding and assignment patterns, nesting, defaults, omitted elements, and the swap pattern.
- Task 5. For-of over arrays. The
for _, x in exp doforms, an inline destructure fast path, and a builder dispatch table. Non-array inputs get clean diagnostics. - Task 6. Switch. Repeat-until-true wrapper, the
_fallthroughflag, the clauses-after-default quirk, and case-clause hoisting. - Task 7. Conformance sweep and merge. Adversarial fixture 20 and the first
randomnessreal-world smoke test, at 14/95 byte-identical. The blocker table set the Phase 3 priorities.
Phase 3a, imports, module resolution, and NewExpression ✅
Section titled “Phase 3a, imports, module resolution, and NewExpression ✅”Plan: docs/superpowers/plans/2026-06-07-rotor-phase3a.md. This phase unblocked the 96% of
real-world files that imports had blocked.
- Task 1. The
RojoResolverandPathTranslatorports. They live ininternal/rojoand follow the vendored reference at v1.1.0: partitions in reverse order, init and index renames, sub-extensions, and isolated and network containers. - Task 2.
MacroManagercentralization and constructor macros. One component owns all macro identification:new Array(n),SetandMapliteral versus loop, andWeakSetandWeakMap. It also addstransformNewExpression, with theX.new(...)fallback andnew Instance("Part"), plus math-op property-call macros. Therandomnessproject exposed a bug in those macros that produced wrong output with no error, and this task fixed it. - Task 3. Project-aware compile and runtime-lib emission. This adds
CompileProject, the Model, Game, and Package require strategies, andRuntimeLibRbxPathdiagnostics. This phase pinned the checker pool to one checker, because alias marks belong to each checker. Restoring parallelism became a Phase 4 performance item. - Task 4. Import declarations. Elision through
IsReferencedAliasDeclaration, lazyTS.import, default-import semantics, namespace imports, andcreateImportExpressionwithTS.getModuleand relative or absolute chains. - Task 5. Export-from and export assignment. Per-statement re-exports, the
export *star loop, andexport =. - Task 6. Multi-file differential fixtures. Fixtures 21 through 23, with the harness moved to project-wide compilation.
- Task 7. Conformance, a second smoke test, and merge. Adversarial fixture 24,
randomnessat 28/95, and the fixed syntactic-diagnostics gap.
Phase 3b, resolution gaps, macro tables, optional chaining, and iteration ✅
Section titled “Phase 3b, resolution gaps, macro tables, optional chaining, and iteration ✅”Plan: docs/superpowers/plans/2026-06-08-rotor-phase3b.md. Digest: phase3b-digest.md.
- Task 1. Resolution fixes. The sanitizer now rewrites
baseUrltopaths. A compiler-types Iterable-arity d.ts overlay handles the TS5 and TS7 divergence. The macro registration audit coversMissing()and the sentinel gate. - Task 2. Pnpm symlinks.
GuessVirtualPathreads the tsgoSymlinkCacheand takes the lexicographic minimum, with a junction-safe real path. - Task 3. Macro infrastructure and the String and
ArrayLiketables. It addswrapCommentswith the-- ▼ X ▼markers,argumentsWithDefaults, 13 String macros, andArrayLike.size. - Task 4. Array tables.
ReadonlyArraygets 15 macros andArraygets 9, with verbatim emit logic. - Task 5. Set, Map, and Promise macros plus call macros. The Set and Map families,
Promise.thentoandThen, and theassert,typeOf,typeIs,classIs,identity,$tuple, and$rangemacros. It also adds the Promise identifier macro. - Task 6. Completing the for-of builders. Set and Map with inline
[k,v], string gmatch,IterableFunction,LuaTuplearity introspection, generator.next, and$rangenumeric-for. All 7 binding accessors. - Task 7. Optional chaining. A snapshot-free
chainItem, double nil-check nesting, the_selfmethod rule, temp reuse, andnoOptionalMacroCall. - Task 8. Conformance, a third smoke test, and merge. Fixture 31, 35/35 fixtures, and
randomnessat 54/95.
Phase 3c, JSX, classes, spread, async, try, and enums ✅
Section titled “Phase 3c, JSX, classes, spread, async, try, and enums ✅”Plan: docs/superpowers/plans/2026-06-07-rotor-phase3c.md. Digests: phase3c-jsx-digest.md,
phase3c-classes-digest.md, and phase3c-async-try-enums-digest.md. This phase clears the
JSX wall of 33 randomness files and completes language support.
- Task 1. JSX. A factory-call assembler, the lowercase-tag quirk, and attribute spread paths with a
table.clonefast path next to the_kand_vloop. An empty{}attribute becomestrue. The JsxText fixup port from tsgo keeps the backslash-doubling quirk. Fixture32_jsx.tsx. - Task 2. The classes core. Byte-verbatim setmetatable boilerplate,
.newand constructor synthesis, property initializers in constructor-body order, parameter properties, the static-method colon quirk, and inheritance with 3super()arms and a__tostringre-emit. It also covers class expressions, computed names, the#fielddiagnostic, and fixture33_classes.ts. - Task 3. Decorators. Legacy experimental decorators on classes, methods, properties, and parameters, with init running first to last and the apply step running last to first.
shouldInlinespill rules and key pinning are included. Acceptance covers the@ReactComponenterror boundary. Fixture34_decorators.ts. - Task 4. Object and array spread plus logical assignments. Object spread uses a fast path next to the copy loop, with all 7 iterable-to-array builders and call-argument spread. Array-literal spread uses
table.moveand carries the_lengthbookkeeping quirks.??=,&&=, and||=work at both dispatch points. Fixture35_spread.ts. - Task 5. Async and generators.
TS.asyncwrappers turn declarations into locals, and async methods drop the colon.awaitbecomesTS.await, andTS.generatorswaps the body. The task lowersyieldandyield*, bansasync function*, and adds fixture36_async.ts. - Task 6. Try, catch, finally, and flow-control rerouting.
TS.trywith theTRY_RETURN,TRY_BREAK, andTRY_CONTINUEflags, blocked checks, both orderings that matter, andcollapseFlowControlCases. This task retires the Phase 2 TRY_* no-op and adds fixture37_try.ts. - Task 7. Enums and namespaces. An enum do-block with
_inverseand a setmetatable, const enums that emit nothing, and constant folding. Namespaces use_containerdo-blocks for dotted and nested names. sloptor bans merging throughnoEnumMergingandnoNamespaceMerging. Fixture38_enums_namespaces.ts. - Task 8. Conformance, a fourth smoke test, and merge. Adversarial fixture
39_mixed3c.tsxcovers decorated React class components, spread props, enum-keyed Map iteration into JSX children, generators withyield*in try spread into JSX, async with try, await, break and continue rerouting,??=on class fields, and namespace components as JSX tags. It came out byte-identical on the first run. Therandomnessre-smoke reached 95/95 byte-identical, with zero divergent files, and zero blocked files. The work updated the README and roadmap, and the final review and merge happen at branch close.
Phase 4, project layer ✅
Section titled “Phase 4, project layer ✅”Plan: docs/superpowers/plans/2026-06-07-rotor-phase4.md. Digest: phase4-project-digest.md.
These changes turn sloptor from a compile library into a usable command-line tool.
- Full emit layout. It writes the
out/tree and translatesindex.*toinit.*. The cleanup and copyFiles passes went into the Phase 4 output pipeline. Output selection between.luaand.luauarrived with--luau, andinclude/emission came earlier in 3c throughinternal/includefilesand--noIncludeand--includePath. -
.d.tsemit for declaration builds. Package projects now emit declarations through the tsgo declaration pass, and sloptor's write callback handles thetypes="types"rewrite. - Full
rbxtsccommand-line flag surface. Phase 4 Task 1 added the ProjectOptions merge, where defaults come before the tsconfigrbxtskey and argv comes last. Absent command-line booleans don't clobberrbxtsvalues. The task also added-p/--projectwith a path and an upward tsconfig search.--rojotreats an empty string as a fall through to discovery, with the quirk kept verbatim. Next came--luau,--logTruthyChanges,--optimizedLoopswith the transformer gate wired, and--writeOnlyChanged. That last flag shipped a command-level byte compare, which later moved into the compile write phase.--verbosegained aLogServiceanalog ininternal/logservice. It adds a yellowCompiler Warning:channel that now carries the Rojo resolver warnings dropped before, along with partial-line tracking and upstream benchmark and progress line formats. The task closed with--versionand--allowCommentDirectives. Usage errors now exit 1 for rbxtsc parity, where they used to exit 2.--writeTransformedFilesparses but waits. It warns that the feature isn't supported yet, and it sits out of v1. Comment-directive hoisting of--!strictat the top of the file already worked intransformer/sourcefile.go.build,--type,-w, and--usePollingcame in 3c and 4. - Watch mode v1.
sloptor build -warrived with polling rebuilds, and--usePollingsemantics run all the time today. Each build reuses the manifest-backed changed-file selection path. Watch v2 superseded it on June 11, 2026, as the Post-v1 follow-up notes: pruned snapshots fromos.ReadDir, debounced batch rebuilds, mid-build edit detection, and an adaptive 100 ms cadence. - Incremental builds with a tsbuildinfo equivalent. sloptor now writes its own manifest at the configured buildinfo path and recompiles only changed
.tsand.tsxfiles plus transitive importers. Declaration emit follows the same selected set. A build that breaks doesn't advance the manifest. - Transformer-plugin Node sidecar integration. Plugin-configured compiles and builds run the worker from
tools/sidecar, logtransformer-not-foundas a warning, hard-fail when Node is missing, and recompile and render from an overlay-backed tsgo Program. The June 10, 2026 hardening embedded the worker in the binary. The worker extracts to a content-addressed user-cache dir, andROTOR_SIDECAR_PATHoverrides that path. It resolves typescript from the project's node_modules, the same instance plugins require and upstream's shared-instance guarantee. Pluginconsole.logoutput now goes to its own channel, away from the stdout protocol. sloptor also keeps one warm worker per project across builds and-wrebuilds with stamp-diffedchangedFilesoverlays. The test suite proves this against realrbxts-transformer-flamework@1.3.2andrbxts-transform-env@3.0.0intestdata/transformers/project, asserting identifier metadata,Flamework.addPathsrojo rewriting, and env inlining. Note that@rbxts/transform-envdoes not exist on npm, and the real package isrbxts-transform-env. The known limitation is that a warm worker's plugin-visible view of an edited ambient.d.tscan be stale until the watch session restarts. sloptor's own typecheck doesn't see that staleness. - A full
validateCompilerOptionsport, which arrived in 3c with byte-exact diagnostic texts. One known gap: sloptor reads enforced options that appear only in anextendsparent from the root, which matches the sanitizer gap. Fixing it needs extends-chain resolution here. - Concurrency.
GetTypeCheckerForFilerestores checker-affined project compilation.CompileProjectandCompileFileno longer assume checker 0. Project compilation now runs one transform worker per checker group with a per-checkerMultiState, and the tsgo checker pool no longer pins to one checker. - Performance, filesystem-stat caching. This builds on the checker-group parallelism preceding and keeps output byte-identical. On the 95-file acceptance project, a full
sloptor buildwent from 545 ms to 355 ms. An incremental no-op rebuild, the watch case, went from 369 ms to 180 ms, about 2×:cachedvfshost FS. It wraps the compiler host for build andsloptor check, so module resolution's repeatedStat,FileExists,Realpath, andDirectoryExistsprobes get memoized for the pass. Those probes took about 40% of warm time inGetFileAttributesExsystem calls, since every checker group otherwise re-stats the samenode_modules/@rbxtspaths. A build never mutates its source tree mid-pass, so this is safe. tsgo's own project host uses the same wrapper.- Rojo
searchDirectory. It readsos.ReadDirentry kinds instead of callingos.Stattwice per child. Only reparse points, such as junctions and symlinks, fall back to a following stat, which keeps pnpm installs correct.
- Command-line logging and developer experience. A new
internal/termcolor and style layer respects NO_COLOR and FORCE_COLOR, enables VT on Windows, and falls back to ASCII glyphs.cmd/rotor/ui.gogivesbuild,check, andwatchclean output: a banner, ✓ and ✗ result blocks, throughput, failures in color, and watch change and idle lines.internal/logserviceheld byte-stable for the differential tests. One-shot diagnostics support CPU, trace, block, mutex, heap, and timing output. Finite diagnostics don't accept watch mode. - V1 cleanup triage. The remaining cleanup outside the main feature set, removing the
TransformStatementfunc-var, goes to post-v1 engineering follow-up instead of blocking parity. Warmer sidecar watch sessions arrived June 10, 2026. - Known cleanup: trailing-comment handling for a block
}ingetLastToken.
Fork parity boundary, July 2026
Section titled “Fork parity boundary, July 2026”The committed roblox-ts.zip archive is the authority for features the
@isentinel/roblox-ts@4.0.11 fork changed: varargs optimization, object-rest direct access,
the rbxts option cascade, .luau.map source maps, the copy-files gate, the Rojo
resolver cache, solution builds, and solution watch. The older reference/roblox-ts
tree covers only unaffected code as the upstream parity reference. User-facing
schema and help must describe the fork behavior without presenting upstream-only
diagnostic names or cache layouts as sloptor contracts.
The project layer also publishes these generated build-state paths: rbxts.copyfiles.json
in outDir, the fork-compatible rbxts.rojocache.json name that cleanup protects,
.rotor/cache/rojo/ for sloptor's hashed resolver state, adjacent .luau.map files when
source maps are enabled, and *.rbxtsc.tsbuildinfo for sloptor incremental state. The docs
describe RBXTSC_WRITE_CONCURRENCY, ROTOR_WRITE_WORKERS, and UV_THREADPOOL_SIZE as
tuning and cleanup controls, not tsconfig options.
Phase 5, conformance ✅
Section titled “Phase 5, conformance ✅”The 1:1 proof at full scale.
- Behavioral suite closure. The staged Lune runner now passes the full vendored runtime suite:
460 passed, 0 failed, 0 skippedon June 7, 2026, including the Roact JSX coverage, and the runtime coverage. - Diagnostics corpus closure. The diagnostics runner now proves the full vendored expected-error corpus, including the two Rojo-topology fixtures
noIsolatedImport.tsandnoRojoData.ts, by staging temporary projects the way upstream does. - A differential run harness over the vendored
tests/srccorpus in roblox-ts.internal/conformancenow enables 44 golden fixtures byte for byte, with zero manifest holdouts. - Acceptance closure. The
randomnessacceptance runner now stages copied projects, reuses the real local dependency tree, runs sloptor andrbxtsc, and compares normalizedout/andinclude/artifacts byte for byte, with zero divergences. - Close remaining runtime and acceptance divergences to zero.
Version 1.0, drop-in replacement ✅
Section titled “Version 1.0, drop-in replacement ✅”Local verification on June 7, 2026 used:
go test ./... -count=1go test ./internal/conformance -count=1withROTOR_ROJO_PATH,ROTOR_LUNE_PATH, andROTOR_RANDOMNESS_PATHbun testintools/sidecar, afterbun install --no-save.npm teststill works as a fallback.go test ./internal/compile -run TestTransformersFixture -count=1for real-package transformer coverage of Flamework and rbxts-transform-env. It needsbun install --no-saveintestdata/transformers/project.
CI has covered this continuously since June 8, 2026. .github/workflows/ci.yml runs gofmt,
go vet, go build ./..., and the full go test ./... on every push to master and every
PR. It uses the shared .github/actions/setup composite action, which provisions Go,
Bun, and Node for the transformer sidecar. Bun is the canonical fixture installer, and
the npm fallback caused flaky installs. CI also runs the sidecar JS suite through
node --test in tools/sidecar and installs testdata/transformers/project so the
real-package transformer test runs. CI and release.yml set
ROTOR_REQUIRE_TRANSFORMERS_FIXTURE=1, so a missing fixture install breaks the run instead of
skipping the real-package test without a word. rojo and lune are intentionally absent from
CI, so the lune runtime suite skips there. That suite runs locally through aftman install,
and the byte-parity differential and diagnostics tests exercise it either way. release.yml
reuses the same setup, runs the tests, and then publishes command-line binaries through
GoReleaser.
Linux validation ran on June 10, 2026 in a golang:1.26-bookworm container with Node 22 and
npm installs from a clean clone. It covered the sidecar JS suite, go vet, the full
go test ./..., and the sidecar and transformer tests under -race. It also ran a
release-style sloptor build of the transformers fixture with
CGO_ENABLED=0 -trimpath -ldflags "-s -w -X main.version=...", including extraction of the
embedded sidecar to ~/.cache/rotor. Everything passed. All six GoReleaser targets
cross-compile, and goreleaser check validates the config. Note that releases up to
v1.0.2 predate the embedded sidecar. Their transformer-plugin support only worked from a
repo checkout, and the first release after June 10, 2026 carries the fix.
Success criteria from the design spec:
- Output identical byte for byte to rbxtsc 3.0.0, after header normalization, on the upstream corpus and
randomness - The vendored behavioral suite passes under Lune, and the vendored diagnostics corpus matches upstream expectations
sloptor buildandsloptor build -wwork as drop-inrbxtscreplacements with the same npm packages- Measured wins: ≥5x cold build, near-instant watch rebuilds
Out of scope for v1: the playground and VirtualProject, --writeTransformedFiles, and devlink
Post-v1 follow-up
Section titled “Post-v1 follow-up”Watch v2, quality of life, and hardening, June 11, 2026. Spec: docs/superpowers/specs/2026-06-11-rotor-watch-v2-qol-design.md.
- Watch engine v2. It prunes the snapshot walks.
os.ReadDirandentry.Info()skipnode_modules, dot-dirs, and the build-writtenoutandincludetrees. v1 called stat on everynode_modulesfile every 250 ms. It ignores editor junk: vim swap and backup probes, emacs locks,.DS_Store, andThumbs.db. It debounces batch rebuilds with a 50 ms quiet timer and a 500 ms cap, so a "save all" burst becomes one rebuild that reports every file. Baseline snapshots run before each build, which fixes the v1 lost-update bug where a save during a build disappeared without a trace. The poll cadence adapts at 10× the walk cost, clamped between 100 ms and 1 s, where v1 used a fixed 250 ms. This applies to bothbuild -wandcheck -w. A smoke test verified it end to end: a 43-file fixture rebuilt one file in 64 ms after a single-file edit. - Watch and command-line logging quality of life. Batched change lines such as
3 files changed · a.ts, b.ts, +1 more, a rebuild counter, the last-build duration, and a build-time history sparkline fromterm.Sparkon interactive terminals only, all on the idle line. - Security hardening. An output-path containment guard calls
filepath.IsLocalon every compiled output's project-relative path before writing. Sidecar cache extraction is tightened to0o700and0o600. AvulnCI job runs pinnedgovulncheck@v1.3.0 ./..., and local validation found zero vulnerabilities. -
$getModuleTreefolder support, June 12, 2026. A sloptor extension and the first deliberate superset of rbxtsc. Upstream requires the macro's specifier to resolve as a module, so a folder needsindex.ts, and upstream called folder support too expensive to build. sloptor now resolves folder specifiers directly throughgetFolderImportPartsininternal/transformer/importexpr.go. It resolves relative specifiers against the importing file's dir, and non-relative specifiers through tsconfigpathsfirst, which covers thebaseUrlrewrite, then relative to the project root in the"src/shared/systems"style. Regular imports are unchanged, and only$getModuleTreeopts in, so everything that compiles under rbxtsc stays byte-identical. The end-to-end fixtureinternal/compile/testdata/gmtree_folder_modelpins all three specifier forms. The real-world case that used to break now compiles:baseUrlset tosrcwith$getModuleTree("src/shared/systems")and a folder that holds noindex.ts. rbxtsc 3.0.0 still turns that case down. - Loop label support, August 6, 2026. A sloptor extension and the second deliberate superset of rbxtsc after
$getModuleTreefolders. rbxtsc 3.0.0 bans every labeled statement throughnoLabeledStatement. sloptor compilesouter: for (...) { break outer; continue outer; }. Luau has neither labels norgoto. A plainbreakorcontinuecan't satisfy every label, so the rest lower to a"none" | "break" | "continue"flag temp, with unwinding checks after each enclosing break boundary. That work lives ininternal/transformer/labeledstatement.gowithState.LabelChecksandLabelResets. The design follows roblox-ts PR #2928 but fixes five defects in it locally. The depth and index heuristic broke an unlabeled enclosing loop.switchwas not counted as a break boundary, and sloptor lowers it torepeat ... until true, which a barebreakexits. Labeled non-loop statements emitted a barebreak. There was no function ortrybarrier, so a check inside a closure would break the wrong loop. Only the first of two labels on one loop got a continue check. sloptor turns these cases down with clear diagnostics instead of wrong output. Labels crossingtryorcatchreportnoLabeledStatementsWithinTryCatch, with a message byte-exact with the PR. Unknown labels behind// @ts-ignorereportrotorUnknownLabel. A labeled non-loop statement whose body also holds an unlabeledbreakorcontinuebound to an enclosing loop reportsrotorLabeledStatementFlowControl. A labeledcontinuetargeting adoorwhilewhose condition needs temporaries reportsrotorLabeledContinueInDoWhile. Luau forbidscontinuebefore those locals, and the identical unlabeled gap is an rbxtsc bug that sloptor reproduces for parity. Byte parity holds, because no label program compiles under rbxtsc, so thetestdata/diffandtestdata/conformancegoldens didn't change.internal/transformer/labels_test.gopins this with authored expectations, not rbxtsc-derived ones. The rotor-owned Lune spectestdata/conformance/rotor/label.spec.tsadds 21 runtime cases, and the end-to-end fixtureinternal/compile/testdata/labels_modelcovers the rest. -
--!nativetype annotations, October 29, 2026. A sloptor extension, with emitted Luau that differs from rbxtsc. Opt in through"rbxts": { "nativeTypes": true }in tsconfig.json ornativeTypes = truein rotor.toml. tsconfig wins when both are set. The default is off, where//!nativefiles compile exactly like rbxtsc. When enabled, a file whose leading comments include//!nativenow emits Luau parameter and return annotations taken from the TypeScript types. Those types includenumber,string,vector, andVector3. Table types appear structurally:{ T }for arrays,{ A | B }for tuples,{ [K]: V }forMap,Record, and index signatures,{ [K]: true }forSet, and{ a: number, b: string? }for anonymous object types, followed into nested members. Luau's native compiler can then specialize those parameters. A named interface or non-generic object type alias is emitted once as a Luautype Node<K, V> = { ... }, with readonly dropped, optional members asT?, and self references kept. That alias goes at the declaration when the declaration is a top-level statement of the file. Otherwise it is hoisted next to the header, which covers a namespace-, function-, or block-scoped declaration, or one imported from another module. A merged interface emits one alias at its first declaration, with every merged member. String and boolean literal types mirror as Luau singletons:there: "there",flag: true, andtrue | falsespelledboolean. An enum member and a number literal staystringornumber. A top-level parameter keeps its"a" | "b"annotation, which Luau's compiler tagsstring, but a boolean literal there stays unannotated likeboolean. Function types take the form(key: K, other: T?) -> V, andvoidreturns(). A function's own type parameters are declared, as inlocal function f<K, V>(, and nested positions mirrorbooleanand allowlisted Roblox types by name. Top-level parameters are what Luau tags, so their policy is narrower.boolean, Roblox types andInstances, class instances, mixed unions, and a bare generic from an enclosing function stay unannotated. An outer generic would be tagged userdata and break the native entry guard on every call. A form that cannot be written out, such as one deeper than four levels or one with two index signatures, falls back to{ [any]: any }. Files without the directive are byte-identical to rbxtsc. sloptor never emits a baretable, because Luau's compiler would tag it userdata and the native entry guard would break on every call. -
luauTypesfull Luau type annotations, October 29, 2026. An experimental sloptor extension whose emitted Luau differs from rbxtsc. Opt in through--luauTypes, through"rbxts": { "luauTypes": true }in tsconfig.json, or throughluauTypes = truein rotor.toml. The command line overrides tsconfig, and tsconfig overrides rotor.toml. It's off by default. Toggling it moves the incremental salt. A project that never opts in keeps a byte-identical manifest. When enabled, one shared TS-to-Luau builder annotates every file at full fidelity. It works from the TypeScript types over a typed Luau syntax tree. The builder spansinternal/transformer/luautypes*.goandinternal/luau/types.go, with a renderer that decides parenthesization. Parameters geta: number, optional and defaultedstring?, rest...: string, a destructured_param: { x: number, y: number }, andthisasself. Returns get: boolean,LuaTuplepacks(number, string?),()for void, and...nilfor a void body with an explicitreturn. A function declares its own generics, as infunction<T>(value: T): T. The shadowlocal c = c :: numberfollows a parameter default and a??/||/&&temp. Neither Luau solver refines through rbxtsc'sif c == nilchain.TS.asynclocals get the type(n: number) -> Promise<number>. Other locals read like hand-written Luau. A local with an initializer takes its type from the value. A local with no initializer, or with a written type that differs from its initializer's, such as an upcast, gets an annotation instead. Every top-level interface, type alias, enum, and class emitstypeorexport typeat its declaration. That covers merged interfaces once, generic aliases with trailing defaults,readonlyasread, and[A, B]as{ A | B }.MapandSetbecome{ [K]: V }and{ [K]: true }. Overloads become((A) -> B) & ((C) -> D),keyof TandT[K]becomekeyof<T>andindex<T, K>, and recursion resolves by name when the arguments match. Nested, ambient, imported, and library types appear as hoisted aliases named from the local import name, whereBox as Containergivestype Container<T>. A collision with a Luau builtin, a Roblox extern type, or one of the file's type parameters takes_2. Classes become a structural instance alias plus a class table initialized on its declaration line, because rbxtsc'slocal Fooplusdo Foo = ... endtypesFooasT?inside every method.Foo.new(x: number): Foogoes through the double cast(setmetatable({}, Foo) :: any) :: FooandFoo.constructor(self, x) or self. Methods are dot-form functions with an explicit annotatedself, since a colon-formselfis an unrelated inferred table. Inherited and overridden methods keep theselfof the class that first declared them, which makesDerived <: Basehold. Every function re-declares the class generics, and statics takeself: typeof(Foo). A string enum becomes"up" | "down"plus a{ read Up: "up", ... }map, and a numeric enum becomesnumberplus the inverse-indexed table. A generic alias whose body is a mapped, conditional, or template literal type becomes a Luautype functionover thetypeslibrary.Partial2<T>copies the table and makes every property optional.T extends (infer U)[] ? U : Tdistributes over a union, and`on${K}`keys build a new table. Every parameter gets the annotationT: type. The built-in helpers used generically go through a hoisted prelude:__Partial,__Required,__Readonly,__Pick,__Omit,__Record,__Exclude,__Extract,__NonNullable,__ReturnType, and__Parameters. Closed uses expand exactly from the resolved type. A body the translator can't express falls back toanyunder a-- luauTypes:comment. Number literals widen tonumber, template literals tostring, and tuples to the element union. sloptor records every substitution as a fidelity loss that the tests assert. The output targets Luau's new solver, the only placekeyof<>,index<>, and type functions exist. TheTestLuauTypesFixturesAnalyzeCleantest renders every fixture underinternal/transformer/testdata/luautypes. It requiresluau-lsp analyze --flag:LuauSolverV2=truewith the stub definitions to pass each one in strict mode with zero type or syntax errors.TestLuauTypesClassIdiomProbespins the exact error lines of the probes that settled the class, enum, and type-function layouts. With the option off every file is byte-identical to before. When both modes are on in a//!nativefile, the native policy annotates the signatures, andluauTypesannotates the locals, enums, and aliases. Design record:docs/superpowers/specs/2026-10-29-luau-types-design.md
v1.2.1, transformer, render, and resolution fixes, June 12, 2026:
- Void expressions. Port
transformVoidExpression: the transform runs the operand in statement form, prereq'd for its side effects, and the expression evaluates tonil. The output is byte-identical to rbxtsc v3.0.0 in statement position, wherevoid f()becomesf()plus the discarded temp, and in value position, whereconst x = void f()becomes the prereqf()andlocal x = nil. - Empty-return render.
return $tuple()lowers to aReturnStatementwith an empty expression list. The renderer now writes it byte-exactly like upstream luau-ast, asreturnwith a trailing space, instead of treating it as an invariant violation and panicking with an internal compiler error. OtherrenderExprOrListcallers, in assignments and declarations, keep the invariant. - Symlink-cache resolution fix in tsgo. sloptor no longer invents fake entries in the symlink cache for packages that resolved without a symlink, which covers any plain npm or bun install. Those bogus entries rebased every import of the affected package onto a nonexistent project-root path. That produced intermittent
noRojoDataerrors that depended on map iteration order. The code now matches the strada guard onresolution.originalPathtruthiness.
Remaining:
Keep one warm Node sidecar session across, done June 10, 2026 as part of the transformer-plugin hardening. See the Phase 4 sidecar entry.build -wrebuilds instead of respawning per polling cycle- Retire the package-level
TransformStatementfunc var now that the transform handles the full language. - Fold the remaining root-only
extends-chain validation and sanitizer limitation into the project-options pipeline. - Warm sidecar
.d.tsstaleness. Stamp-diffedchangedFilescover the.tsand.tsxcompile set. An edited ambient.d.tsis invisible to plugins, though not to sloptor, until the watch session restarts.