Skip to content

fix(process): report single empty settlement observation as unverifiable - #2232

Merged
morluto merged 1 commit into
morluto:mainfrom
sx4im:fix/settlement-single-empty-observation
Oct 12, 2026
Merged

morluto merged 1 commit into
morluto:mainfrom
sx4im:fix/settlement-single-empty-observation

Conversation

@sx4im

@sx4im sx4im commented Oct 12, 2026

Copy link
Copy Markdown
Contributor

Summary

observeSettlement reported alive_at_deadline when 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 returns alive_at_deadline only when liveness was actually observed, and unverifiable otherwise. The two-consecutive-empty-observations rule for quiesced is unchanged. The cleanup_outcome projection for non-quiesced settlements stays cleaned; cleanup itself is untouched.

Verification

New tests/boundary/process/processSettlementDeadline.test.ts (3 tests, red-green verified):

  • single empty observation at deadline → unverifiable (failed before the fix with alive_at_deadline)
  • genuinely live owned group at deadline → still alive_at_deadline
  • two consecutive empty observations → still quiesced

npm run check:fast (typecheck + lint): green.
npm run verify:test-discovery: all 934 test files discovered exactly once.

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.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-12T15:42:26.387148Z 019fe4d PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@morluto
morluto merged commit 7724edb into morluto:main Oct 12, 2026
32 checks passed
@github-actions github-actions Bot mentioned this pull request Oct 12, 2026
3 tasks done
@morluto morluto added bug Something isn't working area: runtime Process capture and runtime observation labels Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: runtime Process capture and runtime observation bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(process): empty settlement observation is reported as alive_at_deadline

2 participants