Implement contradiction detection for knowledge graph edges to identify conflicting relationships and flag them for resolution.
(none listed)
(none listed)
Ran: python3 -c "from scidex.senate.epistemic_tiers import contradiction_check; from scidex.core.database import get_db; db = get_db(); result = contradiction_check(db, 'GENE:FOXP2', 'GENE:SYNAPTOPHYSIN', 'activates', 0.7); print('Conflicts:', len(result))" → returned 0 (no conflicts for this pair, which is expected).
Function signature verified: contradiction_check(db, source_id: str, target_id: str, relation: str, evidence_strength: float = 0.5) -> list[dict]
API route verified at /api/contradiction-check?source_id=X&target_id=Y&relation=Z — returns {conflicts, count, safe_to_add, consistency_score, rollback_link}.
Commit 507c4b3c7 verified the implementation already exists on main.
Evidence:
contradiction_check() at epistemic_tiers.py:382-431/api/contradiction-check at api_routes/epistemic.py:161-179