Skip to content

Releases

Cortex-MCP v1.1.0 — Semantic & Polarity Contradiction Auditor & TruthGate Citation Exporter

Choose a tag to compare

@codesphere-u codesphere-u released this 07 Nov 12:43

Cortex-MCP v1.1.0 Release Notes

New Features

  1. Semantic & Polarity Contradiction Auditor (src/cortex_mcp/contradictions.py):
    • Scans active facts in BiTemporalMemoryGraph to detect unresolved logical contradictions:
      • Negation polarity inversions (allows_mtls vs disallows_mtls / does_not_*).
      • Opposing technical antonym objects (enabled vs disabled, encrypted vs plaintext, stateful vs stateless, synchronous vs asynchronous).
      • Predicate alias collisions (uses_token_format vs token_format vs auth_token).
      • Unsuperseded multi-value drift.
    • Emits a structured ContradictionAuditReport with severity ratings and supports auto_resolve=True to deterministically supersede older or lower-confidence conflicting facts.
  2. Grounded Citation Bundle Exporter for truthgate (src/cortex_mcp/grounding_export.py):
    • Exports compiled context packets or active graph items as a codesphere-u/truthgate-compatible SourceDocument JSON bundle (source_id = fact_id, title, content, metadata with temporal provenance and SHA-256 Merkle root graph_merkle_digest) for zero stale-fact leakage verification.
  3. CLI & MCP Server Extensions (cli.py, server.py, mcp_server.py):
    • CLI: cortex-mcp audit-contradictions [--auto-resolve] [--json] and cortex-mcp export-sources [--query ...] [--output sources.json].
    • MCP Tool: Added cortex_audit_contradictions to CortexMCPServer.
  4. Expanded Test Suite:
    • 84 passing pytest tests across Python 3.10, 3.11, and 3.12 (up from 67 in v1.0.0).

v1.0.0 — Initial Flagship Release

Choose a tag to compare

@codesphere-u codesphere-u released this 07 Nov 10:56

Initial stable release of cortex-mcp: Local-First Bi-Temporal Knowledge Graph, Cross-Agent Persistent Memory & Token-Budgeted Context Compiler MCP Server for AI Coding Agents.

Highlights

  • Bi-Temporal Knowledge Graph (BiTemporalMemoryGraph): Automatic conflict detection and temporal supersession (valid_from, valid_until, superseded_by), K-hop ego-graph traversal, point-in-time historical queries, and SHA-256 Merkle integrity verification.
  • Hybrid BM25 + 2-Hop Graph Spreading Activation (ContextCompiler): Strict token-budgeted context packing with 100% stale-fact suppression.
  • Standards-Compliant JSON-RPC 2.0 MCP Server (CortexMCPServer): Full stdio and in-memory transport with 6 tools, 3 resources, and 2 prompt templates.
  • 67 Passing Pytest Tests across Python 3.10, 3.11, and 3.12.