Universal Knowledge Assimilation Engine¶
CONCEPT:AU-KG.research.research-pipeline-runner — Universal Knowledge Assimilation
The "Master Control Program" for autonomous self-evolution. A unified pipeline that discovers, classifies, ingests, and evolves agent-utilities from ALL incoming knowledge sources.
Overview¶
The Knowledge Assimilation Engine extends the existing agent-utilities-evolution
skill (which is pull-based — scans ScholarX for papers) with a push-based
pathway where any high-signal content from ANY source automatically triggers the
evolution loop.
How It Works¶
graph TD
A["Content Sources"] --> B["UniversalKnowledgeClassifier"]
B --> C{Evolution Potential ≥ 0.6?}
C -->|Yes| D["EvolutionCandidateNode\ncreated in KG"]
D --> E["graph-ingestion-and-integration\n(graph-os SKILL)"]
E --> F["comparative-analysis\n(SKILL)"]
F --> G{Actionable Gaps?}
G -->|Yes| H["SDD Plan Generated"]
H --> I{Auto-Execute?}
I -->|No| J["Present for Review"]
I -->|Yes| K["sdd-implementer"]
K --> L["DistillationEngine\nDistill new skill/prompt"]
L --> M["github-mcp\nPR to universal-skills"]
C -->|No| N["Standard KG Persist"]
subgraph "Content Sources"
S1["X Search\n(x_search tool)"]
S2["ScholarX\n(research papers)"]
S3["GitHub Trending\n(github-mcp)"]
S4["Documents\n(manual ingestion)"]
end
Agent Composition (Pydantic Graph Flow)¶
| Agent | MCP Tools | Role |
|---|---|---|
| Scout | x_search, scholarx_sx_search, github-mcp |
Discovers content from X, arXiv, GitHub trending |
| Classifier | graph_search, graph_query |
Scores with UniversalKnowledgeClassifier against KG context |
| Ingester | graph_ingest, graph_write |
Persists to KG with proper node type + edges |
| Analyst | graph_analyze |
Runs comparative-analysis against agent-utilities |
| Implementer | graph_write, github-mcp |
Generates SDD plans, optionally runs + PRs |
| Distiller | graph_write |
Distills successful patterns into reusable skills/prompts |
Push vs Pull Evolution¶
| Dimension | Pull (agent-utilities-evolution) | Push (knowledge-assimilation) |
|---|---|---|
| Trigger | Cron (every 60 min) or manual | Incoming content with high evolution potential |
| Sources | ScholarX papers only | X, ScholarX, GitHub, documents, memories |
| Classifier | Dynamic scorer (keyword-based) | UniversalKnowledgeClassifier (LLM-backed) |
| KG Node | ResearchTopic |
EvolutionCandidateNode |
| Output | SDD plan only | SDD plan + distilled skills + PRs |
Both pipelines share the same downstream tools: comparative-analysis,
sdd-implementer, DistillationEngine.
Content Source Details¶
X Search (via xAI Responses API)¶
- Tool:
x_searchwithgrok-4.3model - Signal types: Trending AI/ML discussions, framework announcements, quantitative analysis threads
- Auto-ingest:
browse_x_post(url, auto_ingest=True)pipes through classifier - Article handling: Long-form X Articles fetched via browser →
KBIngestionEngine.ingest_url()(full KB document processing)
ScholarX (via scholarx-mcp)¶
- Tool:
mcp_scholarx-mcp_sx_searchwithaction="recent" - Categories: cs.AI, cs.MA, cs.CL, cs.SE
- Signal types: New research papers, preprints, review articles
- Scoring:
dynamic_scorer.pyfrom research-scanner skill
GitHub Trending (via github-mcp)¶
- Tool:
mcp_github-mcp_githubwith repository search - Signal types: Top repos of the day, starred projects, emerging frameworks
- Strategy: Clone → ingest → comparative-analysis against agent-utilities
KG Memory Review¶
- Tool:
graph_queryfor pendingEvolutionCandidateNodenodes - Signal types: Previously ingested content that hasn't been processed
Self-Evolution Feedback Loop¶
- Scout discovers content (X, ScholarX, GitHub)
- Classifier determines evolution potential against KG topics
- If high potential: Ingester persists + creates
EvolutionCandidateNode - Analyst runs
comparative-analysisto detect gaps in agent-utilities - Implementer generates SDD plan with constitution-mandated artifacts
- Optionally auto-runs → creates skill/prompt → PRs to universal-skills
- Logs
EvolutionCyclenode in KG for tracking and momentum - Distiller distills successful patterns as reusable workflow templates
Configuration¶
All configuration is managed via XDG-compliant paths:
~/.config/agent-utilities/config.json # Model registry, API keys
secret://oauth/<provider> # Runtime reference into the configured backend
Environment Variables:
| Variable | Default | Description |
|---|---|---|
KG_EVOLUTION_INTERVAL |
3600 |
Evolution scheduler-tick cycle (seconds), read by _tick_evolution in engine_tasks.py |
XAI_API_KEY |
(none) | Fallback API key if OAuth unavailable |
Note:
EVOLUTION_AUTO_EXECUTEandEVOLUTION_MIN_POTENTIALare not currently read by the engine; auto-run and minimum-potential gating are decided by theagent-utilities-evolutionskill rather than environment variables.
Related Components¶
- x-assistant.md — X search/browse tools and social ingestion
- knowledge-graph.md — Ingestion engine, distillation
agent-utilities-evolution— consolidated evolution workflowcomparative-analysisskill — feature extraction provided by the configured skill source- ontology_concepts.ttl — canonical OWL concept schema used by ingestion