Work Case study 6-27 Oct 2026
A privacy gate before cloud AI, tested by attack, and the scope ruling that followed.
I set the rule that anything my local server passes to a cloud model is anonymized first, with the pseudonym map kept local and the gate failing closed. When an independent synthetic attack showed strict mode let tracked personal data through in 432 of 1,247 deliberately hard cases, I ruled real third-party data out of scope for the tool until a held-out test passes.
01 At a glance
Key results
- When
- 6-27 Oct 2026
- Directions
- AI and automation · Security and accessibility
- Real third-party data ruled out of scope after strict mode let tracked personal data through in 432 of 1,247 hard cases (34.6%)
- Independent synthetic attack: 1,363 cases (2,726 calls per run)
- 0 of 80 false refusals on ordinary text
- Anonymizer hardened over five rounds; log-digest tool through 10 review rounds
- Cloud reads designed to drop from 50-500 KB to 1-3 KB per log
02 Diagram
Privacy gate before cloud AI: rule, attack, ruling
Long description of the diagram
Heading shown in the diagram: "Privacy gate before cloud AI: rule, attack, ruling".
The top row is the data flow, left to right. Below the gate, a top-to-bottom pipeline shows how the gate was tested and the ruling that followed. The right column shows a related log-digest tool and Gwyn's environment rules.
Elements
- Local server: Some data passing through is personal
- Anonymizer gate [marked: Gwyn's own decision or action]: Rule set by Gwyn, 6 Oct: anonymize first; pseudonym map stays local; fail closed
- Cloud model: Sees anonymized data, or data the owner agreed to in writing
- Hardening: Five rounds on the anonymizer; first real use (6 Oct) left no residue
- Independent synthetic attack, 7 Oct: 1,363 cases (2,726 calls per run)
- Result [marked: leak rate found]: Strict mode let tracked personal data through in 432 of 1,247 hard cases (34.6%); 0 of 80 false refusals on ordinary text
- Gwyn's scope ruling [marked: Gwyn's own decision or action]: Real third-party data out of scope for the tool until a held-out test passes
- Log-digest tool [marked: not yet run for real]: Local 120B model digests long logs, so the cloud agent reads 1-3 KB instead of 50-500 KB; Input-scope controls; number and ID leak checks; quote verification; 10 review rounds; not yet run against the real local server
- Environment rules (27 Oct) [marked: Gwyn's own decision or action]: Six decisions for Gwyn's product: email addresses disarmed in non-production copies; cloud reviewers see only counts, hashes and field names, never the data
Connections
- Local server → Anonymizer gate
- Anonymizer gate → Cloud model
- Hardening → Independent synthetic attack, 7 Oct
- Independent synthetic attack, 7 Oct → Result
- Result → Gwyn's scope ruling
- Anonymizer gate → Hardening (labelled "tested by")
Key
Status is never shown by colour alone: each marked box also has a band pattern, a symbol and words that state the status.
- a hatched left band, a thick edge and a cross (✗): leak rate found.
- a dotted left band, a dashed edge and an ellipsis (…): not yet run for real.
- a thick edge, a tinted fill and Gwyn's name in the heading: Gwyn's own decision or action.
03 The problem
The problem
I use cloud AI agents alongside a local model, and some of what passes through my systems is personal data. My working rule is privacy first: cloud AI sees such data only if it has been anonymized or the owner has agreed in writing. A rule like that is only as good as the gate that enforces it, so I needed to know whether the gate actually held under attack, not just whether it looked right.
04 What I did
What I did
On 6 Oct I set the rule: anything the local server passes to a cloud model is anonymized first, the pseudonym map stays local, and the gate fails closed. I had the anonymizer hardened over five rounds and then attacked independently with a synthetic robustness suite. A related tool, designed to let the local 120B model digest long logs so the cloud agent reads 1-3 KB instead of 50-500 KB, has input-scope controls, number and ID leak checks and quote verification. In my environment decisions for my product, email addresses are disarmed in non-production copies, and cloud reviewers see only counts, hashes and field names, never the data.
05 Results
Results
The independent attack on 7 Oct ran 1,363 cases (2,726 calls per run). It found that strict mode let tracked personal data through in 432 of 1,247 deliberately hard cases (34.6%), with 0 of 80 false refusals on ordinary text. Because of that result, I ruled real third-party data out of scope for the tool until a held-out test passes. The first real use, on 6 Oct, produced no residue. The log-digest tool went through 10 review rounds and has not yet been run against the real local server. My six environment decisions were recorded on 27 Oct.
06 How I used AI
How I used AI
One AI agent owned and built the anonymizer, a different AI agent ran the adversarial robustness review, and a further delegate checked that review independently. I set the policy, directed the hardening and made the scope ruling. This is why I do not take an AI's word for a safety property: the gate had been through five rounds of hardening, and only an independent attack measured how often it still failed.
07 For an employer
For an employer
I design privacy controls for AI pipelines and test them adversarially: anonymization with a local pseudonym map, fail-closed behaviour, leak checks and quote verification. I measure both the leak rate and the false-refusal rate, and I set scope from the results. That is how I would put a privacy gate in front of any cloud model.
08 For a client
For a client
Your data does not go to a cloud model unless it is anonymized or you agree in writing. I test the anonymizer by attack, and when my own gate failed too many hard cases, I kept client material out of its scope until it passes a held-out test. You get the measured numbers, not a promise.
09 Skills