Archived in composite projections: regression tests + docs (#4093)#4264
Merged
jeremydmiller merged 2 commits intomasterfrom Apr 19, 2026
Merged
Archived in composite projections: regression tests + docs (#4093)#4264jeremydmiller merged 2 commits intomasterfrom
jeremydmiller merged 2 commits intomasterfrom
Conversation
Adds end-to-end tests that prove Archived is now safely scoped to the single-stream projection that owns the stream when multiple single-stream children run in the same composite group. The underlying behavior change lives in JasperFx.Events 1.28.0 (PR JasperFx/jasperfx#185) — both guards are keyed on snapshot presence so sibling projections that do not own the stream no longer create phantom documents or issue redundant mt_archive_stream operations. * Bug_4093_archived_in_composite_projections.cs exercises both scenarios: phantom Create(Archived) prevention and owning/non-owning archival. * docs/events/archiving.md gains a new section explaining the composite semantics and the snapshot-ownership rule. * JasperFx.Events bumped to 1.28.0; transitively requires JasperFx 1.24.1. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This was referenced Apr 20, 2026
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.
Closes #4093.
Summary
Adds end-to-end regression tests and documentation for the new behavior in JasperFx/jasperfx#185, which gates `Archived` handling on single-stream projection ownership so siblings in a composite group no longer interfere with each other.
What ships in this PR
Dependency
Blocks on `JasperFx.Events 1.28.0` — currently on the JasperFx PR branch. CI on this PR will fail until that package is published. Local verification on all three TFMs: 2/2 `Bug_4093` tests pass, full archiving + aggregation suite (300 tests) pass, `Bug_3874_able_to_read_archived_and_tombstone_from_older_names` passes (so `Apply(Archived, current)` on existing snapshots still works).
Test plan
🤖 Generated with Claude Code