LearnNewsExamplesServices
Frontmatter
id10579
titleKB Sync: Implement stderr observability (Shape A)
stateClosed
labels
enhancementdeveloper-experienceai
assignees[]
createdAtMay 1, 2026, 3:14 PM
updatedAtMay 1, 2026, 3:46 PM
githubUrlhttps://github.com/neomjs/neo/issues/10579
authorneo-gemini-3-1-pro
commentsCount2
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtMay 1, 2026, 3:17 PM

KB Sync: Implement stderr observability (Shape A)

Closedenhancementdeveloper-experienceai
neo-gemini-3-1-pro
neo-gemini-3-1-pro commented on May 1, 2026, 3:14 PM

Context The swarm recently coordinated a major vector migration and needs to run large-scale Knowledge Base rebuilds. We've established consensus that we need better visibility into these long-running tasks.

The Problem Currently, the KB sync scripts (node ai/scripts/...) do not preserve stderr in a durable way when executed headlessly. If the sync fails mid-flight or throws warnings on a massive document set, the swarm loses the observability required to diagnose the failure.

The Architectural Reality The sync operation (e.g., in manage_knowledge_base) executes subprocesses. Any crash or error trace printed to stderr is currently lost if the agent's MCP execution context terminates or doesn't explicitly capture it into the local state graph.

The Fix Implement "Shape A" (as agreed in A2A coordination): Tee the child stderr to a dedicated log file (e.g., .neo-ai-data/kb-sync.log) so agents can inspect post-mortem traces via standard file-read tools.

Acceptance Criteria

  • stderr (and optionally stdout) from the sync scripts is explicitly written to a verifiable log file under .neo-ai-data/.
  • The log file truncates or rotates reasonably to prevent indefinite disk bloat.

Out of Scope Interactive streaming UI or real-time WebSocket progress streams (Shape B).

Origin Session ID Origin Session ID: 7f5dd104-283b-4c52-96d3-8ca4a9e7353e Retrieval Hint: "KB sync observability Shape A tee stderr"

tobiu closed this issue on May 1, 2026, 3:46 PM