Skip to content

🐛 [Bug]: Knowledge Base losing knowledge #252

@itsjeremyjohnson

Description

@itsjeremyjohnson

Archon Version

0.0.0

Bug Severity

🟢 Low - Minor inconvenience

Bug Description

When multiple knowledge crawls of different types run simultaneously (observed with 5 total concurrent crawls: 2 GitHub repositories + 3 other sources), database race conditions cause knowledge items to have their titles/descriptions swapped between different sources, and user-renamed items permanently disappear with their custom titles being applied to unrelated knowledge sources.

Steps to Reproduce

Start multiple mixed knowledge crawls simultaneously (5 total: 2 GitHub repos + 3 other sources)
While crawls are running, rename any existing knowledge item to a custom title
Let crawls finish at different times (GitHub crawls completing separately, other crawls finishing concurrently)
Observe results in knowledge management interface

Expected Behavior

Each crawl should update only its own knowledge source regardless of type
Renamed knowledge items should retain their custom titles
All knowledge items should remain intact with proper source associations
Mixed crawl types should not interfere with each other's data

Actual Behavior

Original renamed knowledge item completely disappears from the system
Custom title from disappeared item gets randomly applied to different knowledge sources
Titles and descriptions get shuffled/swapped between unrelated sources (both GitHub and non-GitHub)
Data corruption occurs when mixed crawl types finish in overlapping time windows

Error Details (if any)


Affected Component

🔍 Knowledge Base / RAG

Browser & OS

macOS Sequoia

Additional Context

No response

Service Status (check all that are working)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

Status
Done (In Stable)

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions