Evidence-grounded analysis · multi-format ingestion
Universal AI Analyzer
A domain-neutral Python service that snapshots heterogeneous sources, extracts and profiles them deterministically, runs hierarchical source-grounded analysis, validates every cited source/chunk relationship, and renders bounded Telegram reports.
Architecture
Treat every source as untrusted evidence, not prompt context.
The system separates owner objective from source payload, gives every snapshot and chunk stable local identity, and validates source ownership before any referenced conclusion can leave the analysis boundary.
Source coverage
One analysis boundary across heterogeneous evidence.
The source matrix is deliberately explicit: supported formats are accepted through bounded parsers; unsupported visual/scanned inputs fail rather than being silently treated as readable evidence.
Text & code
Telegram text · local text/code/config files
Tables
CSV · TSV · XLS · XLSX · ODS
Documents
DOCX · PPTX · ODT · text-based PDF
Structured
JSON · JSONL · YAML · XML · HTML
Extended
EPUB · EML · Jupyter notebooks
Sheets · Docs
No OCR/Vision claim. The source is rejected instead of hallucinating content from an unreadable file.
Deterministic layer
Before the model reasons, the system computes what it can prove.
Table profiling is domain-neutral and deterministic, creating inspectable statistics that do not depend on generation quality.
Shape & completeness
Row and column counts, duplicates, missingness, and distinct-value counts.
Distribution signals
Ranges, mean, median, and IQR-based outlier detection after Western/Persian/Arabic numeric normalization.
Unknown stays unknown
Unresolved formulas are represented explicitly instead of being evaluated or fabricated.
Local identity
Stable source and chunk identifiers plus bounded snapshot byte counts and SHA-256 provenance.
LLM boundary
Generation is permitted one repair attempt, then the system fails closed.
Strict schemas reject extra fields; cited chunks must exist, belong to the cited source, and collectively cover the reviewed sources. One bounded semantic repair is allowed before rejection.
Hierarchical source-grounded synthesis
Map/reduce analysis can recursively reduce evidence while the owner objective remains serialized separately from untrusted source payload.
Source identity and report validity
The model cannot invent source IDs, cross source/chunk ownership boundaries, bypass full reviewed-source coverage, or emit unsafe Telegram markup.
Benchmark surface
What the system is designed to measure.
Analysis quality starts with source fidelity: unreadable, uncited, or ownership-invalid evidence must fail before synthesis is accepted.
Format matrices, malformed-input suites, source/chunk mutation tests, deterministic profiling fixtures, renderer fuzzing, and provider-failure replay.Evidence
Release evidence with promotion boundaries.
Failure contract
When evidence becomes unreadable or invalid, the analyzer stops before synthesis becomes fiction.
Unreadable source → reject. Scanned or unsupported content is never silently treated as extracted evidence.
Invalid source/chunk reference → reject. Citations must resolve to a real chunk owned by the cited source.
Malformed model output → one bounded repair. Schema repair is finite; repeated invalid generation fails closed.
Provider failure → no fabricated report. Analysis availability is allowed to fail without weakening source fidelity.