{ "comment": "Cases the server's note-scrub.ts and the plugin's run_record.py must both scrub the same way. Each `out` hashes the matched span with sha256, first 12 hex.", "cases": [ { "name": "class names, edge names, counts and diff numbers stay", "in": "ChatListItem is held by _listeners on EventEmitter: +316 objects per cycle, fixed by D135004827.", "out": "ChatListItem is held by _listeners on EventEmitter: +316 objects per cycle, fixed by D135004827." }, { "name": "a URL is hashed", "in": "The tab at https://example.com/messages/t/123 kept it.", "out": "The tab at (url d89a0b3c98aa) kept it." }, { "name": "a script or mail link is hashed like a URL", "in": "Not [this](javascript:alert(1)) either.", "out": "Not [this]((url 6fbeb4b257ed))) either." }, { "name": "an email address is hashed", "in": "Rows for someone@example.com stayed.", "out": "Rows for (email 72497f475e4f) stayed." }, { "name": "double-quoted strings are hashed", "in": "The cache key was \"user draft text\" each time.", "out": "The cache key was (string 38e7c561208b) each time." }, { "name": "an apostrophe is not a quote", "in": "The app's store doesn't drop the listener's closure.", "out": "The app's store doesn't drop the listener's closure." }, { "name": "a single-quoted span is hashed", "in": "keyed by 'secret label' in the map", "out": "keyed by (string 005299235f92) in the map" }, { "name": "long ids, hex tokens and id-carrying identifiers are hashed", "in": "chat 100012345678 under user_88123 with token 0123456789abcdef0123", "out": "chat (number 8efac64590a1) under (value 40f143cdce01) with token (hex 1bd8fd472970)" }, { "name": "control characters are dropped and CRLF becomes LF", "in": "line one\r\nline\u0007 two", "out": "line one\nline two" }, { "name": "quoted URLs are hashed by their own text", "in": "\"https://a.example/x\" and \"https://b.example/y\"", "out": "(string c8218c617b3b) and (string 603a6087fdde)" }, { "name": "a single-quoted span with an apostrophe in it is hashed", "in": "said 'don't tell anyone' twice", "out": "said (string 68b7f4f2aeca) twice" }, { "name": "a quoted span of any length is hashed", "in": "key \"x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x\" end", "out": "key (string 3e3d38ae9fe4) end" }, { "name": "home, temp and data paths are hashed, routes and ratios stay", "in": "saved to /tmp/leakhunt-ab/snapshots/s3.heapsnapshot and ~/notes/r1.md; /api/rounds grew 3/4 objects/cycle", "out": "saved to (path 98c145102230) and (path 9e0427cf6e4a); /api/rounds grew 3/4 objects/cycle" } ] }