← Back to Console

AELTL Data Coherence Rules

This document defines the coherence rules AELTL checks during schema detection, validation, cleansing, and denormalization preflight.

It is intended as the shared reference for product behavior (UI warnings/errors), API outputs (report JSON), and testing expectations.

Rule Contract

Canonical rule IDs live in eltl/lib/contract.js.

Cohesion and Coherence Checks

1) Validation Errors (blocking)

Source: eltl/lib/batch-loader.js

2) Cleansing Warnings (non-blocking)

Source: eltl/lib/cleanse.js

Sampling behavior:

Rules:

3) Denormalization Preflight Coherence Warnings

Source: eltl/lib/denorm-preflight-report.js

Primary key integrity:

Join-key and relationship integrity:

4) Rule Safety and Parse-Failure Warnings

Source: eltl/lib/batch-loader.js

Used to prevent unsafe or low-confidence auto-fixes from silently mutating data.

Expected User Experience

Remediation Priority

  1. Resolve schema blockers (no_such_property, hard type_mismatch categories).
  2. Resolve locale/date ambiguity before broad casts (date_parse, number_parse).
  3. Resolve join integrity issues before denorm materialization.
  4. Apply normalization improvements (email/url/phone) for long-term consistency.

Change Process

  1. Update IDs in eltl/lib/contract.js.
  2. Implement detector/validator logic in the relevant module.
  3. Add/adjust tests in eltl/tests.
  4. Update this document so product, engineering, and QA stay aligned.