Skip to content
CAI
Software that uses CAICheck a score

Whaally/Domain

61.1

Adequate · 8 November 2026

3k

lines of production code

C#

primary language

7

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Whaally.Domain is a .NET framework for building scalable domain models using DDD and event-sourcing patterns. It provides core abstractions for aggregates, commands, and events, backed by an Orleans-based persistence layer that integrates with Marten and PostgreSQL. The system supports distributed messaging and elastic scalability, with a demo application (Skyhop) illustrating its use in managing flight and aircraft states.

Features

Added Skyhop sample application with domain, hosting, and benchmarking components

The samples directory now includes a complete 'Skyhop' demo application, featuring domain models for flights and aircraft with associated commands, events, and sagas that propagate state changes across contexts. The hosting layer exposes an ASP.NET Core API to manage flight operations, while a separate benchmarking project uses BenchmarkDotNet to measure performance against the Orleans-based domain implementation.

samples · high confidence

Initial release of Whaally.Domain framework with Orleans and Marten infrastructure

The repository is restructured to introduce the \Whaally.Domain\ library, a framework for building scalable domain models using DDD and event-sourcing patterns. This release includes the core domain abstractions (Aggregates, Services, Commands, Events) and provides a reference implementation for infrastructure using Microsoft Orleans and Marten. The solution now organizes projects into \src\, \tests\, and \samples\ directories, with \Whaally.Domain.Infrastructure.OrleansHost\ serving as the concrete infrastructure layer. Additionally, a demo application named \Skyhop\ is added to the samples folder to showcase usage.

(repo-wide) · high confidence

Introduce domain abstractions and Orleans persistence for event-sourced aggregates

The domain layer now provides a complete set of abstractions for command and event handling, including interfaces for aggregates, commands, events, sagas, and services, along with a default implementation of the \IEvaluationAgent\ to orchestrate their evaluation. Additionally, a new Orleans-based persistence layer has been added (\AggregateHandlerGrain\) that integrates with Marten to read and write aggregate state from a PostgreSQL database, enabling elastic scalability for the domain model.

src/Whaally.Domain · high confidence

Orleans integration support for domain objects

Added serialization converters and surrogates for domain types (ActivityContext, CommandEnvelope, EventEnvelope, Result, etc.) to enable distributed messaging in the Orleans host. Introduced the AbstractAggregateHandlerGrain and OrleansAggregateHandlerFactory to manage aggregate state and command evaluation within Orleans grains, allowing the domain layer to scale elastically.

src/Whaally.Domain.Infrastructure.OrleansHost · high confidence

Test coverage

Added domain and integration tests for flight and aircraft management; Added domain tests for command, service, and event handling; Added test coverage for Orleans serialization and command composition scenarios.

Dependencies

Add .NET project files for the Whaally domain and Orleans infrastructure

The repository now includes .csproj files for the core domain library, the Orleans host infrastructure, and the Marten persistence provider, each configured for package generation. Additionally, a demo application named Skyhop and its associated test projects have been added, establishing the build structure for the domain and hosting layers.

(dependencies) · medium 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 56 → 61 (+5.4)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.

Lenses

  • Code Health 73 → 73 (+0.1)
  • Architecture 83 → 84 (+0.7)
  • Maturity 55 → 61 (+5.8)
  • Readiness 47 → 55 (+8.4)
  • Security 65 → 65 (+0.0)
  • Domain Modelling 97 → 85 (-11.7)
  • Event-Driven 100 → 100 (+0.0)
  • Performance 65 → 69 (+3.7)

Resolved (17)

  • AircraftContext: 2 contract type(s) expose producer-owned ids/enums
  • Cross-context type AircraftRemoved (FlightContext → AircraftContext) (samples/Skyhop.Domain/AircraftContext/Sagas/OnAircraftRemoved.cs)
  • Cross-context type AircraftRemoved (FlightContext → AircraftContext) (samples/Skyhop.Domain/AircraftContext/Sagas/OnAircraftRemoved.cs)
  • Cross-context type DepartureTimeSet (FlightContext → AircraftContext) (samples/Skyhop.Domain/AircraftContext/Sagas/OnDeparture.cs)
  • Cross-context type DepartureTimeSet (FlightContext → AircraftContext) (samples/Skyhop.Domain/AircraftContext/Sagas/OnDeparture.cs)
  • Cross-context type SetAircraft (FlightContext → samples) (samples/Skyhop.Hosting/Controllers/FlightController.cs)
  • Cross-context type SetArrival (FlightContext → samples) (samples/Skyhop.Hosting/Controllers/FlightController.cs)
  • Cross-context type SetDeparture (FlightContext → samples) (samples/Skyhop.Hosting/Controllers/FlightController.cs)
  • FlightContext: 12 contract type(s) expose producer-owned ids/enums
  • Low XML-doc coverage: Skyhop.Domain (samples/Skyhop.Domain/Skyhop.Domain.csproj)
  • Low XML-doc coverage: Skyhop.Domain.Benchmark (samples/Skyhop.Domain.Benchmark/Skyhop.Domain.Benchmark.csproj)
  • Low XML-doc coverage: Skyhop.Hosting (samples/Skyhop.Hosting/Skyhop.Hosting.csproj)
  • Low XML-doc coverage: Whaally.Domain (src/Whaally.Domain/Whaally.Domain.csproj)
  • Low XML-doc coverage: Whaally.Domain.Infrastructure.OrleansHost (src/Whaally.Domain.Infrastructure.OrleansHost/Whaally.Domain.Infrastructure.OrleansHost.csproj)
  • Low XML-doc coverage: Whaally.Domain.Infrastructure.OrleansHost.MartenPersistence (src/Whaally.Domain.Infrastructure.OrleansHost.MartenPersistence/Whaally.Domain.Infrastructure.OrleansHost.MartenPersistence.csproj)
  • Vulnerable: Marten
  • Whaally: 3 contract type(s) expose producer-owned ids/enums

New (1)

  • Documentation: no build, run or usage example (src/Whaally.Domain.Infrastructure.OrleansHost.MartenPersistence/Readme.md)

API surface

  • Unchanged — 5 HTTP endpoints

Architecture

  • Containers 0 added · 0 removed · contexts 0 added · 0 removed · edges 1 added · 1 removed

Added dependency edges (1)

  • AircraftContext → FlightContext

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

  • AircraftContext → FlightContext (coupling)

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

Survey your own repository

Whaally/Domain 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 8 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 32937401504feaac8ae51b153c2abf8dcf662570 — the exact code this score is about.
  • Scored under rubric-2026.11.2 — 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.3+preprod-45ab2cab63de.