Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/easy-peas-fry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@effect-migrate/cli": minor
---

Add norms capture command for analyzing migration checkpoint history and detecting established norms. New command effect-migrate norms capture provides prepare-only mode (default) for preview without writes, with options for status filtering (migrated/in-progress/all), directory filtering, lookback window customization (default: 5), min-files threshold, and overwrite control. Outputs JSON summaries to .amp/effect-migrate/norms/ using Schema.encodeSync for proper DateTimeUtc serialization. Includes user guidance for AGENTS.md documentation workflow. Supports --json flag and --amp-out directory configuration. Includes 15 new CLI integration tests covering all options and error paths.
5 changes: 5 additions & 0 deletions .changeset/wise-steaks-wave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@effect-migrate/core": minor
---

Add norms capture feature for detecting established migration norms from checkpoint history. New DirectorySummarizer service analyzes audit checkpoints using lookback window consensus algorithm (default K=5) to identify rules that went to zero and stayed there. Exports DirectoryStatus, Norm, and DirectorySummary schemas with comprehensive JSDoc, along with tagged errors (NoCheckpointsError, InvalidDirectoryError, NormDetectionError, SummaryWriteError). Pure functions (detectExtinctNorms, computeDirectoryStats, determineStatus, findCleanTimestamp) enable testability with 100% coverage. Reuses existing Severity and CheckpointSummary schemas for consistency. Includes 38 new tests with realistic checkpoint fixtures.
Loading