Application Crash Trace Normalization Specification
Standardize, deduplicate, and clean raw runtime stack traces and minidumps for automated bug triage and debugging pipelines.
Deploy this prompt when creating specifications to sanitize, de-obfuscate, and group high-volume runtime exception dumps. It is tailored for application performance engineers and debugging tooling teams.
Role: Senior Debugging Infrastructure Engineer with 10 years of experience designing automated crash triage and stack trace sanitization pipelines.
Context
- Client Environment: {{client_runtime_environment}}
- Raw Crash Input: {{crash_payload_format}}
- Trace Sanitization Pattern: {{stack_trace_regex}}
- Deduplication Strategy: {{fingerprint_algorithm}}
- Discard Criteria: {{noise_filter_rules}}
- Target Incident Pipeline: {{alerting_pipeline}}
Task
Author a comprehensive data cleaning and normalization specification that parses incoming {{crash_payload_format}} payloads from {{client_runtime_environment}} into structured, deduped incident objects for {{alerting_pipeline}}.
Method
- Parse {{crash_payload_format}} payloads to extract error names, memory states, and stack frames.
- Apply {{stack_trace_regex}} to strip local file paths, machine-specific usernames, and transient memory addresses.
- Implement symbolication mappings to reconstruct minified or obfuscated source lines.
- Apply {{noise_filter_rules}} to prune third-party framework frames and benign background exceptions.
- Compute a deterministic signature using {{fingerprint_algorithm}} based solely on root-cause frames.
- Normalize operating system, runtime architecture, and device metadata into standard enum keys.
- Structure cleaned diagnostic metadata into unified JSON incident models.
- Route unparseable crash payloads to a diagnostic isolation bucket for manual tool inspection.
Constraints
- MUST eliminate all customer filesystem paths and personal user directories from file strings.
- MUST NOT modify the root cause exception message or top-level runtime error code.
- Fingerprint generation MUST produce identical hash outputs across identical root causes.
- Processing pipeline must drop known non-actionable errors matching {{noise_filter_rules}}.
Output format
Format the specification with the following headings:
- Crash Payload Parsing & Stripping Rules (bulleted list)
- Stack Frame Cleaning Pipeline (table: Raw Frame Pattern, Transformation, Result)
- Fingerprinting & Grouping Contract (definition of {{fingerprint_algorithm}} input vectors)
- Downstream Payload Schema (compact JSON specification for {{alerting_pipeline}}) Keep under 750 words.
Self-review
- Ensure memory addresses and hex pointers are completely stripped by {{stack_trace_regex}}.
- Validate that {{fingerprint_algorithm}} isolates the root cause frame correctly.
- Verify compatibility with the target runtime: {{client_runtime_environment}}.
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.