QA + Agent Triage Pipeline#
This showcase targets maintainers of the host library running QA and AI-assisted triage.
Problem#
You need fast, reproducible diagnosis across many failures while keeping human review as the final decision point.
Pattern#
Run strict diagnostics in CI, export structured bundles, and triage by stable
keys (code, signal, fingerprint).
import smonitor
smonitor.configure(
profile="qa",
strict_signals=True,
strict_schema=True,
event_buffer_size=500,
)
pytest
smonitor export --out smonitor_bundle --max-events 500
Automation pipeline:
CI stores the bundle as an artifact.
Agent inspects
triage,normalized, andhuman_summary.Triage groups incidents by
code+fingerprint.If needed, compare against a previous bundle.
Agent proposes diagnosis and patch draft.
Maintainer reviews and merges only after tests pass.
Deterministic triage key#
For repeated incidents across runs, use the stable fingerprint already emitted
by SMonitor rather than rebuilding your own grouping key downstream.
This avoids brittle grouping by free text while keeping incidents comparable.
Why this works#
failures become comparable across runs and environments;
triage focuses on stable contracts, not brittle free text;
human ownership is preserved.
Where to apply#
nightly test pipelines;
release-candidate validation;
large issue backlogs with repeated incident classes.