We Would Rather Like a Specification
A position statement from Smartwank™ regarding the Online Safety Act 2023, Section 79, and the apparent absence, throughout its drafting, of anybody who had ever configured a cache header.
Yes, we are called Smartwank™. No, we shan't be apologising for that. It is, we think, the least of the difficulties raised by this document.
We are a search engine. We hold text descriptions, keywords, and URLs, and we return them to people who describe what they are after. We do not host video. We do not host images. We do not have accounts, and we could not tell you what any individual has searched for, on the grounds that we have never received a search. This is not discretion on our part. It is the arrangement of the machinery, which we shall come to, and which is the entire reason this statement exists.
We would like to comply with the Act. We have read it. We have read it a second time, in case the first reading was uncharitable. We cannot determine, from the text as enacted, what we are being asked to do. Not because the requirements are onerous. Because they are not requirements. They are metaphors, and we cannot run a metaphor.
What follows is not a legal argument. It is a defect report.
Section 79(2) defines "provider pornographic content" as pornographic content that is published or displayed on the service by the provider. Published, displayed, on the service, by the provider. The Act defines none of these with reference to how anything actually moves across a network. It does not have to define them for a printed magazine, where all four terms mean the same obvious thing and always have. It has to define them here, because here they come apart.
Our server sends an HTML document. That document contains a string of text: an
<img> tag with an address in it, pointing at a machine somebody else
operates. The string is not a photograph. It is an instruction addressed to the user's
browser, asking it to go and fetch something from elsewhere. The browser obliges. The bytes
travel from a third party's server to the user's device along a path we are not on and could
not observe if we wished to. We sent a sentence. The sentence said: there is a picture over
there.
Whether that picture is then "on" our service, we could not tell you. The Act uses the phrase "present on the service" in Section 79(6)(a)(i) and does not define it in any of its 237 sections or 17 schedules. We did check. It was not a short afternoon.
Section 79(6)(a)(ii) captures content "embedded on the service," and does not define "embedded" either, which is unfortunate, because an iframe, an image tag, a hyperlink, and a client-side fetch are four different operations with four different security models, and the Act has one word for all of them. The Court of Justice of the European Union spent the better part of a decade on precisely this question in the copyright context, across Svensson, BestWater, GS Media, and VG Bild-Kunst, and arrived at a distinction between content that appears automatically and content that appears after a click. That distinction does not appear in the Act. We do not say the drafters disagreed with it. We say they do not appear to have encountered it.
Now, the part where we are obliged to be tedious.
When somebody visits Smartwank™, the first response is a small static shell, sized to arrive within a single round trip. In the background the browser fetches two things: a compressed index and a small embedding model. The index is split across two storage layers on the user's own disk, because the two halves of an index have different access patterns and pretending otherwise costs you an order of magnitude. Metadata rows go into IndexedDB, which is transactional object storage and the right tool for records you fetch by key. The vectors do not. They go into the Origin Private File System as one packed binary, read by byte offset through a synchronous handle inside a worker, because a similarity search over a large vector set is a sequential walk across a contiguous buffer and not several hundred thousand separate transactions. The model loads into the same worker. None of it touches the main thread. The page is usable well before any of it finishes.
After that, our involvement in the session is over. The one remaining connection is a server-sent event stream, which is unidirectional: we push index updates down, the client sends nothing back. It cannot send anything back. There is no endpoint to send it to. When somebody types a description, the model on their machine turns it into a vector, the vector is compared against the packed file on their disk, the surviving rows are joined against their local metadata, and results are drawn on their screen. Any preview images are then fetched by their browser from whichever content provider they came from, over a connection we are not a party to.
None of this is served by us in the first place. The assets sit on a content delivery network. A user in Manchester is served from a cache node in Manchester, on hardware we do not own, in a building we have never seen, operated by a company that is not us. Our origin server was contacted once, by the cache, at fill time, possibly a fortnight ago. Between that fill and the user's request there is no communication whatsoever between our infrastructure and their device. Not a packet.
We could switch the origin off. The service would carry on. The edge holds the assets, the index is already on the user's disk, and the search runs in the browser, so a person who loaded the page yesterday could search today with our origin unplugged, on fire, or repossessed by a creditor. We mention this not as a boast. It is an ordinary consequence of caching and any competent front-end engineer would find it unremarkable. We mention it because Section 79 asks whether content is published or displayed on the service, and we would gently observe that the question assumes a service is a place.
It is not a place. At the moment of display, our origin is not in the request path, not adjacent to the request path, and not, in any sense we can identify, relevant to it. We could distribute the whole thing as an application, and a user could disconnect from the internet and search the same index offline with identical results. Every machine in that picture belongs to them.
One afternoon with somebody who had done this professionally would have caught it. Two, if you wanted diagrams.
The blur provision is the one we find genuinely interesting, in the way a badly specified interface is interesting.
Section 79(6)(a)(i) captures pornographic content that is only visible as a result of interacting with content that is blurred, distorted or obscured. We should like to comply with this. We should first like to know what it says.
A Gaussian blur at radius 50 leaves an unrecognisable smear. At radius 5 it leaves a photograph with a soft edge. Somewhere between those two numbers an image stops concealing something and starts being a coloured rectangle, and the Act does not say where. A black square is an image blurred until nothing survives. A flat grey PNG is, arithmetically, every photograph ever taken, averaged together. We do not think Parliament intended to regulate flat grey PNGs, and we say so only to demonstrate that blur is a continuous quantity being treated as a binary state, with the threshold left to the imagination. An engineer implementing this would pick a number out of the air and hope it survived review. We are not fond of numbers picked out of the air. We prefer the ones somebody chose deliberately and wrote down.
Then the thumbnails, which is what we came here about.
We take frames from source material by measuring pixel change between successive frames, discarding near-duplicates by perceptual hash, and keeping what is visually distinct. The process is mechanical and takes no view on what it is looking at. It measures variance. A vision model then reads each frame and writes structured metadata: how many people, what sort of room, the lighting, the clothing state. The frames are discarded when the pass completes. We keep the sentences.
So consider a frame in which a woman in a jumper is sitting at a desk in a bedroom, smiling at the camera. No classifier and no human assessor, given that image alone, could distinguish it from a lecture recording, a video call, or a photograph taken at Christmas.
The video it came from was made principally for sexual arousal. The frame was not. The frame is a photograph of somebody in a jumper who has not taken the jumper off yet. The Act's own test asks whether it is reasonable to assume the content was produced solely or principally for the purpose of sexual arousal, and this image fails that test on any honest reading.
Is it pornographic? We suspect the answer turns on whether the assessor happens to know what occurs eleven minutes later in a different file on a different server. That makes the classification a property of the assessor rather than of the image, which is not a specification. It is an epistemological problem, and we are a search engine, not a philosophy faculty.
We note in passing that Section 79(4) excludes text-only content from the definition entirely. So the sentence "two people, hotel room, low lighting, unhurried" is lawful beyond argument, while a photograph carrying less information than that sentence may not be. The line the Act draws between text and image does not correspond to any difference in what is conveyed, and it runs directly through the undefined ground above.
We also note, without wishing to lean on it too heavily, that Section 79(6)(b) excludes content appearing in the search results of a search service. We are a search service, our results are search results, and on the plain text we appear to be outside this entirely. We should be glad to rely on that. We would merely like to know whether the drafters meant to exclude search engines of this kind, or whether they were thinking about Google and did not consider that anyone else might build one.
We are not asking for leniency, which would be presumptuous, and we have not asked for an exemption, which would be worse. We are asking for a specification.
Tell us whether an image tag pointing at a third party's server puts that image on our service. Tell us whether "embedded" includes an inline fetch. Tell us what "on the service" means when the service is a static file on somebody else's cache node and the search runs on the user's own hardware. Tell us whether a photograph of a clothed woman becomes pornographic because of what a different file does eleven minutes later.
And tell us the blur radius. A number would do. Any number, provided somebody chose it on purpose.
—