March 26, 2026

Cleanup Phase: Finalizing Knowledge Store Migration

This batch focuses on finalizing the knowledge store consolidation and cleaning up residual references from the deleted legacy services

This batch focuses on finalizing the knowledge store consolidation and cleaning up residual references from the deleted legacy services.

Major services like UserTraitService, ProceduralMemoryService, and SemanticService have been deleted, along with associated skills and tests.

Migration 019 formally dropped several old tables including user_traits, semantic_concepts, semantic_relationships, and procedural_memory.

Cleanup involved fixing residual SQL queries in several services that referenced old column names, such as autobiography_service, contradiction_classifier, and goal_ecology.

The database service was modified to skip ALTER TABLE operations for the now-dropped tables to prevent crashes on existing installations.

Tests were updated across ten files to remove mocks for the decommissioned services and updated knowledge store references.

Scheduling logic in scheduler_skill.py was refactored to replace calls to datetime.fromisoformat() with a safer parsing routine using parse_utc().

An issue causing crashes on fresh installs (without legacy tables) in migrations 002 and 018 was resolved by adding CREATE TABLE IF NOT EXISTS stubs.

  • Deleted UserTraitService, ProceduralMemoryService, and SemanticService.

  • Migration 019 dropped user_traits, semantic_concepts, and related tables.

  • Fixed residual SQL queries referencing old column names like strength and domain.

  • Refactored scheduler_skill.py to replace datetime.fromisoformat() with parse_utc().

  • Added CREATE TABLE IF NOT EXISTS stubs to prevent migration crashes on fresh installs.

  • Updated 10 test files to remove mocks for deleted services.