Collection styles are configuration; the changelog shape is one of them - #17
Merged
Conversation
…em (ADR-028) strata-g is retiring scriv, and what scriv was actually providing there was one property: a changelog reads newest-first, and the collector only had the narrative shape (bodies oldest-first, marker at the end). A fragment mapping now declares its style. append is the unchanged default; changelog inserts one '## <date>' batch right after the marker, newest batch first, fragments newest-first within it — and a stub-only batch emits nothing, which retires the empty-date-heading caveat strata-g's CLAUDE.md documented under scriv. Deliberately not built: scriv's category merging — a fragment's sections stay per-contribution within the batch. String config values still mean append, so nothing existing changes meaning. Luria's own changelog switches to the new style as dogfood. Version to 0.1.2. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014H7APrKgWA23SVZMNF8H86
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
strata-g's phase-two port retires scriv, and what scriv was actually providing there turned out to be one property: a changelog reads newest-first, and the collector only had the narrative shape (bodies oldest-first, inserted before a marker that stays at the end). ADR-028 makes the shape configuration:
append— unchanged default; a plain string value still means this, so no existing config changes meaning.changelog— one## <date>batch per collection, inserted right after the marker so batches stack newest-first; fragments newest-first within the batch; a stub-only batch emits nothing — which retires the empty-date-heading caveat strata-g's CLAUDE.md documented under scriv (bare## <date>someone had to revert by hand).Deliberately not built: scriv's category merging. A fragment's
### Added/### Fixedsections stay in its body, per-contribution within the batch — merging earns its complexity in versioned-release changelogs, and the un-merged form preserves which contribution claimed what.collect()stays pure (text + bodies + style + date in, text out). Luria's own changelog switches to the new style as dogfood — its marker was already positioned after the header, where a changelog-style marker belongs.Version → 0.1.2; strata-g's phase-two PR pins it for
luria collectto own its changelog.242 tests pass (6 new in
tests/test_collect.py),luria lintclean.Generated by Claude Code