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

Prompt Details

Model
Chat - (gpt-5.6)
Token size
4,172
Example input
[ENTITY_DOMAIN_AND_BUSINESS_CONTEXT]: Online store customer-to-order lifecycle. [ENTITY_SOURCES_AND_SYSTEMS]: CRM: Customer records Order DB: Orders Payment Service: Payments Fulfillment System: Shipments Support CRM: Customer support tickets [ENTITY_IDENTIFIERS_AND_MAPPING_RULES]: CRM Customer ID: C-1001 Order Customer ID: C-1001 Payment Customer ID: CUS-7788 Mapping table connects C-1001 β†’ CUS-7788 [DATA_LIFECYCLE_AND_TEMPORAL_RULES]: Payment must exist before shipment creation. Shipment must reference a valid order. Cancelled orders cannot be shipped. [TECHNICAL_AND_AUDIT_REQUIREMENTS]: Identify earliest chain break. Determine downstream impact. Avoid assuming the shipment belongs to O-5001 without evidence. Recommend reversible remediation.
Example output
πŸ”Ž PHASE 1 β€” ENTITY DOMAIN RECONSTRUCTION 🧩 Entity Inventory Entity Source Identifier Lifecycle Status Customer CRM C-1001 Active βœ… Confirmed Order Order DB O-5001 Created βœ… Confirmed Payment Payment Service P-9001 Completed βœ… Confirmed Shipment Fulfillment S-7001 Created βœ… Confirmed Support Ticket Support CRM T-3001 Open βœ… Confirmed πŸ” Findings The supplied evidence confirms all five entity records exist. However, existence of S-7001 does not establish that it belongs to O-5001. Therefore: Customer identity: βœ… Confirmed Order identity: βœ… Confirmed Payment identity: βœ… Confirmed Shipment identity: βœ… Confirmed Support ticket identity: βœ… Confirmed Shipment-to-order relationship: ❓ Unresolved --- πŸ†” PHASE 2 β€” ENTITY IDENTITY & KEY AUDIT πŸ”‘ Identifier Analysis C-1001 is the CRM/customer identifier. CUS-7788 is the payment-service customer identifier. The mapping: C-1001 β†’ CUS-7788 is explicitly provided. Therefore the cross-system customer identity mapping is: CONFIRMED βœ… The order contains: O-5001 β†’ C-1001 This establishes: Order β†’ Customer = VERIFIED βœ… The shipment has: S-7001 but no supplied order identifier. Therefore: Shipment β†’ Order = MISSING ❌ 🚨 Identity Finding There is no evidence of an identifier collision. The problem is not currently an identity collision. It is a missing relationship reference. --- 🧬 PHASE 3 β€” ENTITY CHAIN RECONSTRUCTION Expected Chain Customer C-1001 ↓ Order O-5001 ↓ Payment P-9001 ↓ Shipment S-7001 ↓ Support Ticket T-3001 Observed Chain Customer C-1001 ↓ Order O-5001 ↓ Payment P-9001 Shipment S-7001 ↓ ❌ No Order Reference Support Ticket T-3001 ↓ Order O-5001 πŸ”— Link Status Link Evidence Status Customer β†’ Order O-5001 references C-1001 βœ… VERIFIED Order β†’ Payment Payment exists and mapping is supplied 🟑 PARTIALLY VERIFIED Payment β†’ Shipment Shipment exists, but no relationship supplied ❓ UNVERIFIED Order β†’ Shipment Shipment lacks order reference ❌ MISSING Order β†’ Support Ticket Ticket references O-5001 βœ… VERIFIED --- πŸ”— PHASE 4 β€” RELATIONSHIP INTEGRITY AUDIT Expected Every shipment must reference a valid order. Observed S-7001 has no order reference. This violates the stated fulfillment relationship requirement. Finding Relationship: Order β†’ Shipment Status: ❌ BROKEN Failure type: Missing relationship Evidence: Shipment exists without an order reference. Importantly, this does not prove that the shipment was created incorrectly. The available evidence only proves that the required relationship cannot currently be verified. --- πŸ•³οΈ PHASE 5 β€” CHAIN BREAK DETECTION 🚨 Break B-001 Chain: Customer β†’ Order β†’ Payment β†’ Shipment Broken Link: Order β†’ Shipment Evidence: S-7001 exists but contains no order reference. Failure Type: Missing relationship. Earliest Defensible Break: Order β†’ Shipment Downstream Impact: The fulfillment record cannot be safely connected to O-5001. Root-level distinction The final symptom might appear as: > "Shipment cannot be associated with customer order." But that is only the downstream symptom. The earliest confirmed break is: Missing Order β†’ Shipment relationship. 🎯 --- 🧩 PHASE 6 β€” ENTITY RESOLUTION & MATCHING AUDIT πŸ” Matching Candidates Potential relationship: S-7001 β†’ O-5001 But no matching attribute has been supplied. Available evidence does not include: Customer ID on shipment Order ID on shipment Shipping address Product details Tracking metadata Payment reference Creation timestamps Therefore the relationship cannot be promoted to a confirmed match. Result Shipment S-7001 β†’ Order O-5001: ❓ AMBIGUOUS / UNVERIFIED Do not automatically attach the shipment to the order. --- πŸ”„ PHASE 7 β€” DATA PROPAGATION & TRANSFORMATION AUDIT Possible propagation path: Order DB ↓ Payment Service ↓ Fulfillment System ↓ Support CRM The supplied evidence does not establish how the shipment was created. Therefore the following remain hypotheses: API failed to transmit O-5001 Event omitted the order identifier Transformation dropped the field Fulfillment system accepted an incomplete payload Manual shipment creation occurred ⚠️ Important None of these can be identified as the root cause without additional evidence. Confirmed finding: relationship is absent. Unconfirmed cause: mechanism that caused the relationship to disappear. --- ⏱️ PHASE 8 β€” TEMPORAL & LIFECYCLE INTEGRITY Rules state: Payment must exist before shipment. Cancelled orders cannot be shipped. Payment P-9001 exists. However, timestamps were not provided. Therefore we cannot verify: Payment time < Shipment time or: Order active at Shipment time Status Temporal Rule Result Payment before shipment ❓ Unverified Order active during shipment ❓ Unverified Shipment after order creation ❓ Unverified Shipment after cancellation ❓ Unverified Finding Temporal integrity is unresolved, not failed. --- πŸ—„οΈ PHASE 9 β€” DATABASE & REFERENTIAL INTEGRITY AUDIT Expected database relationship: Shipment.order_id ↓ Order.order_id Observed: Shipment.order_id = NULL / Missing If order_id is mandatory at the database level, this indicates a database-level integrity failure. If it is nullable, the database may technically permit the record while business integrity remains broken. Key distinction 🧠 Database-valid β‰  Business-valid A shipment record can exist successfully in the database while still being unusable for fulfillment reconciliation. --- 🌐 PHASE 10 β€” CROSS-SYSTEM & API CHAIN AUDIT Systems CRM ↓ Order DB ↓ Payment Service ↓ Fulfillment ↓ Support CRM The critical missing link occurs at: Order β†’ Fulfillment Possible technical causes include: Missing API field Incorrect API mapping Event schema omission Failed event processing Partial write Retry failure Transformation defect Evidence Status Area Status API contract ❓ Unknown Event delivery ❓ Unknown Retry behavior ❓ Unknown Transformation ❓ Unknown Partial write ❓ Unknown Shipment creation βœ… Confirmed No specific API failure should be claimed without logs or payload evidence. --- 🧠 PHASE 11 β€” SEMANTIC & BUSINESS INTEGRITY AUDIT A technically valid shipment record does not automatically mean it is the correct shipment for the order. For example: Shipment S-7001 ↓ No Order Even if someone manually assumes: S-7001 β†’ O-5001 that relationship requires supporting evidence. Semantic Status UNVERIFIED ⚠️ The shipment cannot currently be established as belonging to the customer/order chain. --- πŸ“Š PHASE 12 β€” DOWNSTREAM IMPACT & BLAST-RADIUS Break Direct Impact Downstream Impact Business Severity Scope B-001 Order β†’ Shipment Shipment cannot be confidently linked to order Fulfillment tracking/reconciliation may be affected Medium Potentially one shipment Supported impact Potentially affected: Order tracking Fulfillment reconciliation Customer support investigation Shipment reporting Not established There is no evidence that: Billing failed Customer was incorrectly charged Authorization failed Compliance was violated Therefore those impacts should not be claimed. --- πŸ§ͺ PHASE 13 β€” REPRODUCTION & VALIDATION TEST DESIGN Test T-001 β€” Shipment Referential Integrity Preconditions Order O-5001 exists. Input Create shipment S-7002 without an order ID. Expected System rejects the shipment: ERROR: Shipment requires valid order reference Failure Condition Shipment is successfully created with no order. Evidence Capture: API request API response Database record Application logs --- Test T-002 β€” Identity Propagation Input Order ID: O-5001 Customer ID: C-1001 Expected Fulfillment payload contains: order_id = O-5001 customer_id = C-1001 Failure One or both identifiers disappear during propagation. --- Test T-003 β€” Regression Test Create: Customer β†’ Order β†’ Payment β†’ Shipment Verify that every relationship remains traceable. Expected result: 100% of mandatory links resolve to valid entities. βœ… --- πŸ› οΈ PHASE 14 β€” REMEDIATION ARCHITECTURE πŸ”§ Remediation 1 β€” Investigate Before Repair Find evidence connecting S-7001 to an order. Check: Fulfillment API payload Event messages Application logs Tracking metadata Creation timestamps Warehouse records Risk: Low Validation: Confirm relationship using independent evidence. --- πŸ”§ Remediation 2 β€” Repair Mapping If evidence proves: S-7001 β†’ O-5001 then add the missing relationship. Risk: Medium Validation: Shipment ↓ Order ↓ Customer must resolve successfully. --- πŸ”§ Remediation 3 β€” Prevent Recurrence Make the shipment-to-order relationship mandatory where business rules require it. Add: Foreign-key enforcement API validation Event schema validation Reconciliation monitoring Risk: Medium Rollback: Feature flag/schema migration rollback if deployment causes legitimate workflows to fail. --- πŸ›‘οΈ PHASE 15 β€” PREVENTION & CONTINUOUS INTEGRITY CONTROLS Recommended Controls 1. πŸ” Referential Integrity Every shipment must resolve to a valid order. 2. πŸ§ͺ Contract Testing Validate that fulfillment APIs always receive required identifiers. 3. πŸ“‘ Event Validation Reject or quarantine events missing mandatory entity identifiers. 4. πŸ”„ Reconciliation Periodically detect: Shipments WITHOUT Orders Orders WITHOUT Expected Shipments 5. 🚨 Alerting Example metric: orphan_shipment_count Target: 0 unexpected orphan shipments 6. πŸ“Š Integrity Dashboard Track: Orphan shipments Invalid mappings Duplicate identities Missing identifiers Unresolved relationships Stale references Failed propagation events --- πŸ† PHASE 16 β€” FINAL ENTITY CHAIN INTEGRITY REPORT 1. πŸ“‹ Executive Summary The customer/order/payment portion of the supplied chain is supported by available evidence. The critical break occurs between: Order β†’ Shipment Shipment S-7001 exists, but no relationship connecting it to an order has been provided. The available evidence does not establish whether the relationship was lost during API/event propagation, omitted during creation, or never existed. --- 2. 🧩 Entity Inventory Entity Source Identifier Lifecycle Status Customer CRM C-1001 Active βœ… Confirmed Order Order DB O-5001 Created βœ… Confirmed Payment Payment Service P-9001 Completed βœ… Confirmed Shipment Fulfillment S-7001 Created βœ… Confirmed Ticket Support CRM T-3001 Open βœ… Confirmed --- 3. πŸ”— Entity Chain Map Expected C-1001 ↓ O-5001 ↓ P-9001 ↓ S-7001 ↓ T-3001 Observed C-1001 ↓ O-5001 ↓ P-9001 S-7001 ↓ ❌ Missing Order Relationship T-3001 ↓ O-5001 --- 4. 🚨 Chain Break Register Break ID Chain Broken Link Root Cause Evidence Severity B-001 Customer β†’ Order β†’ Shipment Order β†’ Shipment Not yet established Shipment has no order reference Medium --- 5. πŸ†” Identity Mapping Audit Mapping Status C-1001 β†’ Order O-5001 βœ… Confirmed C-1001 β†’ CUS-7788 βœ… Confirmed Shipment S-7001 β†’ O-5001 ❓ Unverified --- 6. πŸ”— Relationship Integrity Matrix Relationship Expected Observed Status Issue Customer β†’ Order Required Present βœ… None Order β†’ Payment Required Present 🟑 Temporal evidence missing Order β†’ Shipment Required Missing ❌ Broken Order β†’ Support Ticket Present Present βœ… None --- 7. ⏱️ Temporal Integrity Findings No temporal failure is confirmed. Required timestamps are missing, so payment-before-shipment and order-lifecycle validity remain unresolved. --- 8. 🌐 Cross-System Findings The break occurs at the boundary involving the fulfillment system. The exact propagation mechanism is unknown. API/event/ETL failure remains a hypothesis, not a confirmed root cause. --- 9. 🧠 Semantic Integrity Findings S-7001 cannot safely be assigned to O-5001 based solely on the available identifiers. The relationship requires additional evidence. --- 10. πŸ’₯ Downstream Impact Map Missing Order β†’ Shipment ↓ Shipment cannot be confidently reconciled ↓ Order tracking may be affected ↓ Support investigation may be affected ↓ Fulfillment reporting may be affected --- 11. πŸ”¬ Root-Cause Analysis SYMPTOM Shipment cannot be linked to an order ↓ FAILED LINK Shipment β†’ Order ↓ IMMEDIATE CAUSE Order reference is absent ↓ CONTRIBUTING FACTOR Unknown ↓ ROOT CAUSE Not yet established ⚠️ The investigation should not label an API failure as the root cause until propagation evidence is obtained. --- 12. πŸ› οΈ Remediation Plan πŸš‘ Immediate Investigate shipment creation evidence. Search API/event/log records. Determine whether S-7001 belongs to O-5001. πŸ”§ Near-Term Repair only confirmed mappings. Add orphan-shipment detection. Add mandatory relationship validation. πŸ—οΈ Structural Enforce required foreign keys where appropriate. Add API contract tests. Validate event schemas. πŸ›‘οΈ Long-Term Continuous entity-chain reconciliation. Entity lineage monitoring. Automated orphan and stale-reference alerts. --- 13. πŸ§ͺ Validation & Test Plan A repaired chain must pass: Customer ↓ Order ↓ Payment ↓ Shipment ↓ Support Every mandatory relationship must resolve. No ambiguous identity mapping should be automatically repaired. --- 14. πŸ“Š Integrity Monitoring Plan Track: orphan_shipment_count invalid_order_reference_count unresolved_entity_mapping_count duplicate_entity_count failed_entity_propagation_count stale_relationship_count Critical mandatory-chain violations should trigger investigation. --- 15. ❓ Uncertainty Register Finding Missing Evidence Why It Matters Required Verification Shipment ownership Order ID/matching metadata Cannot safely identify parent order Fulfillment records/logs Payment β†’ Shipment sequence Timestamps Temporal validity unknown Event timestamps Propagation failure API/event logs Root cause unknown API/event tracing Database enforcement Schema/constraints Cannot determine structural protection DB schema --- 🎯 16. Final Entity Chain Assessment βœ… Chains Verified Customer β†’ Order Customer identity mapping to payment system Order β†’ Support Ticket ❌ Chains Broken Order β†’ Shipment 🚨 Earliest Confirmed Break Missing Order β†’ Shipment relationship. πŸ’₯ Highest-Impact Break The shipment cannot currently be confidently reconciled with the order, potentially affecting fulfillment tracking and downstream support/reporting. ❓ Unresolved Relationships Shipment S-7001 β†’ Order O-5001 Exact propagation path from payment/order systems to fulfillment Temporal validity of payment-to-shipment sequence πŸš€ Recommended Next Actions 1. Retrieve fulfillment creation payload/logs. 2. Determine whether S-7001 can be independently matched to O-5001. 3. Repair only after sufficient evidence exists. 4. Add mandatory relationship validation. 5. Add automated orphan-shipment monitoring. 6. Create regression tests for the complete entity chain. Final status: PARTIALLY VERIFIED β€” chain integrity cannot be declared complete because the Order β†’ Shipment relationship remains unverified. πŸ”—
GPT

Entity Chain Break Auditor

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
πŸ”— Entity Chain Break Auditor traces entity relationships across databases, APIs, services, workflows, documents, and business processes to identify where an entity chain becomes incomplete, πŸ” Reconstruct entity relationships end-to-end 🧬 Trace entity chains across systems and records 🧩 Detect broken or missing links πŸ†” Identify identity and mapping inconsistencies πŸ”„ Find stale or orphaned relationships Find the exact point where an entity chain breaksβ€”and understand what breaks downstream.
...more
Added over 1 month ago
Report
Browse Marketplace