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. π
By purchasing this prompt, you agree to our terms of service
GPT-5.6
π 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
