Privacy and preparation
Computer use dataset private screen masking that keeps task evidence
By SourceX Editorial · Updated
9 sections
Short answer
Classify every on-screen element before masking it: incidental private content is removed, while the identifiers and values the task depends on are replaced with consistent, typed surrogates that keep format and joins. Apply the same surrogate in pixels, accessibility tree, keystrokes and tool payloads, then re-run the task's verifier on the masked record. If the outcome can no longer be checked, the masking failed.
Agent run
Computer use dataset private
Key takeaways
- Classify screen elements as evidence, context or incidental before choosing how to mask them.
- Remove secrets and incidental content; replace task evidence with consistent, typed surrogates.
- Apply one surrogate map across screenshots, accessibility trees, keystrokes, tool calls and state reads.
- Prove utility by re-running the task's verifier on the masked record.
- Drop and log tasks whose private content is itself the evidence.
How do you mask private screen content without hiding the task's evidence?
Decide what each visible element is for before deciding how to hide it. On a computer-use step, some content is evidence the agent needed to act or a grader needs to judge the result, some is context that explains the screen, and some is private material that happened to be visible. Only the last group can simply disappear. Evidence has to be transformed, not erased, so the record still shows which row was chosen and what value changed.
Three rules carry most of the weight. First, use a surrogate that keeps the type and shape of the original, so an order number still looks like an order number. Second, map each original value to the same surrogate everywhere it appears in the trajectory: the screenshot, the accessibility tree, the typed keystrokes, the tool call and the backend read. Third, prove utility by running the task's own check against the masked record, not by eyeballing a few frames.
This guide sets out a privacy and task utility review protocol you can run on a computer-use dataset before licensing or training on it, with an element classification table, an operator table, the review steps and pass criteria, an illustrative worked example and the cases where masking cannot rescue a task.
Why a blacked-out region can quietly invalidate a whole trajectory
In a text corpus, removing a name usually costs one token of context. In a computer-use trajectory, the masked region is often the exact thing the agent clicked, read or typed, so the step's action no longer has a visible target and the outcome can no longer be checked.
Common tools make this easy to get wrong. Playwright's screenshot mask option covers each masked element with a solid box, pink by default, over its full bounding box, and the mask also applies to invisible elements unless you restrict the locator to visible ones. rrweb, a widely used session-recording library, replays a blocked element as a placeholder of the same size, masks the text of elements carrying its mask class, and masks password inputs by default. Both are sound privacy defaults, and both remove the content rather than replacing it with something a grader can compare.
The other failure is inconsistency across channels. A value masked in the screenshot but left in the accessibility tree, the keystroke log or a tool payload is still exposed, and a value masked with different surrogates in different channels breaks the link the agent's reasoning depends on. Playwright's aria snapshots, for example, represent the accessibility tree as YAML with roles, attributes, values and text, so every value visible on screen can appear there too.
Which on-screen elements are evidence, context or incidental?
Classify by the element's role in this task, not by data type. A customer name can be incidental on one task and the target on another. The table gives the default treatment for each class and the utility requirement the masked version must still meet.
Build the inventory from three inputs, not from the screenshot alone: the task instruction, the agent's actions with their targets, and the fields the grader reads. Anything named in one of those three is a candidate for evidence. Everything else visible on the screen starts as incidental and moves up a class only if a reviewer can point to the step that relied on it.
| Element class | Example on a business screen | Privacy treatment | Utility requirement after masking |
|---|---|---|---|
| Task target identifier | The ticket or order number the instruction names | Consistent typed surrogate | Instruction, click target and backend read all show the same surrogate |
| Verified value | The status, date or quantity the grader compares | Keep if not personal; otherwise distinct typed surrogate per value | Before and after values stay distinguishable |
| Disambiguating neighbor | Another customer row with a similar name | Surrogate from the same family as the target | The agent still has to choose between two candidates |
| Secret | Password fields, API keys, session tokens | Remove everywhere, including tool payloads | Step records that a secret was entered, never its value |
| Incidental personal content | A chat notification, another tab, an email preview | Remove or block region | No task decision depended on it; confirm by replay |
| Free-text note | An internal comment describing a customer's situation | Remove spans; keep the note's existence and length class | Agent's read of the note can still be followed |
| Interface structure | Labels, buttons, menus, column headers | Keep | Layout and click coordinates still match |
Which masking operator preserves which kind of evidence?
Pick the operator per element class, not one for the whole dataset. Removal is safest for privacy and worst for utility; consistent surrogates are the reverse, so they belong only on elements the task needs.
Microsoft Presidio's anonymizer illustrates the options: replace, redact, mask, hash, encrypt or a custom function per entity type. Its hash operator now uses a random salt by default, so the same value gets different hashes across entities and calls unless you supply your own salt; the documentation says referential integrity requires an explicitly managed, consistent salt. That trade-off is exactly the decision a computer-use dataset faces.
| Operator | Keeps | Loses | Use on |
|---|---|---|---|
| Remove or block region | Layout size, if a same-size placeholder is used | All content and any link to other steps | Secrets and incidental content |
| Solid box over pixels | Position of the element | Value, type and identity | Incidental regions in screenshots only |
| Typed placeholder such as ORDER_ID | Entity type | Which entity, so two targets look the same | Single-entity tasks with no choice between records |
| Consistent pseudonym or keyed hash | Identity across steps and channels | The real value; key management becomes a duty | Target identifiers and disambiguating neighbors |
| Format-preserving surrogate | Length, pattern and checksum shape | Real value; may collide with a real one if not reserved | Fields the application validates, such as order numbers |
| Generalization | Rough magnitude or period | Exact value the grader may need | Dates or quantities not compared by the verifier |
The privacy and task utility review protocol
Run the protocol per task, then sample across the dataset. Two reviewers sign off: a privacy reviewer who looks for anything left exposed, and a task reviewer who checks that the masked trajectory still proves what it claims. Neither review can pass the other's checks.
Record the result of every step in the task's metadata so a buyer can audit it without the unmasked originals. The step names below are a suggested design, not a published standard.
- Run steps 1 to 3 on every task; they are cheap once the inventory exists, and a missed channel is the most common leak.
- Run steps 4 and 5 on a random sample per application and per screen type, and on every task that contains free text or images inside the application.
- Run step 6 on every task that has an automatic verifier; where grading is manual, have the task reviewer grade a masked copy blind and compare with the original grade.
- Re-run the whole protocol when the operator map, the masking code or the application version changes, because a new screen layout can move private content into regions the old map never covered.
| Step | Reviewer | Pass condition | Record kept |
|---|---|---|---|
| 1. Element inventory | Task reviewer | Every element the instruction, action or grader touches is listed with a class | Inventory with class per element |
| 2. Operator assignment | Privacy reviewer | Each class has an operator; secrets are removed everywhere | Operator map and its version |
| 3. Cross-channel application | Engineer | Same surrogate in screenshot, accessibility tree, keystrokes, tool calls and backend reads | Channel coverage report |
| 4. Residual scan | Privacy reviewer | OCR and text scans of masked output find no original values from the inventory | Scan log and sample frames |
| 5. Replay check | Task reviewer | Each action still has a visible, unambiguous target | List of steps whose target became ambiguous |
| 6. Verifier re-run | Task reviewer | The task's state check returns the same verdict on masked and unmasked records | Verdict pair per task |
| 7. Disposition | Both | Pass, re-mask with a different operator, or drop the task | Decision, reason and reviewer names |
What proves the business state changed once values are masked?
The proof is the same as before masking, a read of application state after the action, but the read must use the same surrogates as the screen. OSWorld, a public computer-use benchmark, pairs each task with a setup configuration that establishes the initial state and an evaluator that checks the result, which is the right model: the verdict comes from state, not from how the final frame looks.
Masking adds one constraint. If the backend read is masked with a different mapping from the screenshot, the verifier compares two unrelated surrogates and reports a failure that never happened, or worse, a success. Generate the surrogate map once per task from the unmasked inventory, apply it to every channel including the state read, and store only the map's version and key reference with the dataset, never the map itself.
Where the verified value is itself personal, such as a changed contact address, the before and after values need different surrogates. A single placeholder for both makes every update look like no change.
Worked example: an address update that masking made unverifiable
This example is illustrative and invented. A helpdesk trajectory has 14 steps: the agent searches for a customer by order number, opens the right one of two similar accounts, edits the shipping address and saves. The grader compares the address field in the backend before and after.
First pass: the masking pipeline replaced every address with the placeholder ADDRESS and every order number with ORDER_ID. The privacy review passed. The verifier re-run failed, because the before and after addresses were now identical strings and the two candidate accounts were indistinguishable, so step 5 had no unambiguous target.
Second pass: order numbers became keyed surrogates from a reserved pattern, the two account names became distinct pseudonyms, and the old and new addresses became two distinct typed surrogates. Both reviews passed and the verdict pair matched.
Exception in the same batch: a second task's instruction was to read an internal note describing a customer's personal circumstances and route the ticket accordingly. The note's content was the evidence, and every operator that protected it also removed the reason for the routing decision. The task was dropped rather than masked, and the drop was recorded with its reason.
When to drop a task instead of masking it harder
Drop the task when the private value is the evidence. No operator can both hide a value and let a grader confirm that the agent read it correctly. Keep the drop rate visible, because a dataset that silently loses its hardest tasks will overstate how well an agent handles real work.
- The instruction or decision depends on the meaning of private free text.
- The grader must compare a personal value that cannot be replaced with a consistent surrogate without breaking application validation.
- Third-party content fills the screen and cannot be masked consistently across frames.
- Automated detection is unreliable for the content type; Presidio describes its image redactor as beta and not production ready, so pixel text needs human sampling.
- The residual scan or replay check fails twice after re-masking.
What to ask a supplier of masked computer-use data
Ask for evidence of both reviews, not a statement that data was anonymized. De-identification removes the association between data and the people it describes in order to limit disclosure risk, and NIST's SP 800-188 frames it as a balance between that risk and continued usefulness. A buyer needs to see where each dataset landed on that balance.
Request the operator map version, the channel coverage report, verdict pairs for a sample of tasks, the list of dropped tasks with reasons, and confirmation that surrogate keys are held by the supplier or processor and not shipped. Masking also does not settle who may license the screens: content from a business's customers, vendors and software providers raises rights questions that need their own review.
Masked screen data is not something SourceX keeps on hand; it looks for suitable U.S. businesses once a buyer asks. That request can describe scope, volume, language, format, timing and licensing needs, including the masking and verifier evidence a computer-use dataset should carry.
Frequently asked questions
What should a privacy and task utility review protocol include?
It should include an element inventory with a class for each element, an operator map, a cross-channel coverage check, a residual scan, a replay check and a re-run of the task's verifier on the masked record. Each step needs a pass condition and a stored result. Two reviewers, one for privacy and one for task utility, should both sign off.
Is blurring enough to mask text in screenshots?
Blurring hides content from a casual viewer but removes the value from grading just as a box does, and light blurs can sometimes be read. For task evidence, a consistent surrogate rendered into the frame is better. For incidental content, a solid block or same-size placeholder is simpler and safer.
Do I need to mask the accessibility tree as well as the screenshot?
Yes. Accessibility snapshots carry roles, names, values and text, so anything visible on screen can appear there. The same applies to keystroke logs and tool-call payloads, and all of them should use the same surrogate map.
How do I keep masked values consistent across steps?
Generate a surrogate map once per task, or per dataset if records repeat across tasks, and apply it to every channel. Keyed hashing with a managed key or salt gives the same output for the same input; random salts do not. Keep the key with the supplier or processor, never in the delivered dataset.
Can synthetic screens replace masking?
Synthetic screens avoid exposure but lose the real interface quirks and data patterns that make business trajectories valuable. Some teams mix them, masking real trajectories and adding synthetic ones for rare cases. Label which is which so evaluation stays honest.
Sources
- Playwright's screenshot mask overlays masked elements with a pink box covering the bounding box and also applies to invisible elements. Source
- Playwright aria snapshots are a YAML representation of the accessibility tree with roles, attributes, values and text. Source
- rrweb replays blocked elements as same-size placeholders, masks text in elements with its mask class and masks password inputs by default. Source
- Presidio offers replace, redact, mask, hash, encrypt and custom operators, and its hash uses a random salt unless one is supplied for referential integrity. Source
- Presidio's image redactor detects and redacts PII text in images and is described as beta and not production ready. Source
- OSWorld tasks pair a setup configuration for the initial state with an evaluator that checks the result. Source
- NIST SP 800-188 defines de-identification as removing the association between identifying data and the data subject to limit disclosure risk while supporting analysis. Source
Tell us what data you need
Share scope, volume, format, timing and licensing needs. Datasets are sourced on request.