PromptBase
PromptBase SelectGet Select
Close icon
General
Home
Marketplace
Create
Hire
Login
Chat
Sell
Explore

Prompt Details

Model
Chat - (gpt-5.6)
Token size
3,530
Example input
[List bugs, defects, incidents, vulnerabilities, performance problems, technical debt, reliability issues, or other fixes]: ISS-101: Payment succeeds at gateway, but order sometimes remains Pending. ISS-102: Duplicate webhook creates duplicate order records. ISS-103: Admin dashboard shows incorrect payment status for some orders. ISS-104: Webhook processing becomes slow during traffic spikes. ISS-105: Failed webhook events are only logged; there is no automatic retry. [Describe the software, architecture, users, critical workflows, environments, and business purpose]: E-commerce platform Node.js API + PostgreSQL Stripe payment gateway Approximately 8,000 orders/day Payment webhook is responsible for confirming orders and updating payment status Production system with customer-facing checkout [Provide affected users, frequency, traffic, revenue exposure, customer complaints, incident history, error rates, performance data, or other evidence]: Around 1-2% of successful payments occasionally remain Pending Duplicate orders have occurred 7 times in the last month Customer support receives payment-status complaints Webhook latency increases significantly during peak traffic No confirmed data loss [Describe workarounds, temporary fixes, known root causes, proposed fixes, dependencies, previous attempts, and current mitigations]: Support team manually updates affected orders Engineers can manually replay webhook events Duplicate prevention is not currently enforced at the database level Retry mechanism has been discussed but not implemented [Specify whether you need a priority matrix, backlog ordering, remediation roadmap, sprint plan, triage report, or complete prioritization analysis]: Complete prioritization analysis Root-cause relationships Fix sequence Validation plan Engineering roadmap
Example output
1. Executive Summary The backlog contains a combination of payment-state inconsistency, duplicate processing, dashboard inconsistency, webhook performance, and missing retry capability. The available evidence suggests that the most important technical investigation should focus on the webhook processing path and idempotency behavior, because multiple reported symptoms may originate from weaknesses in webhook handling. However, the evidence does not yet prove that all five issues share a single root cause. The immediate engineering objectives should be: Prevent duplicate order creation. Ensure successfully paid orders reliably reach the correct state. Establish reliable webhook retry/recovery behavior. Improve observability around webhook failures. Address peak-load latency after the failure modes are understood. Validate payment-state transitions before expanding the fix. --- 2. Normalized Issue Inventory Issue Category Environment Symptom Known Cause Evidence Workaround Dependencies ISS-101 Reliability / Integration / Data Integrity Production Paid order remains Pending Unknown 1-2% of successful payments affected Manual status update / webhook replay Webhook processing ISS-102 Data Integrity / Functional Defect Production Duplicate order created Missing confirmed idempotency control 7 incidents in one month Manual cleanup Order creation + webhook handling ISS-103 Functional / UX Production Dashboard payment status incorrect Unknown Customer/support reports Manual verification Payment status source ISS-104 Performance / Reliability Production Webhook processing becomes slow Unknown Latency increases during peak traffic None documented Webhook architecture ISS-105 Reliability / Operational Weakness Production Failed webhook has no automatic retry Missing retry mechanism Confirmed from system behavior Manual replay Webhook failure handling Evidence Classification Confirmed: Production impact, 1-2% pending-payment occurrence, 7 duplicate-order incidents, missing automatic retry. Unknown: Exact root cause of ISS-101, ISS-103 and ISS-104. Not established: Security vulnerability, confirmed data loss, single common root cause. --- 3. Impact Analysis ISS-101 Affected users: Customers whose payment succeeds but whose order remains pending. Business impact: Potential order fulfillment delay and increased customer-support workload. Evidence strength: Measured occurrence is available: approximately 1-2%. The actual number of affected customers and revenue exposure has not been provided. Impact classification: High customer-facing impact, but exact business magnitude remains uncertain. --- ISS-102 Affected users: Customers whose payment processing results in duplicate order creation. Potential consequences: Duplicate fulfillment Inventory inconsistencies Manual cleanup Customer confusion Potential financial reconciliation problems Seven incidents were documented in one month. The actual financial consequence is not provided. --- ISS-103 The dashboard displays an incorrect payment status. The impact depends on whether this is: Merely a UI display problem A reporting problem A reflection of incorrect underlying payment state Further investigation is required. --- ISS-104 Peak-load latency may affect webhook processing reliability. The provided evidence confirms latency increases, but does not provide: P95 latency P99 latency Timeout rate Queue depth Failure rate during spikes Therefore the full blast radius cannot yet be quantified. --- ISS-105 The lack of automatic retry increases the probability that transient webhook failures remain unresolved. This issue also increases operational burden because engineers/support staff must manually replay events. --- 4. Severity & Urgency Analysis Issue Severity Urgency Reason ISS-101 High High Successful payments can remain unresolved and affect fulfillment ISS-102 High High Duplicate orders create data/business integrity risk ISS-103 Medium Medium Incorrect status can mislead users/admins, but underlying cause is unknown ISS-104 Medium-High Medium-High Peak-load degradation may amplify webhook failures ISS-105 High High Failed events lack automated recovery Important distinction ISS-104 may have significant severity if it causes webhook failures, but the current evidence does not establish that relationship. ISS-105 is urgent because it removes an important recovery mechanism even if individual webhook failures are transient. --- 5. Security & Data Risk Analysis ISS-101 Confidentiality: No evidence of impact Integrity: Potential payment/order-state inconsistency Availability: Indirect impact Authentication: No evidence Authorization: No evidence Classification: Security-relevant data integrity concern, not a confirmed security vulnerability. ISS-102 The primary concern is data integrity. Duplicate order creation could produce inconsistent order and inventory state. Classification: Data integrity risk. ISS-103 No confirmed security dimension. ISS-104 No confirmed security dimension. ISS-105 No confirmed security vulnerability. However, webhook authenticity and signature verification should be confirmed during investigation because payment webhooks are security-sensitive integration points. --- 6. Dependency & Root-Cause Map A possible relationship is: Payment Gateway | v Webhook Received | v Webhook Processing | +----> Idempotency Handling ----> Duplicate Orders | +----> Payment State Update ----> Orders Remaining Pending | +----> Failure Handling ---------> Missing Recovery | +----> Performance --------------> Peak-Latency Problems This is a hypothesis, not a confirmed root-cause map. Potential root-cause candidates Missing or inadequate idempotency Non-atomic payment/order state transition Webhook processing timeout Failure during database transaction Missing retry mechanism Insufficient queueing or asynchronous processing These require technical investigation before being treated as confirmed causes. --- 7. Remediation Complexity Analysis Issue Complexity Reason ISS-101 Medium-High Payment-state flow requires integration and regression testing ISS-102 Medium Idempotency/database protection may require schema and transaction changes ISS-103 Low-Medium Could be a presentation-layer issue, but root cause is unknown ISS-104 High Performance investigation may require architectural analysis ISS-105 Medium Retry mechanism requires failure handling and operational safeguards No precise engineering hours are estimated because insufficient evidence is available. --- 8. Regression Risk Analysis ISS-101 Fix risk: High Payment-state changes affect a critical business workflow. Required safeguards: Payment integration tests Transaction tests Replay testing Rollback plan Production monitoring ISS-102 Fix risk: Medium-High Database uniqueness/idempotency changes could affect existing order-processing behavior. Validation should include: Repeated webhook delivery Concurrent webhook delivery Previously processed events Failed transaction recovery ISS-103 Fix risk: Medium Depends on whether the dashboard is reading incorrect source data or merely rendering it incorrectly. ISS-104 Fix risk: High Performance changes can affect concurrency, queue behavior and database load. ISS-105 Fix risk: Medium Automatic retries can accidentally create repeated processing unless idempotency is handled correctly. This creates an important dependency: Retry mechanism should not be deployed without safe duplicate-event handling. --- 9. Fix Strategy ISS-101 Recommended strategy: Investigation first + root-cause remediation Investigate payment-state transitions, transaction boundaries and webhook failure paths. Temporary mitigation: Continue manual replay Improve logging around failed state transitions --- ISS-102 Recommended strategy: Root-cause remediation Investigate and implement idempotent event processing. Potential controls: Unique webhook/event identifier Idempotency record Transaction-safe order creation Duplicate-event detection The exact implementation should be determined after reviewing the current architecture. --- ISS-103 Recommended strategy: Investigation first Determine whether the dashboard is: Reading incorrect database state Applying incorrect transformation logic Using stale cached data Receiving an incorrect API response --- ISS-104 Recommended strategy: Performance investigation + targeted optimization Measure: P50/P95/P99 webhook latency Processing time Database query latency Queue depth Timeout rate Failure rate during peak periods Avoid architectural redesign until evidence identifies the bottleneck. --- ISS-105 Recommended strategy: Standard reliability fix Introduce controlled retry/replay capability with: Exponential backoff Maximum retry attempts Dead-letter handling Monitoring Idempotency protection --- 10. Prioritization Framework For this example, use a qualitative evidence-based framework instead of fabricated numerical scores. Evaluation dimensions Impact: Consequence to customers/business Urgency: How quickly action is needed Risk: Security, data integrity and reliability exposure Frequency: How often the failure occurs Blast radius: Scope of affected components/users Dependency position: Whether the issue blocks other remediation Effort: Relative engineering complexity Workaround: Quality and reliability of temporary mitigation Root-cause leverage: Whether fixing it may eliminate multiple symptoms The final priority is derived from the combined evidence rather than one severity number. --- 11. Issue Priority Matrix Issue Impact Urgency Risk Effort Dependencies Recommended Action Rationale ISS-101 High High High Medium-High Webhook flow Investigate + fix 1-2% successful payments reportedly remain Pending ISS-102 High High High Medium Idempotency Fix Duplicate orders represent direct data-integrity risk ISS-103 Medium Medium Medium Low-Medium Payment state Investigate Incorrect status could be downstream symptom ISS-104 Medium-High Medium-High Medium-High High Webhook architecture Investigate + optimize Peak latency may amplify other failures ISS-105 High High High Medium Idempotency Implement controlled retry Missing automated recovery increases unresolved failures --- 12. Validation & Testing Plan ISS-101 Issue → Root Cause → Fix → Test → Acceptance Pending paid orders → Identify failed state transition → Correct transaction/webhook processing → Integration + end-to-end test → Successful payment consistently produces correct order state Acceptance criteria: Successful test payment produces correct order state. Replayed webhook does not create incorrect state. Failed processing can recover safely. Existing payment workflows remain functional. --- ISS-102 Duplicate orders → Identify duplicate processing path → Add idempotency protection → Concurrent/replay webhook tests → One payment event produces one intended order Acceptance criteria: Same webhook can be delivered multiple times safely. Concurrent duplicate deliveries do not create duplicate orders. Existing legitimate orders continue to work. --- ISS-105 Failed webhook → Failure classification → Retry mechanism → Failure/recovery tests → Failed transient events recover automatically Acceptance criteria: Transient failures are retried. Permanent failures do not retry indefinitely. Failed events become observable. Retry processing does not create duplicates. --- 13. Remediation Dependency Graph Investigate Webhook Processing | v Confirm Root Causes / \ / \ v v Idempotency Failure Handling | | v v Duplicate Safety Controlled Retry \ / \ / v v Payment State Reliability | v Performance Optimization | v Dashboard Verification The exact dependency relationship must be confirmed during investigation. --- 14. Engineering Roadmap NOW ISS-102 - Duplicate Order Investigation/Fix Actions: Trace webhook processing Identify duplicate event behavior Review transaction boundaries Design idempotency protection Add duplicate-event tests ISS-105 - Retry Design Actions: Define retryable vs permanent failures Design retry limits Ensure idempotency protection exists Add failure monitoring ISS-101 - Payment-State Investigation Actions: Trace successful payment lifecycle Identify where Pending state persists Correlate webhook logs with database transactions Reproduce the failure --- NEXT ISS-104 - Performance Investigation Collect: P95/P99 latency Database timings Webhook processing duration Timeout rate Queue depth Peak traffic correlation Then implement targeted optimization based on evidence. --- PLANNED ISS-103 - Dashboard Status Investigation Determine whether the dashboard problem originates from: Backend state API transformation Cache Frontend rendering Then implement the smallest sufficient correction. --- DEFERRED No issue should automatically be deferred solely because it requires significant engineering effort. At this stage, no issue is classified as safely deferrable without additional evidence. --- MONITOR After remediation, continuously monitor: Successful payment → order confirmation rate Duplicate-order rate Webhook failure rate Retry count Webhook latency Pending-order age Manual replay frequency --- 15. Monitoring & Post-Fix Verification Payment reliability Track: Percentage of successful payments resulting in confirmed orders Number of orders remaining Pending Age of Pending orders Duplicate protection Track: Duplicate webhook events Duplicate order attempts Idempotency conflicts Retry system Track: Retry count Retry success rate Dead-letter events Permanently failed events Performance Track: P50 latency P95 latency P99 latency Timeout rate Database latency Production verification After deployment: 1. Verify webhook processing health. 2. Verify successful payments are transitioning correctly. 3. Verify duplicate events remain safe. 4. Verify retry processing. 5. Monitor error rates. 6. Compare metrics with the pre-fix baseline. 7. Maintain rollback capability for high-risk changes. --- 16. Final Fix Prioritization Summary The evidence currently points engineering attention toward the webhook processing and payment-state reliability path, with duplicate processing and missing recovery mechanisms requiring particular investigation. The sequence should be evidence-driven: Webhook Investigation ↓ Confirm Root Causes ↓ Idempotency / Duplicate Protection ↓ Reliable Failure Recovery ↓ Payment-State Correction ↓ Performance Optimization ↓ Dashboard Verification This sequence is preferable to independently patching every visible symptom because some issues may be downstream effects of the same webhook-processing weaknesses. However, the common-root-cause hypothesis must be validated before treating these issues as one defect family. --- ROOT-CAUSE LEVERAGE MAP Potential high-leverage area: Webhook Processing Reliability Potential downstream symptoms: Duplicate orders Orders remaining Pending Failed events requiring manual replay Potential peak-load failures This is a candidate leverage point, not a confirmed root cause. --- QUICK-WIN ANALYSIS Potential quick win: ISS-105 - Controlled Webhook Retry Why: Clearly identified reliability gap Existing manual replay already demonstrates a recovery mechanism Could reduce operational intervention Important condition: Retry should be combined with safe idempotency handling to avoid increasing duplicate processing. --- HIGH-RISK FIX REGISTER 1. Payment-State Transaction Changes Risk: Could affect payment/order lifecycle Incorrect implementation could create new state inconsistencies Controls: Integration tests End-to-end tests Staged rollout Rollback plan Production monitoring 2. Database Idempotency Protection Risk: Existing order-processing behavior may change Database constraints can expose previously hidden duplicate records Controls: Data audit before migration Migration review Duplicate-data analysis Rollback strategy 3. Webhook Performance Changes Risk: Concurrency or queue changes could introduce new failures Controls: Load testing Performance baseline Staged deployment P95/P99 monitoring --- UNRESOLVED EVIDENCE The following information could materially change prioritization: Exact number of affected customers Revenue value of affected orders P95/P99 webhook latency Webhook timeout rate Exact duplicate-order mechanism Whether duplicate orders can trigger duplicate fulfillment Whether ISS-101 and ISS-102 share a root cause Database transaction behavior Existing webhook signature verification Current automated test coverage Production rollback capabilities Exact customer-facing SLA Peak traffic volume and timing Test conclusion: The backlog should not be treated as five independent bugs until the webhook processing path is investigated. The strongest implementation plan is to establish the evidence and dependency structure first, then apply targeted fixes with explicit validation and rollback controls.
GPT

Software Bug Fix Priority Engine

Add to Cart
Instant accessInstant access
Usage rightsCommercial use
Money-back guaranteeMoney‑back
By purchasing this prompt, you agree to our terms of service
GPT-5.6
Tested icon
Guide icon
4 examples icon
Free credits icon
Software Fix Prioritization transforms a list of software issues into an evidence-driven remediation plan by analyzing severity, user impact, business impact, security exposure, frequency, blast radius, dependencies, workaround availability, fix complexity, regression risk, and urgency. 🐛 Triage large issue backlogs 🚨 Identify urgent production problems Turn a messy software issue backlog into a clear, defensible engineering remediation plan. 🚀
...more
Added over 1 month ago
Report
Browse Marketplace