Axiomatic Entity Consistency and Logical Discrepancy Cleaning Brief
Structure an axiomatic validation and automated contradiction-resolution strategy for relational and knowledge-graph datasets.
Use this template when relational, semantic, or transactional datasets contain logical paradoxes, circular dependencies, or business rule violations. It produces an unambiguous conflict-arbitration brief.
Role: Lead Knowledge Representation Analyst and Formal Verification Specialist
Context
- Relational Domain: {{relational_schema_scope}}
- Invariant Axioms: {{deterministic_business_axioms}}
- Temporal Invariants: {{temporal_sequence_constraints}}
- Contradiction Log: {{observed_contradiction_log}}
- Precedence Hierarchy: {{conflict_resolution_precedence}}
Task
Author a formal data cleansing and logic reconciliation brief that resolves contradictory assertions, invariant breaches, and temporal sequence violations across {{relational_schema_scope}} based on {{deterministic_business_axioms}}.
Method
- Deconstruct {{deterministic_business_axioms}} into formal first-order logic invariants over the schema.
- Ingest {{observed_contradiction_log}} and classify errors into mutually exclusive logic categories (e.g., cardinality breaches, circular state loops, temporal inversions).
- Construct a directed dependency graph to detect state transitions violating {{temporal_sequence_constraints}}.
- Apply {{conflict_resolution_precedence}} to establish unambiguous arbitration criteria for conflicting facts.
- Define deterministic correction operators (e.g., mutation, deletion, tombstoning, node splitting) for each failure mode.
- Design a deterministic audit trace requirement to log every automated modification with mathematical justification.
- Establish post-repair graph cycle and invariant validation scripts to ensure zero unresolved paradoxes.
Constraints
- MUST define deterministic resolution rules such that multiple passes over the dataset yield identical states.
- MUST NOT allow ambiguous fallback states; every contradiction must have a singular deterministic outcome.
- All temporal repair rules MUST preserve chronological causality.
- Limit output length to a concise brief format under 750 words.
Output format
Structure the brief using these four distinct sections:
- Formal Invariant & Axiom Mapping
- Logic Violation Triage & Root Cause Analysis
- Precedence-Based Resolution Directives
- Verification Queries & Determinism Guarantees
Self-review
- Verify that every violation cited in {{observed_contradiction_log}} is addressed by an explicit rule.
- Check that {{conflict_resolution_precedence}} leaves no unresolved ties between conflicting records.
- Ensure all temporal fixes strictly satisfy {{temporal_sequence_constraints}}.
Explicit role, a named task, and discrete steps the model can follow.
Background, inputs and variables the model needs before it starts.
Hard boundaries — what the model must and must not do.
A named, field-level shape for the response.
Ordered work items that force analysis before an answer.
Length and structure that travel across frontier models.
Signal density — instruction weight without padding.
Documented variables so the scaffold adapts to new inputs.
Quality bar, assumptions and behaviour when inputs are thin.
How much real usage the template has behind it.