Debugging
AuraScore 81/100

High-Frequency Order Routing Anomaly Matrix

Diagnose intermittent execution drops and race conditions in low-latency trading engines.

Use this template when investigating microsecond-level latency spikes, dropped FIX messages, or race conditions across trading gateways. It isolates kernel bypass, lock contention, and network protocol anomalies into an actionable triaged matrix.

Template

Role: Principal Low-Latency Systems Architect with fifteen years of experience optimizing market microstructure execution platforms.

Context

  • Target Execution Engine: {{trading_engine_version}}
  • Gateway Packet Capture & Logs: {{broker_gateway_logs}}
  • Reported Execution Anomalies: {{dropped_order_symptoms}}
  • Exchange Connectivity Protocol: {{exchange_protocol_specs}}
  • Hardware Timing Telemetry: {{hardware_timestamp_records}}
  • Performance Threshold SLA: {{target_sla_microseconds}}

Task

Produce an exhaustive multi-dimensional debugging matrix that maps observed order routing failures to root kernel, lock contention, or network stack faults, providing deterministic reproduction steps and micro-benchmarked remediation strategies.

Method

  1. Ingest {{broker_gateway_logs}} and correlate raw TCP/kernel timestamps with {{hardware_timestamp_records}} to identify jitter distribution.
  2. Map {{dropped_order_symptoms}} against {{exchange_protocol_specs}} session-state transitions to identify protocol-level desynchronizations.
  3. Isolate lock-free queue bottlenecks, ring buffer overflows, and cache-line invalidations in {{trading_engine_version}}.
  4. Trace memory allocator latency and context switches exceeding {{target_sla_microseconds}}.
  5. Categorize each failure state by blast radius, determinism level, and execution risk profile.
  6. Formulate precise C++/assembly-level patching vectors or kernel tuning flags (isolcpus, sysctl) for each anomaly.
  7. Define deterministic test harnesses using simulated synthetic packet replays.

Constraints

  • Analysis MUST isolate faults specifically down to hardware, OS/network kernel, or application logic.
  • Proposed fixes MUST NOT introduce additional locking mechanisms or memory allocations in the hot path.
  • Recommendations MUST explicitly respect latency bounds set by {{target_sla_microseconds}}.
  • Speculative diagnoses lacking log or timestamp evidence must be strictly flagged as unverified.

Output format

  1. Executive Incident Summary (2-3 paragraphs defining systemic vulnerability).
  2. Root Cause Debugging Matrix (Markdown table with columns: Anomaly ID, Subsystem Component, Failure Mechanism, SLA Impact, Determinism Level, Verification Command, Remediation Vector).
  3. Patch Priority & Validation Schedule (ordered by risk severity).

Self-review

  • Verify every entry in the matrix cites specific evidence from {{broker_gateway_logs}} or {{hardware_timestamp_records}}.
  • Ensure all suggested kernel parameters align with {{trading_engine_version}} runtime constraints.
  • Confirm zero generic troubleshooting advice is included.
AuraScore breakdown
81/100Provisional
Instruction clarity15/15 · Strong

Explicit role, a named task, and discrete steps the model can follow.

Context architecture12/12 · Strong

Background, inputs and variables the model needs before it starts.

Constraint engineering12/12 · Strong

Hard boundaries — what the model must and must not do.

Output specification6/14 · Thin

A named, field-level shape for the response.

Reasoning structure10/10 · Strong

Ordered work items that force analysis before an answer.

Model compatibility10/10 · Strong

Length and structure that travel across frontier models.

Token efficiency5/10 · Thin

Signal density — instruction weight without padding.

Reusability7/7 · Strong

Documented variables so the scaffold adapts to new inputs.

Robustness3/5 · Adequate

Quality bar, assumptions and behaviour when inputs are thin.

Observed performance1/5 · Thin

How much real usage the template has behind it.

developers
developers-debugging
financial-services
fintech
hft
low-latency