# Changelog

## Score

- CAI 58 → 58 (+0.5)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.

## Lenses

- Code Health 63 → 63 (+0.0)
- Architecture 69 → 69 (+0.0)
- Maturity 49 → 51 (+1.8)
- Readiness 66 → 66 (+0.0)
- Security 83 → 75 (-8.3)

## Resolved (6)

- Duplication of intent between DatabaseTasks and SchemaMigration. SchemaMigration has a method 'pending_schema_migrations()' which duplicates the functionality of DatabaseTasks.pending_schema_migrations(). Similarly, DatabaseTasks has 'pending_data_migrations()' which likely duplicates logic that could be centralized. Having two entry points for the same query creates maintenance overhead and potential for divergence.
- Inconsistent 'run' operation signatures across different context types. DataMigrator and SchemaMigration accept (direction, paths, version), while MigrationContext accepts (direction, target_version) and DatabaseTasks accepts (migration, direction). This forces consumers to memorize different argument orders and sets of parameters depending on which class they are using, despite the core intent (executing migrations) being identical.
- Inconsistent method signatures for dump operations. Both SchemaDumper and StatusService have two 'dump' methods: one taking (connection, stream) and one taking just (stream). This suggests an overloaded method pattern that is inconsistently applied or documented. It is unclear if the single-argument version infers the connection or if it's a legacy signature.
- Off-boarding risk: anonymized user #1
- Orphaned file (lib/data_migrate/data_migrator.rb)
- Redundant and inconsistent status reporting methods. Both DataMigrator and MigrationContext expose 'migrations_status()', while the Tasks layer exposes 'status()' and 'status_with_schema()'. It is unclear if these return the same data structure or if 'status_with_schema' is a distinct operation. The naming convention shifts between 'migrations_status' and 'status' without clear domain separation.

## New (1)

- Off-boarding risk: anonymized user #1

## Changes since last survey

- 2 commits — 2 feature/other, 0 fixes

## By area

- (root) — 1 commit
- lib/data_migrate — 1 commit

## Notable commits

- change: Feature: Check for pending data migrations on page load (#374)
- change: Release version 11.4.0
