mcp_fact_graph 0.2.1
mcp_fact_graph: ^0.2.1 copied to clipboard
Temporal knowledge graph with evidence-based fact management, candidate confirmation, and automatic summarization for the MCP ecosystem.
0.2.1 - 2026-05-04 - Microsecond consistency overlap #
Fixed #
ConsistencyChecker._periodsOverlapnow flags overlap iff two facts share the sameoccurredAtinstant to the microsecond. Previously the helper reduced both timestamps to calendar-day precision, which caused every same-day, same(entity, factType)record to be reported as a triple-mismatch conflict regardless of the actual time gap. Point-in-time lifecycle records (e.g.,agent.fork.assignedmirrors emitted by host runtimes) can now be ingested withenableConsistencyCheck: truewithout spurious conflicts.
Dependencies #
mcp_bundle: ^0.3.1— additive; no behavioral change for existing call sites.
0.2.0 - 2026-04-28 - Standard Ports & Domain Expansion #
Added #
- Standard port adapters under
src/adapters/implementingmcp_bundleContract Layer (capability-named ports). UnifiedStoragePortconsolidating per-domain storage.- L1 FactGraph domain entities — artifact, automation, classification, fact_cluster, fact_policy, relation, run, skill_run.
- LLM-call-reduction domain entities — extraction rules / validators, classifier memory, disambiguation decisions, LLM call log, idempotency records.
- Claim signal entity bridging L2 ContextOps and L3 SkillOps.
- Response validation entity.
Changed #
- Domain entities reorganized into the 4-layer (L0 Evidence, L1 FactGraph, L2 ContextOps, L3 SkillOps) architecture.
- New dependency:
mcp_bundle ^0.3.0.
Removed #
- Legacy per-domain
EvidencePortandevententity — replaced by Contract Layer ports andUnifiedStoragePort.
0.1.1 Dependency Update #
0.1.0 Initial Release #
Added #
Core Features
-
Temporal Knowledge Graph
Factmodel with domain, category, value, and temporal scopeEvidencemodel for source data with confidence scoresCandidatemodel for pending facts awaiting confirmationClaimmodel for skill execution assertions
-
Fact Graph Service
FactGraphServiceas the main entry point- Evidence ingestion and processing
- Candidate creation and confirmation workflow
- Fact querying with domain, entity, and temporal filters
-
Context Bundles
ContextBundlefor complete entity context retrieval- Facts, summaries, and recent claims aggregation
- Optimized for LLM consumption
-
Port-Based Architecture
FactStoragePortfor fact persistenceEvidenceStoragePortfor evidence storageCandidateStoragePortfor candidate managementEntityStoragePortfor entity dataEventStoragePortfor event sourcingViewStoragePortfor materialized views
-
In-Memory Implementations
- Complete in-memory storage implementations for testing
- Thread-safe operations with proper isolation
Storage Ports #
FactStoragePort- CRUD operations for factsEvidenceStoragePort- Evidence managementCandidateStoragePort- Candidate lifecycleEntityStoragePort- Entity metadataEventStoragePort- Event sourcing supportViewStoragePort- Materialized views
Data Models #
Fact- Confirmed knowledge with temporal validityEvidence- Source data with metadataCandidate- Pending facts with confidenceClaim- Skill execution assertionsEntity- Entity metadata and summariesContextBundle- Aggregated entity context