Sync

Synchronize [[WikiLink]] concepts from memory files into the knowledge graph database, building searchable concept relationships and enabling graph-based operations. This tool extracts all [[concepts]] from your memory files, analyzes their co-occurrence patterns, and constructs the SQLite-based knowledge graph that powers BuildContext, Visualize, and enhanced SearchMemories functionality.

When to Use This Tool

Key Features

Parameters

ParameterTypeRequiredDescriptionExample
(none)--Sync takes no parameters - operates on entire memory system{}

Usage Examples

Basic Graph Synchronization

{}

Rebuilds the complete knowledge graph from all memory files, extracting concepts and building relationships.

After Content Creation Session

{}

Run after creating multiple memory files to ensure all new [[concepts]] are indexed and connected in the graph.

System Maintenance

{}

Performs comprehensive sync including session cleanup, relationship analysis, and search index updates.

Sync Process Details

Phase 1: Session Cleanup

Phase 2: Concept Extraction

Phase 3: Graph Construction

Phase 4: Content Indexing

Database Schema

Core Tables

Graph Relationships

Common Patterns

After Bulk Content Creation

Run Sync after creating multiple related memory files to ensure all new concept relationships are properly indexed and searchable.

Before Graph Operations

Always sync before using BuildContext or Visualize to ensure you’re working with current data reflecting recent file changes.

Periodic Maintenance

Run Sync periodically as part of system maintenance to clean up abandoned sessions and optimize graph structure.

After External Changes

If memory files are modified outside Maenifold tools, run Sync to ensure graph database reflects current file state.

Performance Optimization

Sync rebuilds indexes and optimizes database structure, improving performance of subsequent graph operations.

Performance Considerations

Rebuild Strategy

Sync performs complete graph rebuild rather than incremental updates to ensure consistency and prevent drift between file system and database state.

Transaction Management

All database operations occur within single transaction to maintain ACID properties and enable rollback on errors.

File Processing

Database Optimization

Troubleshooting

Error: “Database locked” during sync

Cause: Another Maenifold operation is accessing the database
Solution: Wait for concurrent operations to complete, then retry sync

Warning: “No concepts found in files”

Cause: Memory files lack [[WikiLink]] concepts in double brackets
Solution: Ensure files contain [[concept]] references for graph connectivity

Error: “Permission denied accessing memory directory”

Cause: File system permissions prevent reading memory files
Solution: Check directory permissions and file access rights

Performance: Sync taking too long

Cause: Large number of files or complex concept relationships
Solution: Normal for large knowledge bases; sync runs in background and reports progress

Warning: “Abandoned sessions detected”

Cause: Workflow or sequential thinking sessions left active too long
Solution: Normal cleanup behavior; abandoned sessions marked automatically

Error: “Failed to parse YAML frontmatter”

Cause: Malformed frontmatter in memory files
Solution: Check file formatting; Sync continues processing other files

Knowledge Graph Architecture

Concept Normalization

All [[concepts]] are normalized to lowercase with spaces converted to hyphens for consistent storage and lookup.

Relationship Weight Calculation

Co-occurrence strength determined by number of files containing both concepts, enabling relevance-based graph traversal.

File Provenance

Every concept relationship maintains list of source files, providing traceability and context for graph connections.

Temporal Information

Concepts track first-seen timestamps, and files maintain creation/modification times for temporal analysis.

Ma Protocol Compliance

Sync follows Maenifold’s Ma Protocol principles:

This tool maintains the knowledge graph foundation that enables Maenifold’s graph-augmented retrieval and relationship discovery capabilities.