Expand description
Deterministic, source-agnostic reduction of compiler, test, and tool text.
The crate performs no I/O and has no async, provider protocol, storage, or runner dependency. Callers provide already acquired text and an explicit redaction policy; only normalized and redacted diagnostics are returned.
Structs§
- Budget
- Combined item and serialized-finding byte limits.
- Builtin
Diagnostic Parser - Bounded bridge from incremental normalized lines to the built-in parser registry. Individual language parsers retain their deterministic prepass and line-arbitration order while callers gain chunk-invariant session framing.
- Builtin
Parser Options - Fixed options for the built-in parser pack in a streaming session.
- Diagnostic
- One normalized and redacted diagnostic.
- Emitter
- Bounded parser output sink. Contextual provenance is supplied by the engine.
- Generic
Ranker - Generic ranking prefers compiler, test, lint, infrastructure, then tool diagnostics and uses parser-emitted evidence quality instead of message substring heuristics.
- Java
Script Test Diagnostic Parser - Stateful extractor for Node.js exceptions and their application frames.
- Java
Test Diagnostic Parser - Stateful extractor for Java exceptions followed by JVM stack frames.
- Limits
- Hard bounds for incremental input and candidate retention.
- Location
- Optional source coordinate extracted from diagnostic text.
- LogLine
- One normalized input line delivered to an immutable parser plan.
- NoPath
Mapping - Identity path policy used by generic CLI and CI consumers.
- NoRedaction
- Explicit identity redactor for already-sanitized or non-sensitive inputs.
- Output
Policy - Output transformations and ranking shared by batch and streaming callers.
- Parser
Plan - Immutable ordered set of trusted native parsers.
- Provenance
- Caller and state-machine provenance for one returned finding.
- Python
Diagnostic Parser - Stateful extractor for standard Python traceback and syntax-error output.
- RankKey
- Stable typed rank key; lower values are retained first.
- Reduction
- Bounded result and explicit truncation accounting.
- Reduction
Options - Stable options for one synchronous batch reduction call.
- Reduction
Session - Incremental, chunk-invariant reduction session.
- Reduction
Stats - Accounting that never contains raw input text.
- Scope
- Caller-owned identity for one independently bounded parser scope.
- Session
Options - Options for an incremental reduction session.
- Test
Failure - Structured failed-test evidence independent of a particular test provider.
- Test
Failure Accumulator - Streaming, bounded extraction of concrete failed-test evidence from test logs.
- Test
Failure Evidence - Test
LogReducer - Streaming, bounded orchestration of language and framework test-log parsers.
- Test
LogReduction - Provider-neutral output for one or more test-log segments.
- Text
Input - Borrowed text plus optional owned output provenance.
Enums§
- Diagnostic
Class - Provider-neutral diagnostic family used by presentation adapters.
- EndReason
- Why a parser scope ended.
- Evidence
Quality - How directly a finding is supported by the observed evidence.
- Fallback
Policy - Controls whether unclaimed actionable lines may become tool diagnostics.
- Parser
Plan Error - Invalid immutable parser-plan construction.
- Scope
Boundary - Parser lifecycle notification for a caller-owned scope.
- Scope
Kind - Provider-neutral unit that owns a related log stream.
- Severity
- Severity assigned by a parser or structured-input adapter.
- Stream
- Input channel within a scope.
Traits§
- Parser
- Deterministic, synchronous parser contract.
- Path
Mapper - Pure provider-supplied path normalization performed before redaction.
- Ranker
- Provider-selectable ranking policy that never inspects raw log state.
- Redactor
- Infallible transformation applied to every untrusted returned string.
Functions§
- builtin_
parser_ plan - Creates the immutable, versioned built-in parser order.
- deduplicate_
lines - Exact line deduplication that preserves first-seen order.
- normalize_
terminal_ text - Removes terminal control sequences and normalizes progress redraws to lines.
- parse_
go_ diagnostic - Parses the standard Go compiler location form without depending on a particular diagnostic message or language setting.
- reduce
- Reduces one or more text inputs with deterministic parser and input order.
- reduce_
with_ policy - Reduces batch inputs with caller-owned path mapping, redaction, and ranking.