Repository navigation
fix(aggregator): reconcile partially emitted orchestration publishes instead of suppressing them - #17465
Closed
developing-today-fleet[bot] wants to merge 1 commit into
Closed
fix(aggregator): reconcile partially emitted orchestration publishes instead of suppressing them#17465developing-today-fleet[bot] wants to merge 1 commit into
developing-today-fleet[bot] wants to merge 1 commit into
Conversation
…instead of suppressing them The replay guard treated a durable orchestration-published marker as proof a run was fully emitted. The marker was emitted FIRST, before the run's action and tier-change events, through a fire-and-forget writer — so a crash or a validation drop after the marker persisted lost the sibling events permanently, and the guard silently advanced the in-memory tier baseline past the gap (#17453). - Emit the marker LAST: it is now the completion record for the run's full event set. - When the marker is already durable, reconcile instead of suppressing: emit every action event whose durable identity is absent, exactly once; if any action proved missing the publish was partial, so the tier diff against the in-memory baseline is re-emitted with it (tier-change events share (kind, ref) across runs and cannot be checked individually — a visible duplicate over a silent, permanent loss). - hasEvent failures stay fail-open (catch to false): duplicates over silent loss, now pinned by a test. - The existing restart test now models a genuinely fully emitted run (all events durable, not marker-only); new regression test seeds a marker-only partial publish and expects the missing action and tier-change events exactly once, with no marker re-emission. Closes #17453
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
This was referenced Nov 30, 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.
Fix
The orchestration replay guard in
pm-stack/aggregator/src/sources/live.tstreated a durableorchestration-publishedmarker as proof a run was fully emitted — but the marker was emitted first, before the run's action/tier-change events, through a fire-and-forget writer. A crash or validation drop after the marker persisted lost the siblings permanently, and the guard silently advanced the tier baseline past the gap.(kind, ref)across runs and cannot be checked individually — a visible duplicate over a silent, permanent loss).hasEventfailures still catch tofalse(duplicates over silent loss), now pinned by a test.Tests (
pm-stack/aggregator/test/orchestration.test.ts):hasEventstill emits the full set.Remote verification (aggregator test suite at PR head) dispatched separately; results on #17453.
Closes #17453
🤖 Lane 0900-CR (xaltha, wave 0900)
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.