Skip to content

Privacy and preparation

Attachment context in conversation datasets: a test for label flips

By SourceX Editorial · Updated

9 sections

Short answer

In a conversation dataset, a missing attachment matters most when the message says only yes, no or except, and the file says to what. Test each reference by writing two plausible versions of the file: if the label differs between them, the reference can flip the conversation's meaning, and the file must travel in the task packet at the version seen then. Otherwise, record a gap and keep the label.

Redaction

Attachments conversation

This page covers attachment context in conversation datasets: a test for label flips.Illustrative

Key takeaways

  • A missing file does the most damage when the message carries only the stance and the file carries the object of the decision.
  • The two-filling test classifies each reference as Flip, Narrow, Confirm or No bearing before anyone opens the file.
  • Links drift: Microsoft's eDiscovery default collects the current version of a cloud attachment, which may not be the version shared.
  • A minimal task packet carries only Flip and Narrow files at the version seen, plus an explicit gap record.
  • Adding every file is not the safe option: long inputs reduce model accuracy and every file needs privacy review.

When does a missing attachment change a conversation's context?

It changes the meaning when the words carry the decision and the file carries its object. A reply such as approved except the highlighted rows, go with the second option, or use this file instead of the last one is complete as a stance and empty as content. Without the file, a reader knows that someone decided but not what they decided, and can easily read a partial approval as a full one.

Public email research shows how routinely the file goes missing. Tsipenyuk and Crowcroft (IML 2017) found that attachments took up about 80-90 percent of archive disk space in the Enron corpus and in their own mailboxes, and that 24.49 percent of Enron messages carried an attachment. They also point out that neither the widely circulated Cohen release of Enron nor the Shetty and Adibi cleaned version contains attachments at all. For conversation data, text-only is the default state, not an accident.

Chat tools add a second gap, because the file is often a link. Slack's help center says standard workspace exports include links to files rather than the files themselves, so the reference survives the export while the content stays in the workspace, at whatever version it has reached since. This guide gives a test for deciding which references must be resolved before a conversation can carry a label, a packet format that keeps the right version, and the decision to take when the file cannot be found.

Six ways a message hands its meaning to a file

Most references that carry meaning follow one of six patterns, and the pattern tells you what the file decides. Classify each reference by pattern before judging it, because the pattern predicts whether a missing file can invert the label or only blur it.

Exception, condition and correction are the dangerous three. Each one reverses the polarity of something: an item refused inside an approval, an assent that depends on edits, a label that belongs to a different version than the one you hold. Selection and authority leave the direction intact but hide the object or the signer, and a live link can do any of these as the document changes after the message was sent.

The six patterns, with illustrative wording that describes no real company:

Six ways a message hands its meaning to a file
PatternIllustrative wordingWhat the file decidesLabel risk without it
Exception by referenceApproved, except the rows I highlightedWhich items were refusedA partial approval reads as a full one
Selection by referenceLet's go with option two in the deckWhich option was chosenThe choice is unknown or guessed
Correction by referenceWrong file earlier, this one is rightWhich version is authoritativeThe label attaches to the superseded file
Condition by referenceSigned, subject to my markupWhat the assent depends onA conditional yes reads as unconditional
Authority by referenceAttached is the director's sign-offWho actually authorized the actionAuthority is assumed, not shown
Live linkFinal numbers are in the shared sheetWhat the sheet said at that momentLater edits rewrite the past

The two-filling test: can the file flip the label?

The file can flip the label if two plausible versions of it would lead a careful reader to opposite conclusions. For each reference, a reviewer writes the two most different file contents that still fit everything else in the thread, then asks whether the label the task needs, such as approved or refused, which supplier, or what unit price, would change between them.

At a glance

The two-filling test: can the file flip the label

The test sorts references into four classes. Flip: the two fillings give opposite labels, so the file is required. Narrow: the label keeps its direction but its scope changes, such as which items or how much. Confirm: the text already settles the label and the file only corroborates it. No bearing: the file played no part, like a logo or a forwarded newsletter. A reference the reviewer cannot classify, because nothing in the thread hints at what the file might hold, is held as unclassified until someone who knows the workflow looks at it.

This is a different question from availability. The missing attachment audit for ticket datasets establishes whether each expected file exists and how far a resolution leans on it. The two-filling test is the interpretation step that comes after: it asks whether a missing or wrong-version file could invert the meaning, which matters even when every file opens.

Run it on a sample before the full set, in this order:

  • Mark every reference: attachment records, inline parts, links to shared files, and phrases such as see attached, this one or the second option.
  • Write down, in one sentence, the label the task needs from the conversation before anyone reads a file.
  • Write filling A and filling B for each reference, as far apart as the thread allows, without opening the file.
  • Classify the reference as Flip, Narrow, Confirm or No bearing, with a one-line reason.
  • Have a second reviewer classify a sample independently and log disagreements instead of averaging them away.
  • Open the files only after classification, so the class is not anchored on what the file happens to say.

Version at send time: what exports hand you and what they hide

Only the version that existed when the decision message was sent counts, and exports rarely hand you that version by default. A file attached as bytes inside an email is fixed at send time. A link to a shared document points at something that kept changing, so a Flip-class reference resolved with today's version can be worse than an honest gap.

Microsoft's eDiscovery (Premium) documentation states the default plainly: the standard workflow adds only the most current version of a cloud attachment to a review set or export, which may differ from the version originally shared. Collecting the shared version depends on a retention label set up for cloud attachments beforehand, so for messages sent before that configuration existed, the version the recipient saw may be gone.

Google Vault's Gmail export can include a drive-links file that lists the Drive hyperlinks extracted from message content, but only when the Export linked Drive files option is enabled. A mapping from message to link helps a completeness count; it does not by itself prove which revision the recipient opened.

Two email standards help establish what a reply could have seen. RFC 5322 says In-Reply-To may identify the message being answered and References may identify the thread, which tells you which attachments preceded a decision. RFC 2183 separates inline parts, meant to display automatically, from attachments, whose display depends on a further action by the user, so a reply shows that a file was available, not that it was read.

Grade every resolved file on this evidence ladder before it supports a Flip-class label:

Version at send time: what exports hand you and what they hide
Rung and evidenceTypical sourceWhat it provesSupports a Flip label?
1. Bytes inside the messageEmail MIME part or ticket attachment recordExact content available at send timeYes
2. Copy captured at share timeArchive or eDiscovery tool set to keep shared versionsContent as shared, if configured before sendingYes, with the capture setting recorded
3. Revision dated before the messageDocument version historyA version existed then, not that it was viewedYes, if exactly one revision fits the window
4. Link plus current versionChat export or default collectionWhat the document says todayNo; record a gap
5. Reference text onlyPhrases such as see attachedThat a file was mentionedNo; record a gap

Eight fields that carry a decision and its files

A minimal task packet holds the decision, the files that can flip or narrow it at the version seen, and an explicit record of what is missing, and nothing more. Confirm-class files are optional, No-bearing files stay out, and every field carries the evidence that justifies its presence.

The packet keeps two things apart that exports tend to merge: who issued a file and who made the decision. A vendor's quote and a budget owner's approval live in the same thread, but only one of them carries authority to commit spend, and a model that cannot tell them apart learns that sending a document is the same as approving it.

The fields below can be used as written. Entries are illustrative and describe no real company:

Eight fields that carry a decision and its files
FieldWhat it holdsRuleIllustrative entry
decision_spanThe message or messages that carry the decisionQuoted exactly, never summarizedApproved, except the rows I highlighted
parent_chainMessage IDs from In-Reply-To and ReferencesRebuilt from headers or thread IDs, not subject linesReply to message 5 of 6
artifact_refFile ID, version ID and SHA-256 hashOne entry per Flip or Narrow referenceMarked-up line-item sheet, as attached
version_evidenceRung on the evidence ladderRungs 4 and 5 cannot support a Flip labelRung 1, bytes inside the message
authorityRole that issued the file and role that decidedRecorded separately, as rolesFile from buyer; decision by budget owner
flip_classFlip, Narrow, Confirm, No bearing or unclassifiedAssigned before the file is openedFlip
gap_recordEach unresolved Flip or Narrow reference, with reasonRequired whenever one existsVendor quote: current version only
label_statusUsable, usable with gap, converted or withheldSet by rule from the fields aboveUsable with gap

Worked example: mapping a purchase approval thread for completeness

In this illustrative thread, the conversation alone produces the wrong label. Six messages cover a purchase requisition: a buyer sends a line-item spreadsheet, a vendor answers with a revised quote as a shared link, the buyer replaces an earlier wrong attachment, and a budget owner writes approved, except the rows I highlighted, with a marked-up copy attached. The task label asks which line items were approved and at what quoted unit price.

Read as text, the thread says approved. Mapped reference by reference, the answer depends on files the text never states: two of the five references are Flip-class, and only one of those resolves at a usable rung.

The decision follows from the map. The packet keeps the corrected spreadsheet and the marked-up copy at the versions attached, records the vendor quote as a gap because only today's version of the shared sheet exists, and labels the items approved except two lines, with the unit price withheld. Had the marked-up copy been lost, the honest label would be approval with unknown exceptions, and for an evaluation set the thread would become a task whose correct action is to ask for the missing file.

The context completeness map for the thread:

Worked example: mapping a purchase approval thread for completeness
ReferencePatternFile stateTwo-filling classPacket decision
R1: buyer's first spreadsheetCorrection by referenceAttached; replaced in message 3NarrowKeep, marked superseded
R2: vendor's revised quoteLive linkCurrent version onlyFlipGap record; price withheld
R3: corrected spreadsheetCorrection by referenceBytes in messageNarrowKeep
R4: budget owner's marked-up copyException by referenceBytes in messageFlipKeep; the item label depends on it
R5: signature logoInline imagePresentNo bearingExclude
An illustrative purchase approval thread with five file references, each joined to its two-filling class: two Flip references, one kept and one recorded as a gap, two Narrow and one with no bearing.
Context completeness map for the worked example. Illustrative: references and file states are invented.

Why not ship every linked file with the thread?

Because joining every file adds reading load, privacy exposure and false leads without adding meaning, so the packet should carry only what the two-filling test marks Flip or Narrow. The strongest objection to a minimal packet is that a model can sort relevance for itself, and the evidence on long inputs says not to count on it.

Liu and colleagues, in Lost in the Middle, found that language models often perform best when the relevant information sits at the beginning or end of the input, degrade significantly when it sits in the middle, and lose accuracy as the input grows, even for models built for long contexts. Twenty attached files around one decisive spreadsheet recreate that middle-of-the-input problem on purpose.

Files also hold the most sensitive material in a thread: customer spreadsheets, screenshots showing other people's names, documents written by third parties. Each one added to a packet is another item for privacy and rights review. When a single region of a long file decides the label, such as one highlighted row or the slide that holds the chosen option, keep that region with a pointer to the full file's hash instead of the whole document.

Decision rules, limits and the evidence still missing

Apply one rule per thread: the label is usable only when every Flip-class reference resolves at rung 1, 2 or 3 of the evidence ladder. The other outcomes follow from which references are open:

  • All Flip and Narrow references resolved at rungs 1 to 3: label usable.
  • Only Narrow references unresolved: label usable with a gap record naming the scope in doubt.
  • Any Flip reference unresolved: withhold the outcome label for training; for evaluation, make the expected action a request for the file.
  • Reviewers still disagree on a Flip classification after discussion: treat it as Flip and keep the disagreement in the log.
  • Limit: the test relies on reviewers imagining plausible fillings, so it misses reversals nobody anticipated, and workflow knowledge matters more than general reading skill.
  • Limit: it does not measure how much a model's score changes when Flip-class files are removed; no measured results are reported on this page.
  • Next evidence for your own sample: the share of references in each class, reviewer agreement on Flip, the share of Flip references stuck at rungs 4 and 5, and which system produces most of them.

Writing attachment requirements into a data request

Put the version rule and the acceptance test in the request itself, so a supplier knows which files must travel and how they will be checked. A request that only asks for conversations with attachments invites text exports full of links that resolve to today's documents.

SourceX keeps no ready-made inventory to pick from: each dataset is sourced from U.S. businesses after a buyer spells out the scope, volume, language, format, timing and licensing terms it needs. The supplying company signs off on scope and terms before a single record reaches SourceX, and very large file collections can remain in the supplier's own storage or move on encrypted drives instead of being hosted by SourceX. None of that tells you whether a particular archive kept its attachments at the right versions; the acceptance test does.

Three lines make an attachment requirement checkable:

Checklist · 3 items

  1. Scope: name the reference patterns your task depends on, for example exception, selection and correction by reference.
  2. Version rule: Flip-class files come from rung 1 or 2 of the evidence ladder, with the capture method stated.
  3. Acceptance test: in a random sample of threads, for example 200, every Flip-class reference resolves at the required rung or carries a gap record and no outcome label.

0 of 3 ticked. Tick each item as you go.

Frequently asked questions

Should conversations with missing attachments be removed from a dataset?

Not automatically. Remove the outcome label rather than the conversation when a missing file could flip that label, and keep the thread with a gap record when the file only narrows the scope or confirms the text. In an evaluation set, a thread whose decisive file is missing can become a task whose correct action is to ask for the file.

How can you tell which version of a shared document someone saw?

Look for evidence dated at or before the message: the file's bytes inside the message, a copy captured at share time by an archive set up to keep one, or a single revision in the document history that fits the window. A link resolved today proves only what the document says now; Microsoft documents that its eDiscovery default collects the most current version of a cloud attachment.

Is a link to a cloud file the same as an attachment in a dataset?

No. An attached file is fixed when the message is sent, while a link points at a document that can keep changing or be deleted. Slack's standard exports, for example, contain links to files rather than the files, so the content has to be collected separately and dated against the message.

Does a model need the whole attachment or only the referenced part?

Usually only the part the decision turns on, such as the highlighted rows or the slide with the chosen option, plus a hash of the full file so anyone can verify the excerpt. Research on long inputs found accuracy falls when the relevant passage sits in the middle of a long context, so extra pages carry a cost.

How many reviewers should run the two-filling test?

One reviewer can classify the full set if a second reviewer independently classifies a sample and every disagreement is logged. When reviewers still disagree about a Flip classification after discussing it, treat the reference as Flip, because a wrong label costs more than a gap record.

Sources

  • Tsipenyuk and Crowcroft (IML 2017) report that attachments account for about 80-90 percent of archive disk space in their private archives and the Enron corpus, that 24.49 percent of Enron messages carry attachments, and that neither Cohen's nor Shetty and Adibi's Enron versions contain attachments. Source
  • Slack's help center says standard workspace exports include links to files rather than the files themselves. Source
  • Microsoft's eDiscovery (Premium) documentation says the standard workflow adds only the most current version of a cloud attachment to a review set or export, which may differ from the version originally shared, and that collecting the shared version relies on a retention label configured for cloud attachments. Source
  • Google Vault's Gmail export can include a drive-links file listing Drive hyperlinks extracted from message content, included only when the Export linked Drive files option is enabled and at least one Drive link is found. Source
  • RFC 5322 section 3.6.4 says the In-Reply-To field may identify the message or messages a reply answers and the References field may identify a thread of conversation. Source
  • RFC 2183 says an inline body part is intended to be displayed automatically when the message is displayed, while an attachment's display depends on some further action of the user. Source
  • Liu et al. (Lost in the Middle) report that model performance is often highest when relevant information is at the beginning or end of the input, degrades significantly when it is in the middle of long contexts, and decreases as input contexts grow longer. Source

Tell us what data you need

Share scope, volume, format, timing and licensing needs. Datasets are sourced on request.

See if your company qualifies