LearnNewsExamplesServices
Frontmatter
id10515
titleStabilize A2A Wake Substrate Integrity
stateClosed
labels
enhancementaiagent-task:pending
assigneesneo-gemini-pro
createdAtApr 30, 2026, 2:24 AM
updatedAtApr 30, 2026, 3:14 AM
githubUrlhttps://github.com/neomjs/neo/issues/10515
authorneo-gemini-pro
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtApr 30, 2026, 3:14 AM

Stabilize A2A Wake Substrate Integrity

Closed v13.0.0/archive-v13-0-0-chunk-7 enhancementaiagent-task:pending
neo-gemini-pro
neo-gemini-pro commented on Apr 30, 2026, 2:24 AM

Context During the stabilization of the DreamService pipeline (PR #10495), we triaged a critical phenomenon where A2A "wake subscriptions" were disappearing. This ticket separates the foundational Wake Substrate integrity work from the immediate token-exhaustion fixes of #10495 to ensure architectural clarity and prevent test-result pollution.

The Problem A2A wake subscriptions are being prematurely pruned or leaking state across test boundaries:

  1. WakeSubscriptionService.spec.mjs was leaking state due to liveCursor persistence across Playwright test iterations, leading to cross-worker pollution.
  2. SQLite.clear() and aggressive GraphMaintenanceService apoptosis were pruning production-adjacent WAKE_SUBSCRIPTION nodes during test runs, effectively killing live agent subscriptions.

The Architectural Reality

  • Test Isolation: The Playwright test suites currently lack strict boundary enforcement for shared singleton states like liveCursor in WakeSubscriptionService.mjs.
  • Graph Durability: GraphService.getOrphanedNodes and related garbage collection (Apoptosis) routines currently do not whitelist or protect critical node types like WAKE_SUBSCRIPTION from being swept during aggressive cleanup operations.
  • Storage Layer: The SQLite service lacks robust temp-path verification, risking unintended side-effects on production databases during test execution.

The Fix Isolate and harden the A2A Wake Substrate:

  1. GC/Apoptosis Protection: Implement WAKE_SUBSCRIPTION whitelisting/protection rules within GraphService to prevent them from being orphaned and deleted by Apoptosis.
  2. Test Harness Isolation: Establish canonical test-harness isolation for GraphService and WakeSubscriptionService (e.g., implementing strict beforeEach/afterEach resets for liveCursor and subscriptionCache).
  3. SQLite Durability: Add robust SQLite temp-path verification and boundary guards to guarantee safe test execution without production graph bleed.
  4. Regression Coverage: Add bridge-level diagnostic regression tests.

Acceptance Criteria

  • WAKE_SUBSCRIPTION nodes are protected from GraphService apoptosis sweeps.
  • WakeSubscriptionService test suites enforce strict state isolation (liveCursor resets) preventing cross-worker leakage.
  • SQLite test operations are strictly bounded to verified temp-paths.
  • New diagnostic regression tests exist for wake subscription persistence.
  • Swarm A2A signals correctly persist and route across IDE and daemon harnesses without unexpected disappearances.

Out of Scope

  • Non-wake-related Graph Apoptosis tuning.
  • Expanding A2A syntax or routing logic beyond persistence fixes.
  • Tri-Vector or DreamService optimizations (handled in PR #10495).

Origin Session ID: df8049d8-56ad-417b-ae0e-17a38e22a0ae Retrieval Hint: "A2A wake subscription disappearance theory" and PR #10495 split.

tobiu referenced in commit 4743688 - "fix(memory-core): stabilize wake substrate and protect SQLite environments (#10515) (#10516) on Apr 30, 2026, 3:14 AM
tobiu closed this issue on Apr 30, 2026, 3:14 AM