G-Research/ShapeSifter
67.7
Adequate · 15 November 2026
726
lines of production code
F#
primary language
5
measurements over time
What this system is
Features
Initial release of ShapeSifter for F\# type-safe datatype-generic programming
ShapeSifter is introduced as a library for type-safe datatype-generic programming in F\#. It provides the \tType\<'a\>\ function and active patterns in the \Patterns\ module to reflectively determine the structure of a type at compile time, returning evidence via \Teq\ (from the TypeEquality library). Users can match on primitives, collections, options, maps, tuples, functions, dictionaries, records, and unions. For records, the library exposes field data, a heterogeneous list of field types, and a converter to interchange between the record and its field values, enabling type-safe manipulation of complex data structures.
(repo-wide) · high confidence
ShapeSifter library introduces type-level pattern matching and conversion crates
The ShapeSifter library now provides a comprehensive set of tools for runtime type analysis and conversion. It introduces 'TeqCrates' for types like arrays, lists, options, maps, and sets, which allow users to check if a runtime type matches a specific generic structure and extract type parameters. Additionally, it adds 'ConvCrates' for F\# tuples, records, and discriminated unions, enabling bi-directional conversion between these native types and heterogeneous lists (HList) or SumOfProducts structures. These capabilities are exposed through a unified set of active patterns in the \Patterns\ module (e.g., \\|Tuple\|\, \\|Record\|\, \\|Array\|\), allowing users to deconstruct and analyze complex types at runtime in a type-safe manner.
ShapeSifter · high confidence
Behavioural changes
1 commit (0 fixes) modifying ShapeSifter, hooks
A change to existing behaviour in ShapeSifter, hooks — 1 commit, 3 files: “Bump Fantomas to 8.1.0 (\#113)” (refs \#113). Also in this area: Pre-push hook enforces Fantomas code formatting.
hooks · low confidence · unverified
Test coverage
Initial test suite for ShapeSifter core patterns and utilities
Added a comprehensive set of NUnit tests in the ShapeSifter.Test project to verify the library's type-level pattern matching capabilities. The tests cover active patterns for basic types (int, string, unit), collections (list, array, map, tuple), and functional types (function, pair). It also includes specific validation for discriminated union and record types, ensuring that custom attributes on union cases and record fields are correctly extracted and filtered. Additionally, the suite includes a CSV parsing example to demonstrate practical usage of the type conversion patterns, and an API surface test to ensure public API stability.
ShapeSifter.Test · high confidence
Dependencies
Initial project structure and dependency configuration for ShapeSifter
This change introduces the foundational project files for the ShapeSifter solution, establishing the library, test suite, and analyzer components. The main library (ShapeSifter) targets .NET Standard 2.0 and depends on HeterogeneousCollections 1.1.7 and FSharp.Core 4.5.0. The test project (ShapeSifter.Test) targets .NET 10.0 and utilizes NUnit 4.6.1, FsUnit 7.1.1, and the ApiSurface 5.0.8 package for testing. Additionally, an analyzers project is added to manage G-Research.FSharp.Analyzers 0.23.0.
(dependencies) · high confidence
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
Score
- CAI 68 → 68 (+0.2)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.
Lenses
- Code Health 98 → 90 (-8.2)
- Architecture 96 → 94 (-1.5)
- Maturity 50 → 54 (+4.1)
- Readiness 77 → 76 (-1.9)
- Security 82 → 77 (-4.5)
New (3)
- Low coverage: ShapeSifter/ConvCrates.fs (ShapeSifter/ConvCrates.fs)
- Low coverage: ShapeSifter/Fields.fs (ShapeSifter/Fields.fs)
- Low coverage: ShapeSifter/TypeListCrate.fs (ShapeSifter/TypeListCrate.fs)
Changes since last survey
- 2 commits — 2 feature/other, 0 fixes
By area
- .github/workflows — 2 commits
Notable commits
- change: Bump actions/setup-dotnet from 6.0.0 to 6.1.0 (#117)
- change: Bump github/codeql-action/upload-sarif from 4.39.1 to 4.39.3 (#118)
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
G-Research/ShapeSifter 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 1daaf0157912c0339c2ee0c52ee4f5b2d1756baf — 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.