Repository navigation
fix(process): report single empty settlement observation as unverifiable - #2232
Merged
morluto merged 1 commit intoOct 12, 2026
Merged
Conversation
observeSettlement classified a group as alive_at_deadline when the settlement budget expired after one empty observation, though no live member was ever seen. Track observed liveness and return unverifiable when the deadline ends observation with only empty rounds. The two-consecutive-empty rule for quiesced is unchanged, and the cleanup_outcome projection for non-quiesced settlements stays cleaned. Fixes morluto#2170.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
3 tasks done
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.
Summary
observeSettlementreportedalive_at_deadlinewhen the settlement budget expired after a single empty observation, even though no live member was ever observed. An empty observation leaves quiescence uncertain; it is not evidence the group was alive.Fixes #2170.
Change
In
src/process/capture/ProcessCaptureLifecycle.ts, track whether any settlement round observed a live member. The deadline fall-through now returnsalive_at_deadlineonly when liveness was actually observed, andunverifiableotherwise. The two-consecutive-empty-observations rule forquiescedis unchanged. Thecleanup_outcomeprojection for non-quiesced settlements stayscleaned; cleanup itself is untouched.Verification
New
tests/boundary/process/processSettlementDeadline.test.ts(3 tests, red-green verified):unverifiable(failed before the fix withalive_at_deadline)alive_at_deadlinequiescednpm run check:fast(typecheck + lint): green.npm run verify:test-discovery: all 934 test files discovered exactly once.