Skip to content

Why we trust Vibe works

Vibe lets you vibe your own language on TypeScript: its compiler compiles .vibe files to plain TypeScript that runs on Effect. This page lists the evidence that the compiler does what the specification says: 4,220 acceptance cases, 3,758 Go test functions, 959 fuzz targets, ten formal models, comparisons against stock TypeScript and Effect, package tests, a release rehearsal on three operating systems, 17 example projects, and four open-source projects whose Effect code was converted to Vibe. It also lists what the evidence does not cover.

Each count that was measured in the repository has the command that produced it. Each command runs from the repository root unless it says otherwise. A result that this page quotes from a migration record, an issue, or a CI run is labelled as quoted and names its source.

The counts and results were measured on December 1, 2026 (UTC), on a Linux x64 machine with 4 CPUs and 12 GB of memory. The release branch alpha/train moved while this page was written, so the measurements come from three of its commits:

  • 49a44436bb26: the results of the acceptance cases, the Go tests, the formal models, the example projects, and the release rehearsal.
  • 519bed7cd4aa: the sizes in those rows.
  • 76fe6af79134: the sizes and results of the fuzz targets, the comparison targets, and the package tests.

The compiler at each of these commits reports version 0.0.15. Some suites fail at each commit. This page reports the failures as measured.

Evidence at a glance

The following table summarizes each kind of evidence. "Result" is the outcome of the run on the measurement machine, unless the row names another source.

EvidenceSizeWhat one item checksResult
Acceptance cases4,220 casesOne program: its diagnostics, its output, or its emitted files4,144 pass, 12 fail, 21 are pending (expected failures with a named reason)
Go tests3,758 test functions in 8 packagesOne compiler behavior, from GoWithout vibelangfuzz: 1,865 pass, 9 fail, 11 skipped. vibelangfuzz is in the next row.
Fuzz targets959 targets, 24,757 saved inputsOne property over generated programsPartly run, 20 minutes per run: 162 of 926 vibelangfuzz targets finished, 160 pass and 2 fail. 764 targets were not run.
Formal models10 models: 6 of proposals VIP-76 to VIP-81, 4 of the ahead-of-time compilerOne property of a model, proved by a solver or a proof checkerAll checked: Z3 answers unsat to all 44 queries, Lean accepts the 6 files, and the 4 compiler theorems pass Z3 and Dafny
Comparisons with stock TypeScript and Effect429 declaration twins, 198 cases with a stock runner, 3 fuzz targetsThe same program written both ways gives the same types and the same resultAll 429 twins and all 198 stock-runner cases pass. The 3 comparison fuzz targets pass on their saved inputs.
Package tests665 test files in 8 packagesOne behavior of an npm packagePartly run, 15 minutes per package: 4,043 tests pass and 165 fail. 3 of 8 packages pass in full. compiler and unplugin stopped at the limit.
Release rehearsal3 operating systemsInstall from packed tarballs, then build, start, test, lint, and format a new projectQuoted: the newest GitHub Actions run on main, on December 1, 2026, succeeded on all 3
Example projects17 projectsEach project passes the checks that the example script lists for it17 of 17 pass their listed checks. 15 run a Vitest suite, 7 also make a production build, and 8 compare program output with a fixture
Migrated projects4 projects, 13,745 .vibe and .vibex filesThe project's own tests pass on the converted codeQuoted from the four migration records: 43,600 tests pass and 75 fail. One failure is an unexplained behavior difference. Six opencode packages do not compile.
Specification review4 reviewersEach reviewer grades the whole specification A- or betterQuoted: passed October 29, 2026

Acceptance cases

An acceptance case is a directory under typescript/vibelang/cases/ that holds a tsconfig.json and one small Vibe project. The harness typescript/vibelang/harness.mjs compiles each case with the compiler built from the checkout, and decides the case's kind from its sources.

KindCasesThe case passes when
Failing1,716The first line of a source is // expect: <codes>, and the error codes that the compiler reports are exactly the listed codes. The harness does not run the program.
Runner1,167The case has a run.mjs. The harness runs it, the script exits with code 0, and what it prints equals expected/stdout.txt.
Runnable1,126A source has a line // expect-result: <json> and exports main(). The harness runs main() under Node.js, and the JSON of its success value equals <json>.
Output only94The compiled out/main.js prints exactly expected/stdout.txt.
Twin only57The case has a typescript/ twin and nothing to run. The declarations of the two versions are identical.
Clean only60The first line of a source is // expect-clean, and the case compiles without errors.

Each case is counted once, in the first row that applies, which is the order in which the harness reaches the checks. 27 of the runner cases also have an // expect-result line. The harness runs their run.mjs, and compares the result when the case has no expected/stdout.txt. Every case that is not a failing case must compile without errors, and a runner must exit with code 0 even when its output matches.

The harness reads the kind from the sources, not from the directory name. 1,751 case directories end in .fail, and 1,700 of them are failing cases. The other 51 test a rejection that is not a compile error of the case itself: 26 are runner cases whose run.mjs compiles rejected programs or runs a command that must fail, 16 are clean-only cases that pin a warning in expected/diagnostics.txt, 8 are output-only cases, and 1 is a runnable case. 16 failing cases have no .fail suffix.

A case can add the following assertions:

  • expected/diagnostics.txt (541 cases) lists every diagnostic with its file, line, column, and code, in the compiler's order. The case passes only when the compiler reports exactly that list.
  • expected/messages.txt (256 cases) lists text that must appear in the compiler's messages.
  • Any other file under expected/ (159 cases) must equal the file at the same path in the compiler's output. These files hold the emitted JavaScript or declarations.
  • A typescript/ directory (429 cases) holds the Effect TypeScript that the .vibe sources replace. See Comparisons with stock TypeScript and Effect.

A case with a pending file (21 cases) names a rule that the compiler does not enforce or a feature that it lacks. The harness runs the case and reports a failed expectation as pending instead of FAIL. A pending case that passes is reported as XPASS and fails the run, so a pending file cannot outlive the fix.

Example of a failing case

The case vip74-schema-data-exhaustive.fail checks that a match over a schema data type must handle every variant. Its whole source is:

// expect: EK4701
export schema data Shape {
  Empty
  Circle { readonly radius: number }
  Rect { width: number; height: number }
}

export function area(s: Shape): number {
  return match (s) {
    when { _tag: "Empty" }: 0;
    when { _tag: "Circle", let radius }: 3 * radius * radius;
  }
}

The match has no arm for Rect. The case passes only when the compiler reports EK4701 and no other error code.

Example of a runner case

The case cov-ch002b-running-native-generator holds the same program twice: main.vibe in Vibe, and typescript/main.ts in Effect TypeScript. Its run.mjs runs both and compares them:

const observe=async f=>JSON.parse(JSON.stringify(await Effect.runPromiseExit(f())))
assert.deepEqual(await observe(main),await observe(native))
assert.deepEqual(await Effect.runPromise(main()),["native"])

The first assertion requires the two programs to end with the same Effect Exit. The second requires the Vibe program to produce ["native"].

What the cases cover

Case names start with the feature that they test. The following table lists the ten largest name groups. The groups cov, cov2, coverage, and cov900 hold cases written from individual sentences of the specification.

Name prefixCases
cov307
match240
effect157
cov2148
service141
schema126
do117
experimental85
coverage81
declaration80

A case source can cite the rule that it tests in a comment. 569 cases cite one of 37 proposals (VIPs) by file name, and 504 case names start with a VIP number. The proposals with the most citing cases are VIP-7 match (59 cases), VIP-40 module declarations (56), VIP-1 effect and async functions (48), VIP-39 .vibex (48), and VIP-5 try (41). The citations are comments. No tool checks that every rule has a case, so these counts show where the cases are, not that coverage is complete.

Result

A full run at the measured commit printed the following summary line:

4177 cases: 4137 ok, 19 FAIL, 21 pending, 0 XPASS

Seven of the 19 failures had one cause: the machine lacked files that the steps under Reproduce it yourself install (the formatter plugin file, stock TypeScript 7.1.0-beta, the dependencies of the bundler packages, and one shared copy of Effect). After those steps, a second run of the same 19 cases printed 19 cases: 7 ok, 12 FAIL, 0 pending, 0 XPASS. With every prerequisite installed, the result is therefore 4,144 passing cases, 12 failing cases, and 21 pending cases. No single run printed that line: the 4,137 cases that passed the first run were not run again.

In the 12 failing cases, the case and the compiler disagree at this commit. This page does not decide which side is wrong.

CasesHow the case fails
tooling-diag-severity-keys and its -options, -ownership, and -values variants (4 cases)The case source writes a type that ends in !. The compiler rejects that form with TS17019, so the case's own program does not compile.
plain-catch-result-try, tooling-config-prelude-off-imports, vip4-trusted-predicate-input, and the one case whose name ends in flow-binding-nested-handler (4 cases)The compiler reports EK0401 for a call that can throw, such as JSON.stringify or Effect.runSync, in code that the case expects to compile without that error.
never-stored.failThe case expects five EK1012 errors and three EK4834 warnings. The compiler reports one TS17019 error for a trailing ! in the source and stops.
vip79-defer-sync-throws.failThe case expects two EK7903 errors and two EK0403 errors. The compiler reports only the two EK0403 errors.
match-and-not-cover-nothing.failThe compiler reports the five expected EK4701 errors. It reports the sixth diagnostic, TS2367, at column 10 where the case expects column 50.
experimental-test-recordThe program fails at run time: Test.record reports that its fixtures directory does not exist.

The 21 pending cases are expected failures with a named reason. Most of them name a retired form that the compiler still accepts where the specification requires an error, such as a bare fork { } block (EK1707) or a mutable marker on an ordinary type member (EK3410). grep '^pending' <log> on the output of the harness lists each case with its reason.

# The 12 failing cases, alone (run from typescript/, after the setup steps)
EFFECT_NODE_MODULES=$PWD/../experiments/node_modules VIBELANG_RUNTIME=$PWD/../packages/runtime \
  node vibelang/harness.mjs --verbose tooling-diag-severity-keys plain-catch-result-try \
  flow-binding-nested-handler tooling-config-prelude-off-imports vip4-trusted-predicate-input \
  never-stored.fail vip79-defer-sync-throws.fail match-and-not-cover-nothing.fail experimental-test-record

Commands

# Cases: directories with a tsconfig.json (4,220)
ls -d typescript/vibelang/cases/*/tsconfig.json | wc -l
 
# Cases per kind, and cases per added assertion. The script reads each case as the harness does.
node docs/tools/trust-counts.mjs cases
 
# Name groups
ls -d typescript/vibelang/cases/*/tsconfig.json | cut -d/ -f4 \
  | sed -E 's/\.fail$//; s/^([a-z]+[0-9]*).*/\1/' | sort | uniq -c | sort -rn | head
 
# Cases that cite each VIP. Run from typescript/vibelang/cases.
grep -oE 'docs/design/vips/[0-9]{4}' */*.vibe */*.vibex */*.ts \
  | sed -E 's#^([^/]+)/[^:]+:docs/design/vips/#\1 #' | sort -u \
  | awk '{print $2}' | sort | uniq -c

trust-counts.mjs cases prints one JSON object. Its kinds field holds the six rows of the first table. runnerWithExpectResult is 27, diagnostics is 541, messages is 256, emitted is 159, twins is 429, pending is 21, vipNamed is 504, and failNamed, failNamedByKind, and failingNotFailNamed hold the .fail counts. The script's tests are in docs/tools/trust-counts.test.mjs.

Go tests

The compiler is a Go program in typescript/tsc. Its Vibe packages hold 3,758 Test functions.

PackageTest functionsWhat the tests cover
vibelang1,238The compiler: parsing, checking, inference of each function's Effect type, lowering to code that calls Effect, declaration output, diagnostics, and the vibelang commands
vibelangfuzz1,8431,003 tests each check that the specification still contains the sentence that a fuzz oracle enforces. 321 tests check which syntax forms the grammar admits. The others test the oracles and the program generators on fixed inputs.
vibelangmapper350The mapper that lets stock tsc and the TypeScript 7 language server check .vibe files
vibelangfmt109The formatter
vibelangaot83The experimental ahead-of-time compiler (vibelang aot): its program analysis, its two code generators, and the proofs described in Formal models
vibelangestree64The syntax tree that ESLint rules read
vibelangprotocol64The identifiers that the compiler and the runtime share
vibelangwasm7The in-memory compiler behind the browser playground

For example, TestDeclarationEmitInParallel in vibelang/declarations_test.go compiles a project of many files and emits their declarations in parallel. Run with Go's race detector, it fails when two declaration transforms read and write the checker's maps at the same time.

On the measurement machine, go test ran every package. The following table lists what each run reported. The function counts above include TestMain in vibelangmapper and in vibelangfuzz. go test runs TestMain as the package's setup and does not report it as a test, so vibelangmapper reports 349 results for 350 functions. The vibelangfuzz row is in Fuzz targets.

PackagePassedFailedSkippedNotes
vibelang1,21311go test stopped the package at a 90-minute limit with 117 functions unfinished. A second run of those 117 passed all of them in 7 minutes. The counts add the two runs.
vibelangmapper34171
vibelangfmt10210With VIBELANG_DPRINT set to a dprint binary. Without it, 17 tests skip.
vibelangaot7409The 9 skipped tests need a Bun build with ahead-of-time compilation (BUN_AOT_BIN), which the machine did not have.
vibelangestree6400
vibelangprotocol6400
vibelangwasm700

In total, 1,865 test functions passed, 9 failed, and 11 were skipped. The two tests that run under the race detector, TestDeclarationEmitInParallel and TestLoweringInParallel, passed.

The 9 failures are the following:

  • vibelang, TestServiceRejectedContractIndependentControls: one subtest expects three error codes for a rejected service contract and the compiler reports two.
  • vibelangmapper, TestNativeEffectValuePrelude and TestStockProjectionGoldens: stock TypeScript reports TS2304 for three names that the generated prelude.d.ts uses and does not declare.
  • vibelangfmt, TestFormatDocsCorpus: the formatter's parser rejects the first code block of the guide page 123-building-agents.md.
  • vibelangmapper, TestFormDiagnosticsMatchesProjection: for another code block of the same page, the mapper's two paths disagree. The projection reports diagnostic 9006 and the editor path reports nothing.
  • vibelangmapper, TestCorpusPlans: the mapper produces overlapping edits for the acceptance case vip78-ek7801-malformed-path.fail.
  • vibelangmapper, TestEmbeddedTableHeader: a generated table was built from version 0.0.14 of the runtime's declarations, and the test requires 0.0.15.
  • vibelangmapper, TestStockTypeScriptPinHasOneSource: a guide page writes a TypeScript version number that the test allows in one file only.
  • vibelangmapper, TestProjectionScalesNearLinearly: a timing test. Doubling the input took 2.82 times as long, and the limit is 2.5. The other tests ran on the same 4 CPUs at the same time.
# Test functions per package
cd typescript/tsc/internal
for p in vibelang*; do
  echo "$p $(grep -rhE '^func Test[A-Za-z0-9_]*\(' --include='*_test.go' $p | wc -l)"
done
 
# Specification-sentence tests (1,003) and grammar tests (321) in vibelangfuzz
grep -rhoE '^func Test[A-Za-z0-9_]*' --include='*_test.go' vibelangfuzz | grep -c 'Quoted'
grep -rhoE '^func Test[A-Za-z0-9_]*' --include='*_test.go' vibelangfuzz | grep -c '^func TestGrammar'

Fuzz targets

A fuzz target is a Go Fuzz function. It states a property, and Go's fuzzer generates and mutates programs to find one that breaks the property. The packages hold 959 targets, 926 of them in vibelangfuzz. Each target also runs as an ordinary test over its saved inputs: 24,757 files in 835 directories under vibelangfuzz/testdata/fuzz, plus inputs that the targets take from the acceptance cases.

Shared helpers apply the following checks to the programs that a target compiles. Not every target applies every check.

  • Diagnostics. Every EK code is registered in the specification's diagnostic appendix, is not retired, and has its documented severity. Every diagnostic's span lies inside its file.
  • Determinism. Compiling the project again, with the files queried in a different order or with output requested before diagnostics, gives the same diagnostics and the same output files.
  • Output. A program without errors writes the JavaScript, declarations, and source maps that its configuration asks for. The JavaScript parses and imports only allowed modules. Every runtime helper that it reads is exported by the runtime. Source-map segments point inside the .vibe source.
  • Declarations. A generated TypeScript file that calls every export of the program type-checks against the emitted declarations, under this compiler and under stock TypeScript 7.1.0-beta.
  • Formatter. Formatting does not change the program or its diagnostics, keeps every comment, and gives the same text when it runs twice.
  • Incremental edits. After each edit, the language server reports the same diagnostics as a fresh compilation.

Some targets compare against a second implementation:

  • FuzzVIPDifferential generates a program, prints it once as Vibe and once as hand-written Effect JavaScript, compiles the Vibe version, and runs both under Node.js with a test clock. The target requires the same Exit (success, failure, defect, or interruption), the same failure reasons and payloads, and the same ordered event log. It also requires that calling main() runs nothing until the returned Effect runs.
  • FuzzTypeScriptParity compiles ordinary TypeScript projects with this compiler and with stock TypeScript 7.1.0-beta, and requires the same diagnostics and the same emitted JavaScript, declarations, and source maps. This target checks that the fork did not change how TypeScript files compile.
  • FuzzDeclarationIdentity compiles a TypeScript project with stock TypeScript and the same sources as .vibe files with this compiler, and requires the same exported names, types, and JSDoc.

A known disagreement between the compiler and the specification is recorded as a pending entry: 738 entries in 36 files under vibelangfuzz/testdata/pending. A target that finds only pending disagreements is skipped instead of failed. A pending entry that no longer reproduces fails the run. The 738 entries are known gaps: compiler defects and rules that the compiler does not implement. One gap can appear in more than one entry.

Result

The fuzz package was run at 76fe6af79134 with the compiler built from that commit, after steps 1 and 2 under Reproduce it yourself. In short mode, each target replays its saved inputs and generates no new programs. Replaying the whole package takes longer than the 20 minutes that each run was given here, so the package ran in three parts, and part of it did not run.

RunFinishedPassedFailedSkippedNot run
The 3 comparison targets, alone3 targets3000
Every Fuzz target, stopped at 19 minutes162 targets16020764 targets, from FuzzEditor on
Every Test function, stopped at 20 minutes447 functions439351,357 functions

The 162 targets replayed 19,518 saved inputs: 19,370 passed, 37 failed, and 111 were skipped because they match a pending entry. The two failing targets are the following:

  • FuzzCompile fails on one saved input, source-map-match-regex-adjacent-comment. The compiler crashes: scanner.GetTextOfNodeFromSourceText slices out of range ([71:56]).
  • FuzzCatchResultOperand fails on 36 of its 172 inputs. In each, a catch recovers a value of type unknown, and the target requires the error EK0502 when that value is used as a try operand. The compiler reports no error.

The three failing Test functions are the following:

  • TestShortTargetsBudgeted: 12 fuzz targets have no recorded CPU budget for short mode.
  • TestVibeSettingsQuoted: a configuration key that the test quotes from the specification changed.
  • TestEffectScopeEveryName: the installed Effect package exports 25 lowercase subpaths, and chapter 5 of the specification lists 23.

The package's 4 subpackages, which include TestTableAccountsForEveryHook in vibelangfuzz/grammaradmission, were not run.

# From typescript/tsc. Each run writes JSON events, and jq counts the finished targets and tests.
export CGO_ENABLED=0 VIBELANG_FUZZ_REQUIRE=1 VIBELANG_FUZZ_HANG=120s EFFECT_NODE_MODULES=$PWD/../../experiments/node_modules
go test -short -count=1 -timeout 25m -json ./internal/vibelangfuzz/ \
  -run '^(FuzzVIPDifferential|FuzzTypeScriptParity|FuzzDeclarationIdentity)$' > cmp.json
go test -short -count=1 -timeout 19m -json ./internal/vibelangfuzz/ -run '^Fuzz' > fuzz.json
go test -short -count=1 -timeout 20m -json ./internal/vibelangfuzz/ -run '^Test' > tests.json
for f in cmp.json fuzz.json tests.json; do
  echo "$f top level: $(grep '^{' $f | jq -r 'select(.Test and (.Test|contains("/")|not) and (.Action=="pass" or .Action=="fail" or .Action=="skip")) | .Action' | sort | uniq -c | xargs)"
  echo "$f inputs:    $(grep '^{' $f | jq -r 'select(.Test and (.Test|contains("/")) and (.Action=="pass" or .Action=="fail" or .Action=="skip")) | .Action' | sort | uniq -c | xargs)"
done

The Test run on this page ran the whole package (go test -short ./internal/vibelangfuzz/ without -run) for 20 minutes. Go runs every Test function before the first Fuzz target, so that run finished Test functions only. The -run '^Test' line above selects the same functions in the same order.

F=typescript/tsc/internal/vibelangfuzz
 
# Targets in vibelangfuzz (926) and in all Vibe packages (959)
grep -hoE '^func Fuzz[A-Za-z0-9_]*' $F/*_test.go $F/*/*_test.go | wc -l
grep -rhoE '^func Fuzz[A-Za-z0-9_]*' --include='*_test.go' typescript/tsc/internal/vibelang* | wc -l
 
# Saved inputs (24,757 files, 835 directories)
find $F/testdata/fuzz -type f | wc -l
ls $F/testdata/fuzz | wc -l
 
# Pending entries (738) and files (36)
cat $F/testdata/pending/*.txt | grep -vE '^\s*(#|$)' | wc -l
ls $F/testdata/pending/*.txt | wc -l
 
# Stock TypeScript version that the targets compare against
node -p 'require("./packages/ts-mapper/package.json").devDependencies.typescript'

Formal models

The repository holds two groups of machine-checked models. Each model is a small, finite description of one rule, written by hand. A proof shows that the model has the property. It does not show that the compiler implements the model.

Models of six proposals. docs/design/formal/ holds one SMT-LIB file and one Lean 4 file for each of VIP-76 to VIP-81. Each SMT-LIB file asks the Z3 solver for a counterexample to each theorem, and the theorem holds in the model when Z3 answers unsat. Each Lean file states theorems that Lean's kernel checks. Will Cory accepted the six proposals on November 30, 2026. The models were written while the proposals were open, and they describe the proposals' rules, not the code that implements them.

ProposalWhat the model coversSMT-LIB queriesLean theorems
VIP-76, typed JSXService requirements of child elements reach the parent; a handler's message type matches its component; void elements reject children710
VIP-77, schema brands with whereTwo brands of one base type are not interchangeable; an unbranded value is not accepted as a brand; a where range rejects values outside it and runs before the brand applies712
VIP-78, api declarationsA route's path parameters match the lowered schema one-to-one; GET and HEAD carry no request body; routes are unique; status codes lie in the allowed ranges810
VIP-79, deferFinalizers run last-in, first-out on every exit path and cannot fail713
VIP-80, checked sql templatesAn interpolated value becomes a query parameter and never query text; an outer join makes the optional side's columns nullable; column types and brands are preserved714
VIP-81, native FFIC struct layout (alignment, padding, fields that do not overlap); slice bounds; a read-only buffer is not accepted as a mutable one; the FFI capability can be denied814

Models of the ahead-of-time compiler. typescript/tsc/internal/vibelangaot/proofs/ holds four theorems about the runtime interface of the experimental vibelang aot command: error-slot isolation, last-in, first-out scope unwinding, sendability between workers, and a bound on native stack depth. Each theorem has an SMT-LIB file and a Dafny file. Go tests in the same directory run Z3 and Dafny on them, check each model exhaustively up to a small size, and mutate each SMT-LIB file to confirm that a broken model is refuted.

On the measurement machine, with Z3 5.4.1 and Dafny 4.11.0 installed:

  • Z3, six proposals. All 44 queries in the six SMT-LIB files answered unsat. The six test scripts that run Z3 passed.
  • Ahead-of-time compiler. go test ./internal/vibelangaot/proofs/ passed in 71 seconds with VIBELANG_AOT_REQUIRE_Z3=1, which makes a missing solver a failure instead of a skip. Its tests include TestZ3ProvesAllObligations, TestDafnyVerifies, the four exhaustive model checks, and TestMutatedModelsAreRefuted.
  • Lean, six proposals. lean 4.36.0 exited with code 0 for each of the six files.
# Models (6 + 6 in docs/design/formal, 4 + 4 in the proofs directory)
ls docs/design/formal/*.smt2 docs/design/formal/*.lean | wc -l
ls typescript/tsc/internal/vibelangaot/proofs/*.smt2 typescript/tsc/internal/vibelangaot/proofs/*.dfy | wc -l
 
# Z3 answers per file, and Lean theorems per file
for f in docs/design/formal/*.smt2; do echo "$f $(z3 $f | grep -c '^unsat$') unsat $(z3 $f | grep -cE '^(sat|unknown)$') other"; done
grep -cE '^(theorem|lemma) ' docs/design/formal/*.lean
 
# Check the models: Z3 through the test scripts, Lean directly, then the ahead-of-time proofs
node --test scripts/verify-formal-vip7*.test.mjs scripts/verify-formal-vip8*.test.mjs
for f in docs/design/formal/*.lean; do lean $f || echo "FAILED $f"; done
(cd typescript/tsc && VIBELANG_AOT_REQUIRE_Z3=1 go test -count=1 -timeout 60m ./internal/vibelangaot/proofs/)
 
# Status of the six proposals
grep -m1 '^\*\*Status:\*\*' docs/design/vips/007[6-9]-*.md docs/design/vips/008[01]-*.md

Comparisons with stock TypeScript and Effect

A Vibe program has an Effect TypeScript equivalent that the specification spells out. Two groups of acceptance cases and three fuzz targets compare a program with its equivalent.

Declaration twins (429 cases). A case with a typescript/ directory holds the Effect TypeScript that its .vibe sources replace. The harness compiles both and requires each module to export the same names, the same types (checked in both directions), and the same JSDoc. Both sides compile with this compiler, so this check does not involve stock TypeScript. The fuzz targets FuzzTypeScriptParity and FuzzDeclarationIdentity take these twins as inputs and compare against stock TypeScript.

Stock runners (198 cases). A runner imports a shared helper that compares the Vibe output with the Effect TypeScript twin as compiled by unmodified TypeScript 5.9.3 against Effect 4.1.6. The versions are pinned in typescript/vibelang/cases/reference-install/package.json. In 175 cases the helper runs stock TypeScript during the test. In 23 cases it compares against results that were recorded from stock TypeScript and checked in.

Helper in typescript/vibelang/test/CasesComparison
cov-ch004-twin.mjs53Exported names, types, and JSDoc of the Vibe output and of the stock output
vip7-reference.mjs42match behavior against the twin compiled by stock TypeScript
assert-coverage-twin.mjs35Parameter types and return types
coverage-stock-twins.mjs23Types and Exit against the recorded files stock-exit.json and stock-types.txt
cov900-twin.mjs21Inferred success, error, and requirement types, and the serialized Exit
coverage-twin.mjs17Success, error, and requirement types, and the full Exit
chapter007-twin.mjs8Type evidence and the Exit

One case uses two helpers, so the rows add up to 199.

Fuzz targets. FuzzVIPDifferential, FuzzTypeScriptParity, and FuzzDeclarationIdentity are described in Fuzz targets.

In the acceptance run described under Acceptance cases, all 429 declaration-twin cases passed, and all 198 stock-runner cases passed: the 175 that run stock TypeScript during the test and the 23 that compare against recorded results. One of the 198, cov-ch007-private-error-declarations, failed in the full run for a missing prerequisite and passed in the second run. The three comparison fuzz targets were run alone at 76fe6af79134 in short mode, after stock TypeScript 7.1.0-beta was installed by step 2 under Reproduce it yourself. All three passed:

TargetInputsPassedSkippedWhy an input was skipped
FuzzVIPDifferential2,1312,09932The input matches a pending VIP-2 entry: 16 programs about do parameter defaults, each skipped twice
FuzzTypeScriptParity4404319The input's TypeScript imports a .vibe file, or its configuration points outside the project, so stock TypeScript cannot compile it
FuzzDeclarationIdentity48645927The input is not a valid project for one of the two compilers: 12 have sources that cannot be renamed to .vibe, 12 report errors as .vibe, 2 report errors under stock TypeScript, and 1 has a configuration that points outside the project

The cmp.json line of the command under Fuzz targets produces these counts. A skipped input is not compared.

# Outcome of the twin cases and of the stock-runner cases, from the harness output saved in acceptance.log
ls -d typescript/vibelang/cases/*/typescript/tsconfig.json | cut -d/ -f4 > twins.txt
grep -lE 'test/(cov-ch004-twin|vip7-reference|assert-coverage-twin|coverage-stock-twins|cov900-twin|coverage-twin|chapter007-twin)' \
  typescript/vibelang/cases/*/run.mjs | cut -d/ -f4 > stock.txt
for f in twins.txt stock.txt; do
  awk 'NR==FNR {want[$1]; next} /^(ok|FAIL|pending) / {sub(":$","",$2); if ($2 in want) n[$1]++} END {for (k in n) print n[k], k}' \
    $f acceptance.log
done
# Declaration twins (429)
ls -d typescript/vibelang/cases/*/typescript/tsconfig.json | wc -l
 
# Cases per helper, then distinct cases (198)
for t in cov-ch004-twin vip7-reference assert-coverage-twin coverage-stock-twins \
         cov900-twin coverage-twin chapter007-twin; do
  echo "$t $(grep -l "test/$t" typescript/vibelang/cases/*/run.mjs | wc -l)"
done
grep -lE 'test/(cov-ch004-twin|vip7-reference|assert-coverage-twin|coverage-stock-twins|cov900-twin|coverage-twin|chapter007-twin)' \
  typescript/vibelang/cases/*/run.mjs | wc -l
 
# Pinned stock versions
cat typescript/vibelang/cases/reference-install/package.json

Package tests

The eight npm packages under packages/ hold 665 test files.

PackageTest filesWhat the tests cover
compiler294The vibelang command, the formatter and ESLint integrations, Bun and Node.js loaders, and generated declaration files
runtime239The vibelang-runtime helpers that compiled code imports, and the Experimental modules
unplugin44Bundling fixtures with webpack, Rspack, Rollup, Rolldown, esbuild, Bun, and Vite
vite43The Vite and Vitest plugin
typescript-shim17The shim that lets tools that call tsc compile mixed TypeScript and Vibe projects
create-vibelang11The project starter: scaffolding and the development server
ts-mapper10The mapper package for stock TypeScript tools
aot-runtime7The runtime that code from the experimental vibelang aot command imports

For example, packages/runtime/tests/trusted.test.ts tests trusted, the helper that marks a TypeScript function with the error classes that it can throw. One test wraps a function that throws, and requires that a Vibe call to it fails with the thrown value when its class is listed (Exit.fail) and dies with it when the class is not listed (Exit.die).

Result

The package tests were run at 76fe6af79134, one package at a time, after steps 1 and 2 under Reproduce it yourself, with the compiler built from that commit. Each package's test command was given 15 minutes. ts-mapper and aot-runtime have no test script, so the table gives the command that was used.

PackageCommandTestsPassedFailedOther
runtimebun run build && bun test --timeout 300002,128 in 239 files2,115310 skipped
compilernode --test test/*.test.mjs1,219 before the limit1,1651636 cancelled at the limit; later files did not run
unpluginsh test/run.sh415 before the limit27611721 cancelled at the limit, 1 skipped; later files did not run
vitesh test/run.sh18015624
typescript-shimnode --test test/*.test.mjs79790
create-vibelangnode --test test/*.test.mjs525101 skipped
aot-runtimebun test187 in 7 files1870
ts-mappernode --test test/*.test.mjs19145

What the failures are:

  • runtime. One test requires that the browser bundles of the core and root entry points leave out the experimental and kernel modules, and they include them. Two tests of VIP-71 rule 3 require that Test.record and Test.recordDecisions write no fixture file for a call that a guard refused, and the file exists afterwards.
  • vite and unplugin. The most frequent errors are vibelang-vite needs the vibelang package, vibelang-unplugin needs the vibelang package, and Cannot find module 'vibelang/register': the plugin did not find the compiler package from the test project. This page did not find out whether the cause is the test setup on this machine or the plugins.
  • compiler. The 16 failures include the --live recording tests of vibelang test, the Bun and Node.js loaders' handling of ignored Effect lint errors, and a Playwright worker test.
  • ts-mapper. The 5 failing tests read files that test/e2e.sh writes, and that script was not run. The package's lockfile is out of date at this commit: bun install --frozen-lockfile refuses it because vibelang-runtime changed from 0.0.14 to 0.0.15, so the dependencies were installed with bun install.
  • create-vibelang. The package passed only after step 2. Before it, the scaffold test failed because the formatter plugin file was missing.
# From the repository root, after steps 1 and 2 under "Reproduce it yourself"
(cd packages/aot-runtime && bun install --frozen-lockfile)
(cd packages/ts-mapper && bun install)
export VIBELANG=$PWD/typescript/built/local/tsc VIBELANG_BINARY=$PWD/typescript/built/local/tsc \
  EFFECT_NODE_MODULES=$PWD/experiments/node_modules
(cd packages/runtime && timeout 900 sh -c 'bun run build && bun test --timeout 30000')
for p in compiler typescript-shim create-vibelang ts-mapper; do
  (cd packages/$p && timeout 900 sh -c 'node --test test/*.test.mjs')
done
for p in vite unplugin; do (cd packages/$p && timeout 900 sh test/run.sh); done
(cd packages/aot-runtime && timeout 900 bun test)

Each command prints its own totals: bun test ends with Ran N tests, and node --test ends with ℹ tests, ℹ pass, ℹ fail, ℹ cancelled, and ℹ skipped lines.

for p in compiler runtime unplugin vite typescript-shim create-vibelang ts-mapper aot-runtime; do
  echo "$p $(find packages/$p -name '*.test.*' -not -path '*/node_modules/*' | wc -l)"
done

Release rehearsal

The workflow .github/workflows/rehearse-matrix.yml rehearses a release on three runners: ubuntu-latest (Linux x64), macos-15 (macOS arm64), and windows-latest (Windows x64). On each runner, the workflow builds the native compiler and runs scripts/release/rehearse-native.mjs. The script packs the npm tarballs, creates a project with create-vibelang, installs the project from the tarballs, checks that the installed compiler is the binary that the workflow built, and then builds, starts, tests, lints, and formats the project.

The rehearsal runs on each push to main, on each version tag, on pull requests that change release files, and each Monday. A second script, scripts/release/rehearse.sh, runs on Linux before each release: it publishes the tarballs to a local registry and installs a new project from that registry with npm, Bun, and pnpm.

The release builds compiler binaries for six platforms: macOS, Linux, and Windows, each on arm64 and x64. The rehearsal runs three of the six. The Linux arm64, macOS x64, and Windows arm64 binaries are built and not rehearsed.

The rehearsal needs the three hosted runners, so this page quotes GitHub Actions. The newest run on main is run 46594858080, started by a push on December 1, 2026, at 07:00 UTC, at commit 4cf53e9fbe25. Its three jobs, linux-x64, darwin-arm64, and win32-x64, each concluded success. The run rehearsed main. The workflow has no run at the commit that this page measures, which holds work that has not reached main.

grep -E '^\s+- os:|platform:' .github/workflows/rehearse-matrix.yml
grep -oE '(darwin|linux|win32)-(arm64|x64)' scripts/release/build-binaries.sh | sort -u
 
# Newest rehearsal on main, and its jobs
gh api 'repos/smithersai/vibelang/actions/workflows/rehearse-matrix.yml/runs?branch=main&per_page=1' \
  --jq '.workflow_runs[0] | [.id, .event, .conclusion, .head_sha, .created_at]'
gh api repos/smithersai/vibelang/actions/runs/46594858080/jobs --jq '.jobs[] | [.name, .conclusion]'

Example projects

The examples/ directory holds 17 projects. The script scripts/check-examples.sh copies each project, installs its dependencies, and checks it with the compiler from the checkout. The script fails a project when the compiler prints a warning.

ProjectsCheck
react-vite, vue-vite, svelte-vite, effect-ui-domains, effect-ui-uploads, effect-ui-snake (6)The project's test script: a type check with the compiler, the project's Vitest suite, and a production build with Vite
foldkit-app (1)The same three steps. The Vitest suite runs against the Vibe version and the Effect TypeScript original.
alchemy-stack (1)A type check with the compiler, then one Vitest suite against both versions. Nothing is deployed.
hello, users, file-tree, resilience, pipeline, agent-loop (6)The project compiles, its Vitest suite passes, and the compiled program prints exactly expected-output.txt
agent-workflow, approval (2)The project compiles. A test script starts the compiled program, stops the process, and starts it again to check that the durable run resumes. The program's output equals expected-output.txt.
http-api (1)The project compiles and its Vitest suite passes. The suite calls the routes without opening a socket. The check does not start the server.

On the measurement machine, scripts/check-examples.sh printed OK for all 17 projects and exited with code 0, with the compiler built from the checkout. examples/frameworks-check.sh, which checks react-vite, vue-vite, and svelte-vite against the published packages that they pin, also printed OK for all three.

ls -d examples/*/ | wc -l
VIBELANG=$PWD/typescript/built/local/tsc VIBELANG_BINARY=$PWD/typescript/built/local/tsc \
  sh scripts/check-examples.sh
sh examples/frameworks-check.sh

Migrated projects

We converted the Effect code of four open-source projects to Vibe. Each conversion lives on the vibe-alpha branch of a public fork. Each has a record: a page that the conversion's authors wrote, with the commands that they ran. The following table counts each fork at the commit that its record measured.

ProjectFork and commitUpstream base.vibe and .vibex filesLinesTypeScript files convertedTypeScript files deleted and not convertedEffect TypeScript sources that remain
Alchemysmithersai/alchemy at 811b4b8aa1d2d1aeaed9b02e10,3121,360,86710,2520604
t3codesmithersai/t3code at 5cddaf364d2c68495b641b3e1,735634,9551,6821177
opencodesmithersai/opencode at 77a4a6d5c8d1891a020bcc93961175,1769250115
Foldkitsmithersai/foldkit at c1d4d3ee0929b702a5efbb74737148,547727034

The columns mean the following:

  • Upstream base is the newest commit that the branch shares with the fork's copy of the upstream default branch.
  • TypeScript files converted counts matched pairs: the base holds <path>.ts or <path>.tsx, the branch holds <path>.vibe or <path>.vibex, and the branch no longer holds the TypeScript file.
  • TypeScript files deleted and not converted counts base TypeScript files that the branch removed with no Vibe file at the same path. They are not evidence of a conversion.
  • Effect TypeScript sources that remain counts .ts and .tsx files, outside test files and test directories, in which the TypeScript parser finds an import of effect, effect/..., or an @effect/ package.

A converted file shows how much code moved. It does not show that the code behaves like the original. Only the project's tests show that.

Project tests on the converted code

The following results are quoted from the four records. This page did not rerun them. The records are on branches of this repository that had not merged into the measured commit, so the table names the commit that holds each record. In every project, the tests are the upstream project's own TypeScript tests, changed to import the .vibe modules.

ProjectRecordCompilerSuites that ranTests passedTests failed
Foldkitdocs/user/migrations/foldkit.md at 392251d5ed8aversion 0.0.15 built from 21ea99419129, Effect 4.1.6The test script of every workspace package: 45 suites7,4150
t3codet3code.md at 5a8bc3612978version 0.0.15 built from 21ea99419129, Effect 4.1.1The test script of 32 packages, including the server and the web, desktop, and mobile apps19,4866
opencodeopencode.md at c0ce27597184version 0.0.15 built from 98c3b01289a9The test script of 16 of the monorepo's packages12,6546
Alchemyalchemy.md at cb371a373203version 0.0.15 built from e71b1f5852d16 package suites, including the main alchemy package and the local Workers runtime4,04563

The records explain each failure and each gap:

  • Foldkit. All 45 suites exit with code 0: 7,412 Vitest tests and 3 node --test tests pass, and 10 tests are skipped by conditions that exist upstream. The type check of every package exits with code 0. The tests cover the runtime loop, HTML attributes and events, hydration and server rendering, routing, the UI components, the lint rules, the Vite plugin, and 33 example apps.
  • t3code. 30 of the 32 suites exit with code 0, and all 33 type checks exit with code 0. Of the 6 failures, the record attributes 3 to the container (the same tests fail on the upstream TypeScript code there) and 2 to a timeout when the whole web suite runs at once. One failure is a behavior difference: a test of ProjectService fails on every run of the converted code and passes upstream, and the record states that the cause is not found.
  • opencode. 13 of the 16 packages exit with code 0. Of the 6 failures, 4 are tests that assert an empty standard error and see compiler warnings that the Bun loader prints, which is a Vibe behavior. The record attributes the other 2 to the test setup: they are tests that the conversion added, and they time out. Six other packages (simulation, server, cli, tui, sdk, and stats) do not compile with version 0.0.15, so their tests did not run. 403 tests were skipped.
  • Alchemy. Two of the six suites pass in full. The record attributes 45 of the 63 failures to the container (no Docker, no browser, and tests that run as the root user), 16 to the fork's setup, and 2 to Vibe: the Bun loader prints warnings to standard error, and two tests expect it to be empty. One package's suite hung before any test ran and is not counted. Suites that need cloud credentials did not run.

The Foldkit and t3code records also examine how the conversion changed the tests. In Foldkit, no upstream test file was deleted or renamed, and the 35 lines that skip or restrict a test are identical before and after. The conversion modified 303 test files: in 294, the only removed lines are import lines, and the authors read the other 9 in full. In t3code, the conversion changed 820 of 1,720 upstream test files and deleted none. In 590, only import paths changed. The other 230 also changed their bodies, and the record states that they were not audited one by one.

# Read a record. The same form works for the other three: the file and the commit are in the table.
git fetch origin alpha/mig-foldkit
git show 392251d5ed8a:docs/user/migrations/foldkit.md

What the migrations do not show

  • One known behavior difference is unexplained. The t3code ProjectService test fails on the converted code and passes upstream. Until its cause is found, the conversion is not shown to preserve behavior there.
  • Not every package compiles. Six opencode packages, including its server and its command-line program, do not compile with version 0.0.15. In Alchemy, one package's suite hung, and the website was not type-checked.
  • Failures were explained, not removed. 75 tests fail across the three projects that have failures. The records attribute 64 of them to the test machine or the fork's setup, 6 to compiler warnings on standard error, 4 to timeouts, and 1 to an unknown cause. This page did not check those attributions.
  • The Bun loader's warnings break tests that expect a silent program. The loader prints each compiled module's warnings to standard error. This accounts for 4 opencode failures and 2 Alchemy failures, and its cause is in Vibe, not in the projects.
  • Converted code loads more slowly. The t3code record measures a module graph that takes longer to import from Vibe source than from TypeScript, which causes its 2 timeouts.
  • Tests stay in TypeScript, and many were edited. The t3code conversion changed the bodies of 230 upstream test files, and nobody has audited those changes one by one.
  • The conversions needed hand repairs to build with version 0.0.15. The first conversions used earlier compilers. Version 0.0.15 rejects code that those compilers accepted: a trailing ! in a type, and calls that can throw from code that does not declare it. The Alchemy record counts about 1,100 changed files for this.
  • Part of each project remains TypeScript. The first table's last column counts the Effect sources that were not converted. The t3code record counts 2,550 TypeScript files, a third of the source by lines.
  • No fork has continuous integration on the measured commit. For each of the four commits in the first table, GitHub reports 0 check runs, 0 commit statuses, and 0 workflow runs, and each fork has 0 workflow runs on its vibe-alpha branch. The results come from runs in a container, not from a service that a reader can inspect.
  • Browser and cloud tests were not run. The Foldkit record states that its Playwright suite was not run. The Alchemy record states that suites that need cloud credentials were not run.
  • Many blockers were closed without a fix. Each project has a tracking issue in smithersai/vibelang whose sub-issues are the blockers and bugs that the conversion found. On December 1, 2026, every sub-issue was closed: for Alchemy (issue 16), 21 as completed and 39 as not planned; for Foldkit (issue 17), 11 and 3; for opencode (issue 18), 19 and 10; for t3code (issue 19), 38 and 45. An issue closed as not planned was not fixed.
  • The conversions are forks. Each lives in the fork repository that the first table names. This page does not claim that an upstream project uses Vibe.

Migrations in this repository

Two examples hold a small converted program beside its Effect TypeScript original, and one test suite runs against both versions:

  • examples/foldkit-app: a Foldkit counter and todo list with one HTTP command. src/main.vibe is the Vibe version and ts/main.ts is the original.
  • examples/alchemy-stack: an Alchemy stack with a Cloudflare Worker over an R2 bucket. src/ is the Vibe version and ts/ is the original. The tests use an in-memory bucket and deploy nothing.

In the run described under Example projects, both suites passed: 10 tests for foldkit-app and 4 tests for alchemy-stack.

The migrate flow, the tool that converted the four projects, has a test corpus of 429 files in its flows/migrate/test/corpus directory, which the find commands below locate. Each file records one situation that a conversion met, such as a bundler alias or a source-extension allowlist, and a test of the flow replays it. 410 of the files are named for the project that they came from: 122 from opencode, 96 from t3code, 67 from Alchemy, 66 from Foldkit, and 59 from the flow tool's own projects. The other 19 have names that start with no project, such as setup-compile-layout.json. The corpus tests the conversion tool. It does not test the converted projects, and this page did not run the flow's tests.

Commands

# Counts of one fork. Run in sh or bash, in a clone of the fork.
# VIBELANG is a checkout of this repository in which `bun install --frozen-lockfile` ran in docs/tools.
git checkout 811b4b8aa1d2
git ls-tree -r --name-only "$(git merge-base origin/main HEAD)" > /tmp/base.txt   # origin/dev in opencode
node "$VIBELANG/docs/tools/trust-counts.mjs" fork . --base-files /tmp/base.txt
 
# Check runs, commit statuses, and workflow runs of that commit, then workflow runs of the branch.
# The workflow filter needs the full 40-character commit ID, which `git rev-parse` prints.
sha=$(git rev-parse HEAD)
gh api "repos/smithersai/alchemy/commits/$sha/check-runs" --jq .total_count
gh api "repos/smithersai/alchemy/commits/$sha/status" --jq .total_count
gh api "repos/smithersai/alchemy/actions/runs?head_sha=$sha" --jq .total_count
gh api 'repos/smithersai/alchemy/actions/runs?branch=vibe-alpha' --jq .total_count
 
# Sub-issues of a tracking issue, by how they were closed (16 Alchemy, 17 Foldkit, 18 opencode, 19 t3code)
gh api repos/smithersai/vibelang/issues/16/sub_issues --paginate --jq '.[] | .state + " " + .state_reason' | sort | uniq -c
 
# In this repository: corpus entries (429), entries per project, and entries named for no project (19)
find . -maxdepth 6 -path '*/flows/migrate/test/corpus/*' -not -path './node_modules/*' | wc -l
find . -maxdepth 6 -path '*/flows/migrate/test/corpus/*' -not -path './node_modules/*' \
  | sed -E 's#.*/##; s/-.*//' | sort | uniq -c | sort -rn | head -5
find . -maxdepth 6 -path '*/flows/migrate/test/corpus/*' -not -path './node_modules/*' \
  | sed -E 's#.*/##; s/-.*//' | sort | uniq -c | sort -rn | tail -n +6 | awk '{s+=$1} END {print s}'

trust-counts.mjs fork prints one JSON object: vibeFiles, vibeLines, converted, deletedWithoutVibe, and effectTypeScriptSources are the table's columns. It skips node_modules, .repos, repos, submodules, and .vibelang-toolchain directories.

Specification review

The language is defined by proposals (VIPs) in docs/design/vips/ and by the specification in docs/design/src/. The directory holds 74 proposals: 65 accepted, 7 denied, and 2 requests for proposals (status RFP). Will Cory approves each proposal. Automated review never accepts one.

The specification as a whole has a separate gate: four independent reviewers each read the same revision and answer with a verdict and a grade, and the gate passes when all four answer LGTM with a grade of A- or better. docs/design/vips/README.md records that the specification passed on October 29, 2026, with grades A, A, A-, and A- on revision 2d7d13086e6d, and that three later panels passed with the same grades.

The repository holds the outcome and not the reviewers' answers, so a reader cannot check the grades from the checkout.

ls docs/design/vips/0*.md | wc -l
grep -h -m1 '^\*\*Status:\*\*' docs/design/vips/0*.md \
  | sed -E 's/^\*\*Status:\*\* *([A-Za-z]+).*/\1/' | sort | uniq -c
grep -n 'passed this gate' docs/design/vips/README.md

What is not yet proven

Each item below is a gap in the evidence on this page, with the section that measures it.

  • The compiler and the specification disagree in known places. 12 acceptance cases fail and 21 are pending (Acceptance cases). The fuzz package holds 738 pending entries, each a known disagreement that the fuzzer skips instead of failing (Fuzz targets).
  • The fuzzer finds a compiler crash and a missing error. FuzzCompile finds a slice-bounds crash in scanner.GetTextOfNodeFromSourceText, and FuzzCatchResultOperand finds 36 programs where a required EK0502 error is missing (Fuzz targets).
  • Some compiler tests fail. 9 Go test functions outside vibelangfuzz fail (Go tests), and 3 Test functions in vibelangfuzz fail (Fuzz targets). TestTableAccountsForEveryHook in vibelangfuzz/grammaradmission, the first step of scripts/build-vibelang.sh, fails at 49a44436bb26, so that script stops there. This page did not run that subpackage at 76fe6af79134.
  • Most fuzz targets were not replayed here. 764 of the 926 targets in vibelangfuzz, 1,357 of its 1,804 Test functions, and its 4 subpackages did not run within the 20 minutes that each run had (Fuzz targets).
  • Seed mode is not a fuzzing campaign. The fuzz results replay saved inputs and generate no new programs. A target that passes its saved inputs can still fail on a program that nobody has generated.
  • The formal models are not the compiler. Each model is a hand-written description of one rule. A proof shows that the model has the property, not that the compiler implements the model (Formal models).
  • The comparisons cover the programs that were written twice. 429 twin cases and 198 stock-runner cases compare Vibe with Effect TypeScript. The other acceptance cases check Vibe output against expectations that their authors wrote (Comparisons with stock TypeScript and Effect).
  • Package tests fail, and two packages did not finish. 165 package tests fail, most of them in vite and unplugin, where the plugins did not find the compiler package. compiler and unplugin did not finish in 15 minutes (Package tests).
  • Ahead-of-time compilation is mostly untested here. 9 vibelangaot tests need a Bun build with ahead-of-time compilation, which the machine did not have (Go tests).
  • The results come from three commits. The acceptance and Go results are from 49a44436bb26, and the fuzz and package results are from 76fe6af79134. No single run covers one commit end to end.
  • The migrated projects show partial results. One t3code test fails for a reason nobody has found, six opencode packages do not compile, and 75 tests fail in total. What the migrations do not show lists each gap.
  • The specification review cannot be checked from the repository. The repository records the four reviewers' grades and not their answers (Specification review).

Reproduce it yourself

The steps below are the ones that produced the results on this page. They need Git, Go 1.26, Node.js 24, Bun 1.4, and npm on Linux or macOS, in sh or bash. The acceptance run took 71 minutes on the measurement machine. It copies the runtime package into each case directory: after the first 927 cases, the case directories held 6.4 GB. The measurement run deleted typescript/vibelang/cases/*/node_modules as cases finished.

git clone https://github.com/smithersai/vibelang
cd vibelang
git checkout 49a44436bb26
 
# 1. Build the compiler and the runtime
(cd experiments && bun install --frozen-lockfile)
(cd packages/runtime && bun install --frozen-lockfile)
(cd typescript/tsc && go build -trimpath -o ../built/local/tsc ./cmd/tsc)
ln -sfn "$PWD/experiments/node_modules/effect" packages/runtime/node_modules/effect
typescript/built/local/tsc -p packages/runtime/tsconfig.json
 
# 2. Install what the cases and package tests read: package dependencies, stock TypeScript 7,
# the native compiler package, the formatter plugin file, and stock TypeScript 5.9.3 with Effect 4.1.6
sh scripts/ci.sh --prepare-only
mkdir -p packages/compiler/native
cp typescript/built/local/tsc packages/compiler/native/vibelang
packages/compiler/native/vibelang --write-dprint-plugin packages/compiler
R=typescript/vibelang/.cache/stock-reference
mkdir -p $R && cp typescript/vibelang/cases/reference-install/package*.json $R/
(cd $R && npm ci --ignore-scripts --no-audit --no-fund)
 
# 3. Acceptance cases. Expected last line, from the two runs described under "Acceptance cases":
# 4177 cases: 4144 ok, 12 FAIL, 21 pending, 0 XPASS
(cd typescript && EFFECT_NODE_MODULES=$PWD/../experiments/node_modules VIBELANG_RUNTIME=$PWD/../packages/runtime \
  node vibelang/harness.mjs)
 
# 4. Go tests, one package at a time. Step 5 covers vibelangfuzz.
(cd typescript/tsc && for p in vibelangprotocol vibelangwasm vibelangestree vibelangfmt vibelangmapper vibelang vibelangaot; do
  go test -count=1 -timeout 90m ./internal/$p/...
done)
 
# 5. Fuzz targets over their saved inputs, and the tests of the fuzz package
(cd typescript/tsc && CGO_ENABLED=0 VIBELANG_FUZZ_REQUIRE=1 VIBELANG_FUZZ_HANG=120s \
  EFFECT_NODE_MODULES=$PWD/../../experiments/node_modules go test -short -count=1 -timeout 240m ./internal/vibelangfuzz/...)
 
# 6. Example projects
VIBELANG=$PWD/typescript/built/local/tsc VIBELANG_BINARY=$PWD/typescript/built/local/tsc sh scripts/check-examples.sh

Step 2 copies the compiler by hand because scripts/build-vibelang.sh, the script that normally builds it, stops at this commit: its first step is a Go test, TestTableAccountsForEveryHook, which fails. See What is not yet proven.

To run one acceptance case, pass a part of its name: node vibelang/harness.mjs --verbose vip74-schema-data-exhaustive. To let the fuzzer generate new programs for one target instead of replaying saved inputs, run go test ./internal/vibelangfuzz/ -run '^$' -fuzz '^FuzzVIPDifferential$' -fuzztime 60s from typescript/tsc.