The document API uses If-Match for optimistic concurrency: a PUT only proceeds when matchesIfMatch(header, currentEtag, exists) returns true, and otherwise the API answers 412. An audit of the request log found updates that should have been refused. A client that held only the weak validator W/"v3" from a cached GET sent If-Match: W/"v3" and overwrote the document. A document whose current ETag was the weak W/"v3" accepted If-Match: "v3".
If-Match must use strong comparison (RFC 9110). Fix matchesIfMatch in etag.js.