Skip to content

SCA-5259: Count committed lifecycle pendant tail holds - #26558

Open
Git-on-my-level wants to merge 1 commit into
mainfrom
agent/m1-studio-codex-sol/ea264abd4653
Open

Git-on-my-level wants to merge 1 commit into
mainfrom
agent/m1-studio-codex-sol/ea264abd4653

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

What changed and why

Count new user-held pendant transport-tail WAL rows at the first successful index commit after a lifecycle drain. The local callback receives an integer delta and counts each committed row once through repeated callbacks and failed index saves. Setting OMI_WAL_LIFECYCLE_HELD_TAIL_COUNT_OFF=true disables the callback independently of WAL custody.

The PR provides the local measurement point. The production transport and a Release-approved baseline cohort are pending. The reporter needs an identifier-free envelope, daily UTC totals by platform and app build, and independent coverage evidence. Missing coverage stays unknown. Keep WAL Stop Drain in its existing series. The local pending marks are process-scoped, so an exit before reporting can lose a count.

Product invariants affected

  • INV-CAP-1

How it was verified

The M1 run of bash test.sh test/unit/local_wal_durability_seam_test.dart passed all 138 spine checks and 15 durability tests. The 15 durability tests also passed with --dart-define=OMI_WAL_LIFECYCLE_HELD_TAIL_COUNT_OFF=true. Local and PR preflight passed. The tests exercise lifecycle drains with a committed hold, split evidence runs, repeated callbacks, index-save failure and retry, an empty buffer, an unsent tail, and explicit stop. The test callback is local and in memory.

UI-Evidence: none -- local telemetry only

Line-Count-Exception: app/lib/services/wals/local_wal_sync.dart | 3368 -> 3382 | Carry lifecycle origin through the existing seal paths without splitting custody code.

View guided diff Turn on auto-fix

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-28T00:44:47.069116Z 8cd53e4 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.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant