v2.4.0 — Scoped Channels & Session Affinity - #92
Merged
Conversation
…er-turn fence (spike #78 #79 #80) - channel_owner + session_presence schema in a dedicated WAL file (separate from local_messages) - atomic claim_or_skip (single-statement CAS), heartbeat (no token bump), isCurrentToken fence - smoke 11/11: single-owner, per-turn token bump, stale takeover, resurrect-race fence - contract: packages/core/lease-schema.sql (cross-runtime for codex Python path #83)
- WakeMonitor gains optional leaseGate (DI, pure) between audit verdict and inject - createNativeLeaseGate: native claims as native:<agent>, muted while a live chat session owns the channel - claimOrSkip gains preemptPrefix so real chat sessions reclaim the channel from the native fallback - tests 7/7 (cold-claim, preempt, mute-while-live, resume-after-stale, WakeMonitor honours gate) - existing wake-monitor / codex-app-server-wake tests still green
…ag (#82) - creates SessionLeaseStore (.data/lease.db, separate WAL) and native lease gate when enabled - passes leaseGate into both wakeMonitor and proxyWakeMonitor - default OFF -> WakeMonitor behaves exactly as before (backward-compat, AC-7) - node --check clean; wake-monitor/guards/codex-app-server regression green
…tion proof (#82 #85) - createNativeLeaseGate now defers to a live interactive session_presence (no race window), and only claims as a cold fallback when no window is attended - add hasLiveInteractiveSession(agentId, ttlMs) helper - spike-coordination.test.mjs (#85-local): attended window owns -> native daemon defers, coldstart fallback + second window stand down, only owner passes outbound fence, crash -> fallback resumes after TTL (9/9) - wake-lease presence-defer 7/7; lease smoke 11/11; wake-monitor/codex-app-server regression green
…ly 1 emit (#85) - spike-consumer.mjs: one simulated delivery session (claim-before-emit + token fence) - spike-multiproc.test.mjs: spawns N processes racing the same channel on a shared lease.db - real cross-process SQLite CAS: N=5 -> 1 EMIT/4 SUPPRESS, N=8 -> 1 EMIT/7 SUPPRESS - deploy-free analogue of the channel.log 444/445 double-emit fix
… wake-native, version bump)
…rt/mcp-channel/one-shot/autostart honor the lease) — feat/scoped-channels-delivery-claim-83
added 3 commits
June 23, 2026 22:23
This was referenced Jun 23, 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.
$(cat)