Skip to content

Dataset

Document revision and approval history datasets for AI training

A document revision history dataset is the full drafting record of business documents: every saved version, each tracked insertion, deletion and comment, whether the change was kept, and the approval route showing who signed off, when and with what stated reason. SourceX sources these to a buyer's spec from established businesses that hold them in Word and Google Docs histories and in document management and approval systems. Each dataset is de-identified and licensed for an agreed permitted use, and the buyer confirms how privileged legal comments were excluded.

Dataset manifest

Sourced to your spec
What it is
Drafting histories of business documents with tracked changes, their outcomes, comments and the approval route
Typical systems
Microsoft Word, Google Docs, SharePoint, Power Automate Approvals, iManage, NetDocuments, M-Files
Typical history
Specified by the buyer; limited by each library's version retention and by when approvals moved into a system
Modality
Document files with change markup, plus structured approval events joined on document identity
Delivery formats
Agreed per order; original .docx versions, extracted changes and approval events as JSONL, plus a lineage table
Preparation
Authors and approvers pseudonymized; confirm one pseudonym per person across files and approval logs, and how privileged comments were excluded
Licensing
Rights reviewed per document class; permitted use set in the license
Availability
Sourced to your spec from businesses that kept intermediate versions; supply is not guaranteed
Office documents and PDFsIllustrative

What a delivery contains

Fields vary by source system and are fixed per order. A typical delivery includes:

FieldTypeWhat it holds
document_keystringStable pseudonymous ID for one document across its life, the key that joins text versions to approval records.
document_classenumPolicy, procedure, proposal, report, specification or customer letter, from the library's content type or an agreed classification.
titlestringDocument title as stored, with person and organization names replaced.
lineageobjectHow files were linked into one document: system ID, document number, content hash or filename match, with a confidence flag.
saved_versionsarrayEach saved version in order with its label, timestamp, editor pseudonym, check-in comment and extracted text.
tracked_changesarrayInsertions, deletions, moves and formatting changes in a version, each with change ID, author pseudonym, date and the text it touches.
tracked_changes[].change_resolutionenumAccepted, rejected, accepted then reworded, still pending or unknown, for each tracked change.
tracked_changes[].resolution_basisenumWhether the resolution was recorded by the source system or inferred by comparing versions, with a flag for bulk accepts.
untracked_editsarrayDifferences between consecutive versions that no tracked change explains, which show where tracking was off.
comment_threadsarrayMargin comments with the anchored text, replies in order, author pseudonyms and resolved flag, plus a count of comments removed as privileged.
approval_routeobjectThe route the document was sent on: serial or parallel, the ordered steps by role, and the rule that chose the route where recorded.
approval_actionsarrayEach response on the route: approved, rejected, returned, delegated or recalled, with timestamp, stated reason and the version acted on.
submission_cyclesarrayEach pass through the route: the version submitted, the outcome and the changes made between a rejection and the resubmission.
released_versionobjectThe version that took effect, its effective date, any PDF rendition used for sign-off and the document it replaced.
Sample recordIllustrative

Field names from the table above; values are masked placeholders.

Example record

{
  "document_key": "doc_7f3c91",
  "document_class": "policy",
  "title": "Supplier onboarding policy",
  "lineage": {"method": "library_item_id"},
  "saved_versions": [
    {"label": "2.1", "t": "2024-03-04T15:12:00Z", "editor": "p_0412"},
    {
      "label": "2.2",
      "t": "2024-03-06T09:40:00Z",
      "editor": "p_0388",
      "checkin_comment": "Resolved risk comments"
    },
    {"label": "2.4", "t": "2024-03-12T14:05:00Z", "editor": "p_0388", "checkin_comment": "Waiver terms"}
  ],
  "tracked_changes": [
    {
      "change_id": "c14",
      "in_version": "2.1",
      "kind": "insertion",
      "author": "p_0412",
      "text": "and a completed sanctions screening",
      "change_resolution": "accepted",
      "resolution_basis": "inferred_from_next_version"
    },
    {
      "change_id": "c15",
      "in_version": "2.1",
      "kind": "deletion",
      "author": "p_0412",
      "text": "unless waived by the requesting manager",
      "change_resolution": "rejected",
      "resolution_basis": "inferred_from_next_version"
    }
  ],
  "untracked_edits": [{"between": ["2.2", "2.4"], "text_added": "within five business days"}],
  "comment_threads": [
    {
      "anchor": "unless waived by the requesting manager",
      "resolved": true,
      "comments": [
        {"author": "p_0412", "role": "risk_reviewer", "text": "Waivers defeat the control. Remove."},
        {"author": "p_0388", "role": "policy_owner", "text": "Keeping it. Urgent suppliers need a route."}
      ]
    }
  ],
  "approval_route": {"mode": "serial", "steps": ["procurement_director", "chief_risk_officer"]},
  "approval_actions": [
    {"cycle": 1, "role": "procurement_director", "action": "approved", "on_version": "2.2"},
    {
      "cycle": 1,
      "role": "chief_risk_officer",
      "action": "rejected",
      "t": "2024-03-08T16:30:00Z",
      "on_version": "2.2",
      "stated_reason": "Waiver needs a named approver and an expiry date."
    },
    {
      "cycle": 2,
      "role": "procurement_director",
      "action": "approved",
      "delegated_to": "deputy_director",
      "on_version": "2.4"
    },
    {
      "cycle": 2,
      "role": "chief_risk_officer",
      "action": "approved",
      "t": "2024-03-14T11:20:00Z",
      "on_version": "2.4"
    }
  ],
  "submission_cycles": [
    {"cycle": 1, "submitted_version": "2.2", "outcome": "rejected"},
    {
      "cycle": 2,
      "submitted_version": "2.4",
      "outcome": "approved",
      "changes_since_rejection": ["c21", "c22"]
    }
  ],
  "released_version": {"label": "3.0", "effective": "2024-04-01", "replaces": "2.0"}
}

Synthetic record for illustration. Field names, structure and format are agreed per order.

What AI teams use it for

Train edit suggestion models

Resolved changes give kept and discarded proposals for the same passage, so a model learns which suggestions a reviewer accepts.

Revise to reviewer feedback

A rejection reason followed by the edits made before resubmission is an instruction paired with a response that an approver then accepted.

Check a draft before submission

Versions labeled with the approver response that followed train a checker to flag what an approver is likely to send back.

Answer review comments

Comment threads anchored to text, with the change that closed each one, train assistants to respond with an edit or a reasoned refusal.

Evaluate document agents

On held-out documents, score an agent's proposed edits against what reviewers kept and what approvers signed.

Use-case guides: Document AI, enterprise search and RAG, Enterprise and computer-use agents, Private evaluation sets, Legal AI

What makes this data valuable

Intermediate versions kept

A change can only be labeled when one version shows it pending and the next shows it resolved.

Rejected changes present

A set with only accepted edits has no negatives. Check the share of rejected proposals.

Per-person authorship

Changes and comments carry distinct author pseudonyms, not one generic label for everyone.

Route pinned to versions

Each approval action names, or can be tied to, the version it was taken on.

Stated reasons

Rejections and returns carry text the approver wrote, not only a status code.

Resubmission cycles

Documents that went round the route more than once link each reason to the edits that answered it.

Record timeline

Document revision history

This page covers document revision and approval histories.Illustrative

Accepted and rejected changes are labeled editing decisions

A first draft and a final version show that the text changed. They do not show who proposed each change, which proposals were turned down, or which sentences the author rewrote unprompted. A tracked change records all three: one person proposes an edit to a specific span, and someone with authority over the document keeps it or discards it. Rejected proposals leave no trace in the final text, so a first-and-last pair holds no negative examples and cannot tell an accepted suggestion from the author's own rewrite. Resolved changes teach a model which edits a reviewer keeps, and the comment anchored to the same span often gives the reason.

The label is rarely stored, so it has to be derived. In a .docx file a pending insertion sits in the body inside a w:ins element and a pending deletion inside a w:del element, each carrying an author, a date and an ID. Accepting an insertion removes the wrapper and leaves plain text. Rejecting it removes the inserted words. A deletion resolves the other way round. Neither action writes a record into the file, so the decision is read from the next saved version, which only works when versions were saved often enough to show a change pending in one and resolved in the next.

Three things corrupt the labels. A single Accept All before sign-off is a cleanup, not a set of decisions, and shows up as every pending change resolving the same way between two versions. When tracking is switched off partway through, edits appear only as differences between versions with no author. And Word has a setting that removes user information from comments and revisions when the file is saved, after which changes can no longer be told apart by author.

The approval route explains why the text changed, and it lives elsewhere

Many edits between two versions have no cause visible in the text. A clause is rewritten between version 2.2 and version 2.4 because the second approver rejected the document and wrote why. The approval route records what the file cannot: the order in which roles had to sign, who acted as delegate for an absent approver, each rejection with its stated reason, and the resubmission that started the route again. Joined to the versions, a rejection reason becomes an instruction, the edits before resubmission become the response, and the next approval is the acceptance test.

The route is not in the document. The text sits in a library as files, and the approval sits in a workflow tool. SharePoint's content approval keeps an approval status, such as pending, approved or rejected, and an approver comment on the library item. A Power Automate approval is stored in Dataverse, apart from the library that holds the file. A quality or legal document management system typically records a signature against a document number and revision. Many approvals are an email reply, or a signature on a PDF rendition that matches no Word version.

The join needs document identity and version, and both are fragile. A Save As copy, or a file emailed out and uploaded again, gets a new system ID. Approval records often point at the item, not at a version, so the version acted on has to be fixed by time: the last one saved before the response. Confirm which time zone each system wrote its timestamps in.

What to check before licensing

  • Ask how author and approver identities are pseudonymized, and confirm one person gets the same pseudonym in change markup, comments, version metadata and approval logs.
  • Confirm how privileged legal comments were identified and excluded, and ask for the count removed per document so you can see where threads have gaps.
  • On a sample, count versions per document. Histories with only a first and a final version cannot yield change resolutions.
  • Ask whether each change resolution was recorded by the source system or inferred by comparing versions, and how bulk accepts are flagged.
  • Check how files were linked into one document, and what share of links rest on a system ID versus a filename or content match.
  • Ask which system holds the approval records, whether approvals given by email or on a signed PDF are included, and how each action was tied to a version.
  • Confirm which time zone tracked-change dates and approval timestamps were written in before ordering events across systems.

Delivery No files move before a signed license. A listing or a request grants no files by itself.

How licensing works through SourceX

  1. 1

    Define

    Send the domain, modality, volume, format, timeline and permitted use you need.

  2. 2

    Source

    SourceX identifies businesses that hold matching data and are open to licensing it.

  3. 3

    Qualify

    Fit, rights and quality are checked, and you review samples before committing.

  4. 4

    License

    Scope, permitted use, exclusivity, price and obligations are agreed in writing.

  5. 5

    Deliver

    Approved data is prepared, de-identified where required and transferred securely.

Questions Acquisition Partners ask

How is this different from pairs of first drafts and final versions?

A draft-and-final pair shows only the net change. It cannot show which proposed edits were rejected, who proposed the ones that survived, or what an approver objected to. A revision history keeps each proposal as a separate item with its outcome, which gives positive and negative examples at the level of a single edit.

How do you know whether a tracked change was accepted or rejected?

Usually by comparing versions. Word does not record the accept or reject action in the file, so the resolution is derived by finding a change pending in one saved version and checking whether its text is in the next. Each resolution should say whether it was recorded or inferred, and changes resolved in one bulk action should be flagged.

What does an approval record contain, and how is it joined to the text?

It holds the route and each response on it: the role asked, the action taken, the timestamp, any stated reason and any delegation. It usually lives in a workflow or document management system, separate from the files. The join runs on a document identifier and, where the record names one, a version label. Otherwise the version is fixed by timing and marked as inferred.

Can Google Docs histories be used as well as Word files?

Yes, with different limits. Pending suggestions in a Google Doc can be exported as tracked changes in a .docx file, and comment threads carry their replies and resolved state. Earlier states depend on the version history the business kept and on what its export route can reach, so ask how many versions per document a sample holds.

How are authors and approvers de-identified?

Names are replaced with pseudonyms. One person should get the same pseudonym in change markup, comments, version metadata and approval logs. The method is recorded for each dataset and a sample is checked after processing. No method is perfect, so check file properties, comment initials, headers and signature blocks on your sample.

Are privileged legal comments included?

They should not be, and you should confirm it before you license. The supplying business decides what is privileged, usually with its own counsel, and those comments and changes are meant to be excluded before delivery. Ask how they were identified and for the count removed per document, which shows where a thread has a gap, and have your counsel confirm the approach suits your intended use.

Evaluating this data for procurement?

Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.

Request dataset diligence

Tell us what your models need

Send your spec — domain, volume, format, timeline and permitted use — and SourceX will match it against partner data and come back with what can be licensed.

Updated 25 November 2026. Own data like this? See how companies license it to AI developers.

See if your company qualifies