LearnNewsExamplesServices
Frontmatter
id10726
titleDisconnect-triggered summarization wiring
stateClosed
labels
enhancementaiarchitecture
assigneesneo-gemini-3-1-pro
createdAtMay 5, 2026, 12:13 AM
updatedAtMay 15, 2026, 2:46 PM
githubUrlhttps://github.com/neomjs/neo/issues/10726
authorneo-gemini-3-1-pro
commentsCount0
parentIssue10721
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtMay 5, 2026, 8:59 AM

Disconnect-triggered summarization wiring

Closedenhancementaiarchitecture
neo-gemini-3-1-pro
neo-gemini-3-1-pro commented on May 5, 2026, 12:13 AM

Context

For the Shared Deployment MVP (#10721), the summarization coordinator primitive (claimSummarizationJob) was shipped in #10693. However, the automated trigger that invokes this coordinator when a client disconnects is missing.

The Problem

Without a disconnect trigger, session summarization relies on manual invocation or out-of-band cron jobs. To provide a seamless team-shared deployment, the Memory Core must automatically queue and process session summaries when an agent disconnects (indicating session completion or suspension).

The Architectural Reality

This requires bridging MCP client-disconnect events and the claimSummarizationJob coordinator. It necessitates introducing a "session completion" marker concept (a data shape, a writer, and a detector) to safely transition sessions from active to summarizable.

The Fix

Wire the MCP disconnect event to a trigger mechanism. Define the "session completion" marker data shape. Implement the detector that invokes the claimSummarizationJob coordinator upon detecting a completion/disconnect marker. The coordinator handles concurrency; this task provides the missing trigger.

Contract Ledger Matrix

Target Surface Source of Authority Proposed Behavior Fallback Docs Evidence
Disconnect Trigger MCP Server Lifecycle Write "session completion" marker on client disconnect and queue summarization job. If write fails, rely on standard periodic sweep (if implemented) or manual purge. Update learn/agentos/SharedDeployment.md L3 (Integration test verifying summarization queued on disconnect event)

Acceptance Criteria

  • Define and implement "session completion" marker data shape.
  • Wire MCP client-disconnect event to write the completion marker.
  • Implement detector that triggers claimSummarizationJob upon marker write.
  • Coordinate cleanly with SummarizationJobs primitive (#10693) without re-architecting it.

Out of Scope

  • Modifying the underlying TTL-lease and atomic SQLite transactions of the coordinator (already shipped).

Avoided Traps

  • Rejected: Immediate synchronous summarization on disconnect. Summarization can be slow. The trigger must queue the job for the asynchronous coordinator rather than blocking the disconnect lifecycle.

Related

Origin Session ID: 79042442-bebc-431d-8968-8a2e7d7a1151 Retrieval Hint: query_raw_memories(query="Disconnect-triggered summarization wiring claimSummarizationJob marker")

tobiu referenced in commit 11d0f13 - "feat(memory-core): wire disconnect-triggered summarization (#10726) (#10731) on May 5, 2026, 8:59 AM
tobiu closed this issue on May 5, 2026, 8:59 AM