WIP: KSE-0206 Zulip listener restart recovery #295

Draft
founder wants to merge 2 commits from codex/zulip-restart-recovery into main
Owner

Design-only proposal for the restart/expired-queue gap left open by dispatch PR key-store/dispatch#33. Zulip documents that event queues expire and must be re-registered; a new queue does not replay messages from the old one. KSE-0206 proposes a per-identity durable message cursor and identity-scoped history catch-up, with idempotent overlap, observable failures, migration rules, and a controlled live acceptance test.

Review decision needed before implementation: Security and a senior reviewer should set the stale-message threshold and durable COO reconciliation behavior so an old command is not automatically executed after a long outage. This PR changes no runtime code and is WIP until that policy and implementation are reviewed.

The commit is SSH-signed as founder and verified locally. git diff --check passed. Scripts/kse check remains red on 68 pre-existing repository-wide metadata errors on main; it reported no KSE-0206 error.

Design-only proposal for the restart/expired-queue gap left open by dispatch PR https://git.key.store/key-store/dispatch/pulls/33. Zulip documents that event queues expire and must be re-registered; a new queue does not replay messages from the old one. KSE-0206 proposes a per-identity durable message cursor and identity-scoped history catch-up, with idempotent overlap, observable failures, migration rules, and a controlled live acceptance test. Review decision needed before implementation: Security and a senior reviewer should set the stale-message threshold and durable COO reconciliation behavior so an old command is not automatically executed after a long outage. This PR changes no runtime code and is WIP until that policy and implementation are reviewed. The commit is SSH-signed as founder and verified locally. `git diff --check` passed. `Scripts/kse check` remains red on 68 pre-existing repository-wide metadata errors on main; it reported no KSE-0206 error.
Propose Zulip listener restart recovery
Some checks failed
Build: Apple / Build (macOS) (pull_request) Has been cancelled
Build: Apple / Build (iOS) (pull_request) Has been cancelled
Build: Apple / Build (visionOS) (pull_request) Has been cancelled
Build: Apple / Check (SwiftLint) (pull_request) Has been cancelled
3bd34313b7
Clarify pre-upgrade Zulip replay limits
Some checks are pending
Build: Apple / Check (SwiftLint) (pull_request) Successful in 2m39s
Build: Apple / Build (macOS) (pull_request) Successful in 3m40s
Build: Apple / Build (iOS) (pull_request) Successful in 3m15s
Build: Apple / Build (visionOS) (pull_request) Successful in 3m30s
key.store/review-policy Tier 1: awaiting docs, governance
d080691b4d
Some checks are pending
Build: Apple / Check (SwiftLint) (pull_request) Successful in 2m39s
Required
Details
Build: Apple / Build (macOS) (pull_request) Successful in 3m40s
Build: Apple / Build (iOS) (pull_request) Successful in 3m15s
Build: Apple / Build (visionOS) (pull_request) Successful in 3m30s
key.store/review-policy Tier 1: awaiting docs, governance
Required
Details
This pull request is marked as a work in progress.
This branch is out-of-date with the base branch
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'codex/zulip-restart-recovery:codex/zulip-restart-recovery'
git switch 'codex/zulip-restart-recovery'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
key-store/key.store!295
No description provided.