Privacy and preparation
Conversation thread context dataset: which orphaned replies to keep
By SourceX Editorial · Updated
10 sections
Short answer
In a conversation thread context dataset, a reply whose parent is missing is safe to keep only where its meaning survives without that parent. Find orphans from the reply keys each platform writes, recover parents by key rather than by time or subject, then grade every remaining orphan as standalone, echoing, pointing or bare. Standalone replies can still label outcomes; pointing and bare ones leave any use that needs the request.
System export
Conversation thread context
Key takeaways
- An orphan is a reply whose immediate-parent key fails to resolve; a surviving thread root does not count as its parent.
- Deleted parents leave markers but no text, while window cuts and merges are usually recoverable by key.
- Grade each orphan as standalone, echoing, pointing or bare from the reply and its siblings, before any recovery work.
- The same orphan can label an outcome and still be unusable for reply-generation training or evaluation.
- Parents recovered after grading form an answer key that measures how well each grade predicts the real request.
When does a reply without its parent mislead a model?
It misleads whenever the reply's meaning depends on the message it answered, which is the normal case for short approvals, refusals and acknowledgments. A reply such as 'Approved for this one, but loop in legal before the renewal' tells a reader that something was approved. Only the missing parent says what was asked, by whom and against which rule.
In a training set, that gap becomes a decision without a question. A model that sees the reply as a complete turn learns to grant things nobody requested, and a grader scoring an evaluation item built on it has to guess the request before judging the answer. The harm is not that orphans exist, since any export cut by date, retention or merge produces some. The harm is that they enter the dataset unlabeled and are read as whole conversations.
This guide treats orphaned replies as an inclusion decision for a conversation thread context dataset, not as an archive repair job; finding and rescuing lost opening messages before a system shuts down is a separate task with its own guide. The steps here are to find orphans from the keys each platform writes, recover parents by key, grade how much meaning each survivor still carries, apply rules by intended use, and report coverage with denominators.
Four ways a reply loses its parent before export
Most orphans come from four routes: deletion, export windows, broadcast copies and ticket merges. A fifth case is structural, where the platform never wrote a parent pointer at all. Each route leaves a different signature, and the signature decides whether the parent can come back.
Deletion is the one that cannot be undone. Slack's developer documentation says that when a message with threaded replies is deleted, the replies stay in the conversation and a placeholder tells viewers the message was deleted. Microsoft Graph's chatMessage resource records a deletedDateTime for a deleted message. Both leave a marker, so the orphan is easy to detect, but the parent's text is gone.
Broadcast copies fail in the opposite direction: nothing is missing, but a message appears in the wrong place. Slack sends the thread_broadcast message subtype when someone indicates that a thread reply should also be broadcast to the whole channel, so the same reply shows up inside its thread and again in the channel stream. Read in channel order, the copy sits between unrelated messages and looks like an answer to whatever came just before it.
Merges move context into a closed record. Zendesk's merge documentation says the ticket merged into another is closed and that merge comments are added to each ticket, which leaves the surviving ticket holding a note about earlier work that now lives somewhere else. The table below gives the first move for each route:
| Route | Signature in the export | Can the parent return? | First move |
|---|---|---|---|
| Deleted parent | A placeholder or deletion timestamp where the parent should be | Its existence, yes; its text, no | Mark the parent as deleted and never fill it in |
| Export window cut | The reply key points to a message dated before the export start | Usually, while the source system still runs | Re-export only the message IDs that replies reference |
| Broadcast copy | A channel message carrying another message's thread key | Yes, by key | Collapse the copy onto its thread reply and drop it as a duplicate |
| Ticket merge | A merge note on the surviving ticket that names a closed ticket | Usually, through the merge reference | Attach only the closed-ticket comments the note depends on |
| No parent pointer | Replies ordered by time alone, as in Microsoft Teams chats | No; any parent is a guess | Treat every pairing as inferred and keep it out of labels |
Parent or root: read the reply key before counting orphans
Count a reply as orphaned only when the key that names its immediate parent fails to resolve. A thread root that survived does not prove the message the reply answered survived, and attaching a reply to the root when its real parent is gone is a quieter error than leaving it orphaned.
Email shows the difference most clearly. Under RFC 5322, a reply's In-Reply-To field carries the Message-ID of the message it answers, while its References field carries the parent's own References followed by the parent's Message-ID. References can therefore name the thread's first message even when the immediate parent is absent. A reply to the fourth message in a nine-message chain can have its root in the archive and its parent missing; a reader who falls back to the root will pair the answer with the wrong question. The RFC also says that forming References for a reply with multiple parents is discouraged and left undefined, so a reply answering two messages at once deserves its own flag rather than a forced single parent.
Chat platforms write shallower keys. Microsoft Graph defines replyToId as the ID of the parent or root chat message of the thread and says it applies only to messages in channels, not to chats. Because that one field can hold either the parent or the root, a Teams reply key alone cannot show which message inside a long thread a reply answered, and a chat export offers no pointer to test at all. Slack replies carry the thread_ts of the message that started the thread; a reply whose thread_ts matches nothing in the export, or matches only a deletion placeholder, is an orphan.
The working rule is to test the immediate-parent key, store the root as a separate field, and never let a present root stand in for an absent parent.
Standalone, echoing, pointing or bare: grading what the parent carried
Grade each orphan by what a reader could reconstruct from the reply and its surviving siblings alone: standalone replies keep the request and the decision, echoing replies quote the parent, pointing replies refer back to something that is gone, and bare replies carry only a stance. The grade, not the orphan status, decides what the reply can still teach.
Grade with the siblings in view, because an earlier reply in the same thread can restore what the parent said. 'That works if it ships before the freeze' is pointing on its own, but a sibling two messages earlier asking about a specific purchase order may supply the object. Record which sibling did the work, since a later filter that drops that sibling silently downgrades the reply.
Echoed text is useful and still not the original. A replier may trim, reword or answer only part of the quoted message, and the quoted sender and date are whatever the client printed. Store it as a parent rebuilt from a quote, beside the reply, never inside the message table as if it were the parent itself.
Rewriting is a recognized way to make dependent turns self-contained, but it creates new text. CANARD, presented by Elgohary and colleagues at EMNLP 2019, collected 40,527 crowd-written rewrites that turn context-dependent questions from the QuAC dataset into self-contained questions with the same answer. A supplier that rewrites orphans this way is producing edited, partly synthetic records; they can be useful, but they must be labeled as rewrites and shipped next to the originals. The four grades, with tests a reviewer can apply, are below:
| Grade | Reviewer test | Illustrative reply | What survives without the parent |
|---|---|---|---|
| Standalone | Names the request, the object and the decision | Refund of the duplicate March charge on the Pro plan is approved | Request, object and decision |
| Echoing | Quotes or restates the parent's wording | A reply that pastes the customer's question above its answer | The parent as the replier chose to quote it |
| Pointing | Refers back with this, that, it, as discussed or the attachment | That works if it ships before the freeze | The direction of the decision, not its object |
| Bare | Carries a stance and nothing else | Yes; Approved; Not this time | A stance with no object |
Inclusion rules: which uses an orphan can still serve
An orphan can serve any use that needs only what survived, and it has to leave every use that needs the request. That one rule produces a different verdict for the same reply depending on whether the dataset trains reply generation, labels outcomes, feeds a retrieval corpus or becomes an evaluation set.
Reply generation is the strictest training use, because the input turn is the parent; an orphan has no prompt to condition on, so even a standalone reply cannot form a pair without inventing one. Evaluation is stricter still, because graders must know what was asked to judge an answer. Outcome labels and retrieval are more forgiving, since they need what was decided or stated rather than how the reply answered a particular message.
A fifth row covers replies attached to the wrong parent, which are worse than orphans because they look complete. Spot them where the key and the position disagree, such as a broadcast copy read in channel order or a reply paired with a root instead of its immediate parent. Treat these verdicts as defaults a buyer may tighten, never loosen for evaluation:
| Grade | Reply generation training | Outcome or decision labels | Retrieval corpus | Evaluation set |
|---|---|---|---|---|
| Standalone | Exclude: no input turn exists | Keep | Keep | Keep only for items scored on the reply's own content |
| Echoing | Keep, flagged as rebuilt from a quote | Keep, flagged | Keep | Exclude |
| Pointing | Exclude | Keep the stance only, never the object | Exclude | Exclude |
| Bare | Exclude | Exclude | Exclude | Exclude |
| Attached to the wrong parent | Exclude until re-linked by key | Exclude until re-linked by key | Exclude | Exclude |
Calibrating the grades against parents you did recover
Use the orphans whose parents came back as an answer key. If every orphan is graded before recovery starts, the replies later reunited with their parents show how often each grade's cold reading matched what the parent actually said, which turns the grading scheme from a judgment into a measured rule.
The calibration sample has a known bias that the report should state. Parents that come back are mostly those lost to export windows and merges; deleted parents never return, and deletion is not random, since people may remove messages that were mistaken, sensitive or contentious. Present the match rates as evidence about recoverable orphans and say plainly that deleted ones were not measured. The protocol:
- Grade every orphan from the reply and its siblings, then freeze the grades before any recovery work begins.
- Recover parents by key only: re-export referenced message IDs and follow merge references.
- For each recovered orphan, have two reviewers who have not seen the parent write the request and the decision they infer.
- Compare each cold reading with the true parent on two points, the object of the request and the direction of the decision.
- Report the match rate per grade with its denominator, such as matches out of recovered pointing replies.
- Keep a grade's keep verdicts only if its match rate meets a threshold fixed before the comparison; otherwise demote it one grade.
- Store each reviewer's reading, the true parent and the outcome, so a buyer can rerun the comparison.
One orphaned approval, packed with only what survives
A minimal packet for an orphan holds the reply, the evidence that can stand in for its parent, the record of what actually happened, and an explicit marker for what is missing. The Illustrative case below is a reply in a sales-operations channel in Microsoft Teams: 'Approved for this one, but loop in legal before the renewal.' Its parent shows a deletion timestamp.
Two siblings rescue part of the meaning. One asked for the margin on a discount request and linked a CRM opportunity; the next answered that the margin was acceptable. With them, the reply moves from bare to pointing: the object is a discount on one opportunity, though the requested amount and the requester's reasoning stay lost.
The verdict follows the inclusion rules. The packet can carry an outcome label (a discount was approved, with a condition about legal review), flagged parent deleted. It stays out of reply generation and out of any evaluation set, because the request itself cannot be shown. Each element, with its status and decision:
| Element | Content (Illustrative) | Parent-coverage status | Packet decision |
|---|---|---|---|
| The reply | Approval with a condition about legal review | Present | Keep as the decision text |
| Immediate parent | Deleted; deletion timestamp only | Deleted, marker kept | Keep the marker; never paraphrase a guess |
| Sibling: margin question | Asks for margin and links a CRM opportunity | Present, linked by thread key | Keep; it supplies the object |
| Sibling: margin answer | States the margin is acceptable | Present, linked by thread key | Keep; it explains why approval was possible |
| CRM discount field history | Discount approval set on the same day | Present, joined by the opportunity ID in the link | Keep only the approval change and its timestamp |
| Requested discount amount | Stated only in the deleted parent | Lost | Record as a named gap in the label |
| Nearby channel messages | Unrelated posts within minutes of the reply | Not linked by any key | Exclude; closeness in time is not a parent link |
Mapping parent coverage across a whole export
A dataset-level map counts every reply by parent status before and after recovery, so a buyer sees how much of the conversation data rests on linked parents, how much on recovered ones and how much on orphans. The Illustrative export below starts with 1,000 replies across chat channels and ticket threads.
Recovery changes the picture in three ways. Widening the export for referenced IDs brings back 33 of 41 parents lost to the window, and following merge references brings back 12 of 18. The 29 broadcast copies are not orphans at all; they collapse onto thread replies that are already linked and leave the count as duplicates. The 52 deleted parents stay gone, so 74 replies leave the unlinked pile in all: 45 regain a parent and 29 turn out to be copies.
That leaves 971 unique replies: 905 with a linked or recovered parent and 66 true orphans, a parent coverage of 905 out of 971. Graded, the orphans split into 17 standalone, 12 echoing, 22 pointing and 15 bare. For an outcome-label dataset, the rules keep 17 as they are, keep 12 with a flag and exclude 37; for reply generation, all 66 leave. Report every figure with its denominator: the same export shows 86 percent coverage computed over the raw 1,000 rows before recovery, and about 93 percent over the 971 unique replies after it. The status counts:
| Parent status | Replies (Illustrative, of 1,000) | Recovery route | After recovery |
|---|---|---|---|
| Linked by key | 860 | None needed | 860 linked |
| Outside the export window | 41 | Re-export referenced IDs | 33 recovered, 8 orphaned |
| Carried over by a merge | 18 | Follow the merge reference | 12 recovered, 6 orphaned |
| Broadcast copy | 29 | Collapse onto the thread reply | 29 removed as duplicates |
| Deleted, marker only | 52 | None; the text is gone | 52 orphaned |
Would joining more channels and mailboxes fix the orphans?
Only joins made by key help. Pulling in adjacent channels, more mailboxes or messages close in time adds candidate parents faster than it adds correct ones, and every wrong pairing produces a confident label built on a guess.
Research on conversation structure shows what loose stitching costs. Kummerfeld and colleagues annotated 77,563 chat messages with reply-structure graphs and, using that data to re-examine earlier work, found that 80% of conversations in a widely used dialogue corpus were either missing messages or contained extra messages. Extra messages are the price of a broad join; missing ones are the price of a narrow export.
Wider joins also widen what the dataset reveals. Each additional mailbox or channel brings in people and topics outside the approved scope, raising the chance that a de-identified reply can be tied back to a person or a customer when it sits beside more context. Widen only for message IDs that a reply key references, and leave whole adjacent sources out.
The strongest form of the objection is that a long-context model can sort relevant from irrelevant messages without help. That may hold at inference time. A training or evaluation label still records one parent as the truth, and if that parent was chosen by proximity rather than by key, the label is wrong however capable the model reading it is.
Putting parent coverage into a data request
Ask for parent coverage as a measured property, not for threads in general. A request that names the reply keys to keep, the coverage report to deliver and the inclusion rule for orphans lets a supplier prepare to a standard both sides can test.
SourceX finds datasets for AI buyers by request, from U.S. businesses, rather than holding conversation data in stock, and it handles rights review, contracting, preparation and delivery for the companies that license their records. A requirement written like the lines below gives that preparation a pass mark; it does not imply any dataset exists today or will meet the threshold. Lines to put in the request:
- Keep each platform's parent fields as exported: thread_ts and subtype in Slack, replyToId and deletedDateTime in Teams, In-Reply-To and References in email, merge references in tickets.
- Deliver a coverage report before and after recovery, with linked, recovered, duplicate and orphaned counts and their denominators.
- Grade every orphan as standalone, echoing, pointing or bare, and apply a named inclusion rule for the intended use.
- Never pair a reply with a parent chosen by time window, subject line or participant overlap inside a label.
- Keep deletion markers instead of stripping them, so a gap stays visible.
- Flag any rewritten or rebuilt parent and ship it beside the original reply, never in place of it.
- State the acceptance test, for example a minimum parent coverage for the use and a cold-read match rate per grade.
Frequently asked questions
What is an orphaned reply in a conversation dataset?
It is a reply whose immediate parent message cannot be found in the dataset, even though the reply's own key points to one. Common causes are deleted parents, export date ranges that cut off earlier messages and ticket merges that move earlier comments into a closed record.
Can quoted text stand in for a missing parent?
Partly. Quoted text shows the parent as the replier chose to quote it, which may be trimmed or edited and usually lacks the original sender, date and attachments. Store it as a parent rebuilt from a quote, flagged, and keep it out of evaluation sets.
Should orphaned replies be deleted from the export?
No. Keep them in the source export with their parent status and grade, then exclude them per use. A standalone orphan can still support outcome labels or retrieval, while the same reply has no place in reply-generation training.
How do Slack and Microsoft Teams record a reply's parent?
Slack replies carry the thread_ts of the message that started the thread. In Microsoft Graph, a channel message's replyToId holds the ID of the parent or root message, and the field does not apply to chats, so chat exports have no parent pointer to test.
Is it acceptable to generate a missing parent with an AI model?
Not as the parent in a label. A generated parent is synthetic text presented as a record, and anything learned or scored from it inherits the guess. If generated context is useful for another purpose, label it as synthetic and keep it apart from the original reply.
Sources
- Slack's developer documentation says that when a message with threaded replies is deleted, the replies remain in the conversation with a placeholder telling viewers the message was deleted. Source
- Slack sends the thread_broadcast message subtype when a user or bot indicates a thread reply should also be broadcast to the whole channel; the event carries a thread_ts pointing at the parent message. Source
- Microsoft Graph's chatMessage resource defines replyToId as the ID of the parent or root message of a thread, applying only to channel messages and not chats, and records deletedDateTime for deleted messages. Source
- RFC 5322 builds a reply's In-Reply-To from the parent's Message-ID and its References from the parent's References plus the parent's Message-ID, and calls References for multiple parents discouraged and undefined. Source
- Zendesk's merge documentation says the ticket merged into another is closed and merge comments are added to each ticket. Source
- CANARD (Elgohary, Peskov and Boyd-Graber, EMNLP 2019) contains 40,527 crowd-written rewrites that make context-dependent QuAC questions self-contained with the same answer. Source
- Kummerfeld and colleagues annotated 77,563 chat messages with reply-structure graphs and found 80% of conversations in a widely used dialogue corpus were missing messages or contained extra messages. Source
Tell us what data you need
Share scope, volume, format, timing and licensing needs. Datasets are sourced on request.