Taure/kura
60.0
Adequate · 15 November 2026
13.4k
lines of production code
Erlang
primary language
4
measurements over time
What this system is
Features
Expanded ORM schema definitions and query capabilities
The Kura ORM header file has been updated to support advanced data modeling and querying features. Users can now define complex relationships including \has\_many :through\ associations, embedded schemas (\embeds\_one\, \embeds\_many\), and composite foreign keys. The changeset record now supports constraint validations, association changes, and optimistic locking. Additionally, the query record has been extended to support Common Table Expressions (CTEs), set operations (UNION, INTERSECT, EXCEPT), and soft delete filtering via the \include\_deleted\ flag.
include · high confidence
Introduce audit trail, at-rest encryption, and backend capability checks
Users can now track data changes with a new audit trail module that logs inserts, updates, and deletes to an \audit\_log\ table, supporting actor context and metadata. At-rest field encryption is available via \{encrypted, Type}\ fields, using AES-256-GCM and a pluggable keyring behaviour for key management. Additionally, a new capabilities system allows backends to declare supported features (like \jsonb\, \window\_functions\, or \full\_text\_search\), enabling consumers to fail fast at startup if required features are missing.
src · high confidence
Kura 2.0 introduces pluggable backends and multi-repo support
The database layer now supports pluggable backends, allowing you to choose between PostgreSQL (via the new \kura\_postgres\ package) and SQLite (via \kura\_sqlite\) instead of being locked into a single driver. You configure these by providing a \{repos, \#{...}}\ map in your application environment, where each repo specifies its \backend\. This architecture also enables multi-repo setups within a single application, letting you run different databases (e.g., Postgres for primary data, SQLite for analytics) with independent dialects and connection pools. Existing single-repo configurations remain supported via fallbacks, but new projects should adopt the map-based configuration.
(repo-wide) · high confidence
Test coverage
Added comprehensive test suites for aggregate functions, audit logging, and association handling
Added new test modules in the test directory to verify core library capabilities. kura\_aggregate\_tests covers count, sum, avg, min, and max operations with various filters and edge cases. kura\_audit\_tests and kura\_audit\_encryption\_tests validate actor context management, data stashing, and the redaction of encrypted fields in audit logs. kura\_assoc\_tests, kura\_cast\_assoc\_tests, and kura\_changeset\_assoc\_tests exercise association definitions, on\_delete behaviors, and changeset casting for has\_many, belongs\_to, and embeds\_many relationships. Additional tests in kura\_app\_tests verify pool configuration defaults and multi-repo dialect resolution, while kura\_bench\_tests provide performance benchmarks for insert throughput and read latency.
test · 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 60 → 60 (-0.3)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.
Lenses
- Code Health 73 → 72 (-1.6)
- Architecture 100 → 100 (+0.0)
- Maturity 62 → 61 (-0.4)
- Readiness 49 → 49 (+0.0)
- Security 80 → 80 (+0.4)
Resolved (7)
- Duplicated block (15 lines × 2) (src/kura_migrator.erl)
- Duplicated block (7 lines × 2) (src/kura_dialect_pg.erl)
- Duplicated block (7–8 lines × 2) (src/kura_repo_worker.erl)
- Medium IaC: WD-COMPOSE-0002 (docker-compose.ci.yml)
- Medium IaC: WD-COMPOSE-0002 (docker-compose.yml)
- TooManyFunctions: kura_query (src/kura_query.erl)
- kura_migrator.compile_operation (cyclomatic 21) (src/kura_migrator.erl)
New (35)
- Duplicated block (7 lines × 2) (src/kura_dialect_pg.erl)
- Edited copies of one member (3 members, 20+ corresponding lines) (src/kura_changeset.erl)
- Edited copies of one member (3 members, 7+ corresponding lines) (src/kura_dialect_pg.erl)
- Edited copies of one member (3 members, 7+ corresponding lines) (src/kura_repo_worker.erl)
- Edited copies of one member (3 members, 7+ corresponding lines) (src/kura_types.erl)
- Edited copies of one member (5 members, 9+ corresponding lines) (src/kura_preloader.erl)
- Edited copy of a member (10 corresponding lines) (src/kura_app.erl)
- Edited copy of a member (10 corresponding lines) (src/kura_migrator.erl)
- Edited copy of a member (10 corresponding lines) (src/kura_types.erl)
- Edited copy of a member (11 corresponding lines) (src/kura_migrator.erl)
- Edited copy of a member (11 corresponding lines) (src/kura_migrator.erl)
- Edited copy of a member (12 corresponding lines) (src/kura_db.erl)
- Edited copy of a member (12 corresponding lines) (src/kura_repo_worker.erl)
- Edited copy of a member (13 corresponding lines) (src/kura_changeset_assoc.erl)
- Edited copy of a member (13 corresponding lines) (src/kura_dialect_pg.erl)
- Edited copy of a member (13 corresponding lines) (src/kura_schema_verify.erl)
- Edited copy of a member (18 corresponding lines) (src/kura_types.erl)
- Edited copy of a member (26 corresponding lines) (src/kura_query.erl)
- Edited copy of a member (4 corresponding lines) (src/kura_repo_worker.erl)
- Edited copy of a member (6 corresponding lines) (src/kura_crypto.erl)
- …and 15 more
Changes since last survey
- 8 commits — 7 feature/other, 1 fixes
By area
- (root) — 8 commits
Notable commits
- fix: fix(sandbox): detect a statement that ends the sandbox's transaction (#210)
- change: feat(encryption): deterministic mode with equality lookups (#219)
- change: feat(encryption): v2 column-bound ciphertext frame with HKDF subkeys (#213)
- change: feat(migrator): create_index using, opclass and with; honour name (#212)
- change: feat(migrator): run a migration outside a transaction for CREATE INDEX CONCURRENTLY (#203)
- change: feat(query): pgvector distance threshold in where and having (#211)
- change: feat: release 2.24.0 (#202)
- change: feat: scope count and stream, run insert/3 hooks, qualify join columns, dump where values (#217)
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
Taure/kura 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 88350439de3125cd000146aefb510b388736a8ba — 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.