Skip to content
CAI
Software that uses CAICheck a score

MagnusOpera/FScript

53.7

Adequate · 15 November 2026

29.9k

lines of production code

F#

with C#

5

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Features

Add common F\# sample utilities for include demonstration

A new sample file (common.fss) has been added to the includes directory, providing reusable F\# code snippets such as type definitions, pattern matching examples, and string manipulation functions to demonstrate include functionality.

samples/includes · high confidence

Expanded sample library with new language and runtime demonstrations

The samples directory now includes a comprehensive set of new scripts demonstrating core language features and runtime capabilities. A new BASIC interpreter sample (\samples/basic/\) showcases the language's ability to parse and execute vintage BASIC programs, including support for line-numbered control flow, variables, and I/O. Additional samples illustrate structural record types and pattern matching (\annotations-and-matching\, \types-showcase\), map literal syntax and pattern matching (\map-matching\, \layout-styles\), and native task concurrency via \Task.spawn\ and \Task.await\ in the parallel quicksort example (\parallel-quicksort\). Other new samples cover basic arithmetic (\add\), recursion (\fibonacci\, \mutual-recursion\), file system enumeration (\fs-root-listing\), and standard algorithm implementations like FizzBuzz and quicksort.

samples · high confidence

FScript language engine restructured with new builtins, include resolution, and Fable support

The FScript language implementation has been reorganized under the FScript.Language namespace, introducing a comprehensive set of standard library functions (including Int, Float, Bool, String, List, Option, and Map operations) and type definitions (Environment, FsKind). The engine now supports file inclusion via a new IncludeResolver that handles path normalization and sandboxing, and adds Fable JavaScript compilation support alongside existing .NET runtime capabilities. Syntax features have been expanded to include the 'nameof' keyword, interpolated string placeholders, and match guards with 'when'. The public API in Library.fs has been extended with new parsing entry points for files and sources with includes, and the typed AST now supports match guards and source-name tracking.

src/FScript.Language · high confidence

Introduce FScript Language Server with full LSP support

The \src/FScript.CSharpInterop/LanguageServer\ directory now contains the core implementation of the FScript Language Server, enabling IDE integration via the Language Server Protocol. This includes protocol handling for initialization, semantic tokenization, and symbol resolution, along with virtual stdlib documentation for built-in modules like List, Map, and Console. The server exposes capabilities such as go-to-definition, hover hints, inlay hints, and completion, allowing editors to provide rich code intelligence for FScript projects. Also in this area: Maps now support int, bool, and union-case keys; Support for numeric meta-type inference and editor display. Also in this area: 2 commits (1 fix) modifying src/FScript.CSharpInterop.

src/FScript.CSharpInterop/LanguageServer · medium confidence · unverified

Removals

Removal of FScript.Core implementation files

The core implementation files for the FScript language engine—including the lexer, parser, type inference engine, evaluator, and value definitions—have been deleted from the project. This removes the ability to parse, type-check, and execute FScript source code, effectively stripping the library of its runtime capabilities.

src/FScript.Core · high confidence

Architecture

Repository structure reorganized and contributor workflow formalized

The repository has been restructured into distinct projects (FScript.Language, FScript.Runtime, FScript.CSharpInterop, FScript.LanguageServer, FScript.TypeProvider, and FScript.JavaScript) with corresponding test suites, replacing the previous monolithic layout. A new AGENTS.md file establishes mandatory contributor policies, including strict changelog gates, test coverage requirements, and release processes. The solution file and build configuration have been updated to reflect the new project hierarchy and target .NET 10.0.

(repo-wide) · high confidence

Behavioural changes

1 commit (0 fixes) modifying samples/debugging, src/FScript.DebugAdapter

A change to existing behaviour in samples/debugging, src/FScript.DebugAdapter — 1 commit, 4 files: “feat: add CLI and VS Code debugging with configurable CLI selection”.

samples/debugging · medium confidence · unverified

1 commit (0 fixes) modifying src/FScript.JavaScript/scripts

A change to existing behaviour in src/FScript.JavaScript/scripts — 1 commit, 1 file: “ci: publish JavaScript package on release”.

src/FScript.JavaScript/scripts · medium confidence · unverified

11 commits (2 fixes) modifying src/FScript.CSharpInterop

A change to existing behaviour in src/FScript.CSharpInterop — 11 commits (2 fixs), 2 files: “feat(sandbox): support root-relative denied globs for Fs access”; “perf: internalize stdlib builtins and remove stdlib source LSP plumbing”; “feat(interop): add C\# bridge and C\# language server host”; and 8 more (refs \#9).

src/FScript.CSharpInterop · medium confidence · unverified

27 commits (0 fixes) modifying FScript.Runtime

A change to existing behaviour in FScript.Runtime — 27 commits, 8 files: “Treat arity-0 externs and exports as values”; “feat(sandbox): support root-relative denied globs for Fs access”; “refactor higher-order externs to callback-based runtime handlers”; and 24 more (refs \#2, \#8).

(repo-wide) · medium confidence · unverified

3 commits (1 fix) modifying benchmarks/FScript.Evaluation.Benchmarks

A change to existing behaviour in benchmarks/FScript.Evaluation.Benchmarks — 3 commits (1 fix), 3 files: “fix: let dotnet build handle cached project references”; “Integrate Terrabuild builds and parallel cached CI tests (\#9)”; “feat: add CLI and VS Code debugging with configurable CLI selection” (refs \#9).

benchmarks/FScript.Evaluation.Benchmarks · medium confidence · unverified

3 commits (1 fix) modifying benchmarks/FScript.FrontEnd.Benchmarks, benchmarks/FScript.Interpreter.Benchmarks

A change to existing behaviour in benchmarks/FScript.FrontEnd.Benchmarks, benchmarks/FScript.Interpreter.Benchmarks — 3 commits (1 fix), 8 files: “perf: accelerate frontend analysis and interpreter collections”; “fix: let dotnet build handle cached project references”; “Integrate Terrabuild builds and parallel cached CI tests (\#9)” (refs \#9).

benchmarks/FScript.FrontEnd.Benchmarks, benchmarks/FScript.Interpreter.Benchmarks · medium confidence · unverified

4 commits (1 fix) modifying benchmarks/FScript.DotNet.Comparison

A change to existing behaviour in benchmarks/FScript.DotNet.Comparison — 4 commits (1 fix), 10 files: “chore: upgrade FScript to .NET 11 (\#10)”; “perf(dotnet): optimize FFI calls and immutable collections”; “fix: let dotnet build handle cached project references”; and 1 more (refs \#10, \#9).

benchmarks/FScript.DotNet.Comparison · medium confidence · unverified

4 commits (1 fix) modifying benchmarks/FScript.Inference.Benchmarks

A change to existing behaviour in benchmarks/FScript.Inference.Benchmarks — 4 commits (1 fix), 2 files: “perf(runtime): make interactive sessions incremental”; “perf(language): reduce type inference overhead”; “fix: let dotnet build handle cached project references”; and 1 more (refs \#9).

benchmarks/FScript.Inference.Benchmarks · medium confidence · unverified

4 commits (1 fix) modifying samples/task-sharing

A change to existing behaviour in samples/task-sharing — 4 commits (1 fix), 8 files: “chore: upgrade FScript to .NET 11 (\#10)”; “feat: add opt-in static FFI task-sharing analysis”; “fix: let dotnet build handle cached project references”; and 1 more (refs \#10, \#9).

samples/task-sharing · medium confidence · unverified

4 commits (1 fix) modifying src/FScript.Backend.DotNet

A change to existing behaviour in src/FScript.Backend.DotNet — 4 commits (1 fix), 8 files: “fix(compiler): compile configured FFI and teapot Native AOT”; “perf(aot): reduce FFI executable size and document size profiles”; “perf(dotnet): optimize FFI calls and immutable collections”; and 1 more (refs \#8). Also in this area: 1 commit (0 fixes) modifying src/FScript.Backend.CSharp, src/FScript.Backend.DotNet, src/FScript.Compiler.

samples/ffi, src/FScript, src/FScript.Backend.DotNet · low confidence · unverified

5 commits (1 fix) modifying FScript.Backend.CSharp, FScript.Compiler

A change to existing behaviour in FScript.Backend.CSharp, FScript.Compiler — 5 commits (1 fix), 10 files: “fix(compiler): compile configured FFI and teapot Native AOT”; “perf(dotnet): optimize FFI calls and immutable collections”; “feat(task): add pipeline-friendly task composition”; and 2 more (refs \#8). Also in this area: 1 commit (0 fixes) modifying src/FScript.Backend.CSharp, src/FScript.Backend.DotNet, src/FScript.Compiler.

src/FScript.Backend.CSharp · low confidence · unverified

5 commits (1 fix) modifying FScript.Backend.CSharp, FScript.Compiler

A change to existing behaviour in FScript.Backend.CSharp, FScript.Compiler — 5 commits (1 fix), 10 files: “fix(compiler): compile configured FFI and teapot Native AOT”; “perf(dotnet): optimize FFI calls and immutable collections”; “feat(task): add pipeline-friendly task composition”; and 2 more (refs \#8). Also in this area: 1 commit (0 fixes) modifying src/FScript.Backend.CSharp, src/FScript.Backend.DotNet, src/FScript.Compiler.

src/FScript.Compiler · low confidence · unverified

5 commits (2 fixes) modifying .build

A change to existing behaviour in .build — 5 commits (2 fixs), 9 files: “ci: restore cached test reports directly with Terrabuild”; “chore: upgrade FScript to .NET 11 (\#10)”; “fix: restore animated progress in Terrabuild builds”; and 2 more (refs \#10, \#9).

.build · medium confidence · unverified

6 commits (2 fixes) modifying samples/ffi/Renderer

A change to existing behaviour in samples/ffi/Renderer — 6 commits (2 fixs), 8 files: “feat: run FFI graphics through the CLI and VS Code”; “fix(compiler): compile configured FFI and teapot Native AOT”; “perf(aot): reduce FFI executable size and document size profiles”; and 3 more (refs \#9).

samples/ffi/Renderer · medium confidence · unverified

6 commits (2 fixes) modifying src/FScript.LanguageServer

A change to existing behaviour in src/FScript.LanguageServer — 6 commits (2 fixs), 5 files: “perf: internalize stdlib builtins and remove stdlib source LSP plumbing”; “Replace F\# LSP executable with C\# server”; “feat: share FFI environment configuration with CLI and VS Code”; and 3 more (refs \#9).

src/FScript.LanguageServer · medium confidence · unverified

7 commits (1 fix) modifying src/FScript.JavaScript

A change to existing behaviour in src/FScript.JavaScript — 7 commits (1 fix), 3 files: “Add Fable JavaScript support (\#6)”; “feat: support JavaScript host types and registrations”; “feat(host): add default-deny execution permissions”; and 4 more (refs \#6, \#8, \#9).

src/FScript.JavaScript · medium confidence · unverified

FScript.Language core engine and type system overhaul

The FScript.Language module has been restructured and significantly expanded, moving core files (Ast, Types, Token, Error) from FScript.Core to this namespace. The language now supports a richer type system including Tasks, Maps, Unions, and structural records, alongside new syntax features like map literals, interpolated strings, and match guards. The runtime engine now handles concurrent task execution with thread-safe state management, and the interactive session mode has been enhanced to support incremental evaluation and retained program state.

FScript.Language · high confidence

Migrate core collection types and environment metadata to the embedded standard library

The standard library has been migrated from external definitions to embedded source files, introducing explicit implementations for List, Map, and Option types alongside a new Environment type. Users now have access to a comprehensive set of list operations including map, filter, fold, and optional index access (tryItem), as well as map utilities like add, remove, and pattern matching support. The Environment type exposes script metadata such as name and arguments, and introduces a FsKind union type to replace previous file/directory checks with a unified API for file system status.

src/FScript.Language/Stdlib · high confidence

Runtime externs and sandboxing overhaul

The FScript runtime now provides a comprehensive set of new external functions and significantly hardened filesystem security. Users gain access to new capabilities including JSON serialization/deserialization, MD5 hashing, GUID generation, regular expression matching, and asynchronous task spawning. Filesystem operations have been refactored to use a unified \Fs.kind\ API instead of separate \isFile\/\isDirectory\ checks, and the sandbox is now stricter: it enforces root confinement, blocks access to denied path globs, and prevents symlink/reparse-point traversal attacks. Additionally, console input/output and XML querying are now available as externs. Also in this area: Maps now support int, bool, and union-case keys; Support for numeric meta-type inference and editor display; New script host API and XML query externs.

src/FScript.Runtime · high confidence

Test coverage

11 commits adding/updating tests in samples/ffi/Tests; 8 commits adding/updating tests in src/FScript.JavaScript/test; Added comprehensive test coverage for FScript CLI, language engine, and language server.

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings — which rule fired, in which file, on which line, and how to fix it — are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.

Score

  • CAI 47 → 54 (+6.3)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.

Lenses

  • Code Health 35 → 49 (+14.5)
  • Architecture 96 → 98 (+1.9)
  • Maturity 66 → 66 (+0.2)
  • Readiness 48 → 48 (+0.0)
  • Security 78 → 71 (-7.0)
  • Performance 60 → 60 (+0.0)

Resolved (307)

  • AstJson.toJsonNodeInternal (cognitive 39) (src/FScript.CSharpInterop/LanguageServer/AstJson.fs)
  • AstJson.toJsonNodeInternal (cyclomatic 25) (src/FScript.CSharpInterop/LanguageServer/AstJson.fs)
  • CSharpBackend.emit (cognitive 680) (src/FScript.Backend.CSharp/CSharpBackend.fs)
  • CSharpBackend.emit (cyclomatic 706) (src/FScript.Backend.CSharp/CSharpBackend.fs)
  • CSharpBackend.generateWith (cognitive 24) (src/FScript.Backend.CSharp/CSharpBackend.fs)
  • CSharpBackend.generateWith (cyclomatic 18) (src/FScript.Backend.CSharp/CSharpBackend.fs)
  • ClrBindings.bindCompiledProviders (cognitive 42) (src/FScript.Compiler/ClrBindings.fs)
  • ClrBindings.bindCompiledProviders (cyclomatic 18) (src/FScript.Compiler/ClrBindings.fs)
  • ClrBindings.bundledFrameworkAssemblies (cognitive 36) (src/FScript.Compiler/ClrBindings.fs)
  • ClrBindings.pruneUnusedTypes (cognitive 26) (src/FScript.Compiler/ClrBindings.fs)
  • ClrBindings.pruneUnusedTypes (cyclomatic 39) (src/FScript.Compiler/ClrBindings.fs)
  • CompileOptions.resolve (cognitive 27) (src/FScript/CompileOptions.fs)
  • CompileOptions.resolve (cyclomatic 27) (src/FScript/CompileOptions.fs)
  • Coverage not measured — .NET suite
  • DebugSession.Evaluate (cyclomatic 18) (src/FScript.Runtime/DebugSession.fs)
  • DebuggerEntry.Coordinates (cognitive 16) (src/FScript.DebugAdapter/DebuggerEntry.cs)
  • DebuggerEntry.RunAdapterAsync (cognitive 60) (src/FScript.DebugAdapter/DebuggerEntry.cs)
  • DebuggerEntry.RunAdapterAsync (cyclomatic 24) (src/FScript.DebugAdapter/DebuggerEntry.cs)
  • DebuggerEntry.RunHost (cognitive 24) (src/FScript.DebugAdapter/DebuggerEntry.cs)
  • DebuggerEntry.RunHost (cyclomatic 43) (src/FScript.DebugAdapter/DebuggerEntry.cs)
  • …and 287 more

New (35)

  • Change coupling: Ast.fs ↔ Lexer.fs (src/FScript.Language/Ast.fs)
  • Duplicated block (22 lines × 2) (src/FScript.LanguageServer/LspHandlers.cs)
  • Duplicated block (5 lines × 2) (src/FScript.Compiler/Lir.fs)
  • Duplicated block (5 lines × 2) (src/FScript.Runtime/RegexExterns.fs)
  • Duplicated block (6 lines × 2) (src/FScript.CSharpInterop/LanguageServer/LspHandlers.fs)
  • Duplicated block (7 lines × 2) (src/FScript.Runtime/FsExterns.fs)
  • Duplicated block (7 lines × 3) (src/FScript.Language/Parser.fs)
  • Edited copy of a member (39 corresponding lines) (src/FScript.LanguageServer/LspHandlers.cs)
  • High IaC: DS-0002 (.build/toolchain/Dockerfile)
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • …and 15 more

Changes since last survey

  • 42 commits — 35 feature/other, 7 fixes

By area

  • website/versioned_docs — 15 commits
  • (root) — 13 commits
  • .github/scripts — 4 commits
  • .build/ci — 2 commits
  • src/FScript.Backend.DotNet — 2 commits
  • website/docs — 2 commits
  • docs/specs — 1 commit
  • samples/ffi — 1 commit
  • src/FScript.Backend.CSharp — 1 commit
  • src/FScript.CSharpInterop — 1 commit

Notable commits

  • fix: ci: fix NuGet publisher identity and support release retries
  • fix: fix(lsp): resolve definitions in pipelines followed by lambdas
  • fix: fix(vscode): acquire .NET 11 for the language server
  • fix: fix: let dotnet build handle cached project references
  • fix: fix: restore animated progress in Terrabuild builds
  • fix: fix: restore the CLI executable for cached test builds
  • fix: fix: verify CI test execution and namespace toolchain images
  • change: Integrate Terrabuild builds and parallel cached CI tests (#9)
  • change: chore(deps): upgrade Fable to 5.27.0
  • change: chore(release): 0.89.0
  • change: chore(release): 0.90.0
  • change: chore(release): 0.90.1
  • change: chore(release): 0.90.2
  • change: chore(release): 0.90.2
  • change: chore(release): 0.90.3
  • change: chore(release): 0.91.0
  • change: chore(release): 0.92.0
  • change: chore(release): 0.92.1
  • change: chore(release): 0.92.2
  • change: chore(release): 0.92.3
  • …and 22 more

Architecture

  • Containers 0 added · 0 removed · contexts 0 added · 10 removed · edges 0 added · 12 removed

Removed bounded contexts (10)

  • FScript.Backend.CSharp
  • FScript.Backend.DotNet
  • FScript.CSharpInterop
  • FScript.Compiler
  • FScript.DotNet.Comparison
  • FScript.DotNet.Reference
  • FScript.Ffi.Sample
  • FScript.Inference.Benchmarks
  • FScript.Interpreter.Lir
  • fscript

Removed dependency edges (was a dependency, now gone) (12)

  • FScript.Backend.CSharp → FScript.Compiler
  • FScript.Backend.CSharp → FScript.Language
  • FScript.Backend.DotNet → FScript.Compiler
  • FScript.Backend.DotNet → FScript.Language
  • FScript.CSharpInterop → FScript.Language
  • FScript.CSharpInterop → FScript.Runtime
  • FScript.Compiler → FScript.Language
  • FScript.Interpreter.Lir → FScript.Compiler
  • FScript.Interpreter.Lir → FScript.Language
  • fscript → FScript.Compiler
  • fscript → FScript.Language
  • fscript → FScript.Runtime

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

MagnusOpera/FScript was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 15 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit ba178d98296992deb21664153b9c45c6d0f32f11 — the exact code this score is about.
  • Scored under rubric-2026.11.4 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.65+preprod-3c33c1882dc1.