Privacy and preparation
Work product feedback dataset: three gates and a withheld-cause flag
By SourceX Editorial · Reviewed by Noah Loul ·
9 sections
Short answer
A work product feedback dataset pairs each version of a document, design or code change with the reviewer comments that shaped the next version. Admit a comment only if its author could see it, it asked for or justified a change, and the company approved that feedback class for release. Prove each link from anchors and resolutions, and flag edits whose cause sat in a private comment.
Redaction
Work product feedback
Key takeaways
- The unit is a pair, not a comment: a version, visible feedback, the response and the next version, joined by recorded link evidence.
- Private is a system property first: internal notes, role-restricted comments and pending reviews each carry a flag or state an export can filter on.
- Many review comments are not change requests; Microsoft researchers found code reviews deliver knowledge transfer and team awareness as well as defect fixes.
- Record links at the source, because inferring them later is hard: in the ARIES study GPT-4 scored 27.0 micro-F1 at matching comments to edits, against 70.7 for humans.
- When a private comment drove an edit, ship the edit with a withheld-cause flag instead of letting a visible comment take the credit.
What belongs in a work product feedback dataset?
A work product feedback dataset holds pairs: one version of a work product, the reviewer feedback its author could see, the author's response, and the next version, joined by evidence that the feedback caused the change. A work product is anything revised under review, such as a proposal, a policy, a drawing set or a pull request. The pair, not the loose comment, is the unit a model learns from.
That framing rules out the two easiest exports. A dump of every comment loses the revision that answered it, so a model sees requests without outcomes. A version history without comments shows what changed but never why, so a model learns edits with no reason attached. Teams training revision assistants, review-comment generators or graders of draft quality need both halves, plus the cases where a reviewer asked and the author said no.
Research datasets show such pairs are learnable. The CodeReviewer study (Li et al., 2022) collected code changes and review comments from GitHub pull requests in nine programming languages and defined a code refinement task: revise the code according to the review. The ARIES corpus (D'Arcy et al.) linked peer review comments on computer science papers to the edits authors made in response. Both drew on public review venues, where private remarks were not part of the record. A company archive is different, because its reviews mix shareable feedback with notes that were never meant to leave a small group.
Which comments count as private, system by system?
Treat a comment as private when the source system limited who could read it, whatever its tone. Each common system marks that limit in its own way, so the export filter has to read each system's flag or state instead of guessing from the wording.
GitLab's internal notes can be read only by project members with at least the Reporter role; they cannot be converted into regular comments, and every reply inherits the internal status, so a thread that starts internal stays internal. Jira Cloud's comment API returns a restricted comment only to a user who belongs to the group, or holds the role, the comment is limited to. GitHub holds the comments of a started review as pending, and pending comments are visible only to the reviewer until the review is submitted. Google Drive's comment records serve a different purpose here: they store the anchored region and quoted text, which the linking step uses.
The table turns those mechanics into export rules. Check each against the vendor's current documentation on the day of export, since visibility features change between releases:
| System | Private form | What the export or API shows | Rule for the dataset |
|---|---|---|---|
| GitLab issues and merge requests | Internal note | An internal attribute on the note, inherited by every reply | Exclude the note and its whole thread |
| Jira Cloud | Comment restricted to a group or role | A visibility object naming that group or role | Exclude any comment carrying a restriction |
| GitHub pull requests | Comment in a pending review | A review in the pending state, never submitted | Exclude; the author never saw it |
| Any system | Side conversation about the work in chat or email | A message with no tie to the version | Exclude by default; flag it if it changed the work |
The three admission gates: visible, substantive, approved
A comment enters the dataset only after three gates, in order: the author could see it, it asked for or justified a change to the work product, and the company approved that class of feedback for release. Each gate removes a different risk, and tightening one cannot make up for skipping another.
The visibility gate is mechanical and uses the flags above. Apply it to what the author could see while revising, not to what is visible on export day: a comment made public later was still private while the work changed, and a public comment deleted later may still have shaped the edit.
The substance gate strips out volume that teaches nothing about revision, because many review comments are not change requests at all. A Microsoft Research study of code review (Bacchelli and Bird, ICSE 2013) found that although finding defects is the stated motive, reviews also deliver knowledge transfer, team awareness and alternative solutions. Thanks, approval-only remarks and scheduling notes belong in counts, not in pairs. A later Microsoft study (Bosu, Greiler and Bird, MSR 2015) built a classifier for useful review comments and applied it to 1.5 million comments from five projects; two of its features were whether a comment was marked resolved and whether the code around it changed, signals the linking step reuses.
The approval gate is the company's decision, recorded per feedback class: client reviewer comments, internal peer review, compliance review. Approval covers releasing the text itself, not only learning from it, and the reviewer's role travels with each comment so a buyer can tell a senior approver's instruction from a peer's suggestion.
How do you prove a comment caused a revision?
Prove it with link evidence that the system or the people involved recorded at the time, graded by strength, never with a model's guess added afterwards. Late inference is the expensive path: in the ARIES study the best model tested, GPT-4, reached 27.0 micro-F1 at identifying which edits answered a review comment, against 70.7 for humans, and models struggled most when the relationship was indirect.
At a glance
How do you prove a comment caused a revision
Systems already keep much of the evidence. A Google Drive comment stores the region of the document it is anchored to and the quoted text, and a reply can resolve or reopen it; a resolved thread whose anchored text changed in the next version is strong evidence. The ARIES authors built their larger synthetic set on a second kind, author responses that quote a review comment and answer it with text close to the edit itself.
Grade every pair so a buyer can filter by confidence:
- Grade A, anchored and resolved: the comment points at a region, the thread was resolved, and that region changed in the next version.
- Grade B, answered in words: the author's reply or response letter quotes or names the comment and describes the change.
- Grade C, proximate: the comment and the edit overlap in region or fall in the same revision window, with no reply. Ship only for uses that tolerate noise, and label it.
- Declined: the author replied and kept the work as it was. Keep these, because a revision assistant has to learn when not to act.
- No link: a substantive comment with no reply and no matching change. Count it; do not pair it.
Add a withheld-cause flag when a private note drove the edit
When a revision answers feedback the dataset cannot include, ship the edit with a withheld-cause flag rather than leaving it unexplained or letting a nearby public comment take the credit. The flag states that this change had a cause outside the packet; it carries no text, no author and no time finer than the revision window.
It prevents two quiet errors. Without it, a model sees authors rewriting passages for no reason and learns unprompted edits. Worse, a linking script that pairs every change with the nearest visible comment will credit the private instruction to a public one, producing a Grade C pair that is simply false. The mirror case needs the same care: a public comment answered only in a restricted thread gets a withheld-response flag, so the pair is not counted as ignored feedback.
The flag needs its own privacy decision, since even the existence of a hidden comment can say something, such as a legal review just before a policy change. Default to the coarsest form, one yes-or-no value per edited region, and let the company's reviewer drop the flag where its existence is sensitive, recording that choice in the data card.
An annotated minimal task packet for one policy revision
Illustrative: a distributor revises its customer returns policy from version 3 to version 4 in Google Docs. A customer success lead comments that the return window should match the 30 calendar days in the standard contract; the author edits the clause and resolves the thread. A sales manager writes that it looks good. A legal reviewer leaves a comment restricted to the Legal role on the related Jira ticket, after which the author narrows which items can be returned. A warehouse lead asks for a photo requirement on damaged items, and the author declines in a reply.
Method note: the case is invented for this article on 2026-10-27, and each field follows the documented behavior of the systems named above. Not measured: how often private notes drive edits in real archives, the share of pairs that reach Grade A, and whether this packet design improves any model.
Everything below ships for this revision, and the figure shows how the four comments resolve:
| Packet element | Illustrative content | Source and link evidence | Ship rule |
|---|---|---|---|
| Work product versions | Returns policy v3 and v4, with a diff of two edited regions | Docs version history, both versions exported | Ship both versions and the diff |
| Pair 1, accepted | Return window should read 30 calendar days, as in the standard contract | Anchored comment, resolved by reply, region changed: Grade A | Ship text, reviewer role and grade |
| Pair 2, declined | Add a photo requirement for damaged items; reply says carriers already record damage | Comment plus author reply, no change | Ship text, reply and declined status |
| Edit 2, returnable items narrowed | Clause listing returnable items rewritten | Cause was a Legal-only Jira comment | Ship the edit with a withheld-cause flag only |
| Courtesy remark | Looks good to me | Visible, asks for no change | Count it; no pair |
| Context elements | Reviewer roles, the policy owner's sign-off on v4, effective date | Docs and the approval record | Ship roles and dates, no names |
Context completeness map: what this packet supports and blocks
The completeness map records, element by element, whether the packet holds something as recorded, linked, withheld or missing, and what each status allows. It is the summary a buyer reads before deciding whether the packet fits a training or grading task.
Here, one of two edits carries a withheld cause, which still leaves the packet useful for learning to revise from comments. It is not useful for judging whether version 4 was the right policy, because nothing after release is included. Both facts belong in the data card:
| Element | Status | Supports | Blocks |
|---|---|---|---|
| Before and after versions | Recorded | Edit generation and diff-based grading | Nothing |
| Accepted pair, Grade A | Linked | Learning to revise from a comment | Nothing for this pair |
| Declined pair | Linked | Learning when not to act | Judging the decline beyond the stated reason |
| Cause of edit 2 | Withheld | Knowing the change had an outside cause | Training on that edit as a comment response |
| Reviewer identities | Withheld by design | Role-level analysis | Modeling any one person's style |
| Outcome after release | Missing | Nothing | Judging whether v4 reduced disputes |
Would the full review history teach more than the gated packet?
Usually not, and the fuller version carries the burden of proof. Adding every thread, side conversation and reviewer profile raises what can leak and what can be wrongly linked faster than it adds signal about how good revisions get made.
The evidence runs the same way. Bosu and colleagues found that the more files a change touches, the lower the share of its review comments the author finds useful, so bulk mostly adds low-value remarks. The ARIES results show that indirect comment-to-edit relationships are where automated linking fails, and side channels are mostly indirect. Every private note admitted would also widen the privacy review from professional feedback to candid remarks about clients and colleagues.
Test the question instead of debating it. Keep the buyer's acceptance task fixed and compare the gated packet with a variant that adds the approved but lower-grade material, Grade C pairs and courtesy remarks, on held-out pairs. Private notes enter neither variant; their influence shows only through withheld-cause flags. Add the extra material only if it lifts the score by more than run-to-run noise.
Writing a work product feedback requirement a supplier can fill
State the pair, the gates and the acceptance test, and a supplier can tell quickly whether an archive fits. A useful requirement names the work product type and source systems, the minimum link grade, whether declined pairs are wanted, how withheld-cause flags should appear, the reviewer-role vocabulary, and the check the buyer will run on a sample.
SourceX does not keep a shelf of datasets; it sources from U.S. businesses against each buyer's request, so the request form is where those rules belong, alongside scope, volume, format, timing and licensing needs. The supplying company chooses which feedback classes may leave and signs off on scope and terms before any records are delivered, and de-identification is carried out by SourceX directly or through its processing partner. None of this implies that a matching archive exists today or that a sample will pass your check.
Send the acceptance test with the request. For example: a sample of pairs graded A or B, declined pairs marked, withheld-cause flags present, and the score your revision model must reach on held-out pairs.
Frequently asked questions
Can private review comments be anonymized and included instead of excluded?
Removing names does not change who was allowed to read a comment. A note restricted to a legal role was written for that audience, and its content may be confidential even without an author. Exclude it, and use a withheld-cause flag where it drove an edit.
What counts as substantive reviewer feedback?
A comment that asks for a change to the work product or explains why one is needed. Thanks, approval-only remarks and scheduling notes are not substantive; count them for context, but do not pair them with revisions.
Why keep declined suggestions in a feedback dataset?
Knowing when not to act is part of reviewing well. A declined pair with the author's reason teaches a revision assistant that some comments deserve an answer rather than an edit, and it stops the dataset from implying that every comment produces a change.
How do you link a Google Docs comment to the next version?
Use the comment's anchored region and quoted text, check whether a reply resolved the thread, and compare that region across the two versions. A resolved comment whose anchored text changed is strong evidence; an unresolved comment near a change is weak and should be labeled that way.
Do code review datasets prove this works for business documents?
They show that comment-and-revision pairs are learnable, not that business documents behave the same way. Datasets such as CodeReviewer and ARIES come from public review venues, while company archives add private notes, side channels and approval chains, so test on a sample from the target domain.
Sources
- GitLab internal notes can be viewed only by project members with at least the Reporter role, cannot be converted to regular comments, and pass their internal status to replies. Source
- Jira Cloud returns a comment with visibility restrictions only to a user who belongs to the group or has the role the comment is restricted to. Source
- On GitHub, comments in a started review stay pending and are visible only to the reviewer until the review is submitted. Source
- The Google Drive API comment resource stores an anchor region, the quoted file content and whether a reply resolved the comment; replies can resolve or reopen. Source
- ARIES links peer review comments to paper edits; GPT-4 reached 27.0 micro-F1 at comment-edit alignment against 70.7 for humans, and synthetic labels used author responses that quote comments. Source
- CodeReviewer gathered code changes and review comments from GitHub pull requests across nine programming languages and evaluated a code refinement task. Source
- Bosu, Greiler and Bird applied a useful-comment classifier to 1.5 million review comments from five Microsoft projects, using features such as resolved status and changes to surrounding code, and found larger changes yield a lower share of useful comments. Source
- Bacchelli and Bird found code reviews are less about defects than expected and provide knowledge transfer, team awareness and alternative solutions. Source
Tell us what data you need
Share scope, volume, format, timing and licensing needs. Datasets are sourced on request.