A first version's public copy catches a short owner quote whose padding or quote marks are encoded (#4778)

A first version's public export now catches a short owner quote when its
padding or quote marks are encoded, such as ` `, a zero-width
space, `"` or a JSON `\"`.

Why: those spellings kept the owner's words in the public copy and
`validate --public` passed them; short quotes are now matched on the
same decoded text the long-quote scan reads.

Nothing to do: the redaction still replaces only the original characters
of the quote.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Review-Finding: p1/specialist-batched#1 reader=red-team
This commit is contained in:
Garry Tanandcapy-ai[bot] authored and GitHub committed 2026-11-24 06:02:17 +00:00
1 parent f3a89d2105
commit bb6d13ea30
6 files changed
+40 -6

No files matched your search

+1 -1
View File
@@ -387,7 +387,7 @@ owner's own words: nothing a person wrote leaves without their click (GST-1243).
quote too. Replies of 1 or 2 words ("yes", "do it") are not scanned for:
they are codes or grammar, and the field itself is already dropped. A quote
under the plan's `### Owner's words` heading is redacted at any length
wherever it appears inside quote marks (spaces just inside them included), and the reason on its
wherever it appears inside quote marks (padding just inside them included, and the same after entities, JSON escapes and invisible characters are decoded), and the reason on its
`leave out:` line wherever it follows `leave out:`, `leave it out for now:`
or `reason to leave it out:`, in any case; a bare mention of a short quote's
words outside quote marks stays. A quote